# When File Ingestion Misleads Language Models: Measuring and Mitigating Divergences in Office Documents

DevFeed: [When File Ingestion Misleads Language Models: Measuring and Mitigating Divergences in Office Documents](<https://devfeed.tech/articles/when-file-ingestion-misleads-language-models-measuring-and-mitigating-divergences-in-office-documents-118384.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.05806>)

Author: Penghui Li

Published: 2026-11-05T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Cryptography and Security](<https://devfeed.tech/sources/arxiv-cryptography-and-security.md>)

Topics: [LLM security](<https://devfeed.tech/topics/llm-security.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [Static code analysis](<https://devfeed.tech/topics/static-code-analysis.md>)

Tags: [attack-surface](<https://devfeed.tech/tags/attack-surface.md>), [attacks](<https://devfeed.tech/tags/attacks.md>), [coding-agents](<https://devfeed.tech/tags/coding-agents.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [language-models](<https://devfeed.tech/tags/language-models.md>), [large-language-models-llms](<https://devfeed.tech/tags/large-language-models-llms.md>), [office](<https://devfeed.tech/tags/office.md>), [ooxml](<https://devfeed.tech/tags/ooxml.md>)

## AI overview

Office document extractors can give LLMs a different view from what a human sees, creating an attack surface even without injected instructions. The study identifies 19 OOXML channels where extractors read invisible content and 12 where they omit human-visible content; it also reports that extractors may ignore formatting and reading order. Five attacks caused each of four tested chat assistants and four coding agents to be misled by at least one attack. The proposed lightweight defense, Prism, reconstructs the human view from the OOXML specification before passing text to the model and reportedly generalizes to unseen attack payloads.

## Source excerpt

arXiv:2611.05806v1 Announce Type: cross Abstract: Office documents are now routinely uploaded to large language models (LLMs) for processing. However, an LLM does not always see what a human sees, because it typically reads the text that an extractor produces from the document's underlying Office Open XML (OOXML) files. Depending on the implementation, extractors differ in which OOXML parts they read and how they interpret them, so their output can differ from what Office applications display. For example, by slightly shifting the positions of text boxes on a slide, an adversary can swap the order in which the model reads them while the slide looks unchanged. We show that this extraction divergence is an attack surface for LLM applications. In this work, we first measure what an adversary can exploit by analyzing the widely used extractors that LLM applications rely on. By combining static source code analysis with dynamic analysis, we identify 19 OOXML channels where extractors read content a human cannot see and 12 where they drop content a human can. We also find that widely used extractors ignore display formatting and reading order, so even visible content reaches the model in a different form. Building on these findings, we construct five attacks that lead the model to interpret a document differently from a human reviewer, without injecting any instruction. We test the attacks on four major chat assistants (ChatGPT, Claude, Gemini, and Microsoft 365 Copilot) and four coding agents (Codex, Claude Code, Antigravity, and GitHub Copilot CLI), and every one of them is misled by at least one attack. Finally, we propose Prism, a lightweight defense that reconstructs the human view from the OOXML specification before passing the text to the model. Prism also generalizes to unseen attack payloads.