T08 · Insecure Dependencies
- Location
README.md:39- Finding
Unpinned Third-Party Package Execution in Recommended Installation Command
- Content
View full analysis
Vulnerability Details
File Location:
README.md:39
Vulnerability Type: Supply-chain risk caused by executing a mutable package version
Risk Level: MediumVulnerable Code
bash npx clawhub@latest install @padepa/verify-before-answerTechnical Analysis
The recommended installation procedure invokes
npxwith the mutable@latesttag. When a user runs this command, npm may retrieve and execute whatever version of the third-partyclawhubpackage is currently associated with that tag.Because neither an exact package version nor an integrity digest is specified, the code executed during installation can change after this skill has been reviewed. A compromised publisher account, malicious future release, registry compromise, or dependency-chain compromise could therefore cause the command to execute attacker-controlled package code.
This finding concerns the documented installation path. The audited project itself contains no executable scripts or embedded payloads.
Attack Path
- An attacker compromises the
clawhubnpm publisher, package distribution channel, or a dependency used by a future release. - The attacker publishes a malicious version and causes the mutable
latesttag to resolve to it. - A user follows the installation instructions in
README.mdand runs the documentednpxcommand. npxdownloads and executes the malicious package or its installation/runtime hooks.- The payload runs under the privileges of the user executing the command and can access resources available to that account.
Impact Assessment
Successful exploitation could provide arbitrary code execution with the installing user's privileges. Depending on that user's environment and permissions, an attacker could read or modify user-accessible files, access environment variables and credentials, alter local configuration, install additional payloads, or perform network operations.
The command does not inherently grant administ ...[truncated 232 chars]
- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
- Replace
@latestwith an exact, reviewed version:bash npx clawhub@X.Y.Z install @padepa/verify-before-answer - Verify the package's provenance, publisher identity, and release integrity before recommending it.
- Where supported, publish and document a cryptographic integrity digest or signed provenance attestation for the approved package artifact.
- Review the pinned package version and its transitive dependencies for lifecycle scripts and known vulnerabilities.
- Update the pinned version only through a controlled review process rather than allowing installation behavior to change automatically.
- Warn users not to execute the installer with elevated privileges unless explicitly required and independently justified.
- Replace
