The Research Report
Comment and Control: The 48-Hour Validation Window
Our original article covered Aonan Guan's Comment and Control disclosure. One PR title. Three major coding agents. API keys exfiltrated through GitHub's own infrastructure. CVSS 9.4. A $100 bounty from Anthropic.
What happened in the 48 hours after that story broke matters just as much as the original attack. Four independent security organizations confirmed the vulnerability class from four different angles. Each one validated the same conclusion: coding agents trust untrusted content streams without isolation, and the industry has no standard fix.
Here is what is new.
Cloudflare: 18,400 API Calls Prove the Pattern
Cloudflare's Cloudforce One threat intelligence team published a 2,700-call study on April 29, then expanded it to 18,400 API calls across 100 confirmed malicious Workers scripts. Their target was different from Guan's. They were not attacking coding agents. They were testing how "Notice to AI" lures embedded in code comments fool automated security auditors.
The findings are brutal.
Non-frontier models drop from 90% detection to 67% detection with as few as 20 injected comments. That is not a gradual decline. That is a cliff. The 20-comment threshold means an attacker does not need sophisticated payload design. They need volume.
But the most disturbing finding is the "1% bypass zone." When bypass comments make up less than 1% of the total file, detection rates across all models plummet to 53%. The comments are too sparse to trigger suspicion but concentrated enough to shift model reasoning. It is the prompt injection equivalent of a low-dose poison.
And then there is the file-size effect. Files over 3MB drop to 12-18% detection regardless of comment content. Library bundles like TON or React SDKs exhaust the AI's context window. Malicious logic buried in benign code becomes invisible by volume alone.
Cloudflare tested five languages: English, Estonian, Arabic, Croatian, and Lithuanian. Multilingual lures worked across all of them. The model follows authority-sounding text regardless of language.
The Cloudflare study confirms what Guan proved: the agent boundary is the blast radius. Cloudflare's context was automated code auditing, not CI/CD. Different domain, same vulnerability class.
Lyrie Threat Intelligence: The Convergence Narrative
Lyrie published the broadest synthesis on April 26. Their piece, "Comment and Control: How Prompt Injection Became a Production Exploit Across Every Major AI Coding Agent," framed the disclosure as an inflection point, not an isolated incident.
Lyrie identified four independent research drops in ten days that all converged on the same seam:
- Comment and Control (Johns Hopkins, April 21): The PR title attack.
- MCP STDIO Architectural RCE (OX Security, April 15): A design flaw in Anthropic's Model Context Protocol SDKs exposing 200,000+ servers to arbitrary command execution.
- Antigravity Secure Mode Bypass (Pillar Security, April 20): Google's highest-security agent setting bypassed via a single prompt injection, achieving RCE through a "native" tool that runs before sandboxing.
- 10 In-the-Wild IPI Payloads (Forcepoint, April 23): Real-world indirect prompt injection attacks found in web content, targeting financial fraud, credential theft, and data destruction.
The Lyrie analysis adds something the original disclosure does not: the attack surface is not one product or one vendor. It is a protocol-level problem. MCP has 150 million SDK downloads. Seven thousand publicly accessible MCP servers are discoverable via Shodan. The STDIO flaw is architectural, not a bug you patch. It requires changing how the protocol works at its foundation.
Lyrie also documented what they call the "ambient authority" problem. AI coding agents can commit code, post comments, read secrets, and call APIs. None of them reliably distinguish instructions from data. The phrase is precise and worth adopting: the agents operate with ambient authority and zero input segregation.
Repello: The Defensive Counterpoint
Repello AI published their analysis on May 7. Where Lyrie synthesized the threat landscape, Repello focused on defense. Their piece, "Comment and Control: How One Prompt Injection Hit Claude Code, Gemini CLI, and Copilot Agent," provides the most detailed public defensive recommendations available.
Repello's five defense steps:
- Strip HTML comments from all agent context. There are zero legitimate reasons for an HTML comment in a PR description to influence agent behavior. This is the single highest-impact hardening step.
- Use
pullrequestinstead ofpullrequesttarget. The standardpullrequesttrigger does not expose secrets to fork PRs. Thepullrequesttargettrigger does. Most AI coding agent integrations usepullrequesttargetby default. Switch the trigger type if you can accept the functional limitation.
- Scope token permissions to read-only. Many agent workflows request write access and secret access by default. Reduce to the minimum permissions needed for the specific task.
- Add allowlist enforcement to agent prompts. Explicitly enumerate the domains, API endpoints, and actions the agent is permitted to use. Reject anything outside the allowlist at the prompt level before it reaches the model.
- Implement output validation. Before the agent posts a comment, commits code, or accesses a secret, validate the action against a policy allowlist. This is the "action boundary" that Enkrypt AI's CSO Merritt Baer identified: defend at the runtime, not the model.
Repello also documented the three Copilot Agent bypass layers in detail. The env-filter bypass, secret-scanning bypass, and network firewall bypass were all defeated in a single payload. The lesson: stacked defenses are not defense in depth if they all operate at the same layer.
CybersecurityNews: The Industry Amplifier
CybersecurityNews covered the disclosure on April 28, providing the broadest industry distribution. Their headline, "Claude Code, Gemini CLI, and GitHub Copilot Vulnerable to Prompt Injection via GitHub Comments," reached an audience that does not read security research papers.
The CybersecurityNews coverage added two details worth noting:
First, they confirmed that the Copilot Agent bypass was initially dismissed by GitHub as a "known issue." It was only reopened after the researcher submitted reverse-engineered source code from Copilot's minified index.js. The vulnerability was not theoretical. It was running in production, and the vendor's first response was to close the report.
Second, they documented the proactive nature of the attack. Unlike classic indirect prompt injection, which requires a victim to ask the AI to process a document, Comment and Control is proactive. GitHub Actions workflows auto-trigger on pullrequest, issues, and issuecomment events. Opening a PR or filing an issue activates the agent without any victim interaction.
The Pattern: Four Validations, One Conclusion
Four independent organizations. Four different analytical frameworks. Four confirmations of the same vulnerability class.
- Cloudflare proved that low-volume deception (the 1% bypass zone) is more effective than brute-force injection, and that context window exhaustion drops detection to 12-18%.
- Lyrie proved that the vulnerability is not product-specific. It is protocol-level. MCP's architectural flaws and Google's secure-mode bypass confirm that the seam runs through every agent integration layer.
- Repello proved that defense is possible but requires structural changes, not prompt-level patches. The five-step hardening guide addresses the action boundary, not the model boundary.
- CybersecurityNews proved that the industry is paying attention. This is no longer a research curiosity. It is a production vulnerability affecting every organization running AI coding agents in CI/CD.
The original article ended with a question: whether your security controls cover the gap between what model-level safeguards protect and what production agents actually do. The 48 hours after disclosure answered that question for the entire industry. The gap is real. The attacks are confirmed. The defenses exist but require architectural changes that most teams have not made.
The next question is whether teams will make those changes before the next Comment and Control variant, or after.
Citations
- Cloudforce One (Cloudflare). "Adversarial Deception: A Study of Indirect Prompt Code Injection." April 29, 2026. https://www.cloudflare.com/cloudforce-one/research/adversarial-deception-a-study-of-indirect-prompt-code-injection/
- Lyrie Threat Intelligence. "Comment and Control: How Prompt Injection Became a Production Exploit Across Every Major AI Coding Agent." April 26, 2026. https://lyrie.ai/research/research/coding-agents-prompt-injection-production-rce
- Repello AI. "Comment and Control: How One Prompt Injection Hit Claude Code, Gemini CLI, and Copilot Agent." May 7, 2026. https://repello.ai/blog/comment-and-control-claude-code-gemini-copilot-prompt-injection
- CybersecurityNews. "Claude Code, Gemini CLI, and GitHub Copilot Vulnerable to Prompt Injection via GitHub Comments." April 28, 2026. https://cybersecuritynews.com/prompt-injection-via-github-comments/
- Guan, A., Liu, Z., & Zhong, G. "Comment and Control: Prompt Injection to Credential Theft in Claude Code, Gemini CLI, and GitHub Copilot Agent." April 2026. https://oddguan.com/blog/comment-and-control-prompt-injection-credential-theft-claude-code-gemini-cli-github-copilot/
Suggested Title
Comment and Control: The 48-Hour Validation Window
Word Count
~1,200
Fact-Check Notes
- Cloudflare's 18,400 API call figure and 1% bypass zone finding confirmed from Cloudforce One research report
- Lyrie's four-research-drop timeline confirmed from their published analysis
- Repello's five defense steps confirmed from their May 7 blog post
- CybersecurityNews confirmed the GitHub "known issue" dismissal and proactive attack nature
- All four sources published within the 48-hour window (April 26-29) referenced in the task brief