x402
Pass
Audited by Gen Agent Trust Hub on Nov 16, 2026
Risk Level: SAFEEXTERNAL_DOWNLOADSDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The skill communicates with external x402 API endpoints to probe costs and execute paid transactions. Default sources include vendor-associated domains such as x402.biwas.xyz and stx402.com, but it also allows interactions with arbitrary user-specified HTTPS URLs.
- [DYNAMIC_EXECUTION]: The skill provides project scaffolding commands (scaffold-endpoint and scaffold-ai-endpoint) that generate local project directories containing executable Hono.js code and configuration files. This script generation is a core feature for developers to build on the x402 protocol.
- [INDIRECT_PROMPT_INJECTION]: The skill possesses an attack surface for indirect prompt injection as it ingests responses from external APIs and interpolates parameters (like system prompts) into scaffolded code. Evidence: 1. Ingestion points: external API responses in execute-endpoint and probe-endpoint; 2. Boundary markers: Absent for raw API data; 3. Capability inventory: Filesystem writes, network GET/POST, wallet transaction signing; 4. Sanitization: Enforced HTTPS and regex-validated project names to prevent path traversal.
- [COMMAND_EXECUTION]: The skill operates as a CLI tool executed via the bun runtime and manages local state, including dedup records and spend ledgers stored in the user's home directory (~/.aibtc/). The project scaffolding commands also involve writing multiple files to user-specified output directories.
Audit Metadata