Back to skill

Security audit

AgentBrowser

Security checks for vulnerabilities and agentic risk

Overview

The skill is a coherent browser-automation wrapper, but it exposes powerful session, cookie, JavaScript, artifact, and installation behaviors without enough scoping or safety guidance.

Review before installing. Use this skill only where broad browser automation is intended, pin and verify the agent-browser package if possible, avoid running install commands with elevated privileges, and treat saved state files, cookies, screenshots, PDFs, traces, and recordings as sensitive credentials or private data. Do not use saved authenticated sessions unless you explicitly intend the agent to act as that logged-in user.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T08 · Insecure Dependencies

Warning
Location
SKILL.md:18
Finding

Unpinned Global Installation of a Third-Party npm Package

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:18-20; related occurrence at CONTRIBUTING.md:20-22
Vulnerability Type: Unpinned third-party dependency installation
Risk Level: Medium

Vulnerable Code

SKILL.md:18-20:

bash
npm install -g agent-browser
agent-browser install
agent-browser install --with-deps

CONTRIBUTING.md:20-22:

bash
npm install -g agent-browser@latest

Technical Analysis

The documented installation workflow globally installs a third-party npm package without pinning it to a reviewed, immutable version. The instruction in CONTRIBUTING.md explicitly selects the mutable latest release.

When npm installs a package, package lifecycle scripts and code from transitive dependencies may execute with the privileges of the invoking user. The subsequent agent-browser install commands may also retrieve browser binaries or operating-system dependencies. Consequently, the effective code executed by these instructions can change after this skill has been reviewed.

This is a supply-chain weakness rather than evidence that the current agent-browser package is malicious. Exploitation would require compromise or malicious publication of the package, one of its dependencies, its maintainer account, or its release infrastructure.

Attack Path

  1. An attacker compromises the agent-browser npm package, a transitive dependency, a maintainer account, or the associated publication pipeline.
  2. The attacker publishes a malicious release under the version selected by the unpinned command or the latest tag.
  3. A user follows the skill documentation and runs npm install -g agent-browser or npm install -g agent-browser@latest.
  4. npm resolves and downloads the attacker-controlled release.
  5. Malicious package code or lifecycle scripts execute with the privileges of the user running npm.
  6. The global installation may modify system-wide user tooling, while subsequent installation commands may download and exe ...[truncated 674 chars]
Remediation
View remediation

Remediation Suggestions

  1. Replace mutable installation commands with an exact, reviewed version:

    bash
    npm install --global agent-browser@X.Y.Z
    
  2. Remove the use of @latest from troubleshooting and contribution instructions.

  3. Prefer project-local installation over global installation where feasible, and invoke the package through a controlled project script.

  4. Use a lockfile with npm integrity metadata for reproducible dependency resolution.

  5. Verify package provenance, release signatures, checksums, and registry source before installation where supported.

  6. Document which external artifacts agent-browser install and agent-browser install --with-deps retrieve and how their integrity is verified.

  7. Advise users to install under an unprivileged account and not to run installation commands with administrative privileges.

  8. Establish a reviewed upgrade process so version changes are assessed before documentation is updated.

Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Memory PoisoningPersistent Context Injection, Context Window Stuffing, Memory Manipulation
  • Rogue AgentSelf-Modification, Session Persistence
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (9)

Self-Modification

High
Category
Rogue Agent
Confidence
85% confidence
Finding

Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.

Content

Scanner excerpt · CONTRIBUTING.md (reported line 60)May include surrounding context.

md
## Adding New Commands to the Skill

Update SKILL.md when the upstream CLI adds new commands.
- Keep the Installation section
- Add new commands in the correct category
- Include usage examples

Missing User Warnings

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

The example explicitly shows saving and later loading authentication state (auth.json) without any caution about protecting that file. Such state often contains cookies or session tokens that can let anyone with file access impersonate the user without knowing their password.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The manifest description frames the skill as limited to navigation, clicking, typing, and snapshots, but the document exposes much broader powers including arbitrary JavaScript execution, session persistence, network interception, file writes, CDP attachment, and cookie/storage access. This mismatch can cause downstream policy or tool-selection systems to underestimate the skill’s authority and approve riskier use than intended.

Content

No source excerpt is available for this finding.

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
85% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

Scanner excerpt · SKILL.md (reported line 41)May include surrounding context.

agent-browser open # Navigate to page agent-browser snapshot -i # Get interactive elements with refs agent-browser click @e1 # Click element by ref agent-browser fill @e2 "text" # Fill input by ref agent-browser close # Close browser

text

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The documentation encourages creation of screenshots, PDFs, traces, and recordings without warning that these artifacts can capture confidential page contents, tokens, personal data, or internal URLs. In an agent workflow, such files are easy to retain, share, or index unintentionally, expanding the exposure surface beyond the live session.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The skill supports persistent session/state handling, cookies, and storage operations but provides no warning that these may contain authentication tokens, personal data, or other secrets. Users or agents may save, inspect, or reuse sensitive state insecurely, leading to accidental credential exposure or session hijacking.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The skill documents an eval command that executes arbitrary JavaScript in the page context, which materially exceeds ordinary browser interaction and can access DOM data, tokens available to page scripts, and perform arbitrary actions as the logged-in user. In an agent setting, this increases the chance of prompt-driven misuse, data extraction, or bypass of safer structured commands.

Content

No source excerpt is available for this finding.

Session Persistence

Medium
Category
Rogue Agent
Confidence
91% confidence
Finding

Loading previously saved browser state enables silent reuse of authenticated sessions across runs, which is dangerous if the state file is copied, leaked, or reused in the wrong context. In this skill, session persistence is particularly sensitive because the browser also exposes cookies, storage, JS execution, and broad site interaction capabilities.

Content

Scanner excerpt · SKILL.md (reported line 236)May include surrounding context.

bash
agent-browser state save auth.json    # Save session state
agent-browser state load auth.json    # Load saved state

Example: Form submission

Session Persistence

Medium
Category
Rogue Agent
Confidence
90% confidence
Finding

The later-session example normalizes reloading an authenticated state file with no warning or controls, reinforcing insecure handling of bearer session material. If that file is exposed, an attacker can inherit the browser session and perform actions as the user across supported sites.

Content

Scanner excerpt · SKILL.md (reported line 265)May include surrounding context.

agent-browser wait --url "/dashboard" agent-browser state save auth.json

Later sessions: load saved state

agent-browser state load auth.json agent-browser open https://app.example.com/dashboard

text