gh-fix-issue
Pass
Audited by Gen Agent Trust Hub on Jul 4, 2026
Risk Level: SAFEPROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [PROMPT_INJECTION]: The skill is vulnerable to indirect prompt injection as it ingests and processes untrusted data from external GitHub issues and comments. \n
- Ingestion points: GitHub issue title, body, and comments are fetched via
ghCLI API calls infetch_issue_dataandfetch_issue_commentsfunctions withinscripts/inspect_issue.py. \n - Boundary markers: Absent. The skill generates a structured 'Issue Analysis Report' and 'Progress Comment' which include the external content without using clear delimiters or 'ignore' instructions to prevent the model from following embedded malicious commands. \n
- Capability inventory: The skill is part of a workflow that performs codebase searches, creates fix plans, writes files, and executes git commands (commits, PRs) after user approval. \n
- Sanitization: Partial. While the script uses regex to extract specific fields like error messages and file references, it also passes the raw body and sections to the agent, providing an attack surface where an attacker-controlled GitHub issue could influence agent behavior. \n- [COMMAND_EXECUTION]: The script
scripts/inspect_issue.pyexecutes shell commands to interact withgitand theghCLI. \n - Evidence: Functions
run_gh_commandandfind_git_rootutilizesubprocess.runto call system binaries. \n - Mitigation: The implementation uses a list for arguments and does not enable
shell=True, preventing shell injection. Inputs like issue numbers are validated using regex or digit checks before being passed as arguments.
Audit Metadata