gh-issues
Pass
Audited by Gen Agent Trust Hub on Apr 18, 2026
Risk Level: SAFECOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [PROMPT_INJECTION]: The skill is vulnerable to Indirect Prompt Injection because it interpolates untrusted GitHub issue content into the task prompt for sub-agents. This allows an attacker to control the sub-agent's behavior via a malicious issue body.
- Ingestion points: Fetches GitHub issue content (
title,body) from theSOURCE_REPOin Phase 2 and Phase 5. - Boundary markers: The untrusted issue content is wrapped in
<issue>XML-style tags in the sub-agent prompt, but there are no explicit instructions for the sub-agent to ignore potential commands within that content. - Capability inventory: Sub-agents have extensive capabilities across multiple files, including filesystem access (reading/writing code),
gitcommand execution (branch creation, commits, pushing to remotes), and network access viacurlwith theGH_TOKENfor interacting with the GitHub REST API. - Sanitization: No sanitization, validation, or escaping is performed on the issue content before it is interpolated into the prompt.
- [COMMAND_EXECUTION]: The skill uses dynamic shell execution and
node -escripts to parse platform-specific configuration files (/data/.clawdbot/openclaw.json) and extract sensitive environment variables likeGH_TOKENfor use in API calls and git operations.
Audit Metadata