gating
Pass
Audited by Gen Agent Trust Hub on Oct 13, 2026
Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/mutate.pyexecutes a user-specified command (such as a test runner) viasubprocess.run()to evaluate the effect of code mutations. This is a core component of the mutation testing workflow. - [DYNAMIC_EXECUTION]: The mutation process involves programmatically altering local source code and executing it to verify the robustness of verification gates. The
scripts/mutate.pyscript identifies mutation sites (operators and numbers), applies changes, and verifies the outcome by running a secondary process. - [INDIRECT_PROMPT_INJECTION]: The tool ingests source code from the local file system, creating an attack surface for indirect prompt injection if a targeted file contains malicious content. 1. Ingestion points:
scripts/mutate.pyreads files from the--targetpath. 2. Boundary markers: The results are reported in plain text without explicit delimiters. 3. Capability inventory: The script can read/write files and execute subprocesses. 4. Sanitization: The script uses thetokenizelibrary to restrict mutations to specific code tokens (operators and numbers), preventing modification of string literals or comments.
Audit Metadata