Injecting Falsehoods: Adversarial Man-in-the-Middle Attacks Undermining Factual Recall in LLMs

summary

The gist

LLMs are shown to be vulnerable to adversarial man-in-the-middle (MitM) attacks that undermine their factual recall in question answering settings.<ref:2511.05919#pg3…

In short

This research investigates how adversarial man-in-the-middle attacks can undermine Large Language Models' factual recall during question answering. Using a novel framework called $\chi$mera, the study shows that trivial instruction attacks succeed but generate high uncertainty. This leads to a proposed defense: using response uncertainty levels to alert users about potentially corrupted LLM answers.

Key concepts

Adversarial Man-in-the-Middle (MitM) Attacks
These are malicious inputs designed to trick an LLM into providing false or manipulated information. The attack vector acts as a hidden intermediary, injecting falsehoods into the model's generation process. The paper formalizes this by treating the MitM vector as a counterfactual generation process to rigorously evaluate factual memory.
$\chi$mera Framework
This is a theory-grounded framework developed to evaluate LLM vulnerability. It involves perturbing inputs and assessing the model's generation uncertainty specifically under prompt injection scenarios in closed-book question answering settings. It helps systematically test how models respond to subtle manipulations that aim to corrupt factual knowledge.
Response Uncertainty Levels
These are metrics derived from the LLM's output, such as entropy or perplexity, which quantify how confident the model is in its generated answer. The research finds that high uncertainty often signals a successful attack, providing a crucial signal for detecting malicious queries and informing user safety checks.

Terminology used across episodes

This episode discusses

The paper

Injecting Falsehoods: Adversarial Man-in-the-Middle Attacks Undermining Factual Recall in LLMs · Read on arXiv

Technical University of Munich

LLMs are now an integral part of information retrieval. As such, their role as question-answering chatbots raises significant concerns due to their demonstrated vulnerability to adversarial man-in-the-middle (MitM) attacks. Here, we propose our fundamental attack evaluation on LLM factual memory under prompt injection via Xmera, our factual MitM framework. By perturbing the input to "victim" LLMs across three closed-book, fact-based QA settings, we undermine the correctness of their responses and assess the uncertainty in their generation process. We show how trivial instruction-based attacks achieve the highest success rate (up to 85.3%) while simultaneously exhibiting high uncertainty in incorrectly answered questions. To provide a simple defense mechanism against Xmera, we train Random Forest classifiers on the response uncertainty levels to distinguish between unattacked queries and queries attacked by a specific Xmera attack (average AUC of up to 95%), while detecting attacks in general remains challenging. We believe that signaling users to be cautious about the answers they receive from black-box and potentially corrupt LLMs is a first checkpoint toward user cyberspace safety.

Transcript

Introduction to the show: ident: Security Radio. Generated commentary on the latest security and cryptography papers.

Nadia: We're looking at the paper: "Injecting Falsehoods: Adversarial Man-in-the-Middle Attacks Undermining Factual Recall in LLMs".

Title and authors: Nadia: The paper focuses on how adversarial man-in-the-middle attacks undermine the factual recall of large language models in question answering settings. It sets up this new framework called chi mera to formally evaluate this vulnerability by perturbing inputs and looking at the generation process uncertainty under prompt injection scenarios in closed-book question answering.

Elias: What I find interesting is that they define a formal definition of man-in-the-middle attacks on LLMs by treating the man in the middle vector as a counterfactual generation process, which is their main contribution to the literature on this topic.

Priya: So if we're talking about formalizing it, are they trying to make it easier for us to spot when an AI is being manipulated, or just creating a more rigorous way to measure how much it breaks?

Nadia: It’s both. By formalizing the attack this way, they highlight that models have trouble telling the difference between a normal user asking something and a malicious query trying to inject falsehoods, especially when the risk seems low.

Elias: That inability of models to distinguish between benign and malicious queries in low-risk scenarios is what raises serious ethical concerns about how we trust these AI systems for making decisions.

The paper's summary: Nadia: The paper proposes chi mera as the first principled way to evaluate factual memory under man-in-the-middle prompt injection by perturbing queries across three distinct closed-book, fact-based question answering settings. They assess both the success rate of the injection and how much uncertainty there is in the model's generation process.

Elias: Unlike previous black-box attacks that rely on heavy optimization or brute force token searches, chi mera treats the man in the middle vector as a counterfactual generation process to assess this uncertainty as a warning signal of successful malicious perturbation.

Priya: So it’s not just about checking if the answer is wrong, but also getting a signal from the model about *why* it's uncertain when that wrong answer happens? That sounds like it gives us more than just a binary right or wrong.

Nadia: Precisely. They argue that this approach highlights the model’s inability to distinguish between benign and malicious queries in low-risk scenarios, which is a big deal for accountability and transparency in question answering chatbots.

Elias: It builds on earlier ideas about counterfactual explainability, drawing inspiration from work by Wachter et al. and Prado-Romero et al., to treat these attacks as principled causal interventions rather than just noisy text perturbations.

The paper's improvements: Nadia: The authors suggest several ways to improve the field, starting with a defense mechanism based on response uncertainty levels. They found that trivial instruction-based attacks are the most successful but also show high uncertainty for incorrectly answered questions.

Elias: So they propose using those uncertainty levels as a signal to detect successful attacks, suggesting we can train binary random forest classifiers on those metrics to alert users when they might be talking to a corrupt AI.

Priya: That sounds like it gives us a way to build a detection method, something that doesn't just rely on the model’s output being perfectly correct, but on how confident it is in its own process.

Nadia: Right. They also suggest developing specific detectors for different attack types by training three additional classifiers for alpha chi mera, beta chi mera, and gamma chi mera attacks using metrics like entropy and perplexity to identify the nature of the perturbation.

Elias: That moves beyond just a general uncertainty score; it lets you potentially pinpoint *which* kind of prompt injection is happening by looking at how much those specific metrics change.

Conclusion: Nadia: To wrap up, this paper, "Injecting Falsehoods: Adversarial Man-in-the-Middle Attacks Undermining Factual Recall in LLMs", formalizes man-in-the-middle attacks on LLMs by using chi mera to evaluate them under prompt injection. They show that trivial instruction based attacks have the highest success rate, but they also generate high uncertainty for incorrect answers.

Elias: The authors conclude that signaling users to be cautious about answers from black box and potentially corrupt LLMs is a first checkpoint toward user cyberspace safety, which is important context when we think about how these models are used in real applications.

Priya: I agree with that last point because it grounds the technical stuff in something tangible for the end user; it means giving users a heads-up about potential manipulation rather than just hoping the answer is right.

Nadia: It’s about building transparency and resilience into how we deploy these systems, which aligns with goals like those from the EU AI Act by fostering uncertainty aware defenses.

Elias: We're going to keep an eye on these methods for detecting specific attack types and see how they perform across different models and datasets like TriviaQA and HotpotQA.

More episodes

← Home