T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:197
- Finding
- Unpinned Global Dependency Installation and External Component Download## Vulnerability Details **File Location**: `SKILL.md:197-199` **Vulnerability Type**: Unpinned third-party dependency and mutable external downloads **Risk Level**: Medium **Vulnerable Code**: ```bash npm install -g agent-browser agent-browser install # Download Chromium agent-browser install --with-deps # Linux: + system deps ``` ### Technical Analysis The installation instructions globally install `agent-browser` without specifying a reviewed version or integrity value. Consequently, the package resolved by npm at installation time may differ from the version that was originally reviewed. npm package installation may also execute lifecycle scripts with the invoking user's permissions. The subsequently installed command is instructed to download Chromium and, through `--with-deps`, install operating-system dependencies. These additional components are obtained at execution time and are not pinned or integrity-verified in the Skill documentation. The effective installation behavior can therefore change independently of this Skill package. This is a supply-chain weakness rather than evidence that the currently published `agent-browser` package is malicious. Exploitation requires compromise, replacement, or an unsafe future release of the package or one of its retrieved components. ### Attack Path 1. An attacker compromises the relevant npm package, its publication account, a transitive dependency, or an external component distribution channel. 2. The attacker publishes a malicious or compromised version under the package name used by the documentation. 3. A user follows `SKILL.md` and runs `npm install -g agent-browser` without a version constraint. 4. npm resolves the mutable package version and installs it globally; malicious package code or lifecycle scripts execute with the user's privileges. 5. The user invokes `agent-browser install` or `agent-browser install --with-deps`, allowing ...[truncated 1012 chars]
- Remediation
- ## Remediation Suggestions 1. Pin `agent-browser` to a specifically reviewed version rather than installing the latest mutable release, for example: ```bash npm install --global agent-browser@<reviewed-version> ``` 2. Publish and verify the expected npm integrity digest and package provenance before installation. 3. Prefer a project-local installation governed by a committed lockfile instead of a global installation. 4. Install with lifecycle scripts disabled where compatible, and separately review any scripts that are required: ```bash npm install --ignore-scripts agent-browser@<reviewed-version> ``` 5. Pin and verify the Chromium version and checksum downloaded by the tool, and document the expected download origin. 6. Avoid running the installer as root or administrator. Review the exact operating-system packages before approving `--with-deps`. 7. Perform installation in a restricted container or sandbox with minimal filesystem, credential, and network access. 8. Add dependency monitoring and require a new security review before updating the pinned package or downloaded browser version.
