playwright-test-automation
Fail
Audited by Gen Agent Trust Hub on Jun 13, 2026
Risk Level: HIGHREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSDATA_EXFILTRATIONPROMPT_INJECTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The
run.jsfile implements a 'Universal Executor' pattern that accepts arbitrary Node.js code via command-line arguments, files, or standard input. This code is then wrapped in a template and executed usingrequire()on a dynamically generated file, allowing for unrestricted code execution on the host system. - [COMMAND_EXECUTION]: The
run.jsscript useschild_process.execSyncto run shell commands for environment setup, includingnpm installandnpx playwright install, which are triggered automatically if the library is not detected. - [EXTERNAL_DOWNLOADS]: The skill downloads the Playwright package and browser binaries (Chromium) from remote npm and Playwright registries during the setup process.
- [DATA_EXFILTRATION]: The
detectDevServersfunction inlib/helpers.jsperforms automated probing of local network ports (such as 3000, 3001, 8080, etc.) to discover running services. This can be used for local environment reconnaissance and identifying internal targets. - [PROMPT_INJECTION]: The skill generates and executes scripts based on user-provided descriptions without implementing boundary markers or sanitization logic. This creates a vulnerability surface where the agent could be manipulated into using the browser to access sensitive local files via
file:///protocols or internal network resources.
Recommendations
- AI detected serious security threats
Audit Metadata