debugging

Warn

Audited by Gen Agent Trust Hub on May 11, 2026

Risk Level: MEDIUMCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSPROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The screenshot.js script in scripts/chrome-devtools/ contains a potential shell command injection vulnerability in its ImageMagick compression logic.
  • Evidence: The function compressImageIfNeeded constructs shell commands using string templates (e.g., magick "${filePath}" -strip ...) and executes them via execSync. Because filePath is derived from the --output command-line argument, a malicious filename could be used to execute arbitrary host commands.
  • [COMMAND_EXECUTION]: The evaluate.js script enables arbitrary JavaScript execution within the automated browser context.
  • Evidence: It uses page.evaluate() combined with a direct eval(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, and references/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-sandbox and --disable-setuid-sandbox flags, which disable critical OS-level security boundaries.
  • [EXTERNAL_DOWNLOADS]: Installation scripts perform significant system modifications.
  • Evidence: The install-deps.sh script installs over 30 system libraries using apt-get, dnf, or pacman with sudo privileges.
  • [COMMAND_EXECUTION]: The skill employs extensive use of sub-processes to run static analysis and diagnostic tools.
  • Evidence: Modules like automated-code-review.md and scripts like ci_health.py execute gh CLI, pylint, flake8, bandit, and mypy to gather data for the agent's analysis.
Audit Metadata
Risk Level
MEDIUM
Analyzed
May 11, 2026, 06:03 PM