T08 · Insecure Dependencies
- Location
SKILL.md:18- Finding
Unpinned Third-Party Code Execution During Installation
- Content
View full analysis
Vulnerability Details
File Locations:
SKILL.md:18README.md:25README.md:31
Vulnerability Type: Unpinned and mutable third-party installation dependencies
Risk Level: HighVulnerable Code
SKILL.md:18:bash npx clawhub@latest install e2e-testing-patternsREADME.md:25:bash npx add https://github.com/wpank/ai/tree/main/skills/testing/e2e-testing-patternsREADME.md:31:bash npx clawhub@latest install e2e-testing-patternsTechnical Analysis
The documented installation commands use
npxto retrieve and execute third-party npm packages without pinning them to reviewed, immutable versions.The
clawhub@latestreference is explicitly mutable. Its resolved package version and implementation can change after this skill has been reviewed. Thenpx addcommand similarly executes the unpinned npm package namedadd; supplying a GitHub tree URL as an argument does not pin the executed npm package or the referenced repository content to an immutable commit.npm command-line packages and their lifecycle behavior execute with the permissions of the user running the installation. Consequently, compromise of the package publisher account, registry package, transitive dependency chain, or referenced mutable repository could turn these installation instructions into a remote code-execution channel.
Attack Path
- An attacker compromises the publisher account, npm package, dependency chain, or mutable upstream repository associated with one of the installation commands.
- The attacker publishes a malicious package version or replaces mutable upstream content.
- A user follows the installation instructions and runs the documented
npxcommand. npxdownloads the current, unreviewed package and its dependencies.- Malicious CLI, lifecycle, or dependency code executes with the installing user's privileges.
- The payload can access or modi ...[truncated 935 chars]
- Remediation
View remediation
Remediation Suggestions
-
Replace
@latestwith an exact, reviewed package version:bash npx clawhub@1.2.3 install e2e-testing-patterns -
Pin repository-based installation sources to a full immutable commit SHA rather than a branch or GitHub tree URL.
-
Commit a lockfile containing dependency versions and integrity hashes where package-based installation is required.
-
Verify package provenance, publisher identity, signatures, and registry integrity metadata before execution.
-
Prefer downloading and inspecting a versioned artifact before running it instead of directly executing remotely retrieved code through
npx. -
Execute installation in a sandbox or least-privileged environment without production credentials, sensitive environment variables, or unrestricted filesystem access.
-
Document the expected artifact checksum and provide a verification command so users can validate downloaded content before installation.
-
Review and pin transitive dependencies, and use automated dependency monitoring to detect publisher changes, compromised releases, and integrity mismatches.
-
