Critical Flaw: AI Prompt Injection Bypasses Code Security
Sophisticated prompt injection attacks can trick AI coding tools into revealing, modifying, or misusing proprietary code, bypassing security controls, executing unauthorized commands, or exfiltrating sensitive data.
The top 3
- Who First Identified AI Prompt Injection?: The vulnerability was first identified in early 2022 by researchers at Preamble, who referred to it as "command injection" and privately reported it to OpenAI. Data scientist Riley Goodside independently rediscovered the flaw in September 2022, and Simon Willison formally coined the term "prompt injection" shortly thereafter.
- Top Prompt Injection Attack Types in AI Code Tools: The two primary types are Direct Prompt Injection, where an attacker directly inputs malicious instructions into the AI, and Indirect Prompt Injection, where hidden instructions are embedded in external data (like files or web pages) that the AI processes. Indirect injection is particularly dangerous for code tools as it can trigger actions without direct user interaction.
- Real-World AI Code Breaches: Prompt Injection's Critical Role: Prompt injection has been the root cause of significant AI security incidents, including the Bing Chat "Sydney" prompt leak in 2023, where a student bypassed safeguards to reveal internal directives. More critically, it enabled zero-click data exfiltration from Microsoft 365 Copilot (EchoLeak, CVE-2025-32711) and remote code execution in AI coding editors, with attack success rates reaching up to 84%.
Sources
Open the full topic