T08 · Insecure Dependencies
- Location
README.md:40- Finding
Unpinned Package Execution During Installation
- Content
View full analysis
Vulnerability Details
File Location:
README.md, lines 40–42
Vulnerability Type: Mutable third-party installer dependency
Risk Level: Mediumbash npx clawhub@latest install howie-ge/chargeback-assistantTechnical Analysis
The documented installation command uses the mutable npm distribution tag
latestand executes the resolvedclawhubpackage throughnpx. The repository does not pin the installer to an audited version or verify its integrity, signature, or retrieved artifact.Because
latestcan resolve to a different package release over time, the installation behavior is not constrained to the content reviewed in this audit. If the upstream package, publisher account, or package-distribution infrastructure is compromised, a subsequent installation could execute changed or malicious package lifecycle and installer code.Attack Path
- An attacker compromises the
clawhubnpm publisher account, the package itself, or a relevant distribution channel. - The attacker publishes a malicious release and assigns it the
latesttag. - A user follows the installation command in
README.md. npxretrieves the attacker-controlled release selected bylatest.- Package lifecycle or installer code executes with the invoking user's operating-system permissions.
- The malicious installer can access or alter resources available to that user.
Impact Assessment
Successful exploitation could allow arbitrary code execution with the privileges of the user running the installation command. Depending on that user's permissions, the affected scope could include local files, environment variables, credentials accessible to the process, agent configuration, and installed project artifacts.
The repository itself contains no demonstrated malicious executable payload. The risk arises from executing a mutable, externally maintained installer without version or integrity constraints.
- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
- Replace the mutable
latesttag with an exact installer version that has been reviewed, for exampleclawhub@X.Y.Z. - Document the expected package digest or npm integrity value and provide a verification procedure before execution.
- Prefer a signed release or another provenance-verifiable distribution mechanism.
- Review the pinned installer's source code and package lifecycle scripts before recommending execution.
- Update the pinned version only through a controlled dependency-review process.
- Where practical, execute installation with least privilege in an isolated environment and avoid exposing unrelated credentials or sensitive environment variables.
- Replace the mutable
