testing-patterns
Pass
Audited by Gen Agent Trust Hub on Sep 5, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/test_runner.pyusessubprocess.runto execute testing tools such asnpm,npx, andpytest. While it uses list-based arguments to mitigate shell injection, the tools themselves (likenpm test) often execute arbitrary scripts defined in project configuration files. - [INDIRECT_PROMPT_INJECTION]: The skill possesses a vulnerability surface for indirect injection by ingesting and acting upon untrusted project data.
- Ingestion points: The runner reads
package.json,pyproject.toml, andrequirements.txtfrom the target project path provided by the user. - Boundary markers: None. The skill assumes the project metadata is legitimate and does not warn the user or the agent about potentially malicious scripts within those files.
- Capability inventory: The script has the capability to trigger subprocess execution through the
run_testsfunction. - Sanitization: There is no sanitization or validation of the specific values found in the
scriptsordependenciesfields of the parsed JSON/TOML files before they influence execution logic. - [DYNAMIC_EXECUTION]: The runner dynamically constructs command sequences at runtime based on the contents of the target project, which are then executed as subprocesses.
Audit Metadata