T08 · Insecure Dependencies
- Location
SKILL.md:12- Finding
Unpinned Third-Party Package Execution During Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 12–16
Vulnerability Type: Unsafe use of a mutable third-party package version
Risk Level: MediumVulnerable Code:
markdown ## Install ```bash npx clawhub@latest install lobstertext ### Technical Analysis The documented installation command uses `npx` to download and immediately execute the mutable `latest` release of the third-party `clawhub` npm package. Because no exact version or integrity value is specified, the code executed by users can change after this Skill has been reviewed. This creates a supply-chain risk: compromise of the package publisher, registry account, package distribution infrastructure, or a future malicious release could cause the installation command to execute attacker-controlled code. The audited file does not demonstrate that the current package is malicious; the vulnerability is the unsafe, non-reproducible dependency execution method. ### Attack Path 1. An attacker compromises the `clawhub` package publisher or its distribution channel, or otherwise causes a malicious release to become the package's `latest` version. 2. A user follows the installation instructions and runs `npx clawhub@latest install lobster`. 3. `npx` retrieves the mutable package release from the configured npm registry. 4. The retrieved package executes with the permissions and environment of the invoking user. 5. Malicious package code could access data and perform operations available to that user. ### Impact Assessment Successful exploitation could provide arbitrary code execution with the invoking user's privileges. Depending on the execution environment, this may expose local project files, environment variables, credentials, API tokens, and other user-accessible data. It may also permit modification of files or execution of additional processes within the user's permission boundary. The issue does not itself grant elevated o ...[truncated 139 chars]- Remediation
View remediation
Remediation Suggestions
- Replace
@latestwith an exact, reviewed package version, for exampleclawhub@X.Y.Z. - Verify the selected package version's provenance, publisher identity, and registry source before documenting it.
- Use a lockfile and integrity verification where the installation workflow supports them.
- Prefer installing the pinned dependency in a controlled step and invoking it separately rather than combining remote retrieval and immediate execution.
- Review and test version updates before changing the documented pin.
- Consider running installation tooling in a sandbox or least-privileged environment without unnecessary credentials.
- Replace
