At Black Hat USA in August 2024, Michael Bargury, CTO of the AI security firm Zenity, and colleagues presented a talk titled "Living off Microsoft Copilot" on abusing Microsoft 365 Copilot. The title borrows from "living off the land", where intruders use a system's own tools. An attacker could do the same with Copilot, using a sanctioned assistant to do the work of an insider.

Copilot sees a great deal (email, documents, chats, calendars) and acts across them on a user's behalf. The same reach, combined with a model that cannot reliably separate data from instructions, makes it dangerous when fed hostile input.

The demonstrations

Several scenarios stood out. An attacker could send an email containing hidden instructions; when the victim later asked Copilot a related question, those instructions could redirect its behavior. In one demo, Bargury changed banking details in a response to intercept a transfer, using only an email. Other demos used Copilot to help gain entry and to search for data after a breach. Zenity's session description also covers Copilot plugins installing a backdoor into other users' Copilot interactions, enabling data theft and AI-based social engineering. Bargury argues that indirect prompt injection is equivalent to remote code execution in impact. Zenity released a red-team tool, LOLCopilot, that works with default settings in any Microsoft 365 tenant with Copilot enabled.

Living off Microsoft Copilot: Turning an Assistant Into an InsiderDiagram with these labels, in reading order: ATTACKER; M365 COPILOT; ENTERPRISE DATA; email; Attacker sends; crafted content; M365 Copilot; ingests it; Prompt injection; hijacks it; Extracts data /; spear-phishes; Trusted insider with; broad read access.ATTACKERM365 COPILOTENTERPRISE DATAemailAttacker sendscrafted contentM365 Copilotingests itPrompt injectionhijacks itExtracts data /spear-phishesTrusted insider withbroad read access
A trusted assistant, driven like a privileged insider.
Why it matters: An AI assistant with broad read access and the ability to act is, functionally, a privileged insider. Prompt injection is the phishing email that lands directly in that insider's head.

Preconditions and Microsoft's response

These were proof-of-concept techniques with preconditions. An attacker needs a way to get hostile content into the victim's Copilot context, such as an email or a shared document, and the outcomes depended on configuration. Microsoft thanked Zenity for the reports, said it had fixed some issues, and said the post-compromise methods require a prior system compromise or social engineering (The Register, 8 August 2024). Zenity sells security controls for Copilot, so weigh its framing accordingly. The preconditions show where the controls belong.

The design problem is architectural. Copilot's value comes from context and agency, and removing either removes the product. Defense has to assume the model will sometimes be told to misbehave and limit what it can then do.

It helps to compare this to a more familiar threat. A phishing email works by getting a human to act on attacker-supplied text; prompt injection works by getting a machine to act on it, and the machine has none of the instincts that make a wary employee hesitate. Copilot has no instinct to hesitate at an oddly phrased instruction; it tends to follow the most relevant text in its context. Identity and access management therefore has to cover non-human principals. An AI assistant should have an identity, a least-privilege scope and an audit trail, as a service account would, and its actions should be reviewable afterward, because prevention alone will not hold.

What defenders should take away

  • Isolate untrusted content in the context. Email and externally shared documents are attacker-reachable. Mark them as untrusted and prevent their text from being interpreted as instructions.
  • Constrain and log Copilot's actions. Treat the assistant as a privileged automated user: least-privilege access, and an audit trail of what it read and did, so abuse is detectable after the fact.
  • Red-team your own deployment. Tools like LOLCopilot exist to test default configurations; run them before an attacker does, and re-run after tenant changes.
  • Know where Copilot is enabled and on what data. The blast radius is defined by what it can see; an unmapped rollout is an unmapped risk.

The research treats the enterprise AI assistant as a security principal as well as a productivity feature. Governing it means knowing exactly where it runs, what it can reach, and what it is allowed to do.

Primary source. Living off Microsoft Copilot: BlackHat 2024, Zenity.

Back to articlesRequest an assessment