gh
Pass
Audited by Gen Agent Trust Hub on Aug 16, 2026
Risk Level: SAFECOMMAND_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill executes the GitHub CLI (
gh),unzip, andpython3to automate repository inspection. These commands are executed usingnode:child_process.execFilewith sanitized arguments, which effectively prevents shell injection vulnerabilities.- [PROMPT_INJECTION]: The skill processes untrusted data from GitHub, such as pull request comments and Action logs, creating a surface for indirect prompt injection. Findings: 1. Ingestion points: Data enters viapr-snapshot.ts,pr-threads.ts, andci-failures.tswhen reading PR metadata or downloading job logs. 2. Boundary markers: The instructions explicitly tell the agent to summarize output and cite file paths rather than echoing raw content; additionally, thesanitizeForTerminalfunction is used to strip control characters. 3. Capability inventory: The skill can executeghcommands and local utilities likeunzipandpython3for log processing. 4. Sanitization: The skill usessanitizeForTerminalto remove C0/C1 control characters from external strings and employs aslugfunction to ensure filenames are safe.- [CREDENTIALS_UNSAFE]: The skill accesses the user's GitHub token viagh auth tokenfor API authentication. It includes specific logic inscripts/lib.tsandREFERENCE.mdto prevent this token from being logged or leaked to external blob storage during log retrieval.
Audit Metadata