Can NeMo Guardrails help with HIPAA, and where does it stop?
If you are a covered entity or business associate and want an LLM assistant that never sends protected health information to a model or writes it into logs, NeMo Guardrails can carry part of that work. Its input rails can detect and mask personal data before a prompt reaches the model, and its output and retrieval rails can check what comes back. It does not, by itself, satisfy the HIPAA Security Rule. The rule is a set of administrative, physical and technical safeguards, documentation requirements and business associate obligations, and no single toolkit covers them all.
Be precise about what the rule asks for. HIPAA has no certification. HHS states that no Security Rule standard requires an entity to certify compliance and that HHS does not recognize private certifications, so any vendor or consultant claiming a HIPAA certificate is making a claim the rule does not support. The HHS Office for Civil Rights enforces the Security Rule through complaint investigations, compliance reviews and audits, and in those reviews it asks for evidence of how each safeguard works in practice. The question to answer before the build starts is which of your safeguards the guardrail configuration supports and which must be handled elsewhere.
DeployOpen plans, implements and documents self-hosted guardrail deployments in your infrastructure, and prepares the systems, controls and evidence your compliance and security teams will review. DeployOpen does not issue audit reports, attestations or certifications, and an independent assessor will judge your position. Ask your privacy and security officers to confirm which covered entity or business associate obligations apply to the assistant, and whether the model host, trace store and log pipeline are covered by a business associate agreement under 45 CFR 164.314 before any PHI is in scope.
Mapping Security Rule requirements to NeMo Guardrails capabilities
This table pairs Security Rule requirements with what NeMo Guardrails does, what the team must configure, and where the platform only partly helps. Read it as a boundary map: the rails reduce ePHI disclosure to models and logs, while access control, audit, business associate terms and documentation remain your responsibility.
| Requirement | Platform capability | Configuration |
|---|---|---|
| Technical safeguards, 164.312 (unique user identification, required) | Partial: guardrails do not authenticate users; they only see the request the application passes in | Identify each caller in the application layer and pass that identity to the guardrails server; keep it out of prompts |
| Technical safeguards, 164.312 (emergency access procedure, required) | Not provided by the platform | Document a break-glass path for the application and its config repository outside NeMo Guardrails |
| Technical safeguards, 164.312 (automatic logoff, addressable) | Not provided by the platform | Set session timeouts in the front-end or gateway that calls the guardrails server |
| Technical safeguards, 164.312 (encryption, addressable) | Partial: TLS and at-rest settings depend on your server and trace store | Terminate TLS in front of the server and encrypt trace and log storage; confirm settings with your platform team |
| Limiting ePHI disclosure to models (input rails and PII detection) | Partial: detectors find and mask common identifiers but may miss free-text PHI | Enable input rails and a PII detector, then test with synthetic clinical notes that contain each identifier type you handle |
| Response handling (output rails) | Partial: output rails screen replies for leaked identifiers, not every clinical fact | Add output rails for identifiers and define a block or mask response for the user |
| Risk analysis and policy, 164.308 | Not provided by the platform; guardrail configs can document the policy they enforce | Record which identifiers each rail covers and link the rule set to your risk analysis |
| Business associate terms, 164.314(a)(2)(i) | Not provided by the platform; applies to any third-party model or moderation API that receives ePHI | Execute a business associate agreement with each external provider, or keep those calls on self-hosted models |
| Documentation, 164.316 and change control | Partial: config.yml and Colang files can be versioned, but approvals are your process | Store rails in version control, require review for changes and keep evaluation results with each release |
Configuring guardrails so PHI is masked before the model sees it
This sequence limits protected health information to the systems you have scoped, masks it before any prompt reaches a model, and keeps traces and logs under your own controls. Each step ends with a check that produces evidence for your Security Rule file.
Scope the systems that handle ePHI
Your compliance or privacy lead and the application owner list every component that will create, receive, maintain or transmit electronic protected health information: the chat front end, the guardrails service, the model endpoint, retrieval stores, trace backends and log pipelines. The HIPAA Security Rule applies to ePHI in these systems, so the list defines where masking, access control and retention must be enforced. Confirm with your counsel which parties are covered entities or business associates. Done when the scope document names each system, its data flows and its owner.
Deploy the guardrails runtime in your infrastructure
Your platform team installs NeMo Guardrails 0.25.0, either as the Python library inside your application or as a guardrails server built from the provided Dockerfile and loaded with your configuration folder. Use Python 3.11, 3.12 or 3.13, the versions this release requires, and run the service in cloud accounts, data centers or air-gapped networks you control. Keep the configuration folder in version control so changes are reviewable. Done when the service starts from a pinned image or environment and answers a test request on a network segment you have approved.
Add input rails with self-hosted PII detection
Your engineers add input rails that run before the model call, using self-hosted detectors such as Presidio or regex rails for identifiers your organization uses, such as medical record numbers or member IDs. The rail masks or blocks matched values so the model receives placeholders rather than the original identifiers. Confirm detector coverage against your own data, because generic detectors may miss local identifier formats and clinical free text. Done when a masked test prompt reaches the model with placeholders and the rail outcome is written to the test record.
Apply output and retrieval rails to RAG content
If the assistant retrieves chart notes, policies or documents, your team adds retrieval rails that check chunks before they enter the prompt and output rails that check the model response before it reaches the user. This stops PHI from older records or other patients' data leaking through retrieved text or generated answers. Authorization for which records a user may retrieve stays in your retrieval layer and identity system, not in the guardrail. Done when a test query against a seeded document set returns no unmasked identifiers in the answer.
Restrict trace capture of prompts and responses
Your platform engineers review the telemetry settings of the guardrails service and any tracing or observability integration, then disable or restrict capture of raw prompts, retrieved chunks and responses. Where content capture is needed for debugging, limit it to masked content and a named role. Verify each setting against the current NeMo Guardrails documentation for the version you run, because option names change between releases. Done when a blocked or masked request produces a trace that contains no unmasked identifiers.
Route logs to controlled storage with retention
Your operations team sends guardrail application logs, access logs and audit events to storage you control, with access limited to named roles and a retention period set by your records policy. Confirm that the log pipeline does not write masked-out values back in through error messages or stack traces. Protect the storage with encryption and access logging, which map to Security Rule technical safeguards you will document. Done when a test of the log pipeline shows that a seeded identifier is absent from every destination and that retention settings match the approved policy.
Test with PHI-like samples and record results
Your security or QA team builds a test set of synthetic records that mimic PHI formats, including names, dates, record numbers, free-text clinical notes and retrieved chunks, and runs it through every rail and every log destination. Record the input, the expected outcome, the actual outcome and the reviewer for each case, then keep the results with the configuration version they tested. Repeat the run after each configuration or detector change. Done when the test report shows zero unmasked identifiers in model inputs, outputs, traces and logs, with any gaps logged as open findings.
Evidence auditors and OCR investigators ask for
OCR investigators and auditors do not accept a guardrail as proof of anything on its own. They ask for records showing how the rails were configured, tested, logged and governed over time. The six items below connect the NeMo Guardrails configuration to the Security Rule safeguards around it.
Versioned configuration under change control
Keep the config.yml file, Colang files and Python action files in source control, with every change tied to a reviewed pull request and an approver. Auditors will sample changes to see who approved a rail that masks identifiers, when it changed and what it replaced. Confirm that the deployed server image matches a tagged commit, so you can show exactly which configuration handled PHI on a given date. Review the file set again whenever you upgrade NeMo Guardrails, because a library version change can alter how a configuration behaves.
Detector test results with masked samples
Keep a dated test suite that sends sample inputs containing synthetic identifiers, such as invented names, record numbers and dates of birth, through each input and output rail. Store the masked outputs beside the inputs so a reviewer can confirm what reached the model. Record the rail version, the detector model and the configuration commit used for each run. Rerun the suite after every configuration change and after any change to a detector model, and keep failed runs with the fix that followed.
Trace and log capture settings
Document which fields the guardrails trace, log or export, including prompts, model responses, retrieved chunks and tool arguments. Show the configuration that turns content capture on or off for each environment, and the retention period set on the log store. Investigators will ask whether raw PHI ever reached a log, so keep a sample of stored log records alongside the settings that produced them. Confirm with your platform team how the telemetry pipeline handles records that were captured before a rail was added.
Access control and audit logs for the server
Record who can deploy, configure and call the guardrails server, and how those roles are granted through your identity provider. Keep audit logs of administrative actions on the host, the container registry and the configuration repository, and check that they are retained and protected from editing. Review access on a set schedule and keep the review record. Access to the server and its logs is itself a Security Rule concern, because the logs can contain ePHI if capture is misconfigured.
Risk analysis and policy references
Your risk analysis under the Security Rule's risk analysis specification should name the guardrails as a control for each place PHI can reach a model, and state the residual risk. Write a policy that describes how prompts are masked, who may change the rails and how exceptions are handled, and cross-reference it to the configuration repository. Update both when the model, the detectors or the data flows change. NIST SP 800-66 Rev. 2 gives sample questions you can use to test whether the analysis is complete.
NIST SP 800-66 Rev. 2Business associate agreements for external services
Any external model API, hosted detector, managed log store or support vendor that can receive or store ePHI needs a business associate contract that meets 45 CFR 164.314(a)(2)(i). Keep a current list of every external service in the guardrail data path, with the agreement that covers it and its subcontractors. Confirm with each vendor whether a masked prompt still counts as ePHI in their processing, because that decides whether they need an agreement at all. Self-hosted detectors and models inside your own boundary remove that vendor from the list.
45 CFR 164.314 textHow PHI flows through the guardrails and where it can leak
PHI can reach a model, a log or a trace even when the final answer looks clean. In a NeMo Guardrails deployment, a request moves from the application to the guardrails server, through input rails, into the model call, back through output rails, and then into whatever writes traces and logs along the way. Map that path on a whiteboard before you configure anything. Mark three trust boundaries: the application to the guardrails server, the guardrails server to any external model endpoint, and the guardrails server to your log and trace backends. Each crossing is a place where PHI leaves the control of the team that is accountable for it. Confirm whether your traffic crosses any boundary to infrastructure outside your own network, and whether the model endpoint is self-hosted or a third-party API.
Input rails see the user's message before the model does, so they are the first place to mask identifiers such as names, dates of birth or record numbers. Output rails see the model's reply, which can repeat or infer PHI that was never in the prompt. Retrieval rails are a separate exposure: retrieved chunks from a record store or document index are sent to the model as context, and a clean final answer does not show that a full chart excerpt was included in the prompt. Test each of these points with synthetic patient records and check what the request, the retrieved chunks and the trace each contain. Confirm with your platform team exactly which fields the server and any tracing integration record by default, since those defaults decide what persists in your log store.
Logs and traces are the most common leak because they are written for debugging and kept for longer than the conversation. Before the page's later sections on masking and trace settings, decide who may read captured content, where it is stored, how long it is retained, and how it is deleted on request. Treat the log and trace backends as systems that hold ePHI when they receive PHI, which brings them into the scope of your risk analysis and access controls under the HIPAA Security Rule. Ask your vendors and your own engineers to confirm in writing which components persist prompts, completions and retrieved context, so the data flow diagram you give an assessor matches what the system actually does.
Where PHI is masked, logged and kept inside the trust boundary
The request starts at the client and passes through the application into NeMo Guardrails, where input rails run PII detection before anything reaches the self-hosted model. Output rails check the response before it returns to the application. Logs and traces are written to separate sinks, so the team should confirm that masked text, not raw prompts, is what reaches them. Everything inside the boundary runs on infrastructure the organization controls; any external endpoint should be marked and reviewed as a business associate question.
Request path with PHI masking points, log and trace sinks, and the trust boundary.
Questions healthcare teams ask before bringing in a partner
What does a NeMo Guardrails HIPAA engagement cost and what drives the price?
The cost follows from the written scope, and DeployOpen does not publish a price list. The main drivers are the number of systems that send prompts or receive responses, how many data sources feed retrieval, which PHI detectors and models you choose, and how deep the evidence package must go. Software is free under the Apache 2.0 license, so the paid work is planning, configuration, integration, testing and documentation. Ask for a quote that separates one-time build work from recurring items such as retesting, upgrades and model hosting. Your own staff time for reviewing the Security Rule documentation also belongs in your internal estimate.
How long does a PHI masking project take to deliver?
Duration depends on the scope and on your environment, so no fixed timeline applies to every organization. The longest steps are usually the data flow mapping, approvals for self-hosted detectors and model infrastructure, and the test cycles that prove masking works on realistic but non-production records. Each engagement is fixed-scope, so the start, milestones and end dates are agreed in writing before work begins. Confirm which environments are in scope, who must sign off on each change, and how many review rounds are included.
What must our team provide before a partner starts?
A partner needs enough of your environment to design controls that match how PHI really moves. Typically this includes:
- A system inventory listing every application, model endpoint, log store and trace backend that could receive user input
- ePHI data flow diagrams showing where patient data enters, is transformed, stored and leaves
- Named policy owners who can approve masking rules, retention periods and access decisions
- Test data that resembles your records, with synthetic or de-identified samples where live PHI should not be copied
- Current business associate agreements for hosting providers and model vendors
Missing items usually slow the work more than the technical build does.
Can our own team implement HIPAA controls for NeMo Guardrails without a partner?
Yes, a capable internal team can do this if it owns the Security Rule documentation and the testing. The Security Rule in 45 CFR Part 164 Subpart C applies to covered entities and business associates for all ePHI they handle, so the obligations stay with your organization whoever builds the configuration. Your team needs staff who can write and maintain configuration, run adversarial tests against masking rails, review traces and logs for leakage, and document decisions for each addressable implementation specification. A partner can fill gaps in that skill set or add independent testing, but accountability does not transfer.
Can we get HIPAA certified for our NeMo Guardrails deployment?
No, there is no HIPAA certification. HHS states that no Security Rule standard requires an entity to certify compliance, that it does not endorse or recognize private organizations' certifications, and that such certifications do not prevent HHS from later finding a violation (HHS FAQ 2003). Any vendor or consultant offering a HIPAA certificate for a deployment should be treated with caution. What you can prepare is evidence: documented risk analysis, configuration records, test results and access logs. Enforcement by the HHS Office for Civil Rights runs through complaints, compliance reviews and audits, so that evidence is what you show during those reviews.
What is the financial exposure if PHI reaches a model or a log?
The exposure depends on the facts of each incident and on how the organization responded. For penalties assessed on or after January 28, 2026, the inflation-adjusted HIPAA civil money penalty ranges from $145 per violation with no knowledge to $2,190,294 per violation for uncorrected willful neglect, with a calendar-year cap of $2,190,294 (45 CFR 102.3, 91 FR 3666). Those figures are the per-violation range set by the regulation, not a forecast for your organization. Your risk analysis should record how a leak in prompts, traces or logs would be detected and contained.
Will the Security Rule be revised, and should we wait for it?
Do not wait. HHS proposed a major Security Rule revision on January 6, 2025 (90 FR 898), but as of October 2026 no final rule has been published, and the Unified Agenda projects final action for July 2027. The current rule in 45 CFR Part 164 Subpart C applies today. Build controls that map to the existing standards and address the proposal's direction where it is clear, then track the rulemaking through the Federal Register and the Unified Agenda so that changes are planned rather than discovered late.
How DeployOpen works on this
DeployOpen treats HIPAA-aligned guardrail work as a scoped engagement inside your own infrastructure. We agree what the NeMo Guardrails configuration must do with PHI, build and test it in your environment, and hand over the configuration, tests and documentation your compliance and security teams can review.
How we scope
- Map which PHI data elements reach prompts, retrieved chunks, responses and traces in your current or planned assistant.
- Agree in writing which rails, detectors and self-hosted models are in scope, and which are excluded.
- Confirm the logging, trace and retention settings your compliance team requires before any build starts.
- Record the Security Rule safeguards outside the guardrails that your organization owns, so the scope shows the boundary clearly.
How we build
- Deploy the guardrail configuration with Python or server deployment in the infrastructure you control, including self-hosted detectors where chosen.
- Configure input and output masking rules and test them against representative PHI samples from synthetic or approved test data.
- Set trace and log content capture to the agreed level, and verify that masked values do not appear in stored logs.
- Version the configuration files and keep change records that match the approved scope.
How we hand over
- Deliver the configuration files, custom actions, test results and deployment notes in a form your team can run and review.
- Document each rail, the PHI categories it covers, known gaps and the settings that must stay fixed in production.
- Walk your engineering and compliance staff through logging settings, evidence locations and the owner for each control.
- List the business associate, access control and audit items that remain your responsibility after handover.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, scoped separately from the initial engagement.
- Plan upgrades of NeMo Guardrails and retest masking rules after each version change, with the breaking changes reviewed first.
- Rerun PHI leakage tests when prompts, models, retrieval sources or logging settings change in your environment.
- Confirm with your counsel and compliance team how DeployOpen's work fits into your wider HIPAA program, since DeployOpen does not issue certifications.
Sources and further reading
- 45 CFR Part 164 Subpart C, Security Standards for the Protection of Electronic Protected Health Information ↗
- Appendix A to Subpart C of Part 164, Security Standards: Matrix ↗
- NVIDIA-NeMo/Guardrails (GitHub) ↗
- NeMo Guardrails documentation ↗
- NeMo Microservices 26.3.0 archived documentation (sunset notice) ↗

