T08 · Insecure Dependencies
- Location
SKILL.md:30- Finding
Execution of an Unpinned Mutable npm Package During Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 30
Vulnerability Type:T08: Insecure Dependencies
Risk Level: HighVulnerable code:
bash npx clawhub@latest install deepseekoracle/lygo-network-builderTechnical Analysis
The documented installation procedure directs users to execute the mutable
latestversion of theclawhubnpm package throughnpx. The command does not pin an audited package version, verify a cryptographic digest, use a lockfile, or validate a signed release.Because
npxcan download and execute the selected package, the code that runs during installation may differ from the code available when this Skill was audited. Compromise of the package publisher, npm account, package distribution channel, or a futurelatestrelease could introduce arbitrary installation-time behavior.Attack Path
- An attacker compromises the npm package, its publisher account, or the relevant distribution process.
- The attacker publishes a malicious release that becomes the package's
latestversion. - A user follows the installation command from
SKILL.md. npxdownloads and executes the attacker-controlled package.- The malicious package runs with the operating-system privileges and environment access of the invoking user.
Impact Assessment
Successful exploitation can provide arbitrary code execution under the installing user's account. Depending on that account's privileges and environment, the payload could read or modify accessible files, obtain environment variables or local credentials, alter developer tooling, install additional software, or compromise source repositories.
The audited project does not itself contain such a payload; the risk arises from executing a mutable and unverified dependency.
- Remediation
View remediation
Remediation Suggestions
- Replace
@latestwith an explicitly audited package version. - Verify the package using a documented cryptographic integrity hash or signed release.
- Prefer installation through a committed lockfile using a reproducible package-manager command.
- Document the expected package publisher, version, and integrity value.
- Review package lifecycle scripts before installation and disable them where they are not required.
- Establish a controlled update process in which new versions are reviewed before changing the pinned version.
- Replace
