testing-patterns
Pass
Audited by Gen Agent Trust Hub on Sep 13, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/test_runner.pyscript uses thesubprocessmodule to execute test suites (e.g.,npm test,pytest). The implementation uses argument lists and sets a definedcwd, which is a secure practice to prevent shell-based command injection. - [EXTERNAL_DOWNLOADS]: The skill references standard package managers and registries (
npm,npx,pip) for installing and running test frameworks like Jest, Vitest, and thetribunal-kitmutation engine. These are standard developer operations and target well-known package registries. - [INDIRECT_PROMPT_INJECTION]: The
test_runner.pyscript parses local project files such aspackage.jsonandpyproject.tomlto configure its execution logic. This is a standard ingestion surface for configuration-driven tools. - Ingestion points:
package.json,pyproject.toml, andrequirements.txtare read and parsed inscripts/test_runner.py. - Boundary markers: None; the script assumes standard file formats.
- Capability inventory: Uses
subprocess.runto execute identified test commands across all supported frameworks. - Sanitization: Path inputs are resolved using
pathlib.Path.resolve()to ensure correct directory context.
Audit Metadata