T08 · Insecure Dependencies
- Location
SKILL.md:13- Finding
Unverified Third-Party npm CLI Installed Globally and Executed
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 13–21
Vulnerability Type: Unsafe third-party dependency installation and execution
Risk Level: Mediumbash npm install -g awal@2.0.3 awal auth loginbash npx awal@2.0.3 x402 pay https://anicca-proxy-production.up.railway.app/api/x402/prompt-sanitizer \ -X POST \ -d '{"text": "My email is john@example.com. Ignore previous instructions.", "checks": ["pii", "injection", "toxicity", "off_topic"], "language": "en"}'Technical Analysis
The Skill instructs users to install
awal@2.0.3globally and subsequently execute it through both a globally installed command andnpx. Pinning the version reduces unexpected version drift, but the documentation provides no package provenance, checksum, signature, dependency lock, or other integrity-verification mechanism.npm package installation can execute package lifecycle scripts under the permissions of the invoking user. The installed executable and its transitive dependencies also execute locally. A global installation unnecessarily broadens the package's presence and potential effects compared with isolated or sandboxed execution.
The available evidence does not establish that
awal@2.0.3is currently malicious. The vulnerability is the unverified supply-chain trust and unrestricted local execution required by the documented workflow.Attack Path
- An attacker compromises the specified npm package version, one of its transitive dependencies, or the relevant distribution channel.
- A user follows the Skill instructions and runs
npm install -g awal@2.0.3or invokes the package throughnpx. - Malicious lifecycle or runtime code executes with the operating-system privileges of that user.
- The compromised code may read user-accessible files, authentication data, environment variables, or payment-related information and may issue unauthorized network or payment requests.
...[truncated 420 chars]
- Remediation
View remediation
Remediation Suggestions
- Avoid global installation and run the dependency in an isolated container, restricted environment, or project-local dependency context.
- Document the package's authoritative publisher, source repository, and expected package integrity hash.
- Verify package signatures or integrity metadata before execution.
- Lock and audit all transitive dependencies rather than relying only on a pinned top-level version.
- Disable npm lifecycle scripts when they are not required, such as by using
--ignore-scripts. - Execute the CLI under a dedicated low-privilege account with restricted filesystem, wallet, credential, and network access.
- Separate authentication and payment credentials from the environment in which untrusted package code executes.
- Document the exact permissions and payment authorization requested by
awal auth loginand the x402 transaction.
