T08 · Insecure Dependencies
- Location
README.md:13- Finding
Unpinned npm Package Download and Execution Through npx
- Content
View full analysis
Vulnerability Details
File Location:
README.md, lines 13-17
Vulnerability Type: Unpinned third-party dependency execution
Risk Level: MediumVulnerable Code
markdown Or if using npx: ```bash npx clawhub install sovereign-content-machinetext ### Technical Analysis The documented installation command invokes `clawhub` through `npx` without specifying an exact package version, registry, or integrity hash. If the package is not already available locally, `npx` may retrieve a package from the configured npm registry and immediately execute its command. Consequently, the code executed by this command is not immutable and cannot be fully evaluated from the audited project. Its behavior may change after this project has been reviewed. The risk would become exploitable if the upstream npm package, its publishing account, one of its transitive dependencies, or the user's configured registry were compromised. The repository provides no package lockfile, checksum, signature-verification procedure, or reviewed local implementation that binds this instruction to a known artifact. This is a supply-chain weakness rather than evidence that the current `clawhub` package is malicious. ### Attack Path 1. An attacker compromises the `clawhub` npm package, its publisher credentials, a relevant dependency, or a registry from which the package is resolved. 2. The attacker publishes a malicious package version or causes dependency resolution to return an attacker-controlled artifact. 3. A user follows the documented command: ```bash npx clawhub install sovereign-content-machine ``` 4. `npx` downloads the currently resolved package version because no exact version or integrity constraint is specified. 5. The package CLI or applicable package lifecycle code executes with the privileges of the user running the command. 6. The malicious code can perform any operation available to that user before ...[truncated 901 chars]- Remediation
View remediation
Remediation Suggestions
- Pin the CLI to an explicitly reviewed version:
bash npx --yes clawhub@<reviewed-version> install sovereign-content-machine - Document the expected npm registry and publish the integrity digest or signed provenance for the reviewed package artifact.
- Recommend installing and verifying
clawhubseparately, then invoking the verified local executable rather than allowing an installation instruction to download and execute the latest release automatically. - Add a security note warning users not to run installation commands with
sudoor another elevated account. - Periodically review the pinned CLI release and its transitive dependency tree before updating the documented version.
- Where supported, require package signatures, registry provenance attestations, and lockfile or integrity verification to ensure that installation resolves to the audited artifact.
- Pin the CLI to an explicitly reviewed version:
