T08 · Insecure Dependencies
- Location
SKILL.md:18- Finding
Unpinned Global Installation of a Third-Party npm Package
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:18-20; related occurrence atCONTRIBUTING.md:20-22
Vulnerability Type: Unpinned third-party dependency installation
Risk Level: MediumVulnerable Code
SKILL.md:18-20:bash npm install -g agent-browser agent-browser install agent-browser install --with-depsCONTRIBUTING.md:20-22:bash npm install -g agent-browser@latestTechnical Analysis
The documented installation workflow globally installs a third-party npm package without pinning it to a reviewed, immutable version. The instruction in
CONTRIBUTING.mdexplicitly selects the mutablelatestrelease.When npm installs a package, package lifecycle scripts and code from transitive dependencies may execute with the privileges of the invoking user. The subsequent
agent-browser installcommands may also retrieve browser binaries or operating-system dependencies. Consequently, the effective code executed by these instructions can change after this skill has been reviewed.This is a supply-chain weakness rather than evidence that the current
agent-browserpackage is malicious. Exploitation would require compromise or malicious publication of the package, one of its dependencies, its maintainer account, or its release infrastructure.Attack Path
- An attacker compromises the
agent-browsernpm package, a transitive dependency, a maintainer account, or the associated publication pipeline. - The attacker publishes a malicious release under the version selected by the unpinned command or the
latesttag. - A user follows the skill documentation and runs
npm install -g agent-browserornpm install -g agent-browser@latest. - npm resolves and downloads the attacker-controlled release.
- Malicious package code or lifecycle scripts execute with the privileges of the user running npm.
- The global installation may modify system-wide user tooling, while subsequent installation commands may download and exe ...[truncated 674 chars]
- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
-
Replace mutable installation commands with an exact, reviewed version:
bash npm install --global agent-browser@X.Y.Z -
Remove the use of
@latestfrom troubleshooting and contribution instructions. -
Prefer project-local installation over global installation where feasible, and invoke the package through a controlled project script.
-
Use a lockfile with npm integrity metadata for reproducible dependency resolution.
-
Verify package provenance, release signatures, checksums, and registry source before installation where supported.
-
Document which external artifacts
agent-browser installandagent-browser install --with-depsretrieve and how their integrity is verified. -
Advise users to install under an unprivileged account and not to run installation commands with administrative privileges.
-
Establish a reviewed upgrade process so version changes are assessed before documentation is updated.
-
