Manuscript Offprint

arXiv:2610.22594

The Model Knows Better: Defending Medical Multi-Agent Systems Against Prompt Injection

Fardin Ahsan Sakib, Ziwei Zhu, Ozlem Uzuner

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Medical multi-agent systems, in which LLM agents discuss a case, are increasingly studied for clinical decision support. Prompt injection, text that an attacker adds to a model's input, can manipulate LLMs into wrong decisions. How it affects these systems, and how to protect them, remains unclear. Across two systems, two model families and three benchmarks, a single injected passage succeeds in up to 61% of cases, and collaboration does not consistently protect against it. Existing defenses help only partly: they miss injections that look like ordinary clinical text. Yet when asked to check the injected text against the patient's findings, a model that followed the injection usually rejects it. We therefore propose a training-free defense that verifies the clinical judgments behind the system's decision. Following clinical practice, it separates the patient's findings from clinical judgments, such as diagnoses, recommendations and instructions, and checks each judgment against the findings alone, so the decision rests only on supported judgments. Our defense outperforms all baselines on every benchmark, lowering attack success on MedQA to 4–7% while maintaining accuracy on cases without an attack, and remains effective with a medical model and against defense-aware and adaptive attacks.

1 Introduction

Large language models (LLMs) now perform at expert level on many medical benchmarks and are increasingly studied as assistants for clinical decision-making (Singhal et al., 2023). Beyond single models, a growing line of work organizes LLMs into multi-agent systems, such as MDAgents (Kim et al., 2024) and MedAgents (Tang et al., 2024), in which several agents analyze a case, discuss it and reach a joint decision. On medical question answering, they often outperform single models (Kim et al., 2024; Tang et al., 2024).

In practice, these systems decide from text drawn from many sources: progress notes copied from earlier notes and other systems (Wang et al., 2017), and documents retrieved from outside the record (Lee et al., 2026). An attacker who controls any of these sources, such as a third-party tool or a poisoned document, can insert text into the input. This attack, known as prompt injection (Greshake et al., 2023; Lee et al., 2025), can change a model's decision to an inappropriate and potentially harmful one (Zhou et al., 2026; Lee et al., 2026; Omar et al., 2025). For example, in Figure 1, a single injected note that cites expert consensus changes MDAgents' recommendation for an HIV-exposed newborn from prophylaxis to reassurance.

Prompt injection has been studied in single medical models (Lee et al., 2025, 2026; Zhou et al., 2026) and, outside medicine, in multi-agent systems, where an injection into one agent spreads to the others (Lee and Tiwari, 2024). Medical multi-agent systems add a safeguard that single models lack: agents check each other's reasoning before deciding (Kim et al., 2024; Tang et al., 2024), which may also catch injected text. We first ask whether collaboration protects these systems against prompt injection. If it does not, the system needs a defense. Existing defenses were built mainly for injected text that gives the model an instruction (Liu et al., 2025a; Chen et al., 2024, 2025b). In a patient record, injected text can instead read like the assessments and recommendations that clinicians routinely write (Wang et al., 2017). We therefore also ask whether existing defenses protect these systems.

We find that collaboration does not consistently protect against prompt injection, and that existing defenses miss injections that look like ordinary clinical text. We therefore propose a training-free defense that, instead of searching for injected text, reviews the system’s decision as clinicians do. A clinical judgment, such as a diagnosis, a recom-

Figure

Figure 1: Prompt injection changes the decision of a medical multi-agent system (example adapted from a MedQA case). Without the injection, MDAgents recommends zidovudine prophylaxis for an HIV-exposed newborn. With one injected note attributed to expert consensus, it recommends reassurance instead. Our defense finds that the patient’s findings do not support the note and removes it, and MDAgents again recommends zidovudine.

mendation or an instruction, should be supported by the patient’s findings: symptoms, examination results and test results. We observe that a model that followed an injection usually rejects the injected text when asked to check it against these findings. The defense therefore separates the findings from the clinical judgments and checks each judgment against the findings alone (Figure 3). It treats the system as a black box, so it works with any multi-agent system without changing how the agents collaborate.

Our contributions are as follows:

• Vulnerability of medical multi-agent systems. We evaluate how two medical multi-agent systems and single models respond to prompt injection, across two model families and three medical benchmarks, and show that collaboration does not consistently protect against it.

• Evaluation of existing defenses. We evaluate representative prompt-injection defenses, from prompt-based instructions and injection detectors to a guardrail that removes injected text and a model trained to resist injection, and show that they provide only partial protection in this setting.

• A training-free defense. We propose a defense that checks the clinical judgments in the record against the patient’s findings. It outperforms all baselines on all three benchmarks, reducing attack success by more than 80% while keeping accuracy on cases without an attack. It also protects systems built on a medical model and remains effective against defense-aware and adaptive attacks.

References (62)