T08 · Insecure Dependencies
- Location
SKILL.md:12- Finding
Unpinned Third-Party Package Execution Through npx
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 12-14
Vulnerability Type: Unpinned executable dependency
Risk Level: Mediumbash npx clawhub@latest install ai-agent-setupTechnical Analysis
The installation instructions invoke
clawhubthroughnpxusing the mutablelatesttag. If the package is not already available locally,npxmay download and execute the version currently published under that tag. The project does not specify an audited version, integrity hash, lockfile, or trusted package provenance.Because
latestcan point to different package contents after this skill has been reviewed, the command creates a supply-chain risk. Compromise of the package publisher, registry account, release process, or package distribution channel could cause users to execute altered code without any corresponding change to this repository.Attack Path
- An attacker compromises the
clawhubpackage publisher, release pipeline, registry account, or another relevant distribution component. - The attacker publishes a malicious release and assigns it to the
latesttag. - A user follows the documented installation command.
npxretrieves and executes the attacker-controlled package version.- The malicious package executes with the permissions of the user running the command and may modify files, access user-readable information, invoke network services, or install additional components.
Impact Assessment
Successful exploitation can provide arbitrary code execution under the invoking user's account. The accessible scope includes files, credentials, environment variables, network resources, and applications available to that account. If the command is run from a privileged administrative or CI/CD context, the impact may expand to system-wide resources, deployment credentials, build artifacts, or connected infrastructure. The reviewed file does not itself demonstrate privilege es ...[truncated 66 chars]
- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
- Replace the mutable
latesttag with an exact, reviewed package version, for examplenpx clawhub@X.Y.Z. - Verify that the package comes from the intended registry and publisher before execution.
- Use registry-supported integrity verification or a documented cryptographic checksum where available.
- Review the pinned package, including lifecycle scripts and transitive dependencies, before recommending it.
- Execute installation with a non-privileged account in an isolated environment.
- In automated environments, enforce dependency allowlists, lockfiles, and reproducible installation controls.
- Establish a controlled process for reviewing and explicitly approving upgrades rather than tracking
latestautomatically.
- Replace the mutable
