webapp-testing
Warn
Audited by Gen Agent Trust Hub on Mar 28, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/with_server.pyexecutes arbitrary shell commands provided via the--serverargument usingsubprocess.Popenwithshell=True. This design allows the execution of complex shell chains (e.g., using&&orcd) but lacks sanitization, enabling the execution of any command the agent supplies based on its task or ingested data.\n- [COMMAND_EXECUTION]: The scriptscripts/with_server.pyfurther executes a user-specified command (provided as trailing positional arguments) usingsubprocess.run. This provides a direct wrapper for running any local binary or script with arbitrary parameters.\n- [PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection. Example scripts likeexamples/element_discovery.pyandexamples/console_logging.pyingest untrusted data from external sources (web page HTML content and browser console logs). This data is returned to the agent's context to help identify UI selectors or debug behavior. Malicious instructions embedded in a tested web page could potentially manipulate the agent's logic to perform unintended actions using the available command execution tools.\n- [PROMPT_INJECTION]: TheSKILL.mdfile contains instructions specifically directing the agent to "Use bundled scripts as black boxes" and "DO NOT read the source until you try running the script first." This pattern discourages the agent from inspecting the internal logic ofscripts/with_server.py, which may prevent it from recognizing the risks associated with the underlyingshell=Trueexecution.
Audit Metadata