T08 · Insecure Dependencies
- Location
SKILL.md:16- Finding
Unpinned Global Installation of a Third-Party npm Package
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 16-18
Vulnerability Type: Supply-chain risk caused by an unpinned globally installed dependency
Risk Level: MediumComplete Code Snippet:
bash npm install -g agent-browser agent-browser install agent-browser install --with-depsTechnical Analysis
The documented installation procedure resolves
agent-browserwithout specifying a reviewed version. The npm registry can therefore provide whichever release is current when the command runs. The package is installed globally, after which package-provided installation commands are executed.The
agent-browser install --with-depscommand may also provision browser and system dependencies. If the npm package, maintainer account, release pipeline, or transitive dependency is compromised, malicious package lifecycle or installer logic could execute under the invoking user's account. The effective installed content can change after this Skill has been reviewed because no immutable version or integrity value is specified.This is a supply-chain exposure rather than evidence that the current upstream package is malicious.
Attack Path
- An attacker compromises the upstream npm package, its publisher account, release pipeline, or a dependency included by a future release.
- The attacker publishes malicious content under the package version resolved by the unpinned installation command.
- A user follows the Skill documentation and runs
npm install -g agent-browser. - npm installs the compromised package globally and may execute package lifecycle scripts.
- The user then invokes the package-controlled installer, potentially including
agent-browser install --with-deps. - Malicious code executes with the permissions of the invoking user and accesses resources available to that account.
Impact Assessment
A successful supply-chain compromise could permit arbitrary local code exe ...[truncated 448 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin
agent-browserto a specifically reviewed release, such asagent-browser@<audited-version>. - Record and verify npm package integrity and provenance before installation.
- Prefer a project-local installation over a global installation where operationally possible.
- Run installation in a minimally privileged environment; do not use an elevated shell unless explicitly required and reviewed.
- Document the files, browser components, and system packages modified by
installandinstall --with-deps. - Require explicit user approval before provisioning system dependencies.
- For source installations, pin the repository to a reviewed commit and use a committed lockfile with immutable dependency resolution.
- Pin
