T08 · Insecure Dependencies
- Location
SKILL.md:60- Finding
Unpinned Third-Party Package and Skill Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 60-65
Vulnerability Type: Supply-chain exposure through mutable, unpinned dependencies
Risk Level: MediumThe installation instructions direct users or agents to fetch and execute the latest available version of
clawhuband install two additional Skills without pinning their versions:markdown ### Installation Also installs: ai-sentinel (prompt injection firewall), skill-guard (malware scanner) ```bash npx clawhub@latest install ai-sentinel npx clawhub@latest install skill-guardtext ### Technical Analysis The `@latest` selector causes `npx` to retrieve and execute whichever `clawhub` release is currently published under the latest distribution tag. The `ai-sentinel` and `skill-guard` installations are likewise not tied to reviewed versions or integrity hashes. Consequently, the effective installation behavior can change after this project has been audited, without any modification to the files in this repository. The source and contents of these external components are not included in the audited project, so their behavior cannot be validated from the available artifact. This creates a supply-chain trust boundary in which a compromised publisher account, malicious package release, registry compromise, or otherwise unsafe future update could introduce attacker-controlled behavior. ### Attack Path 1. An attacker compromises the publisher, publication process, or distribution source for `clawhub`, `ai-sentinel`, or `skill-guard`. 2. The attacker publishes a malicious release or changes the package associated with the latest version. 3. A user or agent follows the commands documented in `SKILL.md`. 4. `npx clawhub@latest` downloads and executes the mutable package release. 5. The unversioned external Skills are installed without verification against previously reviewed content. 6. Malicious behavior executes during installation or is ...[truncated 698 chars]- Remediation
View remediation
Remediation Suggestions
- Replace
@latestwith an exact, reviewedclawhubversion. - Pin
ai-sentinelandskill-guardto exact reviewed versions rather than resolving mutable releases. - Verify package integrity with registry-supported cryptographic hashes, lockfiles, signatures, or an equivalent trusted mechanism.
- Use a trusted registry or an internally controlled package mirror with provenance validation.
- Vendor the reviewed dependency contents into the project when practical so the complete installation behavior is auditable.
- Require explicit user approval before downloading or executing external packages.
- Run installation in a sandbox with minimal filesystem, network, credential, and system permissions.
- Document the expected publisher identities, versions, checksums, and review dates so unexpected changes fail closed.
- Replace
