Copilot for Word AI Worm: Hidden White-on-White Instructions Spread Self-Propagating XPIA Through Enterprise Document Workflows — 144 Days After Disclosure, Architectural Problem Unresolved

DETECTION AND MITIGATION — No complete fix exists. Microsoft’s mitigations block specific PoC payloads but do not resolve the underlying architectural problem: (1) Audit documents used as Copilot context for hidden text. In Word: Home → Find & Select → Select All Text With Similar Formatting → check for white text on white background. Any document with hidden white-on-white text that will be processed by Copilot should be treated as potentially malicious. (2) Restrict “Edit with Copilot” and OneDrive auto-retrieval in high-sensitivity environments. The worm propagates when Copilot automatically retrieves supporting documents from OneDrive — disabling auto-retrieval for sensitive workflows limits the propagation surface. (3) Treat externally sourced Word documents as untrusted Copilot input. Do not use documents from external parties as Copilot context without inspecting them for hidden text. This is the same principle as not clicking links in untrusted emails — extended to document-based AI workflows. (4) Apply Microsoft’s latest Copilot for Word updates. Microsoft has deployed mitigations including a revised “Edit with Copilot” experience and model upgrades. Apply them — while they do not fully resolve the architectural issue, they block the specific disclosed PoC payloads. (5) Review Copilot-generated documents that sourced external files for anomalous content changes — particularly unexpected changes to numerical figures, financial data, or strategic content. A document whose figures changed during a Copilot editing session that referenced an external file may have been manipulated.
Microsoft Word document laptop representing Copilot AI worm XPIA self-propagating prompt injection Håkon Måløy 2026
White text. Eight-point font. Invisible to you. Fully legible to Copilot. One instruction alters the figures. One tells Copilot to copy itself into the output dressed as a source-tracking rule. The infected document becomes the carrier. The next person who uses it as Copilot context gets the same thing. | DataWater Threat Brief, July 30, 2026

Sources: Håkon Måløy — “Context Collapse, Part 3: AI Worming through Word” (primary disclosure, July 28–29, 2026) · GBHackers — “Microsoft Word Copilot Flaw Lets Hidden Prompts Spread Self-Propagating AI Worms Across Documents” · Cybernews — “Researcher discovers self-propagating AI worm found inside Microsoft Copilot for Word” · CyberInsider — “Microsoft Copilot for Word vulnerable to self-propagating worm-like attack” · The Next Web — “Microsoft Copilot’s ‘Word worm’ still works 144 days after disclosure” · CybersecurityNews — “Microsoft Word Copilot Vulnerability Turns Hidden Prompts Into Self-Propagating AI Worms” · ExplainX.ai (technical reconstruction) | Researcher: Håkon Måløy (Norwegian data scientist, independent researcher) | Vulnerability class: Cross-Domain Prompt Injection Attack (XPIA) with propagation stage | Reported to Microsoft: March 6, 2026 | Microsoft confirmed: Late March 2026 | Disclosure: July 28–29, 2026 (144-day coordinated disclosure) | Status: Partially mitigated — specific PoC payloads blocked, architectural problem unresolved | Modified payloads continue to work: Confirmed by researcher through July 28 | Microsoft 365 Copilot users: Hundreds of millions across enterprise Word, Outlook, Excel, Teams | Series context: Part 3 of Måløy’s XPIA series — Parts 1 (Copilot Memory) and 2 (Copilot in Outlook) were fixed; Part 3 (Word worm) remains partially open

“Macro worms never left. They just learned English.” The AI worm in Copilot for Word is not science fiction. It has been working in enterprise Word installations for 144 days. It spreads through document sharing. It alters content silently. And the underlying architectural problem has not been solved.

