playwright-cli
Warn
Audited by Gen Agent Trust Hub on Oct 29, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTION
Full Analysis
- [DYNAMIC_EXECUTION]: The skill implements
run-codeandevalcommands that allow the execution of arbitrary JavaScript code within the browser context. This capability can be used to bypass standard UI interactions, modify network responses, and interact with the browser's internal APIs. - [DATA_EXFILTRATION]: Multiple commands provide access to sensitive information that could be exfiltrated if the agent is directed to a malicious site or mishandles the data. This includes
cookie-list,localstorage-list, andsessionstorage-listfor session data, as well asstate-savefor full browser state. Additionally, therun-codetool can be used to read the system clipboard vianavigator.clipboard.readText(). - [INDIRECT_PROMPT_INJECTION]: The skill acts as a high-privilege interface to the web, creating a significant attack surface for indirect prompt injection.
- Ingestion points: The agent ingests untrusted data from web pages through
snapshot,eval,run-code, andconsoleoutput. - Boundary markers: No boundary markers or instructions are provided to help the agent distinguish between its own instructions and data retrieved from the web.
- Capability inventory: The skill has access to the local file system (via
uploadanddownload.saveAs), sensitive browser storage, and arbitrary JavaScript execution. - Sanitization: The content retrieved from the browser is not sanitized or filtered before being processed by the agent.
- [EXTERNAL_DOWNLOADS]: The skill's documentation suggests the use of
npx playwright-cli, which involves downloading and executing a package from the npm registry at runtime. - [COMMAND_EXECUTION]: The skill relies on the
Bashtool to interact with theplaywright-clibinary, enabling the agent to execute shell commands to control browser processes.
Audit Metadata