T08 · Insecure Dependencies
- Location
README.md:6- Finding
Unpinned npm Package Execution in Installation Instructions
- Content
View full analysis
Vulnerability Details
File Location:
README.md, line 6
Vulnerability Type: Supply-chain exposure through unpinned remote package execution
Risk Level: MediumVulnerable Code:
bash npx clawhub install dating-app-coachTechnical Analysis
The documented installation command invokes
clawhubthroughnpxwithout specifying a package version or integrity value. If the package is not already available locally,npxmay retrieve and execute the currently published package from the configured npm registry.Because the dependency is mutable and its implementation is not included in this repository, the code executed by this command can differ from the code that was originally reviewed. This creates a supply-chain trust boundary: compromise of the package, its publisher account, or the configured registry could cause the installation command to execute attacker-controlled code.
The repository does not provide a lockfile, expected package version, integrity hash, registry constraint, or other mechanism for authenticating the package executed by this command.
Attack Path
- An attacker compromises the
clawhubnpm package, its publisher account, or an npm registry used by the victim. - The attacker publishes a malicious version under the expected package name.
- A user follows the installation instructions and runs
npx clawhub install dating-app-coach. npxresolves and downloads the mutable package version from the configured registry.- The downloaded package executes with the privileges of the user running the command.
- Malicious package code can access resources available to that user, subject to operating-system and environment restrictions.
Impact Assessment
Successful exploitation could provide arbitrary code execution with the privileges of the installing user. Depending on that user's permissions and environment, the malicious package could read or modify user-ac ...[truncated 374 chars]
- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
- Pin
clawhubto a specific reviewed version rather than resolving the latest release implicitly. - Verify the selected release's provenance and integrity before documenting it for installation.
- Use a lockfile or an equivalent reproducible dependency mechanism where supported.
- Document the trusted npm registry and avoid allowing installation from arbitrary registry configurations.
- Prefer installing the pinned package without executing it immediately, reviewing its contents, and then invoking the verified local binary.
- In automated environments, run installation with minimal privileges and without unnecessary credentials or sensitive environment variables.
- Consider publishing checksums or signed provenance information for the expected installer artifact.
- Pin
