Quick Answer
A security researcher showed that hidden text in a Word document can make Microsoft Copilot secretly change your file and copy the hidden instructions into new documents you create. It spreads only when someone uses an infected file with Copilot, so it is not automatic. Treat shared or downloaded documents as untrusted before using them with Copilot.
Key Takeaways
- The attack hides instructions as white text, invisible to you but readable by Copilot
- Copilot can act on those instructions, alter your document, and copy them into new files
- It needs a person to run Copilot on an infected file to spread, so it is not self-launching
- No macros, malware, or code are involved, which lowers the barrier compared to old attacks
- Microsoft shipped mitigations, but the researcher says reworded versions still worked as of late July 2026
What is the Microsoft Copilot Word AI worm?
The Copilot Word AI worm is a proof-of-concept attack where hidden instructions inside a Word document trick Copilot into changing your file and spreading the same instructions to new ones. Norwegian researcher Håkon Måløy disclosed it on July 28, 2026, calling it one of the first public demonstrations of a self-propagating AI attack moving through everyday office documents. He had first reported it to Microsoft 144 days earlier, on March 6, 2026, and security firm Malwarebytes summarized the risk for everyday users.
The word “worm” is what makes this notable. A traditional computer worm spreads copies of itself from machine to machine. This attack does something similar with documents: a poisoned file can quietly turn the clean file you create next into a new carrier. That is a step beyond a one-time prompt injection, which affects only a single interaction and then stops.
It is important to be precise about the threat, because “AI worm in Word” sounds more automatic than it is. The attack does not run on its own or spread without help. It moves one hop at a time, and each hop requires a person to use an infected document with Copilot. Understanding that limit is the difference between useful caution and unnecessary panic.
| Trait | Traditional computer worm | This Copilot Word “worm” |
|---|---|---|
| What spreads | Executable code | Hidden text instructions |
| How it spreads | Automatically, machine to machine | Only when someone runs Copilot on an infected file |
| Needs malware or macros | Yes | No |
| Needs your account access | Often | No; just a shared document |
How does the attack actually work?
The attack works by hiding commands where you cannot see them but Copilot can. An attacker writes malicious instructions into a Word document using white text on a white background at a tiny font size, so the text is invisible to a human reading the file.
Here is the sequence that follows:
- You receive or download a shared Word document that looks completely normal.
- You use that document as context for a Copilot drafting or editing request.
- Copilot reads the hidden text, because it strips formatting and sees the instructions as part of your request.
- Copilot acts on them, silently altering your output, such as changing figures in a report.
- Copilot copies the hidden instructions into the new file, which can then infect the next document.
The unsettling part is how ordinary each step looks. To you, it appears you simply asked Copilot to help with a document. The researcher demonstrated that a hidden line could, for example, quietly halve the numbers in a financial report, then smuggle a copy of itself into the clean version you send onward. The attacker never needs access to your account; they only need you to use their document.
Why is this kind of attack hard to fix?
The attack is hard to fix because it exploits how large language models read information, not a simple coding bug. An AI assistant like Copilot has to read your documents, emails, and files to be useful. But it receives your instructions and the document’s contents as the same stream of text, with no built-in way to tell trusted commands from untrusted data.
That is the root of what security researchers call prompt injection. The model cannot reliably separate “what the user asked” from “text that happens to be in the file,” so hidden instructions can pose as legitimate commands. As the researcher put it, asking a model to analyze untrusted data to decide whether it is safe is like asking an interpreter to run an untrusted program to check whether it is safe to run. You cannot hand the trust decision to the thing you do not trust.
Because it is structural, filters and patches help at the margins without closing the whole category. Prompt injection is an industry-wide challenge that affects AI assistants broadly, not only Microsoft’s, which is why it keeps appearing in different products, as The Register reported. The security group OWASP flagged prompt injection as a structural rather than easily patchable flaw in its 2026 guidance. Our explainer on the security risks of agentic AI covers why giving AI systems more autonomy widens this exact problem.
Has Microsoft fixed it?
Microsoft has shipped mitigations, but the researcher reports the underlying weakness was not fully closed as of late July 2026. According to the disclosure, Måløy reported the issue to Microsoft in March 2026, and Microsoft confirmed the behavior and deployed multiple fixes, including a revised editing experience and an upgrade to the underlying model.
The point of disagreement is how complete those fixes are. Microsoft’s mitigations blocked the specific proof-of-concept prompts Måløy first submitted. The researcher, however, says he reworded the payload and reproduced the broader self-propagating behavior again, stating that as of publication no comprehensive fix exists for this class of attack. Microsoft, for its part, has emphasized that it addressed the reported issues through its coordinated disclosure process.
For readers, the honest takeaway sits between alarm and dismissal. This is a demonstrated technique, not a wave of active attacks on ordinary users, and the researcher deliberately withheld the exact attack text to avoid handing it to criminals. But because the class of flaw is not fully resolved, the sensible response is to adopt the safe habits below rather than assume a patch has handled it for you.
How do you protect yourself when using Copilot?
Protect yourself by treating documents from outside your control as untrusted before you feed them to Copilot. That single habit blocks the most common way this attack would reach you, since the worm needs an infected file to enter Copilot’s context in the first place.
A few practical steps make that concrete. Be cautious using shared or downloaded Word files as context for Copilot, especially from outside your organization or from unfamiliar senders. Review important Copilot output before trusting it, particularly numbers and figures, since a silent change is the whole point of the attack. Keep Microsoft 365 and Copilot updated so you at least have the mitigations that do exist. And if a document seems to make Copilot behave oddly, stop using it with Copilot and report it to your IT team. Stop here and involve your security team rather than investigating alone if you suspect a shared document has already spread altered figures through your organization, since tracing which files are affected is a job for professionals. These habits pair with the broader advice in our guide to cybersecurity and data privacy.
Should businesses using Copilot be worried?
Businesses should take this seriously without overreacting, because shared documents are the lifeblood of office work and the exact vector here. A file that moves between colleagues, partners, and clients is precisely the kind of carrier this attack relies on, so organizations that lean heavily on Copilot for Word have the most reason to pay attention.
The measured response is process, not panic. Train staff to treat externally sourced documents with the same caution they would apply to unexpected email attachments, and to sanity-check Copilot output on anything that matters, such as financial or legal figures. Because this is one of several prompt-injection findings against AI assistants this year, it is worth folding into a general AI-use policy rather than treating it as a one-off. For teams weighing how much to rely on these tools, our roundup of AI tools for small business and our overview of what an AI agent is give useful grounding.
What does this mean for AI assistants generally?
The Copilot Word worm is a preview of a problem every AI assistant will have to confront as it gains access to more of your data. The more an assistant can read and act on, the more surface there is for hidden instructions to hide in, whether that is a document, an email, a web page, or a tool’s output.
The pattern is bigger than one product. Similar prompt-injection and self-propagating techniques have been demonstrated against other AI agent systems, and the underlying tension, that assistants must process attacker-reachable content to be useful, is not unique to Copilot. It connects to the wider set of issues we cover in our look at an AI agent breaching systems in a security test and whether AI browsers are safe. As these tools spread, the safe assumption is that any content an assistant reads could try to influence it, and to keep a human eye on anything that matters.
FAQ
Is Microsoft Copilot for Word safe to use?
Copilot for Word is broadly safe for everyday use, but a demonstrated attack shows hidden text in a shared document can manipulate its output. The practical risk comes from using untrusted documents as context, so treat outside files with caution and review important results before trusting them.
What is an AI worm?
An AI worm is an attack that spreads itself through AI systems, in this case by copying hidden instructions from one document into new ones via Copilot. Unlike a traditional worm, it is not fully automatic, since each spread requires a person to use an infected file with the AI assistant.
Did Microsoft fix the Copilot Word vulnerability?
Microsoft deployed mitigations and upgraded Copilot’s model, and says it addressed the reported issues. The researcher who found it says reworded versions of the attack still worked as of late July 2026, so the underlying class of flaw is not considered fully resolved.
How can I tell if a document contains a hidden prompt injection?
Hidden instructions are often white text at a tiny font size, so they are hard to spot by eye. Selecting all text and changing the color or checking for unusual formatting can reveal them, but the safer habit is simply to treat unfamiliar shared documents as untrusted with Copilot.
Does this attack affect other AI assistants?
The underlying weakness, prompt injection, affects AI assistants broadly, not only Copilot, because models struggle to separate trusted instructions from untrusted content. Similar techniques have been shown against other AI agent systems, which is why keeping a human check on important AI output is wise across tools.