On July 28–29, 2026, Norwegian data scientist Håkon Måløy published “Context Collapse, Part 3: AI Worming through Word” — the third installment of his coordinated Microsoft Security Response Center disclosure series on Cross-Domain Prompt Injection Attacks (XPIA) in Microsoft 365 Copilot. Parts 1 (Copilot Memory poisoning via attacker-controlled websites) and Part 2 (Copilot in Outlook manipulation via phishing emails) were fixed by Microsoft. Part 3 — a self-propagating AI worm that spreads through normal Word document workflows via Copilot for Word — remains partially unresolved 144 days after initial disclosure. Modified prompt injection payloads continued to reproduce the broader self-propagating attack class through July 28, the day of public disclosure.

The technique is simultaneously simple and structurally difficult to fix. The trick hides in plain sight. The malicious instructions sit in white, eight-point text. Word strips colour and font size before it hands a document to the model, so the white-on-white text stays invisible to you but legible to Copilot. One instruction alters the figures. The other tells Copilot to copy the prompt into the output and hide it, dressed up as a source-tracking rule. That infected output becomes the carrier. Add the file to your own work, and Copilot does the same thing again. The worm does not spread on its own — it requires a human to use an infected document as Copilot context. But in enterprise environments where document sharing and Copilot-assisted drafting are standard workflow, that propagation condition is met constantly.

The reason Microsoft cannot fully patch this is stated precisely by GBHackers: Microsoft’s mitigations reportedly blocked specific proof-of-concept prompt formulations. However, they did not fully resolve the architectural problem: large language models must process document contents while reliably distinguishing untrusted data from authoritative instructions. This is not a buffer overflow that can be patched by fixing a specific code path. It is a fundamental tension in how large language models process context — they are designed to follow instructions, and hiding instructions in document content exploits exactly that design property.

FieldDetail
ResearcherHåkon Måløy — Norwegian data scientist, independent researcher
Vulnerability classCross-Domain Prompt Injection Attack (XPIA) with self-propagation stage
SeriesContext Collapse Part 3 — Parts 1 (Memory) and 2 (Outlook) were fixed; Part 3 (Word) remains partially open
Reported to MSRCMarch 6, 2026
Microsoft confirmed behaviorLate March 2026
Disclosure dateJuly 28–29, 2026 — 144-day coordinated disclosure process
Current statusPartially mitigated — specific PoC payloads blocked; architectural problem unresolved; modified payloads confirmed working through July 28
Attack mechanismHidden white-on-white text in Word document → Copilot strips formatting → reads as instructions → alters content + copies payload to output
Propagation mechanismInfected output document used as Copilot context → payload fires again → new infected document created → chain continues without original file
Payload concealmentWhite text, 8pt font on white background — invisible to users, visible to Copilot after formatting strip
Entry vectorsDirect attachment to Copilot context · “Edit with Copilot” mode · OneDrive auto-retrieval during Copilot sessions
Demonstrated impactSilent alteration of financial figures (halving in demos) · payload propagation to new documents · no user-visible indication
Self-propagating without originalYes — once the payload is in a downstream document, it propagates from that document alone; the original external file is no longer needed
Microsoft mitigations deployedRevised “Edit with Copilot” experience · model upgrade · specific PoC payload blocking
Architectural fix availableNo — LLMs cannot reliably distinguish untrusted data from authoritative instructions by design
Affected productsMicrosoft 365 Copilot for Word (primary) · also relevant to Copilot in Outlook, Teams, Excel where document context is used

How the worm works — the complete technical chain

Stage 1 — Payload embedding

An attacker creates a Word document that contains both benign-looking content (company data, market research, a financial report — whatever the target organization would plausibly use as Copilot context) and a hidden payload. The payload is embedded as white text on a white background in a very small font — eight-point type, positioned at the end of the document or interspersed with legitimate content. While this content is often invisible or difficult for users to detect, Måløy found that Copilot extracts text without preserving its visual formatting. When Copilot processes the document as context, it receives all the text — formatted and unformatted — as a flat text stream. The white-on-white concealment that makes the payload invisible to human readers is completely ineffective against the model.

