agent-browser
Pass
Audited by Gen Agent Trust Hub on Oct 2, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTIONCREDENTIALS_UNSAFECOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted data from the web through navigation, snapshots, and text extraction commands. This exposes the agent to indirect prompt injection attacks where malicious web content could attempt to override agent instructions. The skill provides an opt-in mechanism (
AGENT_BROWSER_CONTENT_BOUNDARIES) to help the LLM distinguish between tool output and untrusted content. - Ingestion points: Commands such as
agent-browser open,agent-browser snapshot, andagent-browser get text(documented inSKILL.mdandreferences/commands.md). - Boundary markers: The skill documentation explicitly recommends using
AGENT_BROWSER_CONTENT_BOUNDARIESto wrap page-sourced output in markers. - Capability inventory: The CLI supports file system writes (
screenshot,pdf,state save), arbitrary JavaScript execution in the browser (eval), and browser-level network operations. - Sanitization: Sanitization is handled via opt-in boundary markers and domain allowlisting.
- [DYNAMIC_EXECUTION]: The
evalcommand enables the execution of arbitrary JavaScript within the browser context. It supports input via stdin and Base64 encoding to avoid shell escaping issues, which also provides a path for executing encoded scripts. This is a primary function of the tool but allows for complex, dynamic code execution during a session. - [CREDENTIALS_UNSAFE]: The skill manages sensitive authentication data, including session cookies and localStorage tokens. The
state savecommand stores session tokens in plaintext by default unless anAGENT_BROWSER_ENCRYPTION_KEYis provided. While the documentation warns users to add these files to.gitignore, the default behavior poses a risk of credential exposure if managed improperly. - [COMMAND_EXECUTION]: The skill relies on the
agent-browserCLI to perform high-privilege browser actions, including network routing, request interception (network route), and accessing local files viafile://URLs (when--allow-file-accessis enabled).
Audit Metadata