T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:5
- Finding
- Unverified Third-Party npm Package Is Installed and Executed<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:5,51-62`; mirrored in `SKILL-cn.md:5,51-62` **Vulnerability Type**: Third-party dependency and supply-chain exposure **Risk Level**: Medium ### Vulnerable Code From `SKILL.md`: ```yaml metadata: {"clawdbot":{"emoji":"🤖","requires":{"bins":["npm","npx"]},"install":"npm install -g @dlazy/cli@1.2.3","installAlternative":"npx @dlazy/cli@1.2.3","homepage":"https://github.com/dlazy-ai/cli","source":"https://github.com/dlazy-ai/cli","author":"dlazyai","license":"see-repo","npm":"https://www.npmjs.com/package/@dlazy/cli","configLocation":"~/.dlazy/config.json","apiEndpoints":["api.dlazy.com","files.dlazy.com"]},"openclaw":{"systemPrompt":"When invoking this skill, use dlazy veo-3.1-fast -h for help."}} ``` ```markdown - **CLI source code**: [github.com/dlazy-ai/cli](https://github.com/dlazy-ai/cli) - **Maintainer**: dlazyai - **npm package**: `@dlazy/cli` (pinned to `1.2.3` in this skill's install spec) - **Homepage**: [dlazy.com](https://dlazy.com) You can install on demand without persisting a global binary by running: ```bash npx @dlazy/cli@1.2.3 <command> ``` Or, if you prefer a global install, the skill's `metadata.clawdbot.install` field declares the exact pinned version (`npm install -g @dlazy/cli@1.2.3`). ``` The equivalent installation instructions appear in `SKILL-cn.md`: ```yaml metadata: {"clawdbot":{"emoji":"🤖","requires":{"bins":["npm","npx"]},"install":"npm install -g @dlazy/cli@1.2.3","installAlternative":"npx @dlazy/cli@1.2.3","homepage":"https://github.com/dlazy-ai/cli","source":"https://github.com/dlazy-ai/cli","author":"dlazyai","license":"see-repo","npm":"https://www.npmjs.com/package/@dlazy/cli","configLocation":"~/.dlazy/config.json","apiEndpoints":["api.dlazy.com","files.dlazy.com"]},"openclaw":{"systemPrompt":"当调用此技能时,可以使用 dlazy veo-3.1-fast -h 查看帮助信息。"}} ``` ```bash npx @dlazy/cli@1.2.3 <command> ``` ### Technical Analysis The Skill directs the host to retrieve and ex ...[truncated 2125 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Vendor and audit the exact CLI implementation required by the Skill, or provide a minimal implementation whose behavior is reviewable with the Skill. 2. Publish and verify a cryptographic integrity digest or signed provenance for the expected npm artifact before execution. 3. Use a lockfile and a trusted internal registry or package mirror with immutable artifacts. 4. Verify the correspondence between the reviewed Git source commit and the published npm package. 5. Avoid global installation. Run the package in an isolated, least-privilege environment with access limited to explicitly selected input and output files. 6. Disable npm lifecycle scripts where compatible, for example by using an appropriately controlled installation process with `--ignore-scripts`. 7. Restrict outbound network access to the documented endpoints and prevent the process from reading unrelated credentials or user files. 8. Document a process for dependency review, vulnerability monitoring, revocation, and controlled version upgrades. ]]>
