x402
Pass
Audited by Gen Agent Trust Hub on Nov 8, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSPERSISTENCEREMOTE_CODE_EXECUTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: Automated scanners identified a pattern in
scripts/keepalive.shwhere a network request is followed by a subprocess execution. Analysis confirms this is a local watchdog mechanism that performs GET requests to a health endpoint on the loopback address (127.0.0.1) and restarts the internal gateway script (gateway/app.py) if the check fails. This is an operational requirement for service uptime and not a remote vulnerability. - [COMMAND_EXECUTION]: The skill employs
subprocess.Popenin several scripts, includingmonetize.py,keepalive.sh, andverify_setup.py, to manage the lifecycle of the monetization gateway. It also accesses the/procfilesystem to track and manage gateway processes by their command-line signatures. - [EXTERNAL_DOWNLOADS]: The skill downloads standard Python libraries (
x402,web3,httpx,eth-account, etc.) from official registries during initialization. It also performs service discovery by querying the Coinbase CDP Bazaar API, which is a well-known industry service. - [PERSISTENCE]: To ensure the continuous availability of paid services, the skill includes instructions to schedule a watchdog script (
keepalive.sh) as a recurring task and to include it in the machine's startup sequence (setup.sh). - [SAFE]: The skill manages a 'session EOA' signer by storing a locally generated private key in a hidden directory (
.x402/buyer.key). The key file is protected with restricted filesystem permissions (0600), and the signer is subject to a user-configurable spend cap (X402_MAX_ATOMIC), which represents a secure implementation for automated financial operations.
Audit Metadata