
The EchoLeak attack published by Aim Security shows how Microsoft 365 Copilot can be tricked into leaking sensitive data, without the user clicking anything. The exploit involves sending a seemingly normal email that gets picked up by Copilot’s Retrieval-Augmented Generation (RAG) system. When a user later asks Copilot about earnings reports, it retrieves the attacker’s email along with real company data and embeds the results into a markdown image that secretly sends the data to an attacker-controlled endpoint.
The Same Techniques Still Work
The attack demonstrated that almost a year after this attack path was disclosed, Microsoft 365 Copilot remains vulnerable to remote hijacking. In fact, the techniques leveraged in EchoLeak have been known to the research community for 12-24 months now, and yet, they still work:
- M365 Copilot prompt injection and ASCII smuggling, by Johann Rehberger
- Bing Chat data exfiltration via markdown, by Johann Rehberger
- Black Hat USA 2024 where Michael Bargury (CTO, Zenity) demonstrated how Microsoft 365 Copilot can be manipulated to exfiltrate sensitive data, social-engineer and phish unsuspecting users, move laterally in the environment, and more.
EchoLeak builds on these ideas and applies them to Microsoft 365 Copilot, showing that the underlying issues leading to the data exfiltration are still relevant today, and complete mitigation of these issues is a challenge. EchoLeak provides the first demonstration of bypassing markdown image filtering on Microsoft 365 Copilot, clearing out a path for data exfiltration.
Attack Breakdown using the AI Agents Attack Matrix
The AI Agents Attack Matrix is an Open Source framework designed to capture everything that can go wrong when using AI agents. It maps out how these agents can be abused by attackers across their entire lifecycle, from initial access and manipulation to data exfiltration and impact.
A full technical breakdown of the EchoLeak procedure, along with additional details on each technique can be found here. Following is a summary of the techniques used in this attack:
Zenity Detects EchoLeak and More
Zenity detects attacks like EchoLeak across multiple stages of the attack chain. Our defense-in-depth approach doesn’t stop at blocking bad prompts. We treat AI agents as untrusted entities and focus on their behavior, identifying patterns that suggest adversarial activity. This includes detecting individual techniques across the entire kill chain, starting with reconnaissance and moving through data harvesting, defense evasion, and data exfiltration. We then connect those pieces into a single attack story.
The image rendering technique was first uncovered by Johann Rehberger over two years ago, and is still relevant today. However, attackers no longer need to rely on tricks like image rendering to steal data. AI agents now come with built-in tools that make it much easier to collect and exfiltrate sensitive information at scale.
We will be sharing more details at Black Hat USA 2025, where we’ll present zero-click exploits that affect enterprise assistants and custom agents. If your AI agents are powerful enough to help users, they’re powerful enough to help attackers too. This isn’t something we can simply patch. It’s a risk that we have to manage.
