T08 · Insecure Dependencies
- Location
README.md:5- Finding
Unpinned npm Package Download and Execution via npx
- Content
View full analysis
Vulnerability Details
File Location:
README.md, lines 5-7
Vulnerability Type: Unpinned third-party dependency execution
Risk Level: Mediumbash ## Install ```bash npx clawhub install ecommerce-video-aitext ### Technical Analysis The documented installation command invokes `clawhub` through `npx` without specifying a reviewed version or integrity constraint. If the package is not already available locally, `npx` can retrieve it from the configured npm registry and immediately execute its package entry point. Consequently, the code executed by this instruction can change independently of the audited repository. The project contains no lockfile, integrity hash, vendored implementation, or other mechanism that binds the command to a specific reviewed release. The external package's implementation is also absent from the audited artifact, so its behavior could not be verified during this audit. This is a supply-chain weakness rather than evidence that the current `clawhub` package is malicious. ### Attack Path 1. An attacker compromises the npm package, a maintainer account, the relevant package release process, or the user's configured package registry. 2. The attacker publishes or serves a malicious version of `clawhub`. 3. A user follows the installation instructions and runs `npx clawhub install ecommerce-video-ai`. 4. `npx` resolves and downloads the attacker-controlled package because the command does not identify a trusted version or integrity value. 5. The downloaded package executes with the permissions and environment of the invoking user. ### Impact Assessment Successful exploitation could permit arbitrary code execution with the invoking user's privileges. Depending on that user's access and environment, the malicious package could read or modify user-accessible files, access environment variables and development credentials, alter installed project content, or make outbound networ ...[truncated 154 chars]- Remediation
View remediation
Remediation Suggestions
- Pin
clawhubto a specific release that has undergone security review, for examplenpx clawhub@<reviewed-version> install ecommerce-video-ai. - Verify the selected package version against an approved source and record its expected integrity metadata.
- Prefer a lockfile-controlled installation workflow that separates dependency installation from execution.
- Configure CI and deployment environments to use a trusted registry and immutable package versions.
- Document the official package publisher and repository so users can validate package provenance.
- Periodically review the pinned version before intentionally upgrading it, rather than implicitly executing the latest available release.
- Pin