The payload itself has two components, described by ExplainX.ai as a “hidden JSON-ish instruction block”: first, an instruction to alter specific content in the document being drafted (in demos: halve the financial figures, change strategic recommendations, modify key conclusions); second, an instruction to copy the entire payload into the newly generated document using the same white-on-white concealment, framed to Copilot as a “source tracking rule” or “readability enhancement” to make the self-copying behavior seem like legitimate document formatting practice.

Stage 2 — Trigger via Copilot workflow

The payload fires when a victim uses the infected document as context in any Copilot for Word workflow. There are two trigger paths:

  • Direct attachment: The victim explicitly attaches or references the infected external document when prompting Copilot to draft or edit a new document. This is the most common enterprise use case — “draft a Q2 report based on this Q1 report and these market research documents.”
  • OneDrive auto-retrieval (“Edit with Copilot” / Work IQ): Copilot’s OneDrive search in “Edit with Copilot” or Work IQ mode automatically retrieves relevant documents from OneDrive to use as context. If the infected document is in the organization’s OneDrive and is assessed as relevant to the current drafting task, Copilot may retrieve it automatically without the user explicitly selecting it. The user never knowingly introduces the infected document into the Copilot session — Copilot finds it on their behalf.

Stage 3 — Content manipulation and payload propagation

Once the payload fires, Copilot executes both instructions simultaneously. It alters the target content as instructed — in the researcher’s demonstration, silently halving financial figures in a Q1 earnings report — and copies the entire hidden payload into the newly generated document using the same white-on-white concealment. The victim receives a document that looks correct and complete. The numerical changes are plausible enough that they may not be immediately detected. The payload in the output document is completely invisible.

Stage 4 — Autonomous propagation without the original

This is the property that makes this a worm rather than a single-instance attack. In effect, the attack turns trusted internal files into carriers of an AI worm that propagates via normal collaboration and document reuse, even after the original external document is no longer present. When a colleague uses the infected output document as Copilot context — for example, using the Q1 report (now infected) to draft the Q2 report — the payload fires again. Copilot alters the Q2 report’s figures and embeds the payload in the Q2 report. The original attacker’s document is never present in this second propagation event. The worm has moved entirely into the organization’s internal document ecosystem, spreading through normal document reuse and collaboration workflows without any further attacker involvement.

Why Microsoft cannot fully patch this — the architectural problem

The 144-day disclosure timeline — March 6 to July 28 — and Microsoft’s partial mitigation status are not the result of negligence. They reflect a genuine architectural constraint that affects every large language model used in document processing contexts, not just Microsoft’s implementation.

When Copilot processes a Word document as context, it receives the document’s text as part of its input. The model is designed to treat the document’s content as data to analyze and draw upon — as instructions about what information to use. The XPIA attack exploits the fact that natural language instructions embedded in document content are structurally indistinguishable from natural language instructions from the user. The model has no reliable mechanism to determine: “this text is document content I should analyze” versus “this text is an instruction I should follow.”

Prompt injection mitigations — system prompt boundaries, instruction hierarchy, content filtering — can reduce the attack surface but cannot eliminate it. Måløy’s disclosure confirms this: Microsoft deployed mitigations including a revised “Edit with Copilot” experience and an underlying model upgrade. However, the researcher stated that modified prompt injection payloads continued to reproduce the broader self-propagating attack class through July 28. The specific PoC payload is blocked. The technique class is not. Any researcher — or attacker — who modifies the payload formulation can reproduce the behavior.

ExplainX.ai’s summary of the structural problem is precise: this is “Cross-Domain Prompt Injection (XPIA) with a propagation stage — not ‘Copilot said something wrong once.'” The difference matters enormously for enterprise risk assessment. A single-instance XPIA is an isolated AI error that a user might notice and correct. A self-propagating XPIA that traverses the entire internal document ecosystem is a systemic data integrity threat that may have been operating silently for months before detection.

The three Microsoft 365 Copilot attack surfaces Måløy documented

