Microsoft Defender Adds Prompt Injection Protection Against AI Agent Attacks
Microsoft Defender now includes prompt injection protection to detect and quarantine malicious AI instructions targeting email-reading agents, catching nearly 10,000 attempts in a month.

Microsoft has announced the integration of prompt injection protection into its Defender email security suite, a significant step in defending against emerging threats that target AI agents. This new feature aims to detect and quarantine malicious instructions embedded within emails, which could otherwise be executed by AI assistants like Microsoft Copilot.
The threat landscape is rapidly evolving with the rise of AI, prompting a shift in how organizations approach their cybersecurity strategies. Microsoft's investment in this area focuses on two key aspects: leveraging AI to protect both human users and the AI agents that now interact with email, and making the effectiveness of these protections measurable.
The core of the new protection lies in identifying "prompt injection" attacks. These attacks hide malicious instructions within seemingly innocuous emails, often using techniques like white text on a white background. The target is not the human recipient, but rather the AI agent processing the email. For instance, an AI assistant might be instructed to exfiltrate financial documents or send sensitive information to an unauthorized external address.
Microsoft Defender employs a multi-stage AI analysis to combat these threats. Initially, heuristic methods filter out the majority of suspicious emails. Remaining potentially malicious messages are then analyzed by a fine-tuned small language model (LLM). Only those that still exhibit suspicious characteristics are subjected to a larger, more comprehensive LLM for a final verdict. This tiered approach helps maintain low false positive rates and ensures business email continuity.
Over a recent four-week period, Microsoft Defender detected and quarantined nearly 10,000 prompt injection attempts, averaging around 330 per day. This volume, while seemingly small compared to the billions of emails scanned daily, highlights the stealthy and targeted nature of these emerging attacks.
Beyond protecting AI agents, Microsoft Defender has also enhanced its defenses against AI-assisted attacks targeting human users. The system now uses a redesigned detection stack that combines multiple machine learning models and LLM-based classifiers. This ensemble model weighs the outputs of various AI components to make a more accurate final decision, incorporating natural language processing signals and message context to better understand the intent behind an email.
To further bolster defenses, Microsoft Defender's Integrated Security Operations Center (ISOC) provides a unified platform for human analysts and AI agents to investigate and respond to the full attack lifecycle. By integrating SIEM and XDR capabilities, it connects email security signals with data from endpoints, identity systems, cloud environments, and third-party sources, offering a comprehensive view of threats.
Microsoft is also emphasizing transparency and verifiability in its email security offerings. The company publishes quarterly email security benchmarking reports and provides tenant-specific Protection & Posture Insights reports. These resources allow customers to assess the effectiveness of their defenses against real-world threats and identify areas for improvement, demonstrating a commitment to making protection measurable and auditable.