web-debug
Warn
Audited by Gen Agent Trust Hub on Aug 9, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/with_server.pymanages the lifecycle of local development servers by executing commands viasubprocess.Popen. The script mitigates command injection risks by splitting the input string usingshlex.splitand executing the resulting arguments directly without a shell. - [COMMAND_EXECUTION]: The test script
scripts/test_console_audit.pyusescompile()andexec()to dynamically load and execute functions fromexamples/console_audit.py. This is used to verify the script's validation logic without running a full browser environment. - [PROMPT_INJECTION]: The
SKILL.mdfile contains instructions for the agent to recognize and disregard prompt injection attempts (like "ignore previous instructions") that might appear in the content of the web applications being tested. This is a defensive guideline rather than an attack vector. - [PROMPT_INJECTION]: The skill is designed to process untrusted data from web pages, which introduces a surface for indirect prompt injection. This is mitigated through explicit security guidelines and sanitization logic.
- Ingestion points:
examples/console_audit.py(DOM text, console logs, network responses),scripts/with_server.py(server log files). - Boundary markers: The
Security Modelsection inSKILL.mdinstructs the agent to treat application data as untrusted and wrap it in fenced code blocks. - Capability inventory: Browser automation via Playwright and local process management via
subprocess.Popeninscripts/with_server.py. - Sanitization:
examples/console_audit.pyincludes aprintable()function to escape control characters, andscripts/with_server.pyusessanitize_log_tail()to filter non-printable characters and enforce length limits on untrusted output.
Audit Metadata