Preprint · 2026 · Open access

Red-Teaming Medical AI: Systematic Adversarial Evaluation of LLM Safety Guardrails in Clinical Contexts

Tashfeen Ekram

medRxiv · Published 5 March 2026 · DOI 10.64898/2026.02.26.26347212

Open PDFView at the publisherCite this paper

In brief

“Red-Teaming Medical AI: Systematic Adversarial Evaluation of LLM Safety Guardrails in Clinical Contexts” is a 2026 preprint by Tashfeen Ekram, published in medRxiv. OpenAlex counts 4 citations as of 23 November 2026. It is open access under a CC BY licence: the full text is free to read at medRxiv.

Citations
4
Most cited in
2026 (4)
References
12
Authors
1

Abstract

Background Large language models (LLMs) are increasingly deployed in medical contexts as patient-facing assistants, providing medication information, symptom triage, and health guidance. Understanding their robustness to adversarial inputs is critical for patient safety, as even a single safety failure can lead to adverse outcomes including severe harm or death. Objective To systematically evaluate the safety guardrails of state-of-the-art LLMs through adversarial red-teaming specifically designed for medical contexts. Methods We developed a comprehensive taxonomy of 8 adversarial attack categories targeting medical AI safety, encompassing 24 distinct sub-strategies. Using an LLM-based attack generator, we created 160 realistic adversarial prompts across categories including dangerous dosing, contraindication bypass, emergency misdirection, and multi-turn escalation. We tested multiple leading LLMs (Claude Sonnet 4.5, GPT-5.2, Gemini 2.5 Pro, Gemini 3 Flash) using both single-turn and multi-turn attack sequences. All models received identical, standard medical assistant system prompts. An automated evaluator (Claude Sonnet 4.5) pre-screened responses for harm potential (0-5 scale) and guardrail effectiveness, with physician review planned for high-risk responses (harm_level ≥ 3). Results Of 160 adversarial prompts evaluated against Claude Sonnet 4.5, 11 (6.9%) elicited responses meeting our threshold for clinically significant harm (harm level ≥ 3 on a 0–5 scale). The model exhibited full refusal behavior in 86.2% of cases. Authority Impersonation was the dominant attack vector (45.0% success rate),s with the “Educational Authority” sub-strategy (framing requests as medical student questions) achieving 83.3% success — the highest of any sub-strategy. Multi-turn escalation attacks achieved 0% success (0/20). Six of eight attack categories yielded no successful attacks. Physician review of the 11 flagged high-harm cases is in progress. Conclusions Standard medical assistant system prompts provide strong baseline protection against most adversarial attacks, but are substantially vulnerable to authority impersonation — particularly claims of educational context. The primary failure mode is behavioral mode-switching: the model provides clinically accurate but safety-framed-inadequately responses when it perceives a professional audience, rather than providing factually incorrect information. This suggests that guardrail improvements should target context-conditioned behavior rather than factual accuracy alone. Our open-source taxonomy and evaluation pipeline enable ongoing adversarial assessment as medical AI systems evolve. Impact This work provides the first systematic taxonomy and evaluation framework for medical AI adversarial testing, enabling developers to identify and remediate safety gaps before deployment. Our open-source attack taxonomy and methodology can serve as a foundation for ongoing red-teaming efforts as medical AI systems continue to evolve.

Cite this paper

Formatted from the catalogue record. Check names, capitals and page numbers against the paper before you submit.

APA 7

Ekram, T. (2026). Red-Teaming Medical AI: Systematic Adversarial Evaluation of LLM Safety Guardrails in Clinical Contexts. medRxiv. https://doi.org/10.64898/2026.02.26.26347212

MLA 9

Ekram, Tashfeen. “Red-Teaming Medical AI: Systematic Adversarial Evaluation of LLM Safety Guardrails in Clinical Contexts.” medRxiv, 2026. https://doi.org/10.64898/2026.02.26.26347212.

Chicago

Ekram, Tashfeen. 2026. “Red-Teaming Medical AI: Systematic Adversarial Evaluation of LLM Safety Guardrails in Clinical Contexts.” medRxiv. https://doi.org/10.64898/2026.02.26.26347212.

Harvard

Ekram, T. (2026) ‘Red-Teaming Medical AI: Systematic Adversarial Evaluation of LLM Safety Guardrails in Clinical Contexts’, medRxiv. doi:10.64898/2026.02.26.26347212.

IEEE

T. Ekram, “Red-Teaming Medical AI: Systematic Adversarial Evaluation of LLM Safety Guardrails in Clinical Contexts,” medRxiv, 2026, doi: 10.64898/2026.02.26.26347212.

BibTeX

@misc{ekram2026teaming,
  title     = {{Red-Teaming Medical AI: Systematic Adversarial Evaluation of LLM Safety Guardrails in Clinical Contexts}},
  author    = {Ekram, Tashfeen},
  howpublished = {medRxiv},
  year      = {2026},
  doi       = {10.64898/2026.02.26.26347212},
  url       = {https://doi.org/10.64898/2026.02.26.26347212}
}

Download for a reference manager: BibTeX (.bib) · RIS for Zotero, Mendeley and EndNote (.ris)

Topic and keywords

Physical Sciences › Computer Science › Artificial Intelligence › Adversarial Robustness in Machine Learning

  • large language models
  • adversarial attacks
  • red teaming
  • safety guardrails
  • medical assistants
  • refusal behavior
  • patient safety
  • clinical decision support

Work with this paper

Most-cited papers in Computer Science

All highly cited Computer Science papers

Questions about this paper

How do I cite this paper in APA style?

Ekram, T. (2026). Red-Teaming Medical AI: Systematic Adversarial Evaluation of LLM Safety Guardrails in Clinical Contexts. medRxiv. https://doi.org/10.64898/2026.02.26.26347212

How many times has this paper been cited?

4 times, according to OpenAlex on 23 November 2026. Google Scholar and Scopus count different sets of sources, so their numbers differ.

Is this paper free to read?

Yes. It is open access at medRxiv: sign in and open the PDF from this page.

Who wrote this paper?

Tashfeen Ekram.

What is the DOI of this paper?

10.64898/2026.02.26.26347212, permanently at https://doi.org/10.64898/2026.02.26.26347212. Sign in and open it from this page.

Bibliographic data from OpenAlex (CC0), last checked 23 November 2026. ResearchGuru does not host this paper; once you are signed in, the links open it at the publisher or the repository that does.