T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:68
- Finding
- Unpinned Global Installation of a Third-Party CLI Package## Vulnerability Details **File Location**: `SKILL.md`, line 68 **Vulnerability Type**: `T08: Insecure Dependencies` **Risk Level**: Medium **Vulnerable Code:** ```text - Delx CLI for terminal fallback: `npm i -g delx-agent-cli` ``` ### Technical Analysis The documented fallback installs `delx-agent-cli` globally without pinning a reviewed version or verifying package integrity. The command therefore resolves whichever version is associated with the package's current distribution tag at installation time. npm packages can define lifecycle scripts that execute during installation. If the package, publisher account, or package distribution chain is compromised, following this instruction could run unreviewed code with the permissions of the user invoking npm. Global installation also increases exposure by placing package executables into a shared command location. The reviewed file does not provide a lockfile, integrity hash, trusted version, provenance-verification procedure, or instruction to suppress lifecycle scripts. ### Attack Path 1. An attacker compromises the package publisher, distribution account, registry delivery path, or a future package release. 2. The attacker publishes a modified version under the package name and assigns it to the version selected by npm. 3. A user follows the documented `npm i -g delx-agent-cli` instruction. 4. npm downloads the unreviewed version and may execute its lifecycle scripts. 5. Malicious code runs with the invoking user's permissions and installs a globally accessible executable. ### Impact Assessment Successful exploitation could execute arbitrary code with the privileges of the user running npm. Depending on those privileges, exposed resources could include user-readable files, environment variables, credentials, workspace data, and writable command locations. If the command is run by an administrator, the impact could extend to system-wide files and other users. No ...[truncated 167 chars]
- Remediation
- ## Remediation Suggestions - Pin the CLI to a specifically reviewed version instead of using the mutable latest release. - Verify package provenance, registry origin, signatures where available, and a published integrity digest before installation. - Document the package's official source repository and expected maintainer identity. - Prefer a project-local, sandboxed installation over a global installation. - Use a lockfile and integrity metadata when integrating the dependency into a managed project. - Review package contents and lifecycle scripts before execution. - Consider installing with lifecycle scripts disabled when they are not required. - Run the CLI under a least-privileged account or isolated environment.
