T08 · Insecure Dependencies
Warning
- Location
- README.md:35
- Finding
- Mutable Package Version Is Downloaded and Executed During Installation## Vulnerability Details **File Location**: `README.md`, lines 35-39 **Vulnerability Type**: Mutable third-party package execution **Risk Level**: Medium ### Vulnerable Code ```markdown ## Install ```bash npx clawhub@latest install launchthatbot-git-team-ops ``` ``` ### Technical Analysis The documented installation command uses `npx` to retrieve and execute `clawhub@latest`. The `latest` distribution tag is mutable and does not identify the exact package artifact that was reviewed. Consequently, the effective installer code can change after this Skill has been audited. Because `npx` executes the downloaded package with the invoking user's privileges, compromise of the package publisher, npm account, registry response, or a future release could result in arbitrary local code execution. The external installer is not included in this repository, so its behavior cannot be verified by this audit. ### Attack Path 1. An attacker compromises the `clawhub` package publisher, registry account, or release pipeline. 2. The attacker publishes a malicious release and assigns it the `latest` tag. 3. A user follows the README and executes the documented command. 4. `npx` downloads and runs the attacker-controlled package. 5. The malicious installer executes with the user's permissions and can access files, credentials, environment variables, and repositories available to that account. ### Impact Assessment Successful exploitation could provide arbitrary code execution under the installing user's account. The accessible scope may include local source repositories, Git credentials, agent configuration, environment secrets, and any services available to that user. The command does not itself request elevated operating-system privileges, so the direct privilege boundary is the invoking account.
- Remediation
- ## Remediation Suggestions - Replace `@latest` with an exact, reviewed package version. - Where supported, verify the package archive against a documented integrity hash or trusted signature. - Document the expected registry and package publisher. - Recommend downloading and inspecting the package before execution in security-sensitive environments. - Use a controlled internal registry or approved artifact mirror for production deployments. - Establish an explicit update process so new installer versions are reviewed before the documented pin is changed.
