agent-payment-x402
Audited by Snyk on Dec 5, 2026
MEDIUM W011: Third-party content exposure detected (indirect prompt injection risk).
- Third-party content exposure detected (low risk: 0.10). The required workflow has the agent fetch a selected, paid API URL (
payOnce, line 254) and consume the response body, which is outsider-authored text the agent must actively choose to request, so this is low rather than medium; the bazaar/Roundhouse discovery catalogs are optional and not part of the required workflow.
MEDIUM W009: Direct money access capability detected (payment gateways, crypto, banking).
- Direct money access detected (high risk: 0.70). The skill's core purpose is operational agent-initiated payments. It exposes a
send_paymenttool that sends payment to an address or ENS (lines 72-79). It also wraps an HTTP client to sign and submit x402 payments on Base and Solana mainnet (lines 105-257). These are direct financial operations (transfers and charges), not development illustrations or service-cost exclusions.
Control assessment: the documented controls are all agent- or orchestrator-followed or local. They are:
- spending policies (per-task and per-session budgets, recipient allowlists, rate limits)
- a local
PaymentPolicyfilter - a
confirmWithUserprompt - an origin allowlist
- wallet keys supplied from environment variables
Spending limits, confirmation prompts and local key-presence checks do not count as independent service-layer authentication or authorization. Neither agentwallet-sdk nor the x402 buyer flow documents a service-enforced login or credential validation gating the payment route. The facilitator verifies and settles payments, but the skill does not describe it as authenticating the buyer's access. The OKX path requires explicit user confirmation, which is an agent-followed instruction rather than an enforced control. The seller-side replay protection is unrelated to buyer access control.
Direct payment operations without a qualifying independent access control put this at high.
MEDIUM W013: Attempt to modify system services in skill instructions.
- Attempt to modify system services in skill instructions detected (low risk: 0.10). The skill has state-changing operations, including MCP server configuration, policy setup via
set_policy, Redis claim-store writes and deletes, and Solana ATA provisioning, but no explicit irreversible operational loss, so it fails the gate for medium and high.
Issues (3)
Third-party content exposure detected (indirect prompt injection risk).
Direct money access capability detected (payment gateways, crypto, banking).
Attempt to modify system services in skill instructions.