T08 · Insecure Dependencies
- Location
README.md:44- Finding
Unpinned npm Package Execution in Installation Instructions
- Content
View full analysis
Vulnerability Details
File Location:
README.md:44
Vulnerability Type:T08: Insecure Dependencies
Risk Level: MediumVulnerable Code
bash npx clawhub@latest install tetsuakira-vk/korean-daily-drillTechnical Analysis
The installation command directs
npxto download and execute the package associated with the mutablelatesttag. Because the documentation does not specify an exact reviewed version or integrity value, the code executed by users can change after this skill has been audited.The repository does not include the installer source, a dependency lockfile, or package integrity metadata that would allow the remotely supplied CLI implementation to be verified against the audited artifact. If the npm package, publisher account, release process, or mutable tag is compromised, malicious package or lifecycle code could execute during installation.
This is a supply-chain exposure rather than evidence that the current
clawhubpackage is malicious.Attack Path
- An attacker compromises the
clawhubpublisher account, package release process, npm distribution channel, or another component capable of controlling thelatestrelease. - The attacker publishes a malicious package version and assigns or causes the
latesttag to resolve to it. - A user follows the documented installation command.
npxretrieves the attacker-controlled version because the command explicitly requests@latest.- The downloaded CLI or applicable package lifecycle code executes with the permissions of the user running the command.
- The malicious code can access resources available to that user before, during, or instead of installing the intended skill.
Impact Assessment
Successful exploitation could provide arbitrary code execution with the privileges of the invoking user. Depending on the local environment, the attacker could read or modify user-accessible files, steal credentials exposed to the process, access configu ...[truncated 376 chars]
- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
- Replace the mutable
@latestreference with an exact version that has been reviewed:bash npx clawhub@X.Y.Z install tetsuakira-vk/korean-daily-drill - Document the expected npm registry and package publisher so users can detect dependency-confusion or source-substitution issues.
- Publish and document the expected package integrity digest or signed provenance information, and provide a verification procedure before execution.
- Update the pinned version only after reviewing the new release and its transitive dependencies.
- Where practical, install dependencies through a lockfile-backed workflow and use
npm cito enforce resolved versions and integrity metadata. - Recommend executing installation with an unprivileged account and without unnecessary credentials in the environment.
- Consider offering a non-executing download and verification workflow so users can inspect the package before running its installer.
- Replace the mutable
