debugging
Warn
Audited by Gen Agent Trust Hub on May 11, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
screenshot.jsscript inscripts/chrome-devtools/contains a potential shell command injection vulnerability in its ImageMagick compression logic. - Evidence: The function
compressImageIfNeededconstructs shell commands using string templates (e.g.,magick "${filePath}" -strip ...) and executes them viaexecSync. BecausefilePathis derived from the--outputcommand-line argument, a malicious filename could be used to execute arbitrary host commands. - [COMMAND_EXECUTION]: The
evaluate.jsscript enables arbitrary JavaScript execution within the automated browser context. - Evidence: It uses
page.evaluate()combined with a directeval(script)call to execute strings passed from the command line. - [PROMPT_INJECTION]: The skill possesses an expansive attack surface for indirect prompt injection through the ingestion of untrusted external content.
- Evidence: Multiple scripts and references (e.g.,
console.js,network.js, andreferences/e2e-workflow/phase-2.5-preflight.md) instruct the agent to monitor and analyze browser console logs and network response bodies. Malicious data from a webpage could influence agent behavior during investigation. - [COMMAND_EXECUTION]: Browser automation is launched with reduced security profiles.
- Evidence: In
scripts/chrome-devtools/lib/browser.js, the browser instance is launched with--no-sandboxand--disable-setuid-sandboxflags, which disable critical OS-level security boundaries. - [EXTERNAL_DOWNLOADS]: Installation scripts perform significant system modifications.
- Evidence: The
install-deps.shscript installs over 30 system libraries usingapt-get,dnf, orpacmanwithsudoprivileges. - [COMMAND_EXECUTION]: The skill employs extensive use of sub-processes to run static analysis and diagnostic tools.
- Evidence: Modules like
automated-code-review.mdand scripts likeci_health.pyexecuteghCLI,pylint,flake8,bandit, andmypyto gather data for the agent's analysis.
Audit Metadata