T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:24
- Finding
- Unreviewed npm Package Is Downloaded and Executed Through npx## Vulnerability Details **File Location**: `SKILL.md`, lines 24-28 **Vulnerability Type**: Insecure third-party dependency execution **Risk Level**: Medium ```bash npx awal@2.0.3 x402 pay https://anicca-proxy-production.up.railway.app/api/x402/emotion-detector \ -X POST \ -d '{"text": "I feel really anxious about the presentation", "language": "en"}' ``` ### Technical Analysis The documented workflow uses `npx` to obtain and immediately execute `awal@2.0.3`. Pinning the package version provides some reproducibility, but the Skill does not specify an expected package integrity hash, trusted registry configuration, reviewed artifact, or isolated execution environment. If the referenced package version, npm account, registry, or dependency chain is compromised, package installation hooks or runtime code could execute arbitrary commands with the permissions of the user running the Skill. The command also initiates an x402 cryptocurrency payment workflow, which increases the sensitivity of any wallet or payment capabilities made available to the process. This is a supply-chain exposure rather than evidence that the identified package is currently malicious. ### Attack Path 1. A user or agent follows the command documented in `SKILL.md`. 2. `npx` resolves and, when not already cached, downloads `awal@2.0.3` and its transitive dependencies. 3. npm installation hooks or package runtime code execute under the invoking user's account. 4. A compromised package or dependency accesses files, environment variables, network resources, or credentials available to that process. 5. If wallet or payment authority is exposed to the command, malicious code could attempt unauthorized payment operations within the limits of that authority. ### Impact Assessment Successful exploitation could provide code execution with the invoking user's privileges. The affected scope could include readable local files, environment variables, acces ...[truncated 270 chars]
- Remediation
- ## Remediation Suggestions - Do not use an implicit download-and-execute workflow for security-sensitive or payment-related operations. - Review the package source, maintainer identity, release provenance, installation scripts, and transitive dependencies before use. - Install from a trusted registry using a lockfile and integrity-verified artifacts. - Document the expected package digest or other verifiable provenance mechanism. - Disable lifecycle scripts where they are unnecessary. - Execute the client in a sandbox or container with minimal filesystem and network access. - Remove unrelated secrets from the environment before invocation. - Use a dedicated wallet with strict spending limits and require explicit user confirmation before signing each payment.
