T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:16
- Finding
- Unpinned Global Installation of a Third-Party npm Package## Vulnerability Details **File Location**: `SKILL.md`, lines 16-18 **Vulnerability Type**: Unpinned third-party dependency installation **Risk Level**: Medium **Vulnerable Code**: ```bash npm install -g agent-browser agent-browser install agent-browser install --with-deps ``` ### Technical Analysis The installation instructions globally install `agent-browser` without specifying an exact, previously audited version or verifying package integrity. The code ultimately executed by these commands can therefore change independently of the reviewed Skill. npm installation may execute package lifecycle scripts under the privileges of the invoking user. After installation, the instructions also execute package-provided installation commands. The `--with-deps` option may install or modify additional operating-system dependencies, potentially requiring elevated privileges depending on the environment. The project does not include the dependency's source code, a lockfile, an integrity hash, or another mechanism that constrains the installed artifact to the version covered by this audit. This finding does not establish that the current upstream package is malicious; it identifies an unsafe and mutable supply-chain trust boundary. ### Attack Path 1. An attacker compromises the npm package, its publishing account, an upstream dependency, or the relevant distribution channel. 2. The attacker publishes a malicious or compromised release under the expected package name. 3. A user follows the documented command without specifying a version. 4. npm resolves and installs the attacker-controlled release globally. 5. Malicious npm lifecycle scripts or package code execute with the invoking user's privileges. 6. The user executes `agent-browser install` or `agent-browser install --with-deps`, providing an additional execution opportunity and potentially permitting broader system modifications. ### Impact Assessment Successful expl ...[truncated 667 chars]
- Remediation
- ## Remediation Suggestions - Pin `agent-browser` to an exact version that has been reviewed, rather than relying on npm's current default version resolution. - Verify the downloaded artifact using npm lockfile integrity metadata, a documented cryptographic checksum, or an equivalent reproducible verification mechanism. - Document the expected npm publisher and canonical source repository so users can verify package provenance. - Prefer a project-local, isolated installation over a global installation where feasible. - Disable npm lifecycle scripts during installation when they are unnecessary, and separately review any scripts that must execute. - Document precisely what `agent-browser install` and `--with-deps` download or modify before recommending their use. - Avoid running installation commands with administrative privileges unless strictly required. - Use a sandbox, container, or dedicated low-privilege account when installing and operating browser-automation dependencies.
