T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:21
- Finding
- Unpinned Vercel Skills CLI Executes Mutable Installation-Time Dependencies## Vulnerability Details **File Location**: `SKILL.md`, line 21 **Vulnerability Type**: Unpinned third-party package execution **Risk Level**: Medium **Vulnerable Code**: ```bash npx skills add prompt-security/clawsec --skill nanoclaw-traffic-guardian -a openclaw -y ``` ### Technical Analysis The installation command invokes the `skills` npm package through `npx` without specifying an exact package version or integrity value. If the package is not already available locally, `npx` can retrieve and execute the currently resolved package version. The `-y` option automatically accepts installation prompts. This means the code executed during installation is not limited to the artifact reviewed in this audit. A compromised npm package, malicious newly published version, or supply-chain incident affecting the resolved CLI package could alter the installation behavior after this skill has been reviewed. The `prompt-security/clawsec` source is also not pinned to an immutable commit or signed release identifier in this command. The signed standalone verification procedure at `SKILL.md:25-100` reduces risk for users who follow that alternative process, but it does not establish the integrity of the separate `npx` installation path. ### Attack Path 1. An attacker compromises the publishing account, distribution channel, or dependency chain for the unpinned `skills` npm package, or causes a malicious version to be resolved. 2. The attacker publishes installation-time code under the package version selected by `npx`. 3. An operator follows the documented installation command. 4. `npx` downloads the mutable package version and, because `-y` is supplied, proceeds without an interactive installation confirmation. 5. The attacker-controlled CLI code executes with the privileges of the operator running the command. 6. That code can modify user-accessible files, read credentials available to the process, initiate network connections, or ...[truncated 569 chars]
- Remediation
- ## Remediation Suggestions 1. Pin the CLI to a reviewed exact version, for example `npx skills@<reviewed-version> ...`, rather than resolving the latest available release. 2. Pin the skill source to an immutable commit digest or signed release tag supported by the installer. 3. Verify package and artifact integrity using a trusted checksum or signature before execution. 4. Prefer the signed standalone release-verification procedure already documented in `SKILL.md`, ensuring verification succeeds before extraction or installation. 5. Remove `-y` where practical so operators receive confirmation before an absent package is downloaded and executed. 6. Execute installation in a least-privileged, isolated environment without unnecessary credentials or sensitive environment variables. 7. Document the exact reviewed CLI version and update it only after security review.
