playwright-ui-testing
Warn
Audited by Gen Agent Trust Hub on Jul 1, 2026
Risk Level: MEDIUMEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONPROMPT_INJECTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The
references/prerequisites.mdfile contains instructions to automatically install the@playwright/testand@axe-core/playwrightpackages via NPM. It also facilitates the download of browser binaries for Chromium, Firefox, and WebKit using thenpx playwright installcommand. - [COMMAND_EXECUTION]: The suite makes extensive use of shell commands to manage parallel execution of testing subagents, create local result directories, and interact with the
playwright-cliandnpxtools to conduct its testing lifecycle. - [REMOTE_CODE_EXECUTION]: The
test-generate/SKILL.mdskill analyzes the project's source code and generates new Playwright test files (.spec.ts) that are then executed vianpx playwright test. Additionally, most skills utilizeplaywright-cli run-codeto execute arbitrary JavaScript snippets within the browser context to perform validations and extract metrics. - [PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection. Untrusted data enters the agent context through
playwright-cli open "$URL"(Ingestion points: multiple files includingtest-security/SKILL.md). The skill lacks explicit boundary markers or delimiters to ignore embedded instructions (Boundary markers: absent). The agent has broad capabilities including file-writing and shell execution (Capability inventory:test-generate/SKILL.md,test-all/SKILL.md). No sanitization or filtering of external content is performed before processing (Sanitization: absent). - [CREDENTIALS_UNSAFE]: The
test-flows/SKILL.mdskill facilitates authentication testing by accepting user credentials as arguments or environment variables. While the skill includes instructions to avoid hardcoding secrets, it still requires the agent to handle sensitive credentials in plaintext during the execution of shell commands.
Audit Metadata