T08 · Insecure Dependencies
- Location
SKILL.md:15- Finding
Unpinned Third-Party Package Executed Through npx
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:15andSKILL.md:21
Vulnerability Type:T08: Insecure Dependencies
Risk Level: MediumVulnerable code:
yaml install: "npx clawhub install coiled-pine-needle-basket-making-basics"sh npx clawhub install coiled-pine-needle-basket-making-basicsTechnical Analysis
The documented installation procedure invokes the third-party
clawhubpackage throughnpxwithout specifying an exact, audited package version or an integrity hash. When the package is not already available locally,npxmay download and execute the version currently resolved by the configured package registry.This makes the effective installer mutable after the skill has been reviewed. The project contains no lockfile, integrity metadata, signature verification instructions, or bundled implementation with which the behavior of the installer can be independently audited. A compromised publisher account, package registry, dependency, or newly released malicious package version could therefore turn the documented installation command into a code-execution channel.
Attack Path
- An attacker compromises the
clawhubpackage, its publisher account, a transitive dependency, or the package source used by the victim. - The attacker publishes a malicious version that is selected by the unpinned
npx clawhubinvocation. - A user follows the installation command documented in
SKILL.md. npxretrieves the mutable package version and executes its command-line entry point with the user's privileges.- Malicious installation code accesses or modifies resources available to that user, potentially including project files, home-directory data, environment variables, credentials, and network-accessible services.
Impact Assessment
Successful exploitation can result in arbitrary code execution under the account running the installation command. The accessible scop ...[truncated 647 chars]
- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
- Pin
clawhubto a specific reviewed version rather than allowing registry resolution to select a mutable release, for example:sh npx --yes clawhub@<audited-exact-version> install coiled-pine-needle-basket-making-basics - Record and verify the expected package integrity hash or cryptographic signature before execution.
- Use a trusted, explicitly configured registry and document the expected package publisher and provenance.
- Prefer downloading the package without executing it, reviewing its contents and dependency tree, and only then invoking the verified artifact.
- Maintain a lockfile or equivalent reproducible dependency manifest for any executable installer and its transitive dependencies.
- Run installation in a sandbox or unprivileged container with minimal filesystem access, no unnecessary credentials, and restricted network access.
- Remove or update both occurrences of the unpinned command in
SKILL.mdso the metadata and user-facing instructions enforce the same secured installation procedure.
- Pin
