T08 · Insecure Dependencies
- Location
README.md:31- Finding
Unpinned npm CLI Execution Creates a Supply-Chain Risk
- Content
View full analysis
Vulnerability Details
File Location:
README.md, lines 31–35
Vulnerability Type: Unpinned third-party executable dependency
Risk Level: MediumVulnerable Code
markdown ## Installation ```bash npx clawhub install tetsuakira-vk/podcast-producertext ### Technical Analysis The documented installation procedure invokes `clawhub` through `npx` without specifying an exact package version or integrity digest. If the package is not already available locally, `npx` can retrieve the currently resolved version from the configured npm registry and execute its CLI code with the invoking user's permissions. Because the command resolves mutable third-party content at execution time, the code ultimately executed may differ from the code reviewed when this Skill was audited. The project contains no lockfile, vendored installer, integrity metadata, or other mechanism that constrains the installer to a known audited artifact. This is a supply-chain weakness rather than evidence that the current `clawhub` package is malicious. Exploitation depends on compromise or malicious replacement of the package, its maintainer account, the package registry, or the user's registry configuration. ### Attack Path 1. An attacker compromises the npm package, a publisher account, the configured package registry, or another component controlling resolution of the unversioned `clawhub` package. 2. The attacker publishes or serves a modified package version containing malicious CLI or lifecycle code. 3. A user follows the README and runs: ```bash npx clawhub install tetsuakira-vk/podcast-producer ``` 4. `npx` resolves and downloads the attacker-controlled package version because the command does not pin a reviewed version or verify an integrity digest. 5. The downloaded package executes under the user's account and can perform any operation available to that account. ### Impact Assessment Successful exploit ...[truncated 716 chars]- Remediation
View remediation
Remediation Suggestions
- Pin
clawhubto an exact, reviewed version rather than resolving the latest available release:bash npx clawhub@<reviewed-exact-version> install tetsuakira-vk/podcast-producer - Document the expected npm registry and verify the package provenance before installation.
- Provide a published integrity digest or signed release verification procedure for the exact installer artifact.
- Prefer invoking a separately installed and administratively approved
clawhubbinary where managed environments support that workflow. - Avoid running the installation command with administrator or root privileges.
- Review package lifecycle scripts and disable them where operationally possible.
- Update the pinned version only after reviewing and testing the new release, rather than automatically tracking mutable latest versions.
- Pin
