agent-payment-x402
Pass
Audited by Gen Agent Trust Hub on Dec 5, 2026
Risk Level: SAFECREDENTIALS_UNSAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [CREDENTIALS_UNSAFE]: Accesses private keys for EVM and Solana networks from environment variables (EVM_PRIVATE_KEY, SVM_PRIVATE_KEY, WALLET_PRIVATE_KEY) to sign payment transactions.\n- [COMMAND_EXECUTION]: Runs the agentwallet-sdk MCP payment server using the npx command.\n- [EXTERNAL_DOWNLOADS]: Fetches payment libraries and protocol implementations from the NPM registry and references official integration guides from OKX's GitHub repository.\n- [DATA_EXFILTRATION]: Sends signed payment payloads and transaction data to external payment facilitators (such as x402.org or Coinbase CDP) and resource servers to settle payments for gated APIs.\n- [INDIRECT_PROMPT_INJECTION]: Has an attack surface for indirect injection as it ingests and processes payment requirements (amounts, token addresses, and recipient addresses) from external HTTP 402 responses.\n
- Ingestion points: Payment challenges received in HTTP headers or bodies during the x402 negotiation flow in SKILL.md.\n
- Boundary markers: Includes a robust PaymentPolicy system and SpendingPolicy controls to filter server requirements before signing.\n
- Capability inventory: Signing and submitting on-chain transactions, making authenticated network requests, and querying wallet balances.\n
- Sanitization: Uses explicit allowlists for networks, assets, and recipients, and validates payment amounts using BigInt parsing and budget caps.
Audit Metadata