T08 · Insecure Dependencies
- Location
README.md:26- Finding
Mutable Installation Dependency Executes Unpinned Remote Code
- Content
View full analysis
Vulnerability Details
File Location:
README.md, lines 26-29
Vulnerability Type: Unpinned package execution during installation
Risk Level: Mediumbash npx clawhub@latest install daily-horoscopeTechnical Analysis
The documented installation procedure instructs users to execute the mutable
latestrelease of theclawhubpackage throughnpx. Unlike a version-pinned and integrity-verified dependency, the code represented bylatestcan change after this skill has been reviewed.npxmay download the selected package and execute its command-line entry point under the privileges of the invoking user. Consequently, compromise of the package, its publishing account, its dependency chain, or the package registry could cause the installation command to execute code that was not included in this audit.The same unsafe command also appears in
SKILL.mdat lines 25-27. No package version, checksum, lockfile, signature, or other integrity control is supplied.Attack Path
- An attacker compromises the
clawhubpackage, a transitive dependency, the associated publisher account, or the package distribution channel. - The attacker publishes a malicious release and causes it to be selected by the
latesttag. - A user follows the project documentation and runs
npx clawhub@latest install daily-horoscope. npxretrieves and executes the mutable package.- The malicious package executes with the permissions of the invoking user.
Impact Assessment
Successful exploitation could provide arbitrary code execution as the user performing installation. Depending on that user's privileges, an attacker could read or modify accessible files, steal environment credentials and API keys, alter installed skills, execute network requests, or establish persistence.
The audited project does not itself contain evidence that the current
clawhubpackage is malicious. The risk arises from executing a ...[truncated 53 chars]- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
- Replace
@latestwith a reviewed, exact package version, for examplenpx clawhub@X.Y.Z. - Where supported, verify package signatures, provenance attestations, or published checksums before execution.
- Use a lockfile or an equivalent reproducible installation mechanism.
- Document the expected package publisher and registry to reduce registry-substitution risk.
- Run the installer under a dedicated, least-privileged account or isolated environment.
- Update every occurrence of the command, including
SKILL.md, so users are not directed to the unsafe alternative.
- Replace
