T08 · Insecure Dependencies
- Location
SKILL.md:195- Finding
Unpinned Global Third-Party Package Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 195-197
Vulnerability Type: Supply-chain risk from an unpinned third-party dependency
Risk Level: MediumVulnerable Code
bash npm install -g agent-browser agent-browser install # Download Chromium agent-browser install --with-deps # Linux: + system depsTechnical Analysis
The installation instructions globally install
agent-browserwithout specifying a reviewed version or verifying package integrity. Consequently, the package and any npm lifecycle scripts executed are determined by the registry contents available at installation time rather than the version reviewed during this audit.The subsequent
agent-browser installcommand downloads Chromium, whileagent-browser install --with-depsmay also change system-level dependencies. The instructions do not pin the npm package, verify checksums or signatures for downloaded artifacts, identify an immutable trusted source, or describe the system changes performed by--with-deps.Although no malicious package code is included in this project, these instructions create an avoidable supply-chain exposure in which a compromised, replaced, or unexpectedly updated dependency could execute code.
Attack Path
- An attacker compromises the relevant npm package, its publisher account, registry distribution path, or a downloaded browser artifact.
- The attacker publishes or serves a modified version containing a malicious lifecycle script, CLI implementation, or browser component.
- A user follows the documented
npm install -g agent-browserinstruction without a version constraint. - npm retrieves the attacker-controlled version and may execute its lifecycle scripts during global installation.
- The user runs
agent-browser installoragent-browser install --with-deps, permitting additional components—and potentially system dependencies—to be downloaded or installed. - The malicious code ...[truncated 711 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin
agent-browserto an explicitly reviewed version rather than installing the latest available release:bash npm install -g agent-browser@<reviewed-version> - Prefer a project-local installation governed by a committed lockfile over a global installation.
- Verify package provenance and integrity through registry metadata, npm provenance attestations, signatures, or published checksums.
- Pin and verify downloaded Chromium artifacts rather than relying on mutable upstream downloads.
- Document the exact trusted npm registry and reject unexpected registry overrides.
- Review npm lifecycle scripts and the implementation of the browser installer before recommending execution.
- Avoid
--with-depsunless the required system changes have been enumerated and reviewed. Run it with the minimum necessary privileges. - Consider distributing a reproducible, integrity-verified installation procedure or a vetted artifact instead of fetching mutable dependencies during setup.
- Pin
