pay-with-app
Pass
Audited by Gen Agent Trust Hub on Sep 14, 2026
Risk Level: SAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The skill downloads the
viemlibrary from the official NPM registry to perform Ethereum cryptographic operations. This process is preceded by a mandatory confirmation gate using theAskUserQuestiontool to inform the user of the package name, target directory, and installation footprint. - [DYNAMIC_EXECUTION]: To handle EIP-3009 typed-data signing, the skill generates a temporary
.mjsscript at runtime. This script utilizes theviemlibrary and environment variables for the signing key. The logic for this script is static and fully disclosed in the accompanying reference documentation (references/app-x402-flow.md). - [COMMAND_EXECUTION]: The skill executes various system commands including
curlfor API communication,opensslfor nonce generation,jqfor JSON processing,python3for unit math, andcastfor blockchain RPC calls. The implementation includes regex-based validation and shell metacharacter blacklisting for all shell-interpolated variables to prevent command injection. - [INDIRECT_PROMPT_INJECTION]: The skill processes external data from HTTP 402 challenge responses, creating a surface for potential indirect prompt injection.
- Ingestion points: HTTP 402 challenge body parsed in
SKILL.md(Phase 0). - Boundary markers: The skill defines explicit validation rules and uses
jqto extract specific fields rather than passing raw JSON to the model. - Capability inventory: The skill can perform network requests (
curl), execute Node.js scripts, and initiate blockchain transactions viacast. - Sanitization: Implements strict regex validation for Ethereum addresses, amounts, and URLs, and rejects any free-text fields containing shell metacharacters (e.g.,
;,|,&,$, backticks, or newlines).
Audit Metadata