Agent Skills security directory

playwright-best-practices

Published by currents-dev

Medium risk

The playwright-best-practices skill provides guidance for writing, debugging, and maintaining Playwright test suites. It covers end-to-end, component, API, GraphQL, visual regression, accessibility, and security testing, as well as Electron apps and browser extensions. Developers can use it to implement Page Object Models, handle authentication and OAuth, mock APIs or dates, fix flaky tests, and configure CI/CD pipelines.

Security assessment

Plutonium assessed this skill for permissions, capabilities, and security-relevant behavior.

  • Runs Playwright tests using unpinned package versions: Running Playwright through an unpinned package runner can download and execute an unexpected or compromised version from the public registry.
  • Deletes Docker volumes and resets databases during teardown: Global teardown scripts remove Docker test containers, volumes, and database state, which could wipe local data if run outside an isolated environment.
  • Includes hardcoded example credentials in documentation: Example environment files and test fixtures contain hardcoded passwords and API keys that could expose test accounts if reused in real environments.
  • Sends test results to an unverified webhook: A custom notification reporter transmits test results and failure details to an external webhook URL whose destination is not identified.
  • Disables Electron sandbox during test execution: The Electron test fixture launches the application with sandboxing disabled, which reduces process isolation and increases risk if untrusted content is loaded.
  • Sends test performance metrics as telemetry: A performance reporter collects test metrics, commit identifiers, and branch names and sends them to an external metrics endpoint.

The interactive security report will load automatically.