T08 · Insecure Dependencies
- Location
SKILL.md:18- Finding
Unpinned Third-Party Package Is Downloaded and Executed Through npx
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 18
Vulnerability Type: Unpinned and mutable third-party dependency execution
Risk Level: MediumVulnerable code snippet:
yaml install: "npx clawhub install natural-earth-pigment-paint-making-basics"The same installation command is also presented to users at line 24:
shell npx clawhub install natural-earth-pigment-paint-making-basicsTechnical Analysis
The documented installation procedure invokes
clawhubthroughnpxwithout specifying an audited package version or integrity hash. If the package is not already installed locally,npxcan retrieve it from the configured npm registry and execute its command with the privileges of the invoking user.Because neither the CLI version nor its transitive dependencies are pinned, the code executed at installation time can change after this Skill has been reviewed. A compromised maintainer account, malicious package release, dependency compromise, registry substitution, or unsafe registry configuration could therefore introduce arbitrary executable behavior. npm package lifecycle scripts may also run during package installation unless explicitly disabled.
This is a supply-chain weakness rather than evidence that the currently published package is malicious. The audited project contains only
SKILL.md; no embedded scripts, credential access, persistence mechanism, obfuscation, destructive operation, or confirmed data-exfiltration behavior was found.Attack Path
- An attacker compromises the
clawhubpackage, one of its transitive dependencies, its publisher account, or the registry used by the victim. - The attacker publishes a malicious version or causes the unpinned package name to resolve to attacker-controlled content.
- A user follows the installation instruction in
SKILL.md. npxdownloads the currently resolved package version rather than a version reviewed ...[truncated 830 chars]
- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
- Pin the installer to a specific, reviewed version, for example by invoking
clawhubwith an explicit immutable version. - Commit and enforce an npm lockfile where applicable so transitive dependency versions are reproducible.
- Verify package provenance and integrity using registry signatures, checksums, or npm integrity metadata before execution.
- Use only a trusted, explicitly configured registry and reject unexpected registry overrides.
- Disable package lifecycle scripts during installation where compatible, then invoke only the reviewed entry point.
- Perform installation in a sandbox, container, or least-privilege account with restricted filesystem, credential, and network access.
- Document the expected package publisher, version, digest, and verification procedure directly in
SKILL.md. - Apply the same hardened, pinned command to both the metadata installation field and the user-facing installation example.
- Pin the installer to a specific, reviewed version, for example by invoking
