T08 · Insecure Dependencies
- Location
SKILL.md:13- Finding
Unpinned Third-Party npm Dependency
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 13–15
Vulnerability Type: Unpinned and unaudited third-party dependency
Risk Level: Mediumjson "kind": "node", "package": "cashclaw", "bins": ["cashclaw"]Technical Analysis
The skill metadata directs the host to install the
cashclawpackage from npm without specifying an exact version, integrity hash, lockfile, or verified source repository. Consequently, installation can resolve mutable registry content that was not included in the audited project.An npm package can execute lifecycle scripts during installation. The documented workflow also invokes the installed
cashclawexecutable, creating another code-execution point. If the package, publisher account, or distribution channel is compromised—or if a future release becomes malicious—the effective code executed by the skill can differ from the code originally reviewed.The repository contains only
SKILL.md; the dependency implementation is not available for source-level verification. This finding therefore identifies an exposed supply-chain execution path, not confirmed malicious behavior by a particular package release.Attack Path
- An attacker compromises the npm package, its publisher account, or its release pipeline and publishes a malicious version.
- The skill host processes the installation metadata and resolves
cashclawwithout an exact version or integrity constraint. - npm downloads the attacker-controlled release.
- Malicious npm lifecycle scripts may execute during installation with the privileges of the installing user.
- Alternatively, the user or agent runs one of the documented
cashclaw landing ...commands, executing the compromised package binary. - The malicious code can act within the installing user's permissions and access resources available to that process.
Impact Assessment
Successful exploitation could provide arbitrary code execution with the privileges of the user or ...[truncated 586 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin
cashclawto a reviewed, exact version rather than resolving the latest compatible registry release. - Verify the package using a trusted lockfile and registry integrity digest.
- Audit and retain the source code corresponding to the pinned package version.
- Verify the npm publisher, package provenance, and official source repository before installation.
- Disable npm lifecycle scripts during installation where operationally feasible, then explicitly run only reviewed setup steps.
- Install and execute the package in a least-privilege, isolated environment with restricted filesystem, secret, and network access.
- Continuously monitor the pinned dependency for ownership changes, compromised releases, vulnerabilities, and unexpected lifecycle-script changes.
- Pin
