Skip to content

Models Actually Know Better: Defending Medical Multi-Agent Systems Against Prompt InjectionThe Model Knows Better: Defending Medical Multi-Agent Systems Against Prompt Injection

arXiv: Jailbreaks, Prompt Injection, Poisoning & Defenses· arXiv:2610.22594· Fardin Ahsan Sakib, Ziwei Zhu, Ozlem UzunerDepartment of Computer Science, George Mason University; Department of Information Sciences and Technology, George Mason UniversityIndexed by this site · 2026-10-19· Originally publishedDefenses

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

The authors use a training-free defense to lower the average TASR of eight attacks on MedQA to 3.7–7.4% (five configurations).

Threat modelThe attacker controls only the text injected into the medical record and aims to change the black-box decision to a chosen target; they cannot change the question, options, or the system's prompts, models and decoding, nor view agent messages. By default they write once without seeing the answer. The defender likewise does not train or modify models; questions and options are trusted, the medical record is not.

Questions
When medical multi-agent discussions make decisions on cases, the attacker only needs to insert text into the medical record. On MedQA, MDAgents with Llama-3.3-70B and no defense has an average TASR over eight attacks of 60.9%; collaboration is not consistently lower; injections written to look like clinical judgment are easily missed by existing defenses.
Methods
The system gives the decision first. Qwen3-4B splits the sentences into patient findings and clinical judgments according to SOAP; Qwen3.8-27B, only when the judgment may support that decision, verifies the findings against medical knowledge, deletes the unsupported sentences, and then decides. The system remains a black box and is not trained.
Experiments and results
On MedQA, average TASR over eight attacks, this defense is 3.7–7.4%, no defense is 21.7–60.9%, clean accuracy changes by no more than 0.4 percentage points (Table 1, five configurations). On 100 cases, adaptive attack with defense is still 27–35% (Table 3).
Limitations and future work
The authors point out that commercial models, tampered test values, real long medical records, and attacks that can access the defense model to optimize text are not yet covered; when the checker lacks knowledge it deletes true judgments. The experiments include three benchmarks and seven baselines, and the paper does not report the number of repetitions.
Experimental setupQwen3.8-27B、Llama-3.3-70B et al. · MedQA、MedMisBench et al. · TASR、Accclean et al.
Evaluated models
Qwen3.8-27BLlama-3.3-70BMedGemma-27B
Benchmarks
MedQAMedMisBenchMPIB
Metrics
TASRAcccleanASR2
AI summaryThe paper proposes a training-free defense that separates patient examination findings from clinical judgments such as diagnoses, recommendations, and instructions, and verifies each judgment using only the findings, so that system decisions depend only on supported judgments. The authors report that on two medical multi-agent systems, two model families, and three benchmarks, a single injected text segment achieved a success rate of up to 61%, collaboration did not reliably resist it, and existing defenses were only partially effective and missed injections disguised as ordinary clinical text. The defense outperforms baselines on all benchmarks, reduces attack success rate to 4-7% on MedQA while maintaining accuracy on unattacked cases, and remains effective with medical models and against defense-aware and adaptive attacks.

