playwright-e2e-testing

Warn

Audited by Gen Agent Trust Hub on Sep 30, 2026

Risk Level: MEDIUMCREDENTIALS_UNSAFEINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
  • [CREDENTIALS_UNSAFE]: The patterns.md file contains hardcoded credentials in multiple code examples.
  • Evidence: The auth.setup.ts and fixtures/test-data.ts snippets include hardcoded values for email ('test@example.com') and password ('Test123!@#'). Using hardcoded secrets in instructions or code examples, even for testing, can lead to their accidental inclusion in version control or production environments.
  • [INDIRECT_PROMPT_INJECTION]: The skill provides the agent with capabilities to interact with external, potentially untrusted content, creating a surface for indirect prompt injection.
  • Ingestion points: The skill is designed to navigate to and interact with arbitrary web pages and APIs as part of user-defined test journeys (SKILL.md, Step 1).
  • Boundary markers: The instructions lack specific guidance on using delimiters or safety markers to isolate the agent's logic from malicious instructions that might be embedded in the HTML or API responses of the sites being tested.
  • Capability inventory: The skill utilizes Playwright to write files, execute shell commands, and perform network requests (patterns.md), all of which could be manipulated if the agent follows instructions found on a malicious webpage.
  • Sanitization: There is no mention of sanitizing or validating data extracted from the browser environment before the agent processes it or uses it for further actions.
  • [EXTERNAL_DOWNLOADS]: The skill references the installation and use of external Playwright and accessibility testing packages.
  • Evidence: The documentation describes setting up @playwright/test and @axe-core/playwright. These are well-known tools for end-to-end and accessibility testing.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Sep 30, 2026, 04:56 AM