T08 · Insecure Dependencies
- Location
SKILL.md:72- Finding
Unpinned Global Installation of an Executable Third-Party Dependency
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 72–76
Vulnerability Type: Insecure third-party dependency installation
Risk Level: MediumVulnerable Code Snippet:
markdown ## Install ```bash npm install -g @h1dr4/bountyhub-agenttext ### Technical Analysis The skill instructs users to globally install `@h1dr4/bountyhub-agent` without specifying an exact package version, integrity hash, lockfile, or provenance-verification procedure. Consequently, the code installed in the future may differ from the dependency state intended when this skill was authored or audited. npm packages can contain executable CLI code and installation lifecycle scripts. Global installation increases the package's reach within the user's environment. This dependency is particularly sensitive because the documented CLI participates in wallet authentication and escrow operations. The repository contains no package source, package manifest, or lockfile with which to verify the external implementation or its transitive dependencies. This finding establishes an unsafe supply-chain practice; it does not establish that the current npm package is malicious. ### Attack Path 1. An attacker compromises the npm publisher account, package repository, release pipeline, or another relevant supply-chain component. 2. The attacker publishes a malicious release under the existing package name. 3. A user follows the skill's unversioned command, causing npm to resolve the attacker-controlled release. 4. npm installs the package globally and may execute package lifecycle scripts. 5. When the compromised CLI is invoked, it can access data provided to the process and manipulate wallet-authentication or escrow workflows. 6. The malicious implementation may exfiltrate session material, alter transaction parameters, or execute commands with the installing user's privileges. ### Impact Assessment Successful exploitation could ex ...[truncated 771 chars]- Remediation
View remediation
Remediation Suggestions
-
Pin the dependency to a reviewed exact version, such as:
bash npm install -g @h1dr4/bountyhub-agent@0.1.7 -
Publish and verify npm provenance attestations and document the expected publisher and repository.
-
Provide a cryptographic integrity value or another authenticated verification method for the approved release.
-
Supply a package manifest and lockfile where practical so direct and transitive dependency versions are reproducible.
-
Prefer a project-local installation over a global installation to reduce system-wide exposure.
-
Consider disabling lifecycle scripts during installation when compatible with the package:
bash npm install --ignore-scripts @h1dr4/bountyhub-agent@0.1.7 -
Review the package and its transitive dependencies before approving version updates.
-
Require users to verify the destination address, network, asset, amount, and calldata independently before signing any transaction.
-
Ensure session tokens and signatures are not written to command history, logs, or persistent plaintext storage.
-
