alipay-pay-for-402-service
Pass
Audited by Gen Agent Trust Hub on Sep 21, 2026
Risk Level: SAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The skill installs a specific version of the @alipay/agent-payment package from the NPM registry. This resource belongs to the skill's author, and the installation process incorporates a SHA-512 integrity verification to protect against supply chain risks.
- [COMMAND_EXECUTION]: The skill makes extensive use of the alipay-bot CLI tool for wallet checks, payment initiation, and status queries. It enforces safety measures such as wrapping parameters in single quotes and using specific regex patterns for filename validation to prevent shell injection.
- [DYNAMIC_EXECUTION]: A shell pipeline involving curl, grep, and sed is used for protocol recovery to fetch and process headers dynamically. The instructions include strict input validation for the resource URL and trade number parameters.
- [INDIRECT_PROMPT_INJECTION]: The skill processes external data from HTTP headers and API responses during the A402 handshake.
- Ingestion points: Untrusted data enters the context via Payment-Needed headers and resource response bodies.
- Boundary markers: The skill uses single-quote wrapping for command arguments and provides explicit instructions to handle base64 content without decoding.
- Capability inventory: The skill performs file system writes for temporary payment data and network operations via the alipay-bot CLI.
- Sanitization: Input validation for filenames (regex [a-zA-Z0-9._-]) and mandatory HTTPS protocol requirements for resource URLs are enforced.
Audit Metadata