T09 · Insecure Skill Coding Practices
- Location
SKILL.md:59- Finding
Payment Agent Key Exposed Through Command-Line Arguments
- Content
View full analysis
# Set active config manually ampersend config set --api-url https://api.staging.ampersend.ai # Set staging API URL ampersend config set --clear-api-url # Revert to production API ampersend config set --network base-sepolia # Set network (base, base-sepolia) ampersend config set --clear-network # Revert to default network (base) ampersend config set --api-url # Set both at once ampersend config status # Show current status ``` ### Technical Analysis The manual configuration procedure places the payment agent key directly in a command-line argument. Command-line arguments are not an appropriate secret-delivery mechanism because they can be captured by shell history, terminal recording, agent transcripts, process monitoring, audit telemetry, debugging tools, or local process inspection. The key relates to an autonomous stablecoin payment agent. Its disclosure may therefore permit an attacker to impersonate the agent or authorize transactions within the permissions, spending limits, and available balance assigned to that key. ### Attack Path 1. A user follows the documented manual setup command and substitutes the real payment agent key for `0xagentKey`. 2. The command, including the key, is retained in shell history, terminal logs, an agent transcript, process metadata, or monitoring telemetry. 3. An attacker or unauthorized l ...[truncated 780 chars]- Remediation
View remediation
