Critical Copilot vulnerability allowed hackers to seize 2FA code from users
Microsoft patches critical vulnerability in M365 Copilot AI platform that allowed hackers to retrieve 2FA codes and sensitive data.

Last Tuesday, Microsoft patched a vulnerability it rated as max critical in its M365 Copilot AI platform. On Monday, the researchers who discovered the vulnerability and reported it to Microsoft revealed how their proof-of-concept exploit could retrieve 2FA codes and other sensitive data from emails accessible to Copilot. Microsoft and other LLM providers have been unable to prevent their products from complying with malicious requests to reveal data.
The root cause: AI bots are unable to distinguish between instructions provided by users and those snuck into third-party content the models are summarizing, drafting responses to, or using to perform other actions on behalf of the user. With no way to secure this crucial boundary, Microsoft and its peers are left to erect complicated and ad hoc guardrails designed to rein in the consequences of this incurable gullibility. One guardrail built into Copilot and most other LLMs prevents them from submitting web forms, sending emails, and taking similar actions that can be used to exfiltrate data from the user.
To work around this, LLM hackers turned to markup language, which, among other things, allows users to add formatting elements such as headings, lists, and links to text without the need for HTML tags. Another workaround is to wrap sensitive data inside HTML tags such as and . In either case, a web request showing the data hits the attacker’s web server, where the secret information is captured in logs.
Why this matters: This vulnerability highlights a significant challenge facing AI developers: preventing their models from executing malicious instructions hidden in user data. The fact that Microsoft and other LLM providers are struggling to secure this boundary raises concerns about the safety and reliability of AI-powered tools. For businesses and consumers, this means that sensitive data may be at risk, even when using seemingly secure AI platforms.
As AI models become increasingly integrated into our daily lives, it is clear that developers must prioritize robust security measures to prevent similar vulnerabilities in the future. The question remains: how can AI providers balance the benefits of their models' flexibility and functionality with the need for robust security and data protection?
Source: Ars Technica