improving-test-suites
Pass
Audited by Gen Agent Trust Hub on Oct 8, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill executes test commands via the
test-validatorsubagent. This behavior is guarded by thescripts/check-test-command.shscript, which enforces a strict allowlist of known test runners (such aspytest,npm test,cargo test) and explicitly rejects shell metacharacters like;,&,|, and backticks to prevent command injection attacks. - [EXTERNAL_DOWNLOADS]: The skill fetches documentation and testing principles from external HTTPS sources. These are limited to a pinned allowlist of well-known and trusted domains, including
owasp.org,testing.googleblog.com,martinfowler.com, and official documentation sites for testing frameworks likejestjs.ioandplaywright.dev. These downloads are used solely for informational purposes to guide the refactoring process. - [INDIRECT_PROMPT_INJECTION]: Because the skill processes untrusted test files, it possesses an attack surface for indirect prompt injection. This is mitigated by a comprehensive
untrusted-content-policy.mdwhich instructs subagents to treat all file content as data rather than instructions. (1) Ingestion points:TARGET_TEST_FILESinput. (2) Boundary markers: Present inreferences/untrusted-content-policy.md, requiring agents to quote and report instruction-like content as a risk instead of obeying it. (3) Capability inventory: File system write access viatest-refactorerand shell command execution viatest-validator. (4) Sanitization: Command strings are sanitized throughscripts/check-test-command.shby rejecting shell metacharacters.
Audit Metadata