playwright-skill
Fail
Audited by Gen Agent Trust Hub on Aug 23, 2026
Risk Level: HIGHCOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONEXTERNAL_DOWNLOADSPROMPT_INJECTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The
run.jsscript acts as a dynamic execution engine. It reads code from command-line arguments, files, or standard input, writes it to a temporary file in the skill's directory, and then executes it using Node.js'srequire()function. This allows for the execution of arbitrary JavaScript code with the same privileges as the agent. - [COMMAND_EXECUTION]: The
run.jsfile usesexecSyncfrom thechild_processmodule to run shell commands such asnpm installandnpx playwright install chromium. While these are used for setup, the capability to execute shell commands programmatically is a high-privilege operation. - [INDIRECT_PROMPT_INJECTION]: The skill's primary workflow involves the agent generating custom Playwright automation scripts based on natural language descriptions from the user.
- Ingestion points: User-provided descriptions of automation tasks in
SKILL.md. - Boundary markers: The skill lacks instructions to sanitize or validate the generated code, nor does it provide delimiters or warnings to ignore embedded instructions within the data being automated (e.g., website content).
- Capability inventory: The generated code has access to the full Playwright API (network requests, file system access via
file://), thefsmodule, andchild_processthrough therun.jswrapper. - Sanitization: No sanitization or validation of the generated code is performed before execution.
- [EXTERNAL_DOWNLOADS]: The skill automatically downloads and installs the
playwrightpackage and the Chromium browser binary from external sources vianpmandnpxduring the setup phase inrun.jsandpackage.json.
Recommendations
- AI detected serious security threats
Audit Metadata