T08 · Insecure Dependencies
- Location
SKILL.md:25- Finding
Mutable Third-Party Package Is Downloaded and Executed During Setup
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 25
Vulnerability Type: Unpinned executable dependency
Risk Level: HighVulnerable Code
bash npx clawhub@latest install deepseekoracle/lygo-sovereign-clawTechnical Analysis
The documented installation procedure directs
npxto download and execute the mutablelatestrelease of the third-partyclawhubpackage. Neither an exact version nor an integrity hash is specified.Consequently, the code executed by this command can change after the skill has been reviewed. A compromised package publisher, package registry, maintainer account, or newly published malicious release could cause the setup command to execute arbitrary JavaScript lifecycle or command code.
Attack Path
- An attacker compromises the upstream package, its publisher account, or the package distribution channel.
- The attacker publishes a malicious version and assigns or causes it to receive the
latesttag. - A user follows the documented setup instructions.
npxretrieves the currentlatestpackage from the registry.- The downloaded package runs with the privileges and environment of the invoking user.
- Malicious code can access files, environment variables, credentials, network resources, and processes available to that user.
Impact Assessment
Successful exploitation permits arbitrary code execution with the privileges of the user running the installation command. If setup is run by an administrative or CI/CD account, the impact may include project or system modification, theft of accessible credentials, supply-chain compromise, and access to CI secrets or deployment resources. No malicious upstream package is included in the audited artifact itself; exploitation depends on compromise or unexpected modification of the external dependency.
- Remediation
View remediation
Remediation Suggestions
- Replace
@latestwith an exact, reviewed package version. - Verify the package against a trusted cryptographic integrity digest before execution.
- Commit and enforce an appropriate lockfile where the installation workflow permits it.
- Document the expected package registry and reject alternate or unexpected registries.
- Run installation in a minimally privileged, isolated environment without unnecessary credentials.
- Establish an update process that requires security review before changing the pinned version.
- Consider installing the verified package without executing lifecycle scripts, then explicitly invoke only the reviewed entry point.
- Replace