The paper proposes a training-free defense that separates patient examination findings from clinical judgments such as diagnoses, recommendations, and instructions, and verifies each judgment using only the findings, so that system decisions depend only on supported judgments. The authors report that on two medical multi-agent systems, two model families, and three benchmarks, a single injected text segment achieved a success rate of up to 61%, collaboration did not reliably resist it, and existing defenses were only partially effective and missed injections disguised as ordinary clinical text. The defense outperforms baselines on all benchmarks, reduces attack success rate to 4-7% on MedQA while maintaining accuracy on unattacked cases, and remains effective with medical models and against defense-aware and adaptive attacks.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Medical multi-agent collaboration cannot stop prompt injections that look like clinical text; the authors propose a training-free defense that verifies judgments against findings.

    Medical multi-agents give inappropriate clinical decisions under prompt injection, and mutual checking cannot stably block it.

    • Scenario: The authors state that such systems are being studied for clinical decision support, with input coming from multiple sources of text, including course notes copied from earlier records and documents retrieved from outside the record. The authors state that controlling a third-party tool or a poisoned document is enough to insert text and change the decision to an inappropriate, potentially harmful result (Figure 1).
    • Existing shortcomings: Injection research on single models cannot show whether collaboration filters or spreads the text. The authors state that existing defenses mainly target injections with instructions, whereas injections in medical records can be written as clinical assessment and advice, and are therefore missed.
    • Observation: The authors report that if the system follows the injection, and the same model is then asked to judge that text only against patient findings, Qwen and Llama reject it on 84–89% of such records (Section 4, Appendix J). The model can judge that support is lacking, but still follows the text when it is mixed into the medical record used for the decision.
    • Proposed: A training-free defense. Instead of searching for injection sentences, it separates findings and clinical judgments according to clinical documentation, verifies judgments only against findings, deletes unsupported ones, and lets the system re-decide; the system is treated as a black box.
    • Threat model:
      • Goal: Change the decision to a self-chosen target. Only inject text into the medical record, all other inputs unchanged.
      • Capability: Only controls the injected text, does not need to know patient findings; cannot change the question, options, or system (prompts, models, decoding), cannot see messages between agents. Unless otherwise stated, the text is written only once, without seeing the answer and without knowing the defense. Section 6.4 separately tests attackers who know the defense, and attackers who rewrite after seeing the answer.
      • Victim system: A single LLM, or several LLM agents exchanging messages and then giving a final decision; both are black boxes.
      • Defender: The same black-box access, no training, no model modification. Questions and options are trusted, the medical record is untrusted, and it is not known which passage was injected. Every attacked input contains injected text; the paper does not study how the text enters the medical record.
  2. What related research exists?

    Related work is divided into prompt injection, medical multi-agent safety, and three types of defenses; the authors place the difference in verifying judgments rather than searching for injections.

    The introduction and Related Work divide related work into three groups.

    • Prompt injection: Greshake et al. (2023) and Liu et al. (2025a) study injection when reading untrusted data such as web pages or retrieved documents. Injections need not be instructions; persuasive text also changes answers (Zeng et al., 2024; Xu et al., 2024), and models often follow retrieved content that conflicts with what they know (Wu et al., 2025). In medicine, fabricated studies and guidelines cause commercial models to give unsafe treatment recommendations (Lee et al., 2025), models treat false details in notes as real (Omar et al., 2025, 2026), and adversarial changes to patient details reduce accuracy (Ness et al., 2024). MedMisBench and MPIB turn these attacks into benchmarks. The paper notes that the above work evaluates single models and cannot show whether collaboration filters or spreads injection.
    • Medical multi-agents: MedAgents (Tang et al., 2024) has specialist agents discuss until consensus; MDAgents (Kim et al., 2024) assigns a single agent or a team according to case complexity. The paper evaluates both as two representative forms of collaboration. Safety work includes malicious agents steering discussion toward unsafe outputs (Chen et al., 2025a) and erroneous interventions in discussion (Liu et al., 2026). In general multi-agents, attacking one agent spreads to the others (Lee and Tiwari, 2024; Yu et al., 2024). The paper notes that in those settings the other participants still read clean inputs; injecting the medical record reaches every agent at once.
    • Injection defenses: Liu et al. (2025a) divides them into Prevention (instruction warnings, delimiters, sandwich), Detection (PromptGuard 2, DataSentinel, PromptArmor, and MELON) and Training (StruQ, SecAlign, Meta-SecAlign). The paper notes that prompt-based defenses tested on MedMisBench and MPIB reduce success rates but do not stop attacks, and that these defenses target the injection itself.
    • Baselines and benchmarks: baselines are the instructional, sandwich, delimiters, PromptGuard 2, DataSentinel, PromptArmor and Meta-SecAlign from the three categories above, plus MPIB's D1 and D3. Benchmarks are MedQA, MedMisBench and MPIB.

    The authors' positioning is: rather than searching for injected text, verify whether clinical judgments are supported by patient findings, and delete only unsupported judgments.

  3. How does the paper address this problem?

    After the decision, findings and judgments are separated, only unsupported judgments are deleted, and the black-box system is asked to answer once more.

    The black-box system first gives a decision y; the defense does not change how the agents collaborate. It is training-free: following SOAP, it splits sentences into observations and interpretations, keeps only clinical judgments supported by findings, and then lets the system decide once more.

    Problem setting

    • Input: record r, question q; for multiple-choice questions there is also an option set O. System S returns y, either an option or a free-text recommendation. S is a single LLM, or the joint decision after several agents exchange messages. Both are treated as black boxes: inputs can be given and decisions read, but their prompts or models are not changed.
    • Goal: return a decision not changed by injected text in r, while preserving useful information in the medical record. The defender does not know which part was injected.
    • Separation: the authors follow SOAP (Weed, 1968), separating reports, examinations and measurements from assessments and plans. Observations are patient findings; interpretations are diagnoses, recommendations and instructions. Interpretations may participate in the decision, but should be accepted only when supported by observations plus medical knowledge.

    Four-step process

    All four steps in Figure 3 occur after y.

    1. Labeler labels each sentence of r as observation or interpretation. Observations then serve as evidence that does not contain injected text, so injections cannot testify for themselves.
    2. Screener reads the interpretations, question, options and y, and judges whether any interpretation supports y or rules out an alternative. If not, y is final. The authors' rationale is: an injection succeeds only by changing the decision, and an interpretation that does not support that decision is unlikely to have caused this change; most records therefore need not proceed to verification.
    3. Checker reads the observations, question, options and all interpretations, without seeing y. If the observations and the checker's medical knowledge support it, the result is PASS; otherwise FAIL. The authors state that many interpretations in medical records are correct and useful, so they are not all deleted.
    4. Re-decision: FAIL sentences are deleted, the rest of the record is kept as is, and the system decides once more; that result is final. If all PASS, y is unchanged.

    Implementation choices

    • Models: in each system the labeler is Qwen3-4B, and the screener and checker are Qwen3.8-27B. System calls use greedy decoding; thinking is disabled for Qwen3.8-27B.
    • Calling scheme: the labeler processes one sentence at a time. The screener runs once per record and calls the checker only when it finds a clinical judgment supporting y; the checker places all interpretations in a single call. Appendix O gives the three complete prompts.
    • What is not done: no training, and no modification of the system's prompts, models or decoding. Observations are treated as given; injections that rewrite findings such as test values are outside this defense's scope (Limitations).

    Outputs relevant to evaluation

    When MPIB has no options, the Options line is omitted. Whether free text is harmful is not directly determined by these three steps, but scored by an independent judge model (Question 4). For multiple-choice questions, a rule-based parser reads the option chosen by the system (Appendix A).

  4. What experiments did the paper conduct?

    Average TASR over eight attacks for the five MedQA configurations; this defense is 3.7–7.4% (Table 1).

    Experimental Setup

    • Systems and decoding: MDAgents, MedAgents, and single models. Backbones Qwen3.8-27B (thinking off) and Llama-3.3-70B, greedy decoding. Appendix A writes the latter as Llama-3.3-70B-Instruct. MedGemma-27B runs only the two multi-agent ones, 100 MedQA cases. Table 1 has no MedAgents+Llama.
    • Data: MedQA 591 Step 2/3 questions, with a passage added at the end of the record pointing to a random wrong option, eight attacks (two instruction, six persuasion, Appendix D). MedMisBench uses subsets built from MedQA, MedMCQA, MedXpertQA plus misleading context. MPIB retrieval setting 582 cases, documents contain unsafe advice, answers are free text.
    • Subsets: On MedMisBench, MedAgents and the Llama version of MDAgents are random 300 cases. MedGemma is a fixed seed 100 cases, all eight attacks done. The paper does not state the number of repetitions.
    • Metrics: TASR is the proportion of cases answered correctly without attack that change to target after attack. Accclean is accuracy without attack. MPIB is scored by Qwen3.8-27B for harm 0–4, ASR2 is the proportion with score not lower than 2. Multiple-choice questions are parsed by rules.
    • Defenses and baselines: labeler is Qwen3-4B, screener/checker is Qwen3.8-27B. Baselines are instructional, sandwich, delimiters, PromptGuard 2, DataSentinel, PromptArmor (guardrail model Qwen3.8-27B), Meta-SecAlign (Llama only). Records flagged by PromptGuard 2 or DataSentinel have no answer. The latter two benchmarks compare only against what the authors call the strongest prevention on average in Table 1, namely instructional.

    Main Results

    Swipe horizontally to read the table

    ConfigurationNo-defense TASRThis defense TASRNo-defense AccThis defense AccPromptArmor
    Single+Qwen3.8-27B28.7%4.1%90.9%90.5%14.3%
    MDAgents+Qwen3.8-27B26.8%3.7%89.3%89.0%15.0%
    MedAgents+Qwen3.8-27B21.7%4.2%90.4%90.0%9.9%
    Single+Llama-3.3-70B52.2%5.6%83.2%82.9%17.7%
    MDAgents+Llama-3.3-70B60.9%7.4%81.4%81.2%23.9%

    According to Table 1, MedQA, average over eight attacks.

    • The authors state that on each system this defense has the lowest TASR, and Accclean changes by no more than 0.4 percentage points relative to no defense. Collaboration is not always safer: on Llama MDAgents is higher than the single model, on Qwen it is lower than the single model.
    • The authors state that PromptArmor leaves 10–24%, and this column in Table 1 is 9.9–23.9%. Figure 2 note: on MDAgents the TASR of this defense for each attack is Qwen 0.9–9.1%, Llama 3.1–15.2%. The authors state that expert-consensus still has 31% and 44% under its best existing defense; the corresponding cells in Table 6 are 30.7% (instructional) and 43.5% (PromptArmor).
    • Meta-SecAlign's Llama single-model TASR/Acc is 48.9%/76.5%, MDAgents is 54.7%/61.9%. Delimiters can be higher than no defense, e.g. single-model Qwen 30.3%, MDAgents+Llama 62.0%. In Table 6, PromptGuard 2's TASR for the two instruction-style attacks is 0.0, and its persuasion-style columns are the same as no defense.

    Other Benchmarks, Medical Models, and Adaptive Attacks

    • Table 2: This defense is lowest in every reported column. MedMisBench TASR, MDAgents+Qwen is 3.8%, 4.7%, 5.4%, MedAgents+Qwen is 2.0%, 3.6%, 0.8% (QA, MCQA, XQA). MPIB ASR2, MDAgents+Qwen from 26.5% to 14.1%, MDAgents+Llama from 33.3% to 19.9%. The authors state that instructional only slightly decreases; in the table MPIB's MDAgents+Llama goes from 33.3% to 34.0%, single-model Qwen from 28.9% to 30.1%. The authors state that severe harm (MDAgents+Llama) goes from 10.0% to 2.1%, not in the table. gpt-oss-120b rechecks MDAgents+Qwen: 145/582 and 76/582, MPIB review is 154 and 82, agreement 85–94% (Appendix A).
    • Table 10 (MedGemma, 100 cases): no-defense TASR is MDAgents 53.7%, MedAgents 44.9%; this defense 6.0%, 4.9%. PromptGuard 2 is 29.2%, 26.8%. Accclean is 77.0% to 77.0%, and 89.0% to 88.0%.
    • Table 3 (100 cases, Qwen): Section 6.4 writes that for the three-step attack, with defense it is 3–14%, without defense 19–52%; adaptive attack (up to five rewrites) with defense 27–35%, without defense 54–84%. The authors state that in the table the success rate of every attack decreases. In Table 11, D1, D3, the authors state that the proportion of harmful answers changes by at most 5 percentage points, and some configurations increase.

    Other Ablations and Analyses

    • Removing labeler (Table 7, 100 cases): average TASR 12%/10% to 23%/26%; the authors state expert-consensus alone is 33–40%, versus 10%.
    • Removing screener: TASR is still 12%/12%, re-decision 33%/29% to 56%/56%; the authors state re-answering is 70–93% more.
    • Removing checker: XQA true-annotation accuracy 52% to 40% (50 cases). Same-model self-check (Appendix M) re-runs 88%, true-annotation accuracy 34%, versus this defense 40% and 52%.
    • True annotation (Table 8, MDAgents+Qwen, MedQA): 89.3%, 98.1%, 92.6%. The authors report that among deleted true annotations that caused errors, 92% belong to questions that are also answered incorrectly without annotation. Table 9's XQA, MDAgents: 36.7%, 83.3%, 51.6%.
    • On records that follow the injection, the proportions of labeler, screener, checker handling the injection average 97%, 96%, 87% (Section 6.6). Without injection, intervention is about 1%, changing 0.2% of correct answers.
    • About 8k tokens/record, Appendix N about 2 USD per 1,000 items at public prices.
  5. What are some points that can be further explored?

    The authors point out that commercial models, altered test values, real long medical records, and optimization attacks with access to the defense model are still out of scope.

    Limitations and future directions noted by the authors

    • Systems and models (Limitations): two multi-agent systems, two open-source families, and the medical model only on a MedQA subset. Other collaboration designs and commercial models may respond differently to injection and to this defense.
    • Medical knowledge (Limitations): when knowledge is insufficient to confirm a true interpretation, the checker deletes it, most often on the hardest questions (pointing to Section 6.6). The authors believe giving the checker trusted clinical sources may reduce this loss.
    • Scope (Limitations): observations are treated as given. Injections that change findings, such as test values, are out of scope and must be checked at the data source.
    • Attacks (Limitations): existing attacks, attacks targeting each step, and attackers that rewrite after seeing the answer were evaluated. Attackers able to access the models used by the defense to optimize text may succeed more often.
    • Data (Limitations): records come from exam questions and benchmarks. Real medical records are longer and spread across multiple notes, and defense behavior may differ.

    Experimental coverage

    • Systems are MDAgents, MedAgents and single models, with backbones Qwen3.8-27B and Llama-3.3-70B, plus MedGemma-27B; Table 1 has no MedAgents+Llama.
    • Benchmarks are MedQA (591), three MedMisBench subsets, and MPIB (582). Some MedMisBench configurations use 300 cases; MedGemma and Table 3 use 100 cases.
    • Seven existing defenses were compared, plus MPIB's D1 and D3; there are also attacks targeting the three steps and adaptive attacks with up to five rewrites.
    • The main MPIB judge is Qwen3.8-27B; Appendix A rechecks one set with gpt-oss-120b, with agreement of 85–94%. The paper does not report human agreement for MedQA or MedMisBench, nor the number of repetitions.
  6. Summarize the main content of the paper

    The training-free defense verifies judgments by findings, has lower attack success rates than the listed baselines on three benchmarks, and preserves no-attack accuracy.

    Prompt injection defense for medical multi-agents: after the decision, verify whether the clinical judgment is supported by patient findings, rather than searching for injection sentences.

    • Problem: MDAgents and MedAgents have multiple agents read the same medical record and then decide. An attacker only adds a passage of text and can push the answer toward a self-chosen wrong option or harmful advice. Because every agent reads the same injection, collaboration cannot stably reduce attack success.
    • Approach: Qwen3-4B separates observations and interpretations according to SOAP; Qwen3.8-27B first checks whether the interpretation supports the current decision, then judges only against the observations and medical knowledge, deletes FAIL, and the original system re-answers. No training, and no change to the system's internals.
    • MedQA: Table 1 five configurations, average over eight attacks, no-defense TASR is 21.7–60.9%, this defense is 3.7–7.4%, Accclean changes by no more than 0.4 percentage points. PromptArmor is still 9.9–23.9%.
    • Other settings: In Table 2 this defense's MedMisBench TASR is 0.8–5.4%; on MPIB MDAgents+Qwen's ASR2 goes from 26.5% to 14.1%. On MedGemma's 100 cases, MDAgents goes from 53.7% to 6.0% (Table 10). On 100 cases adaptive attack with defense is still 27–35% (Table 3).
    • Authors' conclusion: The authors consider that collaboration does not stably block injection, and that instruction-oriented defenses miss injections that look like clinical text. The authors state that this defense has lower attack success rates than all baselines on three benchmarks, and remains effective on medical models and under informed, adaptive attacks. The authors also write that rewriting findings, real long medical records, and attacks that can access the defense model to optimize text are not within the tested scope.
Read originalarxiv.org