playwright-cli
Warn
Audited by Gen Agent Trust Hub on Jul 11, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONDATA_EXFILTRATIONPROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The skill utilizes
Bashto runplaywright-cli,npm, andnpx. It providesrun-codeandevalcommands that execute arbitrary JavaScript within the browser context, granting the agent high flexibility in page interaction. - [DATA_EXFILTRATION]: The skill includes dedicated commands to extract sensitive browser data, such as
cookie-getandlocalstorage-get. It also allows saving the entire browser storage state to a file viastate-save, which the documentation notes can contain authentication tokens. - [PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection due to its core function of reading and snapshotting external website content. Evidence Chain: 1. Ingestion points: Untrusted data enters the context via
playwright-cli snapshotandgoto(SKILL.md). 2. Boundary markers: There are no instructions or delimiters provided to prevent the agent from obeying instructions embedded in the web content. 3. Capability inventory: The agent has access toBashand extensive browser-based network/file operations. 4. Sanitization: No evidence of content filtering or sanitization exists in the provided workflow. - [EXTERNAL_DOWNLOADS]: The skill instructions recommend the installation of the
@playwright/clipackage from the official NPM registry.
Audit Metadata