T08 · Insecure Dependencies
- Location
README.md:21- Finding
Unpinned Third-Party Packages Executed Through npx
- Content
View full analysis
Vulnerability Details
File Location:
README.md, lines 21 and 46
Vulnerability Type: Unpinned and integrity-unverified third-party dependencies
Risk Level: MediumThe Quick Start instructions contain the following command in both the English and Chinese installation sections:
bash npx clawhub install @gechengling/insurance-private-domain-ops-expertTechnical Analysis
The command invokes
clawhubthroughnpxwithout specifying a trusted version. If the package is not already available locally,npxmay retrieve and execute its current release from the configured npm registry. The command also installs@gechengling/insurance-private-domain-ops-expertwithout pinning its version or verifying its integrity.Both dependencies are therefore mutable after this audit. A compromised maintainer account, package takeover, malicious release, registry compromise, or dependency-confusion condition could cause users following the documented instructions to execute package content that was not included in the reviewed project. Depending on npm behavior and package composition, execution could occur through the CLI entry point or package lifecycle scripts.
No evidence indicates that the packages are currently malicious. The risk arises from recommending execution of future, unreviewed package versions without version or integrity controls.
Attack Path
- An attacker compromises the
clawhubpackage, the referenced scoped package, a maintainer account, or the package distribution channel. - The attacker publishes a malicious release under the same package name.
- A user follows the README and runs the unpinned
npx clawhub installcommand. npxresolves and downloads mutable package content from the configured registry.- The malicious CLI code, installation logic, or lifecycle scripts execute in the user's environment.
- The payload operates with the privileges and accessible resources of ...[truncated 792 chars]
- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
- Pin the installer CLI to a reviewed version, for example:
bash npx --yes clawhub@<reviewed-version> install @gechengling/insurance-private-domain-ops-expert@<reviewed-version> - Replace the placeholders only with versions that have been independently reviewed and approved.
- Use a trusted or organization-controlled package registry and enforce namespace controls to reduce dependency-confusion and package-takeover risks.
- Verify package provenance, signatures, or published integrity hashes before installation.
- Disable package lifecycle scripts where compatible with the installation workflow, or inspect them before execution.
- Run installation in a least-privileged, isolated environment without production credentials or sensitive environment variables.
- Keep a lockfile or equivalent immutable dependency manifest when the surrounding package-management workflow supports one.
- Update both duplicated commands at
README.mdlines 21 and 46 so that neither section continues recommending an unpinned installation.
- Pin the installer CLI to a reviewed version, for example:
