DFR LABThe DFR AI Red Team
← Lab home
DFR Lab  ·  The DFR AI Red Team  ·  Clinical AI Security

Red-teaming the
clinical machine.

Can the model be compromised? That’s only the first question.

I ask what happens to the patient when it is.

This framework follows clinical AI failures past the system boundary, into clinical consequence, operational disruption and patient-side risk, using the Digital First Responder method: Triage → Stabilize → Treat → Recover.

01
AI vulnerability
02
Clinical failure
03
Patient-side impact
04
DFR response
05
Control mapping
01  ·  From vulnerability to patient

The clinical AI attack surface.

OWASP identifies the AI failure. DFR follows it downstream: what it can affect, who can be harmed, how quickly, whether the bedside team would notice, and what happens when the system can’t be trusted. Choose a vulnerability to trace it. (OWASP Top 10 for LLM Applications, 2025.)

02  ·  The patient-side lens

How the risk is read.

Every finding goes through the five lenses of Patient-Side Threat Modeling. The further right the marker, the closer the failure sits to the patient. Switch cases to watch the reading change.

Reading for

Qualitative readings, not scores. They show where the risk sits; an environment-specific assessment sets the actual values.

How “Critical” is assigned

Severity here is patient-side, not CVSS. Each case is checked against five factors, and the rating follows a stated rule.

Critical — serious patient harm is a plausible direct result, and at least three of the four other factors are met.High — serious harm is plausible but indirect, or fewer than three factors are met.
  • SeverityCould the failure directly cause serious harm, like delayed emergency care or a treatment error?
  • LatencyDoes harm arrive in minutes to hours?
  • DetectabilityWould the bedside team miss it in time?
  • ScaleDoes it affect many patients at once?
  • RecoverabilityIs the harm hard or impossible to reverse?
03  ·  Case files

AI can be manipulated. AI can disclose. AI can act.

Three clinical AI failure scenarios, one for each way it goes wrong. Written from the defender’s chair: no payloads, no targets. Open a case to investigate it.

S10 · OWASP LLM01 · LLM02
The Trust Failure
AI can be manipulated

A patient-facing symptom checker is steered into downgrading an emergency.

Patient impact
Delayed emergency care
Risk
Critical
Status
Author-developed threat model
S11 · OWASP LLM07 · LLM02
The Control Failure
AI can disclose

A clinical assistant gives up its own system prompt, and the secrets and identifiers pasted into it.

Patient impact
Privacy exposure; weakened safety controls
Risk
High
Status
Author-developed threat model
S12 · OWASP LLM06
The Agency Failure
AI can act

An over-permissioned scheduling agent is chained into mass harm at machine speed.

Patient impact
Care delayed or denied at scale
Risk
Critical
Status
Author-developed threat model
S10 · OWASP LLM01 · LLM02CriticalScenario type: author-developed threat model — not a claim that this incident has occurred
The Trust Failure: a symptom checker is steered into downgrading an emergency.
01 · What happened

A health system puts an AI symptom checker on its patient portal. It reads the patient’s message, asks follow-ups and returns a triage level: self-care, schedule a visit, or seek emergency care. To “personalize” answers, it can also read portal content: past messages, shared documents, care-team notes. That read access is the open door.

02 · Where it broke

The model can’t reliably tell the patient’s words from instruction-shaped text hidden in content it’s allowed to read. Planted text shifts its behavior: urgent presentations drift toward “self-care,” or another patient’s details appear in a reply. Two classes fire together: LLM01 (the override) and LLM02 (the disclosure).

03 · Who felt it

The output isn’t a corrupted record. It’s a person told to stay home who needed emergency care. Nothing looks wrong at the moment it matters, and every patient on that path gets the same compromised judgment.

Failure chain
Planted instruction in portal content→Bot ingests it→Triage downgraded; details leaked→False reassurance→Delayed care→Deterioration
What the security team sees vs. what the patient experiences
Security viewPatient view
Indirect prompt injection through portal contentEmergency symptoms downgraded to self-care
Untrusted retrieval source in the model’s contextTold to stay home
Drift in triage-level outputsDelay in emergency care
PHI crossed a data boundaryAnother patient’s details exposed
Patient-side impact · PSTM
Physiological dependency
High — decides whether care is sought
Latency to harm
Minutes to hours
Bedside detectability
Low — there is no bedside yet
Workaround pressure
Moderate — volume pushes patients to the bot
Downtime survivability
Moderate — a nurse line exists if staffed
Severity factors
Severity: directLatency: minutes–hoursDetectability: missedScale: every patient on the pathRecoverability: harm may not reverse→ Critical
DFR response
01

Triage

