T08 · Insecure Dependencies
- Location
README.md:5- Finding
Mutable npm Package Is Downloaded and Executed During Installation
- Content
View full analysis
Vulnerability Details
File Location:
README.md, lines 5–7
Vulnerability Type: Unpinned executable dependency
Risk Level: Mediumbash npx clawhub@latest install ai-writing-assistantTechnical Analysis
The documented installation command instructs
npxto retrieve and execute the npm package associated with the mutablelatestdistribution tag. Because this tag can point to a different package version at any time, the code users execute may differ from the version that was reviewed.The downloaded
clawhubimplementation is not included in this project, so its lifecycle scripts, transitive dependencies, integrity, and runtime behavior cannot be verified from the audited artifact. If the npm package, publisher account, release pipeline, or dependency chain is compromised, following the documented installation procedure could execute attacker-controlled code.Attack Path
- An attacker compromises the
clawhubnpm publisher account, release pipeline, package, or one of its executable dependencies. - The attacker publishes a malicious release and assigns it to the
latestdistribution tag. - A user follows the installation command in
README.md. npxretrieves the release currently referenced bylatest.- Package lifecycle scripts or CLI initialization code execute under the invoking user's account.
- Malicious code can access resources available to that account and potentially modify the local environment or installed skill content.
Impact Assessment
Successful exploitation would provide code execution with the privileges of the user running the installation command. Depending on that user's permissions and environment, the attacker could read or alter user-accessible files, access environment variables and credentials, modify installed packages, or execute additional processes.
The affected scope is the installation environment. The artifact itself contains no evidence of privilege escalation, persiste ...[truncated 141 chars]
- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
- Replace
@latestwith an exact, reviewed package version, for example:bash npx clawhub@X.Y.Z install ai-writing-assistant - Verify the selected release and its transitive dependencies before recommending it to users.
- Pin and validate package integrity using an approved lockfile, checksum, signature, or equivalent reproducible verification mechanism.
- Document the expected npm registry and package publisher to reduce registry substitution and package-spoofing risks.
- Prefer an installation workflow that separates package download and inspection from execution.
- Advise users not to run the installer with elevated privileges and to use an isolated environment where practical.
- Update the pinned version only after security review rather than automatically tracking a mutable distribution tag.
- Replace
