Agent402 handles real money (USDC settlement via x402 and MPP, card payments via Stripe for reports, monitors and, when they are on sale, prepaid credits), runs a headless browser against user-supplied URLs, and stores wallet-keyed data - security reports are taken seriously and acted on fast.
- Preferred: open a private security advisory on this repository.
- Or open a regular issue without exploit details and ask for a private channel.
- Direct email: security@agent402.tools.
- Maintainer: Havok Holdings LLC - github.com/MikeyPetrillo/Agent402.
Please include reproduction steps and impact. Good-faith research inside the scope below will not be met with legal action, provided you test only against wallets, keys and data you own, do not access or keep anyone else's data (stop and tell us if you reach it), do not move or spend anyone else's funds or credits, do not degrade the service for others, and report to us promptly and before any disclosure. You can expect an acknowledgement within two business days; fixes for real issues ship through the normal CI pipeline (which re-tests every endpoint) as soon as they're ready.
- The live service at
agent402.tools, including/mcp, the/v1LLM gateway and report products, the x402 / MPP paywall on every paid route, the prepaid-credits gate for existing keys (Authorization: Bearer a402_...), and the card front door (/reports,/monitors,/credits, the Stripe webhook) - This codebase: SSRF guards, the proof-of-work scheme, payment gating, the memory access-control model
- The
agent402-mcpnpm package (especially the spend-control enforcement) - The
agent402-clientbuyer SDK and theagent402-tollboothpay-per-crawl gate
Out of scope: the x402 protocol itself, the x402 facilitators we settle through, Base/USDC contracts, and volumetric denial-of-service.
Every pull request runs CodeQL, gitleaks secret scanning (with a planted-canary self-check), Socket dependency review and the full test lanes, all required before merge; outside contributions also need DCO sign-off and the maintainer's code-owner review on payment, gating and CI paths; every GitHub Action is pinned to a full commit SHA; the container image is pinned by digest and runs as a non-root user; npm packages publish through OIDC with provenance. The human-readable version is at https://agent402.tools/security.
The security model - DNS-pinned SSRF guards with per-request browser re-validation, single-use slug-scoped proof-of-work, wallet-only gating of costly tools, timing-safe token comparison - is documented in the Security Model wiki page and is all in this repo to read.