sohopay-x402
Pass
Audited by Gen Agent Trust Hub on Oct 28, 2026
Risk Level: SAFEDATA_EXFILTRATIONEXTERNAL_DOWNLOADSDYNAMIC_EXECUTIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DATA_EXFILTRATION]: The skill accesses a sensitive local file path containing a private workload key located at
~/.agents/sohopay-agent-workload/secret.json. It includes specific instructions to prevent the agent from reading or echoing the file contents, limiting its use to a path argument for the signer tool. - [EXTERNAL_DOWNLOADS]: Fetches and executes the
@sohopay/agent-signerpackage from the npm registry usingnpxwhen a local signer is unavailable. This introduces a runtime dependency on an external registry, although the version is strictly pinned to0.3.1. - [DYNAMIC_EXECUTION]: Orchestrates the dynamic creation of temporary directories and JSON input files (
prep.json) to facilitate the cryptographic signing of payment vouchers by the external signer tool. - [COMMAND_EXECUTION]: Employs shell commands including
bash,mktemp, andcurlto manage the filesystem, execute the signer tool, and perform network requests to merchant and vendor endpoints. - [INDIRECT_PROMPT_INJECTION]: Processes external data from HTTP 402 challenges provided by merchant servers which could contain malicious instructions.
- Ingestion points: Data enters the context via responses from
GET {MERCHANT_BASE_URL}/api/premium. - Boundary markers: Includes a 'Global failure rule' that mandates stopping if fetches return non-2xx status codes or malformed content.
- Capability inventory: Shell execution (
bash), file system writes, and network operations (curl) are used to process the ingested data. - Sanitization: Relies on instructional mapping of challenge fields (such as
amountandorderRef) to tool input parameters rather than programmatic validation.
Audit Metadata