Dev.to Security πŸ” Cybersecurity πŸ‘ 0 πŸ“– 1 min read

Pay-per-call security checks for AI agents: how an x402 endpoint works

AI coding agents can now check a deployed app before they call it done. Here is a small pattern that needs no account and no API key: one HTTP call, paid per request with x402. What x402 is x402 revives the HTTP 402 Pay

AI coding agents can now check a deployed app before they call it done. Here is a small pattern that needs no account and no API key: one HTTP call, paid per request with x402.

What x402 is
x402 revives the HTTP 402 Payment Required status. A client calls a URL, the server answers 402 with a machine-readable offer (price, asset, network, pay-to address), the client signs a payment and retries, and the server returns the result.

The call
ProofForge exposes a public outside-check endpoint:

GET https://proofforge.live/api/v1/x402/outside-check?url=https%3A%2F%2Fyour-app.example

Without a payment header it returns HTTP 402 with a PAYMENT-REQUIRED header. The offer is x402 v2, scheme exact, USDC on Base (eip155:8453), amount 250000 (that is $0.25 with six decimals). With a valid PAYMENT-SIGNATURE it runs a read-only outside check of the public URL and returns a grade, a score, severity counts and a report link.

What the check covers
Public pages, selected JavaScript, response headers and bounded read-only backend signals: leaked keys, open Supabase or Firebase data, exposed files. It never logs in, never writes, never uses a key it finds. It is not a pentest. A clean result means no exposure was found in what the app ships publicly.

Use it only on apps you own or may test.

When to use the bigger product
The $0.25 call gives the summary. The full report with fix prompts for Lovable, Bolt, Replit, Cursor and v0 is $9, with $29 for rechecks and $79 for buyer due diligence. There is also a free scan and a free MCP server at https://proofforge.live/mcp.

API contract and limits: https://proofforge.live/docs/api

πŸ“° 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.