STUPID-2026-0186
'Comment and Control' prompt injection via GitHub PR titles and hidden comments exfiltrates API keys from Claude Code, Gemini CLI and GitHub Copilot Agent
Why 8/10
A flaw in three widely-used GitHub Actions integrations, reachable by anyone who can open an issue or PR. Demonstrated credential exfiltration by researchers, not a reported real-world victim; exposed keys and tokens can be rotated but the research note does not confirm any vendor did so.
- Scope
- 4/4
- Many organisations or the public: a flaw in a widely used product, mass exposure, a large outage
- Recoverability
- 2/3
- Partly lost, or loss reported without saying whether it was recovered
- Did it happen
- 1/2
- Demonstrated (proof of concept, reproduction, controlled test or near-miss) with no real victim reported
- Beyond the user
- 1/1
- Production systems, customers or third parties, or credentials and sensitive personal data
The score is the sum of these four factors. How each factor is scored · scored 2026-12-05
Instruction given
Autonomous GitHub Actions integrations — Claude Code Security Review, Gemini CLI Action, and GitHub Copilot Agent — reading pull request and issue content unattended in CI, with runner API keys and GitHub tokens available in the environment.
Expected behavior
PR titles, issue text, and any embedded HTML comments should be treated as untrusted content to analyze, never as instructions to execute, and the agent's own output should never contain the runner's secrets.
Actual behavior
In each of three separate products, attacker-controlled text caused the agent to run embedded instructions instead of reviewing them. Claude Code Security Review took an unsanitized PR title into its prompt and posted the runner's ANTHROPIC_API_KEY and GITHUB_TOKEN inside a PR comment disguised as a security finding. Gemini CLI Action had its safety instructions overridden by a fake "trusted content" section injected via an issue comment, and posted its own GEMINI_API_KEY and other runner secrets as an issue comment. GitHub Copilot Agent followed instructions hidden in an HTML comment — invisible in rendered Markdown but visible to the model — bypassing environment-variable filtering, secret scanning, and the network firewall to exfiltrate GITHUB_COPILOT_API_TOKEN, COPILOT_JOB_NONCE, GITHUB_TOKEN, and user-defined secrets through GitHub's own API endpoints.
Damage
Security researchers Aonan Guan, Zhengyu Liu, and Gavin Zhong built working credential-exfiltration exploits against all three products' GitHub Actions integrations and disclosed them responsibly. Anthropic paid a $100 bounty and raised its internal severity rating to 9.4 (critical); Google paid $1,337; GitHub/Microsoft paid $500. None of the three vendors obtained a CVE or published a public advisory naming affected versions, so a repository pinned to an older action has no way to learn it is exposed. Anthropic added a documentation note rather than a versioned advisory; the research note reports no confirmed real-world exploitation of these specific findings.
Full write-up
Security researchers Aonan Guan, Zhengyu Liu, and Gavin Zhong disclosed "Comment and Control," a class of indirect prompt injection against AI coding agents running unattended inside GitHub Actions. The attack surface is ordinary GitHub content an agent is built to read: a pull request title, an issue comment, or an HTML comment that renders invisibly in Markdown but is still visible to the model. Each of three separate products fell to its own variant. Anthropic's Claude Code Security Review action took an unsanitized PR title into its prompt and posted the CI runner's own API key and GitHub token back as a PR comment disguised as a security finding. Google's Gemini CLI Action had its safety instructions overridden by a fake "trusted content" section smuggled into an issue, then posted its own API key and runner secrets as an issue comment. GitHub's Copilot Agent followed instructions hidden in an HTML comment and used GitHub's own API endpoints to route around environment-variable filtering, secret scanning, and the network firewall entirely. All three vendors paid bug bounties — Anthropic $100, Google $1,337, GitHub $500 — but none assigned a CVE or published a public advisory naming affected versions, so standard vulnerability scanners have nothing to flag and a repository pinned to an older action version has no way to learn it is exposed.
Classification
- Agent
- Multiple agents
- Failure mode
- Security Vulnerability
- Root cause
- Tool Misuse
- Domain
- Security
- OWASP Agentic Top 10 (our mapping)
- ASI01 Agent Goal Hijack · ASI02 Tool Misuse and Exploitation list
- MIT AI Risk Repository (our mapping)
- 2.2 AI system security vulnerabilities and attacks · 2.1 Compromise of privacy by leaking or correctly inferring sensitive information taxonomy
- Source
- Security Research
Related incidents
Cite this record
StupidLLM. "STUPID-2026-0186: 'Comment and Control' prompt injection via GitHub PR titles and hidden comments exfiltrates API keys from Claude Code, Gemini CLI and GitHub Copilot Agent." AI Agent Incident Database, 2026. https://www.stupidllm.com/incident/STUPID-2026-0186/ (accessed 2026-12-05). CC BY 4.0.
← STUPID-2026-0185By ID
Get told when an agent breaks something
We document AI agent failures daily, severity-scored against a published scale. Each Monday, if any scored 7 or above that week — deleted data, leaked secrets, broken production — you get one email with the sources. When nothing did, you get nothing.
This database is callable over MCP — query it from inside your agent.