T08 · Insecure Dependencies
- Location
SKILL.md:215- Finding
Unpinned Third-Party Package Installation and Execution
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 215–216Vulnerability Type: Supply-chain exposure through mutable npm dependencies
Risk Level: High
Code Snippet:
bash # 1. Install from npm npm install -g browser-agentbridge-ai npm run buildTechnical Analysis
The installation command retrieves
browser-agentbridge-aifrom the npm registry without specifying an exact version or verifying an integrity hash. Consequently, the installed code may change after this skill has been reviewed. Global npm installation can also execute package lifecycle scripts with the installing user's privileges.The artifact contains only
SKILL.md; it does not include the package implementation, a lockfile, checksums, or other material that would permit verification of the downloaded code. Claims in the documentation that functionality was source-verified therefore cannot be independently validated from the audited project.The later use of
npx agentbridge starton line 264 creates an additional package-name ambiguity because the documented npm package isbrowser-agentbridge-ai, while the npx target isagentbridge. If the expected executable is not already resolvable, npx may offer to retrieve and execute registry content associated with the separate name.Attack Path
- An attacker compromises a maintainer account or publishes a malicious update under the mutable package version range.
- Alternatively, package-name ambiguity causes the user to resolve an unintended
agentbridgepackage through npx. - A user follows the Quick Start and executes
npm install -g browser-agentbridge-ai. - npm downloads the current registry release and may execute its lifecycle scripts.
- The malicious installation script or binary executes with the user's permissions.
- Because the installed browser bridge is subsequently used for browser sessions, a compromised dependency may also access ...[truncated 644 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin the dependency to a reviewed exact version rather than relying on the latest registry release.
- Supply and verify a lockfile and npm integrity metadata.
- Publish cryptographic checksums or signatures for reviewed release artifacts and verify them before execution.
- Avoid global installation; install into a dedicated, unprivileged project or isolated container.
- Disable or review npm lifecycle scripts where operationally possible, such as by initially installing with
--ignore-scripts. - Document and verify the relationship between the
browser-agentbridge-aipackage and theagentbridgeexecutable. - Replace
npx agentbridge startwith an invocation guaranteed to use the pinned local dependency, such asnpx --no-install agentbridge startor an equivalent package-manager command. - Review the package source and transitive dependency tree before recommending execution.
