T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:11
- Finding
- Unpinned Global Installation of a Third-Party npm Package<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 11–15 **Additional Locations**: `clawkeep-cloud/SKILL.md`, lines 11–14; `local/SKILL.md`, lines 12–15; `s3/SKILL.md`, lines 12–15 **Vulnerability Type**: Unpinned third-party dependency installed globally **Risk Level**: Medium ### Vulnerable Code ```bash ## Prerequisites ClawKeep must be installed globally: ```bash npm install -g clawkeep ``` Verify: `clawkeep --version` ``` ### Technical Analysis The documentation directs users to globally install the latest available version of the `clawkeep` npm package. It does not specify an exact version, package integrity hash, lockfile, provenance requirement, or other mechanism for ensuring that the installed package is the version that was reviewed. A global npm installation can execute package installation scripts and makes the resulting executable available system-wide for the current environment. Consequently, a compromised maintainer account, malicious package release, or unexpected upstream change could cause users to execute code that was not represented in the audited project. The supplied project contains only Markdown skill instructions and no implementation of the `clawkeep` package. Therefore, the package's encryption, credential storage, network behavior, and installation scripts cannot be independently verified from this artifact. ### Attack Path 1. An attacker compromises the upstream npm package, its maintainer account, or its publication pipeline. 2. The attacker publishes a malicious version under the legitimate `clawkeep` package name. 3. A user follows the documented `npm install -g clawkeep` instruction. 4. npm downloads the current malicious release and may execute its lifecycle scripts. 5. The installed CLI runs with the invoking user's privileges and can access files, environment variables, configuration, and backup credentials available to that user. ### Impact Assessment Successful exploitation could provide ...[truncated 756 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Pin the installation to an exact, reviewed version, for example: ```bash npm install -g clawkeep@X.Y.Z ``` 2. Publish and verify package integrity and provenance information, including npm provenance attestations and release checksums. 3. Prefer a project-local installation with a committed lockfile instead of a global installation where practical. 4. Disable lifecycle scripts during installation unless they are necessary and have been reviewed: ```bash npm install --ignore-scripts clawkeep@X.Y.Z ``` 5. Document the expected package publisher, registry, version, and integrity value. 6. Include or link to the auditable source corresponding exactly to the pinned release. 7. Run the CLI under a dedicated least-privileged account with access only to the workspace and backup resources it requires. ]]>
