T08 · Insecure Dependencies
Error
- Location
- SKILL.md:30
- Finding
- Unpinned Third-Party Packages Can Execute Mutable Registry Code<![CDATA[ ## Vulnerability Details **File Locations**: - `SKILL.md:30-32` - `competitors/elite-longterm-memory/SKILL.md:133-143` - `competitors/elite-longterm-memory/SKILL.md:331-340` - `competitors/relayplane/SKILL.md:27-31` **Vulnerability Type**: Unpinned package installation and execution **Risk Level**: High ### Vulnerable Code `SKILL.md:30-32`: ```bash npx clawzempic ``` `competitors/elite-longterm-memory/SKILL.md:133-143`: ```bash npm install mem0ai export MEM0_API_KEY="your-key" ``` ```javascript const { MemoryClient } = require('mem0ai'); const client = new MemoryClient({ apiKey: process.env.MEM0_API_KEY }); ``` `competitors/elite-longterm-memory/SKILL.md:331-340`: ```bash npm install mem0ai ``` ```javascript const { MemoryClient } = require('mem0ai'); const client = new MemoryClient({ apiKey: process.env.MEM0_API_KEY }); ``` `competitors/relayplane/SKILL.md:27-31`: ```bash npm install -g @relayplane/proxy ``` ### Technical Analysis These commands resolve package versions from a mutable external registry without specifying an exact reviewed version or integrity value. In particular, `npx clawzempic` may download and immediately execute the currently resolved package. An npm installation can execute package lifecycle scripts such as `preinstall`, `install`, and `postinstall`. Consequently, compromising a publisher account, registry entry, or newly released package version can turn the documented installation procedure into arbitrary local code execution. Global installation increases the affected filesystem scope and may be performed with elevated privileges by some users. The audited files do not prove that the current upstream packages are malicious. The vulnerability is that the instructions trust future mutable registry content not included in this audit. ### Attack Path 1. An attacker compromises a package publisher account or causes a malicious package version to be published. 2. The malicious release includes an npm lifecycle scri ...[truncated 761 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Pin every package to an exact reviewed version, such as `clawzempic@2.3.5`. 2. Publish and verify package integrity hashes or signed provenance. 3. Use a lockfile for reproducible dependency resolution. 4. Avoid combining download and execution through `npx`; install a verified artifact first and execute it separately. 5. Disable lifecycle scripts during initial inspection with `npm install --ignore-scripts`, where compatible. 6. Inspect the package contents and lifecycle scripts before enabling execution. 7. Avoid global installation unless it is strictly necessary. 8. Explicitly warn users not to run package installation with `sudo`. 9. Use automated dependency monitoring and immediately revoke compromised releases. ]]>
