T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:15
- Finding
- Unpinned ClawHub Package Execution in Skill Installation Instructions<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 15-17 **Vulnerability Type**: Unpinned third-party package execution **Risk Level**: Medium ### Vulnerable Code ```bash npx clawhub@latest install websocket-hub-patterns ``` ### Technical Analysis The installation command instructs users to execute `clawhub@latest` through `npx`. The `latest` tag is mutable, so the package version and executable content may change after this Skill has been reviewed. `npx` downloads and executes the selected package with the privileges of the user performing the installation. The command does not pin an audited version, commit, integrity hash, or signature. Consequently, compromise of the npm package, publisher account, package distribution infrastructure, or a future malicious release could turn the documented installation process into an arbitrary code-execution channel. No evidence establishes that the current `clawhub` package is malicious; the vulnerability is the unsafe trust and version-pinning model used by the installation instruction. ### Attack Path 1. An attacker compromises the `clawhub` npm package, its publisher account, or the associated release process. 2. The attacker publishes a malicious release and assigns or causes it to receive the `latest` distribution tag. 3. A user follows the installation command from `SKILL.md`. 4. `npx` retrieves the mutable `latest` release and executes its package entry point. 5. The malicious package runs with the installing user's permissions and may access files, credentials, environment variables, or network resources available to that user. ### Impact Assessment Successful exploitation could provide arbitrary code execution with the privileges of the user running the installation. The affected scope may include the user's project files, home-directory data, development credentials, environment variables, SSH or API credentials readable by that account, and reachable internal or external services. ...[truncated 135 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions - Replace `clawhub@latest` with a specific, reviewed package version. - Where supported, verify the package using an expected integrity hash or trusted signature. - Review the pinned package's executable entry point and lifecycle scripts before recommending execution. - Use lockfiles or an equivalent immutable dependency manifest for reproducible installation. - Recommend running installation with least privilege and without unnecessary secrets in the environment. - Establish a controlled process for reviewing and deliberately updating the pinned version. Example hardened form: ```bash npx --yes clawhub@<reviewed-version> install websocket-hub-patterns ``` The placeholder must be replaced with an explicitly reviewed version; it should not resolve through a mutable tag. ]]>
