Dev.to Security 🔐 Cybersecurity 👁 0 📖 1 min read

x402 security check for AI agents: how the $0.25 call works

Can an AI agent pay for a security check by itself? With x402, yes. This is what the ProofForge endpoint does and does not do, as described in its public llms.txt. What it is A pay-per-call endpoint: GET http

Can an AI agent pay for a security check by itself? With x402, yes. This is what the ProofForge endpoint does and does not do, as described in its public llms.txt.

What it is

A pay-per-call endpoint: GET https://proofforge.live/api/v1/x402/outside-check?url=<app url>

No account, no API key, no private scan token.

How a call works

  1. Call the URL. Without a payment signature it returns HTTP 402 with a payment request.
  2. The offer is x402 v2, "exact", on Base (eip155:8453), in USDC, amount 250000, which is $0.25.
  3. A funded wallet that you have given spending permission signs the challenge.
  4. Retry the identical GET with the PAYMENT-SIGNATURE header.
  5. After confirmed settlement it runs the same public-surface scan as the standard scan API and returns the grade, score, severity counts and a report link.

If it answers HTTP 202, retry the identical URL and authorization after the Retry-After delay. Do not pay again. Replays return the stored result without a new charge or scan.

Rules to know

  • Only scan apps you own or have permission to test. Paying confirms that permission.
  • Target validation, opt-outs and scan limits run before settlement.
  • The check is public-side and read-only. It never signs in, so it cannot see behind a login.
  • A clean result means nothing was found in the public assets checked, not that the app is secure.

Free alternative

The MCP server is free to connect and does not charge for scans. Details are on the MCP server page. Paid fix tiers ($9, $29, $79) are separate and never bought automatically.

I work on ProofForge. The API contract is at docs/api.

See what a report looks like, free. Run the free ProofForge scan on your live URL. No account needed.

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.