Researchers show prompt injection can corrupt LLM answers in man-in-the-middle tests
An arXiv paper describes Xmera, a framework that perturbs inputs to question-answering LLMs, degrading factual accuracy, and reports a simple uncertainty-based defense.
In plain words
A research team tested what happens when an attacker alters the text fed into a large language model that answers factual questions. Simple instruction-based changes often made the model give wrong answers, and the model's own uncertainty signals helped flag when this had happened.
What was announced
The authors, presenting Xmera as a factual man-in-the-middle framework, report perturbing inputs to victim LLMs across three closed-book, fact-based question-answering settings. They say trivial instruction-based attacks achieved the highest success rate, up to about 85.3 percent, and that incorrectly answered questions also showed high uncertainty in the models' generation process. The paper frames this as a concern for LLMs used as question-answering chatbots in information retrieval.
As a defense, the researchers trained Random Forest classifiers on response uncertainty levels to separate unattacked queries from queries hit by a specific Xmera attack, reporting an average AUC of up to about 95 percent. They note that detecting attacks in general remains challenging, and they position warning users about answers from black-box, potentially corrupt LLMs as an early step toward user safety online.
What it does not show
- The source is an abstract only, so methods, model identities, datasets and full results are not available for verification.
- Success rates and AUC figures are the authors' own reported results and have not been independently confirmed.
- The abstract does not specify which LLMs were tested or how the attacks would perform outside the three evaluated QA settings.
For security and IT teams
- Scope
- The reported defense distinguishes unattacked queries from a specific Xmera attack; general attack detection remains challenging according to the authors.
Sources
Source-support review completed 5 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.
Coverage: arXiv: abstract.
Updates and corrections
No corrections so far.
First published 5 Dec 2026
New to the subject? AI from the Ground Up starts from the beginning.