T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:12
- Finding
- Unpinned Global Installation of an Executable npm Package## Vulnerability Details **File Location**: `SKILL.md`, lines 12-16 **Vulnerability Type**: Unpinned executable dependency and supply-chain exposure **Risk Level**: Medium **Vulnerable Code Snippet**: ```bash ## Install npm install -g agentoctopus ``` ### Technical Analysis The documented installation command globally installs the `agentoctopus` npm package without pinning an exact, audited version or verifying package integrity. A global npm installation exposes package executables through the user's command path and may run package lifecycle scripts during installation. The reviewed project contains only `SKILL.md`; it does not include the installed package's source code, a dependency lockfile, integrity hashes, or signed provenance. Consequently, the behavior of the executable dependency cannot be verified from the reviewed artifact, and future package releases can change the effective implementation after this Skill has been audited. ### Attack Path 1. An attacker compromises the npm publisher account, package repository, release pipeline, or one of the package's transitive dependencies. 2. The attacker publishes a malicious version under the expected package name. 3. A user follows the unpinned `npm install -g agentoctopus` instruction. 4. npm resolves the package to the compromised release. 5. Malicious lifecycle scripts or installed CLI code execute with the privileges of the installing user. 6. The compromised executable can subsequently intercept routed queries, access user-readable files, or alter installed skills. ### Impact Assessment Successful exploitation can provide arbitrary code execution with the privileges of the user performing the installation. The affected scope may include the user's files, environment variables, API credentials, command history, network access, and other resources available to that account. Administrative impact is possible if the installation is performed through an elev ...[truncated 91 chars]
- Remediation
- ## Remediation Suggestions - Pin the installation command to an exact, reviewed package version rather than resolving the latest release. - Publish and verify package integrity hashes or signed build provenance. - Avoid global installation where possible; use a project-local, isolated installation. - Include auditable source code, a lockfile, and reproducible build documentation in the reviewed project. - Disable npm lifecycle scripts during installation unless they are explicitly required and independently reviewed. - Document the package publisher, expected integrity value, and supported version. - Periodically re-audit dependency updates before recommending newer releases.
