performance-testing-review-ai-review
Pass
Audited by Gen Agent Trust Hub on Sep 30, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and process untrusted external data (pull request diffs and static analysis reports) which are then interpolated directly into LLM prompts.
- Ingestion points: The
$ARGUMENTSvariable inSKILL.md, and thediffandstatic_resultsvariables in theai_reviewmethod within theCodeReviewOrchestratorscript. - Boundary markers: None. The prompts (e.g.,
**Diff:** {diff}) do not use delimiters or instructions to ignore potential commands embedded within the code being reviewed. - Capability inventory: The skill executes shell commands via
subprocess.runandsubprocess.check_output(e.g.,sonar-scanner,semgrep), accesses sensitive environment variables (GITHUB_TOKEN,ANTHROPIC_API_KEY), and performs network operations to GitHub and Anthropic APIs. - Sanitization: The implementation uses simple truncation (
[:15000]) but lacks escaping or filtering to prevent malicious code comments from hijacking the review prompt's logic. - [COMMAND_EXECUTION]: The Python implementation uses
subprocessto execute various CLI tools likesonar-scanner,semgrep, andtrufflehog. While these are legitimate security tools, the execution is triggered based on the repository context provided to the script.
Audit Metadata