unit-testing-test-generate

Warn

Audited by Gen Agent Trust Hub on Sep 30, 2026

Risk Level: MEDIUMCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The CoverageAnalyzer class in SKILL.md implements a method that runs shell commands via subprocess.run. The test_command parameter is passed directly as the executable, which allows the execution of arbitrary binaries or scripts if the input is attacker-controlled.
  • [INDIRECT_PROMPT_INJECTION]: The skill ingests and parses local source files to identify testable units, which is a potential vector for indirect prompt injection attacks where malicious code could influence the agent's behavior.
  • Ingestion points: Local source files are accessed via open() and ast.parse() in the TestGenerator class.
  • Boundary markers: No boundary markers or 'ignore' instructions are used when processing the analyzed code.
  • Capability inventory: The skill possesses file read capabilities and the ability to execute shell commands for coverage analysis.
  • Sanitization: There is no evidence of input validation, escaping, or sanitization for the source code being analyzed or the commands being executed.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Sep 30, 2026, 04:57 AM