playwright-cli
Fail
Audited by Gen Agent Trust Hub on Apr 11, 2026
Risk Level: HIGHREMOTE_CODE_EXECUTIONDATA_EXFILTRATIONCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The skill includes a
run-codecommand that allows for the execution of arbitrary Playwright and JavaScript code within the browser context. This provides an unconstrained execution environment for scripts. - Evidence:
playwright-cli run-code "async page => { ... }"described inreferences/running-code.mdandreferences/request-mocking.md. - [DATA_EXFILTRATION]: Extensive commands are provided to extract sensitive browser data, including session cookies and local/session storage. These tools can be used to harvest authentication tokens or other private user information.
- Evidence:
playwright-cli cookie-list,playwright-cli cookie-get,playwright-cli state-save, andplaywright-cli localstorage-listinreferences/storage-state.md. - [COMMAND_EXECUTION]: The skill utilizes a specialized CLI tool (
playwright-cli) to interact with the system and web environment, enabling actions such as file uploads, downloads, and complex browser manipulations. - Evidence: Commands like
playwright-cli open,playwright-cli upload, andplaywright-cli screenshotthroughout the documentation. - [PROMPT_INJECTION]: The skill is designed to ingest and process data from external web pages, which is a primary vector for indirect prompt injection. Malicious sites could provide instructions that the agent might inadvertently follow.
- Ingestion points: Browser snapshots, page titles, and URLs.
- Boundary markers: No explicit delimiters or instructions are provided to the agent to help it distinguish between legitimate data and embedded malicious instructions.
- Capability inventory: The agent has high-privilege browser capabilities and script execution rights via the
run-codetool. - Sanitization: There is no evidence of content sanitization or validation before the web data is processed by the agent.
Recommendations
- AI detected serious security threats
Audit Metadata