T08 · Insecure Dependencies
- Location
SKILL.md:156- Finding
Unpinned Global Installation of an Executable npm Dependency
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 156-159
Vulnerability Type: Unpinned and insufficiently verified third-party executable dependency
Risk Level: Mediumbash npm install -g agent-browser agent-browser install agent-browser install --with-depsThe same global installation recommendation is repeated at
SKILL.md:312, while the system dependency installation command is repeated atSKILL.md:287.Technical Analysis
The Skill directs the Agent or user to globally install the latest available release of
agent-browserwithout specifying an exact version, package integrity value, trusted publisher identity, or reviewed lockfile. An npm package installation may execute package lifecycle scripts, and a global installation exposes the resulting executable across the user's environment.The instructions then immediately execute the newly installed program. The
installoperation downloads an additional browser runtime, whileinstall --with-depsmay install or modify operating-system dependencies. Therefore, the effective code executed is not fully represented by the audited project and may change whenever the external package is updated.This does not prove that the referenced package is malicious. The vulnerability is the absence of controls protecting the installation process against package compromise, publisher-account takeover, unexpected upstream changes, registry substitution, or dependency-chain compromise.
Attack Path
- An attacker compromises the npm package, one of its transitive dependencies, its publisher account, or the registry path used to resolve the package.
- The attacker publishes a malicious release under the package version selected by the unpinned installation command.
- A user or Agent follows the Skill and runs
npm install -g agent-browser. - Malicious package lifecycle code may execute during installation.
- The user or Agent subsequently i ...[truncated 1124 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin
agent-browserto an exact, reviewed version rather than resolving the latest release. - Document the expected package publisher, official registry, and package integrity information.
- Prefer a project-local dependency managed through a committed lockfile instead of a global installation.
- Verify downloaded package and browser artifacts against trusted checksums or signatures.
- Review package lifecycle scripts and disable them during installation where they are unnecessary.
- Run installation and browser automation under a dedicated, unprivileged account or isolated container.
- Do not use
--with-depsautomatically. Require explicit approval after documenting the operating-system packages and changes it will perform. - Use an approved internal registry or dependency proxy with package allowlisting and malware scanning in managed environments.
- Regularly review and deliberately update the pinned version instead of accepting upstream changes automatically.
- Pin