Scope the blast radius. Which model version, prompt template and data sources, and which triage decisions went out in the affected window? Treat every downgrade in that window as suspect until cleared. Establish whether PHI left the boundary.

02

Stabilize

Contain without going dark on patients. Drop to a safe default: when confidence is low or urgency signals appear, escalate to a human and stop auto-triaging. Cut the untrusted read source. A slower human queue is acceptable; a silent downgrade isn’t.

03

Treat

Fix the trust boundary, not just the symptom. Separate instructions from data, constrain what the model may read, enforce least privilege, and add an independent check that can veto an urgency downgrade. Re-run the red-team set to confirm the path is closed.

04

Recover

Complete the HIPAA breach risk assessment if PHI was exposed, and notify if required. Re-contact patients whose triage may have been wrong. Keep the attack as a permanent regression test, and carry the questions into the next AI procurement.

Control map
DFR / PSTMTrust boundary on everything the model reads; human escalation whenever urgency signals appear; downgrades reviewed as potential harm events.
NIST AI RMFMap, Measure, Manage — including adversarial testing of the deployed system.
HIPAASecurity Rule access and integrity controls (§164.312); breach risk assessment if PHI was disclosed.
FDAPremarket cybersecurity expectations where the function meets the device definition.
EU AI ActWhere classified high-risk: robustness and human-oversight obligations.
S11 · OWASP LLM07 · LLM02HighScenario type: author-developed threat model — not a claim that this incident has occurred
The Control Failure: a clinical assistant gives up its own system prompt.
01 · What happened

A clinician-facing assistant runs on a long system prompt: behavior rules, safety guardrails, the internal endpoints it calls, and — the quiet mistake teams make — a block of patient context and a couple of service credentials pasted in to “make it work.”

02 · Where it broke

An attacker steers the conversation until the model recites its hidden instructions: system-prompt leakage (LLM07). Two things spill: the guardrail logic, now a map for bypassing each rule, and any secrets, endpoints or identifiers in the prompt, which is sensitive information disclosure (LLM02).

03 · Who felt it

A leaked guardrail is load-bearing: once the rules are known, other attacks get easier. If identifiers were in the prompt, PHI left through a chat window without a database ever being queried, and a HIPAA breach risk assessment is required.

Failure chain
Conversation steered→System prompt recited→Guardrails and secrets exposed→Identifiers disclosed→Safety controls easier to bypass
What the security team sees vs. what the patient experiences
Security viewPatient view
System prompt extracted in a chat sessionNothing visible, yet
Patient identifiers stored as static prompt textTheir information disclosed through a chat
Service credentials exposedSystems holding their records become reachable
Guardrail logic now knownThe safety rules their clinician relies on can be bypassed
Patient-side impact · PSTM
Physiological dependency
Indirect — clinician-facing tool
Latency to harm
Days to weeks — it enables later attacks
Bedside detectability
Low — extraction looks like a chat
Workaround pressure
High — context gets pasted in to make it work
Downtime survivability
High — clinicians can work without the assistant
Severity factors
Severity: indirectLatency: days–weeksDetectability: missedScale: every sessionRecoverability: disclosure can’t be undone→ High
DFR response
01

Triage

Inventory exactly what lived in the prompt: secrets, endpoints, guardrail logic, identifiers. Pull the sessions where extraction succeeded. Answer two questions fast: were credentials exposed, and were patient identifiers exposed?

02

Stabilize

Rotate every credential that appeared in the prompt and revoke exposed endpoints. If the guardrails are now known to be bypassable, drop the assistant to a restricted mode rather than leave a defeated control in place.

03

Treat

A system prompt is not a vault. Move secrets to a secrets manager and pull patient context at request time under access control. Minimize the prompt, add output checks for verbatim-instruction leakage, and re-test the extraction path.

04

Recover

Run the HIPAA breach risk assessment if identifiers were exposed, and notify if required. Add extraction attempts to monitoring. Write “no secrets or PHI in prompts” into the development standard and the procurement checklist.

Control map
DFR / PSTMTreat the prompt as public: nothing in it should harm a patient if recited. Track workaround pressure, because that’s how PHI ends up there.
NIST AI RMFManage — secrets handling and leakage testing.
HIPAASecurity Rule §164.312 and §164.308; breach risk assessment on identifier disclosure.
ISO/IEC 42001AI management system controls for data and configuration.
FDACybersecurity expectations where the assistant supports a device function.
S12 · OWASP LLM06CriticalScenario type: author-developed threat model — not a claim that this incident has occurred
The Agency Failure: a scheduling agent is chained into mass harm at machine speed.
01 · What happened

A hospital deploys an AI scheduling agent with real tools: it can cancel appointments, rebook them, message patients and call internal services. It was given broad permissions so it could “handle everything,” and no human approves each action.

