babysit-pr
Pass
Audited by Gen Agent Trust Hub on Oct 27, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted data from external GitHub pull requests, such as comments and review bodies, which could potentially contain malicious instructions intended to influence the agent's behavior.
- Ingestion points: The
Watcher.pollmethod inscripts/pr-waitfetches PR comments (pr['comments']['nodes']), reviews (pr['reviews']['nodes']), and thread content via the GitHub GraphQL API. - Boundary markers: The script does not wrap ingested text in specific boundary markers or delimiters when printing events to stdout for the agent.
- Capability inventory: The skill allows the agent to execute various GitHub CLI (
gh) commands, including viewing, commenting, and potentially merging PRs. It also performs local file writes to~/.local/state/pr-wait/for state management. - Sanitization: The
plain()function inscripts/pr-waituses regular expressions to strip HTML comments and tags; thesnippet()function truncates the output to 100 characters, which limits the payload size of any injected instructions. - [COMMAND_EXECUTION]: The
scripts/pr-waitscript executes the GitHub CLI (gh) usingsubprocess.run. - Evidence: The script calls
ghfor GraphQL queries, repository views, and checking PR status. - Mitigation: Input parameters such as the PR number and repository name are validated using integer casting and regular expression matching (
[\w.-]+/[\w.-]+) before being passed as list arguments tosubprocess.run, which effectively prevents shell command injection.
Audit Metadata