{"uid":"cap_YZn_zx0EpGfOMqZtT4vwD","slug":"agentforge-signature-check-c6c4c9b8","name":"AGENTFORGE Signature Check","description":"Signature phishing check before an agent signs: decodes EIP-712 typed data (ERC-20 permit, Permit2 allowance or transfer, Seaport order, transfer authorization) or an x402 payment request, says in one sentence what signing would allow, screens every spender and payee for sanctions and scams, and catches drainer patterns (permits to plain wallets, sell-for-nothing orders, fake USDC domains, over-priced x402 payments). Verdict proceed/caution/avoid. Category: security.","url":"https://agentforge-taupe.vercel.app/v1/signature-check?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"chain":{"enum":["ethereum","base","arbitrum","optimism","polygon","bsc","avalanche","linea","unichain","sonic","hyperevm"],"type":"string"},"signer":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"typedData":{"type":"object","description":"EIP-712 typed data { domain, types, primaryType, message } (or its JSON string)"},"expectedMaxUsd":{"type":"number","description":"x402 only: refuse options above this price"},"paymentRequired":{"type":"object","description":"x402 PaymentRequired with accepts[] that the agent is about to pay"}}},"responseSchema":{"type":"json","example":{"kind":"erc20-permit","reasons":["Grants token permissions to a plain wallet, not a contract — the common signature-drainer pattern"],"summary":"Lets 0xabab…abab spend an unlimited amount of USDC from this wallet until revoked, without any further approval.","verdict":"avoid"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_eX9OTdyIVU-WcGD8UwmUk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes an EIP-712 typed data signature or x402 payment request before signing, flagging drainer patterns, unlimited approvals, and risky permit structures.","exampleAgentPrompt":"Before I sign this EIP-712 permit, check if it's safe — the signer is 0x1234567890abcdef1234567890abcdef12345678 on base, and the typed data grants spending of USDC to 0xabababababababababababababababababababababab with no expiry.","exampleUseCases":[{"title":"Catch a signature drainer attack","prompt":"I just got a pop-up asking me to sign a message on Ethereum from my wallet 0xDeAdBeEf00000000000000000000000000000001 — here's the EIP-712 typed data, can you check if this is a drainer before I sign anything?"},{"title":"Validate x402 payment before auto-paying","prompt":"My agent is about to auto-pay an x402 invoice on Base — the PaymentRequired object says it costs $0.003 USDC. Can you verify the signature structure is legitimate and my max price of $0.01 isn't being exceeded?"},{"title":"Screen token permit before DeFi interaction","prompt":"I'm about to sign an EIP-712 permit for a DeFi protocol on Arbitrum with signer 0xAaBbCcDdEeFf001122334455667788990011aabb — the message grants unlimited USDC spending. Can you check if the spender looks like a contract or a known drainer wallet?"}],"resultDescription":"Returns a JSON object with: a verdict field ('safe', 'warn', or 'avoid'), a human-readable summary describing exactly what permissions the signature grants, the kind of signature detected (e.g. 'erc20-permit'), and a list of specific reasons explaining any risk flags found.","failureModes":["Malformed EIP-712 typed data returns a parse error","Unsupported chain identifier returns an enum validation error","Invalid signer address format (not 0x + 40 hex chars) returns a pattern mismatch error","Missing required typedData or signer fields returns a 400 bad request","Payment not included returns 402 with pricing and payment instructions"],"whenToPreferThis":"Use this endpoint when an autonomous agent or wallet UI needs to validate an EIP-712 typed data signature — especially permit, approval, or x402 payment signatures — before the user or agent signs. Prefer this over generic contract auditors when the risk is specifically in what a signature authorizes (token allowances, drainers) rather than contract code vulnerabilities. Best for real-time pre-signing safety checks in agent-driven DeFi workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-16T12:40:26.611Z","isFirstParty":false,"canonicalSlug":"agentforge-signature-check-c6c4c9b8"}