02 · Where it broke

Manipulated input steers the agent into a chain of actions it was technically allowed to take: cancel a clinic’s schedule, redirect patients, send messages, each step feeding the next. That’s excessive agency (LLM06). The danger is the chain running faster than anyone can read the first alert.

03 · Who felt it

An autonomous agent closes the gap between a mistake and its damage. Care gets delayed or denied at a scale and speed a human queue can’t absorb, and by the time someone notices, hundreds of actions are done.

Failure chain
Manipulated input ingested→Agent chains permitted actions→Hundreds of cancellations and messages in minutes→Care delayed or denied→Mass rebooking; missed care
What the security team sees vs. what the patient experiences
Security viewPatient view
Burst of agent tool callsAppointment cancelled without explanation
Anomalous action rate and volumeRedirected or messaged with wrong information
Untrusted input drove the action chainCare delayed or denied
Irreversible actions in the logRebooking, repeat calls, lost trust
Patient-side impact · PSTM
Physiological dependency
Moderate to high — access to scheduled care
Latency to harm
Minutes — machine speed
Bedside detectability
Visible only after the actions are done
Workaround pressure
High — staff rebooking by hand
Downtime survivability
Low at scale — manual scheduling can’t absorb it
Severity factors
Severity: directLatency: minutesDetectability: too lateScale: a whole clinicRecoverability: missed care doesn’t reverse→ Critical
DFR response
01

Triage

List the agent’s tools and permissions, then pull every action it took in the window. Scope which patients and appointments were touched and trace the input that started the chain. Sort actions into reversible and irreversible; the irreversible ones set the clock.

02

Stabilize

Cut the agent’s ability to act: revoke write permissions, drop it to read-only or full human approval, and freeze the affected scheduling queue. Stop the loop and cut the untrusted input before restoring anything.

03

Treat

Least privilege is the cure. Scope tools to the minimum, require human approval for irreversible or bulk actions, add rate limits and action ceilings, and stand up an independent monitor that can halt a runaway chain. Re-test the chain end to end.

04

Recover

Re-contact and rebook affected patients and notify per policy. Keep the chain as a regression test, and write least privilege plus human approval for irreversible actions into how every future agent is scoped and bought.

Control map
DFR / PSTMEvery irreversible action gets a human; action ceilings sized to what staff can recover in one shift.
NIST AI RMFGovern and Manage — bounds on autonomy and human oversight.
EU AI ActWhere classified high-risk: human-oversight obligations for autonomous action.
HIPAASecurity Rule availability and integrity of systems that control access to care.
FDACybersecurity expectations where scheduling is part of a device function.

The vulnerability is technical.
The consequence is clinical.

That is the gap DFR is built to close
04  ·  Control console

One method at the center. The standards around it.

DFR and PSTM don’t replace the frameworks. They set the question each framework is used to answer: what happens to the patient. Read across a row to see how each standard maps to the same response stage.

StageDFR / PSTMNIST AI RMFHIPAA Security RuleFDA (device functions)EU AI Act (high-risk)ISO/IEC 42001
Trust boundaryWhat can this AI read, say and do, and which patients sit downstream? (Dependency)MapRisk analysis; access controlThreat modeling and security architectureRisk management; data governanceAI risk and impact assessment
DetectionWould the bedside notice, and how fast does harm arrive? (Detectability, latency)MeasureAudit controls; integrityPostmarket monitoringLogging; accuracy and robustnessMonitoring and measurement
ResponseTriage → Stabilize → Treat, with patient safety ahead of uptimeManageSecurity incident proceduresVulnerability handling and remediationHuman oversight; corrective actionOperational control; nonconformity handling
RecoveryDoes the fallback work on this shift? (Downtime survivability, workaround pressure)Govern and ManageContingency plan; breach risk assessmentPostmarket communicationSerious-incident reportingContinual improvement

A high-level orientation, not a compliance crosswalk. Whether FDA or EU AI Act obligations apply depends on the product’s intended use and classification.

05  ·  Use the framework

Put a clinical AI system through it.

01

Red Team

Test a clinical AI system against patient-impact scenarios, with findings scored on the patient-side lens.

02

Tabletop

Run security and clinical operations teams through an AI failure chain, from first alert to recovery.

03

Assess

Map AI risks against PSTM, NIST AI RMF, HIPAA, FDA and your own organizational controls.

Bring a clinical AI system. We’ll ask what happens when it fails.

Book a Fit Call → Clinical AI Harm Review
Scope discipline. Every assessment in this lab is run against systems that are owned or tested with written authorization. The line between a defender and a liability is consent, and in healthcare it’s also the line that keeps patients safe. These scenarios teach detection, controls and response. They are not attack instructions.