playwright-skill
Warn
Audited by Gen Agent Trust Hub on Nov 5, 2026
Risk Level: MEDIUMEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTIONMETADATA_POISONING
Full Analysis
- [DYNAMIC_EXECUTION]: The
run.jsscript implements a 'Universal Executor' pattern. It takes arbitrary code (either from an argument, a file, or stdin), wraps it in an asynchronous template, writes it to a temporary file (.temp-execution-*.js), and then executes it usingrequire(). This allows for the execution of arbitrary JavaScript within the Node.js environment. - [COMMAND_EXECUTION]: The
run.jsscript usesexecSyncto perform environment setup, specifically runningnpm installandnpx playwright install chromium. These commands are executed automatically if Playwright is not detected. - [EXTERNAL_DOWNLOADS]: The skill downloads and installs external dependencies and browser binaries.
- Fetches the
playwrightpackage from the official NPM registry. - Downloads the Chromium browser binary via
npx playwright installduring the setup phase. - [INDIRECT_PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection as it processes user-provided descriptions of web tasks to generate executable code.
- Ingestion points: User descriptions of automation tasks (e.g., 'Test this login page') provided via the agent prompt.
- Boundary markers: None identified in the provided files to separate user instructions from system code generation.
- Capability inventory: The skill has the capability to perform network requests (via Playwright), write files (via
run.jsand Playwright screenshots), and execute arbitrary JS code (viarun.js). - Sanitization: There is no evidence of sanitization or validation of the generated code before it is written to disk and executed.
- [METADATA_POISONING]: There is a discrepancy between the author 'foraefactory' specified in the analysis context and the author 'lackeyjb' listed in the
package.jsonfile. This mismatch can be deceptive regarding the skill's origin.
Audit Metadata