T08 · Insecure Dependencies
- Location
SKILL.md:19- Finding
Automatic Installation of Unpinned Third-Party Dependencies
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:19-38; duplicated inreferences/query_rules.md:14-18andreferences/technical_specs.md:3-9
Vulnerability Type: Supply-chain exposure through automatic, unpinned dependency installation
Risk Level: MediumVulnerable commands:
bash agent-browser --version npm install -g agent-browser python -c "import docx" pip install python-docxTechnical Analysis
The Skill instructs the agent to install the latest available versions of
agent-browserandpython-docxautomatically when they are not already present. It does not specify approved versions, package hashes, lockfiles, trusted registry configuration, or package-signature verification.The
agent-browserpackage is installed globally with npm. Global installation expands the affected environment beyond this Skill and may execute npm package lifecycle scripts with all privileges held by the invoking user. The Python package is also installed into whichever environment the unqualifiedpipcommand selects.This does not establish that either named dependency is currently malicious. The vulnerability is that the Skill automatically trusts mutable third-party releases without integrity controls or explicit user approval.
Attack Path
- An attacker compromises the relevant package registry account, publishing pipeline, package distribution infrastructure, or a future dependency release.
- The attacker publishes a package version containing malicious installation or runtime behavior.
- A user invokes the Skill in an environment where the dependency is absent.
- Following
SKILL.mdandreferences/technical_specs.md, the agent runs the unpinned installation command. - The package manager downloads the current compromised release.
- Malicious package lifecycle or runtime code executes with the permissions of the user running the agent.
Impact Assessment
Successful exploit ...[truncated 657 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin every dependency to a specifically reviewed version rather than installing the latest release.
- Maintain lockfiles and verify package integrity with registry-provided hashes or an internal artifact manifest.
- Install Python dependencies into a dedicated virtual environment using
python -m pip, not an ambiguous globalpipexecutable. - Install npm dependencies locally in an isolated project directory rather than using
npm install -g. - Disable or carefully review npm lifecycle scripts where operationally possible.
- Configure approved registries explicitly and prevent dependency resolution from untrusted mirrors or indexes.
- Require explicit user confirmation before modifying the environment.
- Prefer a prebuilt, reviewed runtime image containing the required dependency versions.
- Periodically audit pinned packages and update them through a controlled review process.
