T08 · Insecure Dependencies
- Location
README.md:6- Finding
Unpinned npm Package Execution Through npx
- Content
View full analysis
Vulnerability Details
File Location:
README.md:6-8
Vulnerability Type: Supply-chain risk from an unpinned executable dependency
Risk Level: MediumVulnerable Code
bash npx clawhub install brand-video-makerTechnical Analysis
The documented installation command invokes
clawhubthroughnpxwithout specifying an exact package version, package integrity hash, trusted registry, or verified publisher. If the package is not already available locally,npxmay retrieve it from the configured npm registry and execute it immediately.The command therefore delegates code execution to a mutable third-party package whose contents can change after this project has been audited. A compromised publisher account, malicious package release, registry compromise, or dependency-chain compromise could cause users following the documented installation procedure to execute attacker-controlled code.
The repository provides no lockfile, checksum, vendored implementation, or other mechanism by which users can verify that the retrieved package is the version reviewed and intended by the project authors.
Attack Path
- An attacker compromises the
clawhubnpm package, its publisher account, or a dependency included in a subsequently published release. - The attacker publishes a modified package version containing malicious installation or runtime behavior.
- A user follows the installation instructions and runs
npx clawhub install brand-video-maker. npxresolves and downloads the mutable package from the user's configured registry.- The malicious package executes with the privileges of the user who invoked the command.
- Subject to those privileges and the execution environment, the payload can access files, environment variables, credentials, and network resources available to that user.
Impact Assessment
Successful exploitation would permit arbitrary code execution under the invoki ...[truncated 665 chars]
- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
- Pin
clawhubto an exact, reviewed version rather than allowing mutable resolution, for example:bash npx --yes clawhub@<audited-exact-version> install brand-video-maker - Document the expected npm registry and verified package publisher so users can validate package provenance.
- Publish and document a trusted integrity checksum or signed release artifact for the installer.
- Prefer installing from a lockfile-controlled project dependency and invoking the pinned local binary instead of downloading and executing a package ad hoc.
- Enable package provenance or signature verification in the release process and protect publisher accounts with strong multi-factor authentication.
- Audit the pinned package and its transitive dependencies before recommending execution.
- Advise users to run installation with least privilege in an isolated environment and never with elevated administrator or root permissions.
- Pin