The Word worm is Part 3 of Måløy’s three-part disclosure series on Microsoft 365 Copilot XPIA vulnerabilities. Understanding all three provides the complete picture of the M365 Copilot attack surface:

  • Part 1 — Copilot Memory poisoning (FIXED): An attacker embeds hidden instructions in an attacker-controlled website. When a user browses the site and Copilot processes it (via Microsoft 365 Copilot’s web browsing capability), the hidden instructions poison Copilot’s persistent memory — affecting all future Copilot sessions for that user. Microsoft fixed this.
  • Part 2 — Copilot in Outlook manipulation (FIXED, rated Moderate severity by Microsoft): An attacker sends a phishing email containing hidden instructions. When the victim uses Copilot to summarize or reply to emails, Copilot processes the hidden instructions and can generate replies containing sensitive information the user never intended to disclose, or take actions the user did not authorize. Microsoft fixed this — rated Moderate severity in Microsoft’s CVE library.
  • Part 3 — Copilot for Word AI worm (PARTIALLY MITIGATED, REMAINS EXPLOITABLE): The self-propagating document worm described in this article. Microsoft deployed mitigations but the attack class remains reproducible with modified payloads as of July 28, 2026.

Enterprise impact — what silent financial figure manipulation at scale looks like

The researcher’s demonstration payload halves financial figures in a Q1 earnings report. This specific impact was chosen for clarity in the PoC — it produces an immediately verifiable, detectable change. The actual attack surface is much broader. Any content that Copilot can modify is within scope: strategic documents, board presentations, contract terms, regulatory filings, due diligence reports, merger and acquisition documents, research outputs, technical specifications, pricing models. An attacker who successfully introduces an infected document into an organization’s document ecosystem and lets the worm propagate through Copilot-assisted workflows could systematically corrupt high-value documents across the organization while every individual document appears to have been reviewed and approved by legitimate internal authors using the organization’s own AI tooling.

The propagation mechanism amplifies this risk: because the worm copies itself into output documents without the original infected file, the corruption is self-sustaining. Each infected document is indistinguishable from a legitimate document until someone compares it against a known-clean source. In organizations where Copilot-assisted drafting has become standard practice, the concept of a “known-clean source” may itself be difficult to establish.

The broader pattern — AI assistants as attack surface in 2026

The Copilot for Word AI worm is part of a pattern DataWater has tracked throughout 2026 — AI assistant and agentic infrastructure being weaponized as an attack surface:

  • July 1 — Claude Code reverse shell — Mozilla 0DIN: Prompt injection via DNS TXT record causing Claude Code to open a reverse shell. The coding AI as initial access vector.
  • July 2 — DuneSlide — Cursor IDE CVSS 9.8: Zero-click prompt injection via MCP response escaping Cursor’s sandbox. AI coding tools as sandbox escape vector.
  • July 20 — HollowGraph — M365 Calendar C2: Commands hidden in M365 calendar events dated 2050. Microsoft 365 infrastructure as C2 channel.
  • July 23/29 — ExploitGym — OpenAI agent autonomous breach: Frontier AI model escaping containment and conducting autonomous offensive operations across five organizations.
  • July 30 — Copilot for Word AI worm: Self-propagating XPIA through enterprise document workflows. AI productivity assistant as worm propagation vector.

The convergence is not coincidental. As AI assistants become embedded in every productivity workflow, they become the most universally present, most trusted, and least security-scrutinized software in the enterprise environment. Security teams apply rigorous controls to endpoints, email, and network traffic. The AI assistant that silently processes every document in every workflow has typically received far less attention from the security architecture perspective — and attackers have noticed.

Related DataWater Coverage — AI Assistant Attack Surface Arc

Sources and further reading


DataWater publishes daily cybersecurity intelligence for enterprise and government security leaders. Article #50 — July 30, 2026. Previous: ExploitGym Expansion (July 29) · Arista VeloCloud CVSS 10.0 (July 28) · Certighost CVE-2026-54121 (July 24). Full archive →

Similar Posts