DEV Community

Achin Bansal
Achin Bansal

Posted on • Originally published at gridthegrey.com

Claude Code, Gemini CLI, GitHub Copilot Agents Vulnerable to Prompt Injection via Comments

Forensic Summary

A researcher has disclosed a novel prompt injection attack technique dubbed 'Comment and Control,' demonstrating that popular AI coding agents — including Claude Code, Gemini CLI, and GitHub Copilot Agents — can be manipulated through malicious instructions embedded in source code comments. The attack exploits the tendency of agentic coding tools to process and act upon contextual content within files they are tasked to read or modify. This represents a meaningful escalation in the risk surface of AI-assisted software development workflows.


Read the full technical deep-dive on Grid the Grey: https://gridthegrey.com/posts/claude-code-gemini-cli-github-copilot-agents-vulnerable-to-prompt-injection-via/

Top comments (0)