Why garak scans fit healthcare LLM applications
A healthcare team that runs a clinical or patient-facing assistant needs evidence of its security posture, and garak is a practical way to produce part of that evidence. garak probes LLMs for data leakage, hallucination and misinformation, among other weaknesses, so it can test the behaviors that matter most in a care setting. Its fit depends on planning each scan around where electronic protected health information (ePHI) can appear: in prompts, retrieved records, tool outputs, logs and the model's own responses. Garak is released under the Apache 2.0 license, which the maintainers describe as a free tool, and it is installed from PyPI with pip on Python 3.11 or newer. Confirm the license terms and your own use case with your legal team before you rely on them.
The REST generator is the key fit point for healthcare. It connects to any REST endpoint that returns plaintext or JSON, configured through a short YAML file, so a self-hosted clinical assistant inside your network can be tested without sending traffic to an outside model provider. Keep the target, the scan host and the report storage inside the boundary your security team has approved, and confirm that the scan host can reach the endpoint without exposing it. Every run writes a JSONL report and a garak.log file, and both may contain prompts and responses that are themselves sensitive, so decide where they live and who can read them before the first run.
A scan of a general-purpose chatbot and a scan of a patient-facing assistant share a tool but not a test plan. For healthcare, the probe selection shifts toward leakage of identifiers and clinical details, misleading medication or dosing answers, and fabricated citations. The data at risk is the patient record and the clinical workflow around it, not only the model. The evidence also changes: the output must map to the risk analysis your organization documents under the HIPAA Security Rule, so each probe family, configuration and finding should be traceable to a system, a data flow and a decision. Plan these links before the scan starts, not after the report arrives.
Which healthcare requirements shape the garak build
This table maps each healthcare requirement to the decision it changes in a garak scan, including probe scope, test data and reporting. Read it before writing the scan plan, because several rows determine what evidence the HIPAA security risk analysis can actually use.
| Requirement | What it asks for | What it means for the garak build |
|---|---|---|
| HIPAA Security Rule scope | Covered entities and business associates must protect electronic protected health information they create, receive, maintain or transmit (45 CFR 164.302). | Scope scans to every assistant that touches ePHI, including retrieval sources, logs and tool outputs, not only the chat screen. |
| Required and addressable specifications | Required specifications must be implemented. Addressable ones require a documented assessment and an equivalent measure if the standard is not reasonable and appropriate (45 CFR 164.306(d)). | Record which garak probe results support each control decision, and document why any addressable measure was chosen or set aside. |
| Business associate contract flow-down | Under 45 CFR 164.314(a)(2)(i), business associates must comply with the Security Rule, flow terms to subcontractors handling ePHI and report security incidents. | If a model host or vendor sits in the data path, ask whether its own scans cover your assistant, and scope your garak runs to include the vendor's endpoint. |
| OCR audit focus | OCR's 2024 to 2025 HIPAA audits review 50 entities' compliance with provisions most relevant to hacking and ransomware. | Prioritize injection, data leakage and exfiltration-oriented probes, and keep reports that show how findings were fixed and retested. |
| No HIPAA certification | HHS states no Security Rule standard requires certification and that private certifications do not prevent a later violation finding. | Present garak output as internal testing evidence for the risk analysis, not as a compliance certificate or attestation. |
| Proposed Security Rule revision | HHS proposed a major revision on 6 January 2025 (90 FR 898); as of October 2026 no final rule has been published. | Design reports so they can be re-mapped if the final rule changes requirements, and confirm the status before each assessment cycle. |
| NIS2 health sector listing | NIS2 Annex I lists health as a sector of high criticality, including healthcare providers and medical device manufacturers. | For EU-based providers, add cross-border data flows and incident reporting duties to the scan scope and the evidence pack. |
| GDPR Articles 32 and 34 | Article 32 requires security appropriate to risk. Article 34 covers notifying data subjects of high-risk breaches. CNIL fined a hospital EUR 500,000 on 3 September 2026 for access control gaps. | Include access-control and unauthorized-disclosure probes with authenticated and unauthenticated user roles, and keep records that support breach notification decisions. |
Which garak modules and settings matter for clinical assistants
A patient-facing assistant is exposed to anyone on the internet or in the patient portal, so the probes that matter most are the ones that try to extract personal information, push the assistant into making clinical claims it should not make, and override its instructions. Prioritize data leakage probes that attempt to elicit other patients' details or system content, hallucination and misinformation probes that check whether the assistant invents dosages, diagnoses or appointment facts, and jailbreak and prompt injection probes because end users are the attackers here. Describe the endpoint in a REST generator YAML file that mirrors the production request and response format, and keep the system prompt identical to the one users receive, since a different prompt in testing produces misleading results.
- Probe families: start with data leakage and misinformation, then add jailbreak and prompt injection coverage for the chat surface.
- REST generator YAML: point the generator at the staging copy of the patient-facing endpoint, with authentication handled through the same method production uses.
- Generations per prompt: keep the default of 5 for probes that can fail intermittently, and record the setting in the scan configuration so reruns match.
- Detectors and harness: the default probewise harness runs each probe with its recommended detectors, which is a reasonable starting point. Review any detector whose verdicts a clinician would dispute before relying on the result.
- Report retention: keep each JSONL report and the garak.log file under access control, because transcripts may contain sensitive content from test prompts.
Confirm current probe names, detector mappings and generator options against docs.garak.ai before you write the configuration.
Documentation and summarization assistants sit inside the clinical workflow and receive full clinical notes, so the main risk is that the model reveals or mixes up patient details across records, or that it states findings the source note does not support. Probes for data leakage should be run with synthetic records that look like real notes, and hallucination probes should check whether the assistant adds facts absent from the input. Prompt injection matters when notes or pasted outside documents contain instructions the model might follow, so include injection probes that place instructions inside the content being summarized. The endpoint configuration should send requests the way the clinical application does, including any structured fields, so the scan exercises the same path.
- Probe families: prioritize data leakage and hallucination, with prompt injection probes that place instructions inside the document body.
- Test inputs: use synthetic clinical notes, not copies of production records, and document how they were generated.
- System prompt handling: capture the exact system prompt and template the application uses, and store its version alongside the scan results.
- Generations and harness: keep the default generations per prompt unless a probe is too slow to run at that count, and note any change in the run configuration.
- Log handling: retain the JSONL report and garak.log with the scan version and configuration so a later reviewer can trace each verdict to its input.
Confirm with your clinical informatics team which fields the endpoint actually receives before writing the generator file.
A retrieval assistant answers from a knowledge base of guidelines, formularies or internal protocols, so its failures combine retrieval and generation. Scans should check whether injected instructions inside retrieved documents change the answer, whether the assistant reveals chunks it should not expose to the requesting user, and whether it states guidance that the retrieved source does not contain. Because garak sends prompts to the endpoint, the RAG pipeline's retrieval step must be included in the tested path, not bypassed with a bare model call. Treat the knowledge base content used during testing as data that may carry protected information and limit who can read it.
- Probe families: prioritize prompt injection through documents and data leakage, then hallucination probes checked against the cited source.
- Endpoint scope: test the full pipeline through the REST generator so retrieval, filtering and the model are all exercised.
- Generations per prompt: the default of 5 helps catch intermittent leakage, so keep it unless the pipeline's cost or rate limits require a change.
- Detectors: check how the detectors judge answers that correctly quote a source, since a faithful quotation should not count as a failure.
- Evidence retention: store the JSONL report, garak.log and the knowledge base version together, because a result depends on which documents were indexed.
Confirm how your retrieval layer passes user identity and access rules, since leakage findings depend on them.
Testing without real patient data
Scan with synthetic or de-identified prompts and seeded fake records, never with live patient charts. A garak run sends many prompts per probe and, by default, makes 5 generations per prompt, so a single scan can replay a large volume of text through the target. If that text contains real ePHI, the test itself becomes a disclosure: the prompts are copied into the report, the model output is copied into the report, and both land on machines that may not be covered by the access controls on the production record system. Build the test corpus from fabricated patients, clinicians and encounters that exercise the same formats (medical record numbers, dates of birth, medication names, insurance IDs) without matching any real person. Seed these records only into a non-production copy of the assistant's retrieval store, knowledge base or test database, and document how each fake record was generated so the reviewer can confirm nothing was copied from production.
Keep the corpus and the scan output out of production logs. Confirm that the scanning host does not forward to production log pipelines, that the assistant's own request logs in the test environment are separated from production, and that the probe prompts are not written to any shared chat or ticketing channel. Then decide where the two garak artifacts live: the JSONL report of every attempt and its evaluation, and the garak.log file, which is continued across runs. Both should sit on access-restricted storage with named readers, a retention period set by your records policy, and encryption at rest. Treat a report as sensitive whenever the model output could echo a fabricated identifier that resembles a real one, and plan a review step that flags any hit on a PII-style detector before the report is shared with a vendor or an auditor.
Before the first scan, have your privacy officer approve the test data approach in writing. The approval should cover the source of each synthetic dataset, the environment it is loaded into, who may run scans and read outputs, where artifacts are stored and how long they are kept, and the steps for a report that unexpectedly contains sensitive text. Ask the privacy officer to confirm that the approach fits your obligations under the HIPAA Security Rule, which requires covered entities and business associates to protect ePHI they create, receive, maintain or transmit (45 CFR 164.302). The same approval gives the security risk analysis a documented boundary, so the scan evidence later shows what was tested, where, and under whose authority.
How a healthcare garak rollout runs
The sequence moves from defining the assistant and its ePHI flows to a documented, rescanned set of results that feeds the HIPAA security risk analysis. Each phase produces an artifact the clinical, privacy and security owners can review. Durations and effort depend on the endpoint and scope, so agree them in writing before work starts.
Scope the assistant and its data flows
Document what the assistant does, who uses it (patients, clinicians, staff), which model or vendor serves it, and which systems it reads from or writes to, such as the EHR, scheduling or a knowledge base. Confirm whether the deployment is a covered entity or business associate system, since that determines which Security Rule obligations apply. The step is done when the team agrees on a written scope statement and a data flow diagram that both security and clinical owners have signed off.
Map ePHI touchpoints across the stack
Trace every point where electronic protected health information enters, is stored, is logged or leaves the system: prompts, retrieved documents, conversation history, tool calls, telemetry and vendor-side retention. Mark which touchpoints are inside your infrastructure and which depend on a third party, and check for business associate agreements where a vendor handles ePHI. The output is a touchpoint register that later tells you which garak probe results affect real patient data exposure and which only affect the model's behavior.
Build a non-production target and test data set
Stand up a non-production instance of the assistant that mirrors the production configuration, including system prompt, retrieval sources and guardrails, but uses no real patient records. Build a synthetic test data set with fabricated identifiers, names, dates of birth and diagnoses, and seed it into the knowledge base where the assistant could expose it. Confirm the target is reachable from the scanning host through a REST generator or another supported connection. The step closes when a smoke test returns responses from the non-production endpoint and the synthetic data is verified as non-identifying.
Run a baseline garak scan
Configure a run with the probe families that match the touchpoints, such as data leakage for PII exposure and hallucination or misinformation probes for clinical claims, and keep the default generation count unless the owners agree otherwise. Save the configuration file with the run so it can be repeated. The run writes a JSONL report of every attempt and its evaluation, and a garak.log file. The step is complete when the baseline report and configuration are stored together under version control or an equivalent record.
Triage FAIL results with clinical and privacy owners
Review each probe marked FAIL with the clinical lead and privacy officer, not only the engineers who ran it. For each failure, decide whether the output is a privacy exposure, a misleading clinical statement, a safety issue or a detector false positive, and record the reasoning. Assign a severity and an owner to each finding. The output is a triage log that separates confirmed issues from false positives, which keeps the remediation list short and defensible.
Fix findings and rescan the target
Address confirmed findings through controls such as tighter system prompts, retrieval filtering, output guardrails, access restrictions on the data source or removal of sensitive content from the knowledge base. Rerun the same configuration against the same probe set, then compare the new report with the baseline. Note that scores can shift between garak releases, so record the version used for each run. The step is complete when each confirmed finding has a documented fix and a rescan result showing the change.
Feed results into the security risk analysis
Bring the baseline report, triage log, fixes and rescan results into the organization's HIPAA security risk analysis, mapping each finding to the relevant Security Rule area and documenting any addressable specification decisions and their reasoning. Confirm with your compliance lead how scan evidence is recorded, since HHS does not issue HIPAA certifications and scan output supports, but does not replace, the risk analysis. The step closes when the risk analysis references the scan evidence and records the schedule for rescans after model, prompt or data changes.
How garak scans, test data and evidence fit together
The scan starts on an engineer's workstation, where the garak CLI reads a YAML config that describes the REST generator for a non-production clinical assistant inside the client network. Synthetic patient records and probe prompts go to that endpoint, and responses return to garak's detectors, which score each attempt. Results land in a JSONL report and a continuing garak.log, and the report is the artifact that feeds the HIPAA security risk analysis file. Check that no real ePHI enters the test set and that the report is stored under the same controls as other risk analysis evidence.
Scan flow from garak to the HIPAA risk analysis file, inside the client network.
How garak results support HIPAA risk analysis and other frameworks
A garak report is testing evidence for specific risks in a healthcare assistant, not proof of HIPAA compliance. The cards below show where scan results fit into the risk analysis, the business associate file and the framework options that reviewers may ask about, and what each one can and cannot establish.
Risk analysis evidence
The HIPAA Security Rule requires covered entities and business associates to conduct an accurate and thorough assessment of risks to ePHI, and garak output can serve as one input for an assistant that handles patient data. Record the probe families, the generator configuration, the model version and the date of each run, then tie each failing probe to a threat and a mitigation in your risk register. A scan shows what was tested on a given day, so it does not show that the risk is closed.
Security Rule textAddressable specification documentation
Many technical safeguards are addressable, which means you must assess whether each one is reasonable and appropriate, document the decision if you do not adopt it, and implement an equivalent alternative where reasonable. Use garak results to justify choices such as output filtering or access restrictions on a patient-facing assistant. Document the assessment itself, because a scan result without a written decision leaves the reviewer with no record of why a control was or was not chosen.
Security Rule textBusiness associate obligations for AI vendors
If a model provider, hosting company or AI vendor creates, receives, maintains or transmits ePHI for you, the business associate contract must require Security Rule compliance and flow the same terms down to subcontractors. Ask vendors to supply scan results or testing summaries for the model and endpoint you use, and confirm how they report security incidents. Do not treat a vendor's own scan as sufficient, because you still need to test the application you deploy, including prompts, retrieval sources and logging.
Section 164.314 textNIST SP 800-66 Rev. 2 as guidance
NIST SP 800-66 Rev. 2, published in February 2024, is a resource guide that maps key activities and sample questions to each Security Rule standard. HHS lists it as informational rather than legally binding, so it helps you structure the risk analysis and the questions a scan must answer. Map each garak probe family to the standard it supports, and record that mapping so an assessor can follow your reasoning from the rule to the test.
NIST SP 800-66 Rev. 2HITRUST CSF as an assessment option
HITRUST CSF v11.9.0 is a control framework that some organizations choose for assessment, and it can accept AI-related controls as part of a wider program. It is not a HIPAA certificate: HHS states that no Security Rule standard requires certification and does not recognize private certifications as proof of compliance. If you pursue a HITRUST assessment, ask the assessor how garak evidence will be evaluated and which control specifications it supports, since the assessor and not DeployOpen decides the outcome.
HITRUST v11.9.0 releaseNIS2 and GDPR for EU data
For a healthcare assistant serving EU patients, GDPR Articles 32 and 34 require appropriate security for personal data and notification of affected individuals after certain breaches. NIS2 Annex I lists health as a sector of high criticality. Scan results can show that leakage of personal data was tested, but they do not prove that a security measure is appropriate. Confirm with your data protection officer which probes and retention rules your records of processing and breach procedures need.
GDPR textWhat healthcare teams ask before scanning their LLM assistant
What does the effort of a garak scan depend on?
The effort depends mainly on four things: the endpoint type, the probe scope, how test data is prepared and the volume of results to triage. A bare model reachable over an API is simpler to configure than a clinical assistant that sits behind retrieval, a guardrail and a patient portal, because each layer adds configuration and something new to test. Probe scope decides how many attack families run, and each additional family adds generations and review work. garak makes 5 generations per prompt by default, so run size grows quickly with the probe list. Test data preparation covers synthetic patient records and clinical scenarios, and triage covers the JSONL report of every attempt that a clinician or reviewer must read. Confirm each of these four inputs with your own endpoint owners before asking for a quote.
Can our internal team run garak without a partner?
Yes, garak is free, licensed under Apache 2.0 and installed from PyPI with pip, so an internal engineering team can run it on its own. The harder parts are usually outside the tool: writing a REST generator configuration for your assistant, choosing probes that match clinical risk, creating synthetic test data, and interpreting results in a way that a clinical safety reviewer and a privacy officer will accept. Teams that already run security testing often keep the scan running in-house and buy help for scope design, evidence packaging and retesting. Decide early which of these you will staff, because a fixed-scope engagement with DeployOpen is agreed in writing before work starts and its deliverables should match what your team cannot cover.
How long does a first garak scan cycle take to plan?
No supplied fact gives a duration for a healthcare scan cycle, so plan from your own inputs rather than a published figure. The planning steps that set the calendar are getting access to a non-production copy of the assistant, agreeing the probe list, preparing synthetic test cases, and scheduling clinical and privacy review of the results. Each of these can wait on another team. Ask any partner for a timeline tied to a written scope, and confirm with your change management office how long a test environment change takes before you commit a date.
Do we need real patient data to test a healthcare assistant with garak?
No. garak sends prompts to your endpoint and evaluates the responses, so the test set can be synthetic patient records and invented clinical scenarios that exercise the same behavior. Using real protected health information in test prompts would bring the test environment and the scan logs under the HIPAA Security Rule, which applies to electronic protected health information that covered entities and business associates create, receive, maintain or transmit (45 CFR 164.302). Keep the scan on a non-production environment, restrict who can read the garak.log file and the JSONL report, and confirm with your privacy officer what the test data is allowed to contain.
Does running garak satisfy HIPAA certification?
No. HIPAA has no certification, and HHS states that no Security Rule standard requires an entity to certify compliance and that private certifications do not prevent HHS from later finding a violation (HHS FAQ 2003). A garak scan is testing evidence that can feed your security risk analysis and your review of technical safeguards, but it is not a certificate and it does not replace the risk analysis itself. The HHS Office for Civil Rights enforces the rule through complaints, compliance reviews and audits, so your records should show what was tested, what was found and how it was fixed. DeployOpen prepares systems, controls and evidence for compliance assessments but does not issue audit reports, attestations or certifications.
What do we need from clinical, privacy and security staff?
Each group owns a decision the scan cannot make alone. Clinical staff should define which answers are unsafe, such as dosing advice, diagnostic claims or misleading statements about treatment, and review flagged responses. Privacy staff should approve the synthetic data set, confirm that no protected health information enters test prompts and agree how the report is stored and shared. Security staff should provide a non-production endpoint, credentials with least privilege, logging access and a path to retest after fixes. Under a business associate arrangement, your contract must already require the business associate to comply with the Security Rule and report security incidents (45 CFR 164.314(a)(2)(i)), so confirm those terms before any vendor receives access.
What should a scan report contain for HIPAA security risk analysis?
The report should show the endpoint and version tested, the garak release and configuration used, the probe families run and the detectors applied, and the JSONL record of attempts with their evaluations. Add the clinical review decisions, the findings that were accepted, mitigated or transferred, and the retest results. The Security Rule's implementation specifications are either required or addressable, and for an addressable one you must document why a measure is not reasonable and appropriate and what equivalent measure you use (45 CFR 164.306(d)). NIST SP 800-66 Rev. 2 gives sample questions for each standard and can help map findings to your risk analysis, although HHS lists it as informational, not legally binding.
What to ask a partner before hiring for garak scanning
Start with the test data, because it decides whether your scans can run at all. Ask the partner how they build synthetic clinical test data: which record shapes they generate (for example, medication lists, discharge summaries and appointment messages), whether the synthetic identifiers are generated from scratch or derived from any real dataset, and who approves the data set before it reaches a scan. A partner who says they used production extracts for "realism" has moved your ePHI into their test environment, and that should end the conversation. Also ask how the planted canary values are tracked in the garak reports, since those values are what the PII leakage probes look for.
Next, ask where the reports live. Each garak run writes a JSONL report of every attempt and its evaluation, plus a garak.log file that continues across runs, and both can contain prompts and model outputs that resemble patient content. Ask which systems hold these files, who can read them, how long they are kept, how they are encrypted, and whether they are deleted at engagement close. Confirm that the partner's storage sits in an environment you approve, and check whether any reporting or hosted dashboard they use is covered by a business associate contract with you, or whether it is excluded entirely.
Ask how findings map to HIPAA safeguards, and get the answer in writing. A credible partner will link each finding to the relevant Security Rule standard and implementation specification in 45 CFR Part 164 Subpart C, and will say which findings feed your risk analysis rather than claiming they close a requirement. Ask them to confirm, in their own words, that they do not offer HIPAA certification, because HHS does not recognize private certifications under the Security Rule. Finally, ask how the partner handles business associate terms for their own tooling: whether they will sign a business associate agreement when they touch ePHI, and whether that agreement flows the Security Rule obligations down to any subcontractor that handles it. Finally, require that retests are scoped in writing, naming the probes, the model versions and the fixes covered, so that the retest proves what changed.
How DeployOpen works on this
DeployOpen plans and runs garak scans for healthcare LLM applications as a fixed-scope engagement, with the written scope fixing which assistants, endpoints, probe sets and evidence are covered. The work stays inside the client's own infrastructure, and the output is a set of reports the client's security and compliance teams can review.
How we scope
- Confirm which clinical and patient-facing assistants, endpoints and model versions are in the written scope
- Agree which data classes are in scope and confirm that testing uses synthetic or approved non-patient data only
- Map probe families to the risks the client selects, such as PII leakage, hallucination and misleading claims
- Define the evidence package, including reports, configuration and the risk analysis entries it feeds
How we build
- Install garak in the client's environment and pin the release version used for the scan
- Write REST generator configuration for the client's endpoints, including authentication handled through approved secrets stores
- Set repeatable run configurations with fixed probe selection, generation counts and detector settings
- Test the scan setup against a known target before running it against the production-like assistant
How we hand over
- Deliver JSONL reports, run logs and configuration files stored under the client's own retention rules
- Document each finding with the probe, detector, affected behavior and proposed remediation owner
- Provide a runbook so the client's team can repeat scans after prompt, model or release changes
- Walk through results with clinical safety, privacy and security stakeholders before the handover closes
How we support
- Retest fixes with the same probe configuration so before and after results can be compared
- Offer ongoing support, scheduled rescans and upgrade planning as a retainer after the initial engagement
- Confirm with the client's compliance team how scan records map to their HIPAA security risk analysis and documentation
- Agree on support scope and response expectations in writing before the retainer begins

