chrome-devtools
Fail
Audited by Gen Agent Trust Hub on Jun 21, 2026
Risk Level: HIGHCOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONDATA_EXFILTRATIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: In
scripts/screenshot.js, thecompressImageIfNeededfunction constructs shell commands (usingmagickorconvert) by interpolating the--outputfile path directly into the command string without sanitization. This allows for arbitrary command execution on the host system via shell metacharacters (e.g.,;,&,|) in the filename. - [REMOTE_CODE_EXECUTION]: The
scripts/evaluate.jsscript allows executing arbitrary JavaScript code within the browser context usingpage.evaluate()andeval(). This provides a direct path for executing untrusted code if the input script is influenced by external or malicious data. - [DATA_EXFILTRATION]: The combined capabilities of
scripts/network.js(capturing headers and POST data),scripts/console.js(monitoring logs), andscripts/evaluate.js(extracting DOM content) allow the agent to scrape sensitive information, such as session cookies and CSRF tokens, which could then be exfiltrated. - [PROMPT_INJECTION]: The skill is vulnerable to indirect prompt injection because it navigates to and parses data from untrusted URLs. 1. Ingestion points:
navigate.js,snapshot.js, andevaluate.js(scripts/). 2. Boundary markers: None identified. 3. Capability inventory: Subprocess execution viaexecSync(screenshot.js), file system writes, and full network access via Puppeteer. 4. Sanitization: No sanitization is performed on the content retrieved from web pages. - [COMMAND_EXECUTION]: The
scripts/install-deps.shandscripts/install.shscripts usesudoto install system packages. This represents a high-privilege operation that increases the attack surface during the setup phase.
Recommendations
- AI detected serious security threats
Audit Metadata