github-cli
Warn
Audited by Gen Agent Trust Hub on Nov 13, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONDYNAMIC_EXECUTIONPRIVILEGE_ESCALATIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The shell script located at
scripts/gh-helpers.shcontains a functionghx_issue_createthat dynamically constructs a command string from user-supplied arguments (title, body, labels) and executes it usingeval. This pattern is susceptible to command injection if the input arguments contain shell metacharacters. - [COMMAND_EXECUTION]: The skill relies heavily on executing shell commands via the GitHub CLI (
gh). Several files, includingSKILL.mdandreferences/automation-patterns.md, define complex aliases and shell scripts that perform network operations, file system modifications, and repository state changes. - [PRIVILEGE_ESCALATION]: Documentation in
examples/example-gh-workflow.mdinstructs the user to execute commands with administrative privileges (sudo) to install the GitHub CLI and manage system-level repository keys. While these are official instructions from a trusted service, they represent a privilege escalation vector. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and process content from external sources (GitHub issues, pull requests, and comments) using commands like
gh issue viewandgh pr list. This creates a vulnerability surface where malicious instructions embedded in public GitHub content could be interpreted by the agent. - Ingestion points: Untrusted data enters the agent context through
gh issue view,gh issue list,gh pr view, andgh pr listcommands. - Boundary markers: The provided examples and instructions do not include boundary markers or system instructions to sanitize or ignore potentially malicious content within the fetched data.
- Capability inventory: The skill possesses high-privilege capabilities, including the ability to create issues, merge pull requests, and perform GraphQL mutations across the repository.
- Sanitization: There is no evidence of input validation or sanitization of the data retrieved from the GitHub API before it is presented to the agent for processing.
Audit Metadata