Implementation Guide

    Testing HIPAA Controls on LLM Applications Before Go-Live

    To test HIPAA controls on an LLM application before go-live, write each control as an expected runtime behavior (allow, redact, block or escalate), run scripted interactions through every stage of the interaction path, and compare the observed result with the expected one. Keep the audit records from those runs as evidence. Passing means the control acted as designed and the record of its action can be retrieved and examined, as 164.312(b) requires.

    What to test at each stage of the interaction path

    1. 1

      1. Input

      Send prompts containing PHI of several kinds, plus prompts from users with and without authorization. Expected behavior is allow, redact or block according to the rule for that user and data type. Test malformed and obfuscated PHI as well as clean examples.

    2. 2

      2. Retrieval

      Query as users with different access rights and check which records or documents come back. A user should never receive retrieved content outside their authorization, and the retrieval request itself should appear in the record.

    3. 3

      3. Model call

      Verify what content actually reaches the model after redaction, and that the destination is the approved one. Check how data moves between components, since the integrity control for transmitted ePHI is an addressable specification that needs a documented assessment.

    4. 4

      4. Tool call

      Attempt calls outside the allowed tool set, with out-of-scope parameters, and above rate limits. Calls that require human approval should stop until an approver acts. Test the approver path with the people who will staff it.

    5. 5

      5. Output

      Probe for PHI in responses, including PHI the user did not supply. Expected behavior is redact or block, with the decision recorded alongside the original request.

    Pass/fail criteria and evidence per test category

    • PHI in prompts: pass if every seeded PHI element is redacted or blocked as configured, and the record shows the rule that fired.
    • PHI leakage in outputs: pass if no seeded or retrieved PHI reaches an unauthorized user, and each suppressed output has a record.
    • Retrieval over-exposure: pass if results for each test identity match that identity's allowed set exactly, with the retrieval request recorded.
    • Unauthorized tool calls: pass if every out-of-policy call is blocked or rate limited, and none executes.
    • Human escalation: pass if gated actions wait for approval, the approver identity and decision are recorded, and handlers complete the procedure correctly.
    • Log review: pass if an independent reviewer can retrieve the records for a scripted session and reconstruct what happened without help from the engineers.

    Why documents are not test evidence

    Many pre-launch reviews of LLM applications rest on policy statements and architecture diagrams. Those show intent. They do not show that PHI redaction, access restrictions, tool-call limits and human escalation operate on live interactions and tool calls.

    The Security Rule frames safeguards as things an entity implements. Under 164.308, the security management process requires policies and procedures to prevent, detect, contain and correct security violations. The HHS proposed rule published in January 2025 describes testing of technical controls as verifying that security measures work as designed. Its example methods include simulating security events and reviewing system logs and access records. It is a proposal, and as of November 2026 it should not be treated as a binding requirement. It is still a useful model for a test plan: each control needs an expected behavior, an observed result and a log record that connects them.

    The practical consequence is that the test plan is built from behaviors. A statement such as 'PHI is not sent to external tools' becomes a set of scripted interactions with a defined expected outcome.

    Mapping safeguards to testable behaviors

    Start with the safeguards that translate most directly. Access control (164.312(a)) becomes tests of who can retrieve what and which tools a given identity may invoke. Audit controls (164.312(b)) are designated Required and call for mechanisms that record and examine activity in systems that contain or use ePHI. For an LLM application, that means prompts, retrieval, tool calls and outputs, and it means the records can be pulled and read, not merely written.

    Transmission security (164.312(e)(1)) includes an integrity control for electronically transmitted ePHI, which is addressable. A test plan should record how integrity of data moving between application components was assessed, or why a measure was judged not reasonable and appropriate. NIST SP 800-66r2 has sections for access control and transmission security and works as a crosswalk between safeguards and the controls you select.

    Keep the mapping as a table the test team owns: safeguard, control behavior, test case IDs, evidence produced. Gaps in that table are gaps in the plan.

    Evidence artifacts and where runtime enforcement fits

    A pre-go-live cycle should leave an auditor able to see what each control was configured to allow and what it actually did. Retain the test plan and safeguard mapping, the policy configuration as it stood during testing, the scripted inputs, the expected results, the raw audit records for each run, the reviewer's log-review notes, the decisions on addressable specifications, and sign-off from the control owner. Tie each artifact to a version of the model, prompts, tools and data sources under test. Set the retention period with your compliance owners under your HIPAA documentation requirements.

    This is easier when controls are enforced in the execution path, because the enforcement point itself produces the record. Trussed enforces policy in the execution path across models, agents, tools and MCP servers, with actions that include allow, redact, block, rate limit and escalate for human approval, applied to individual interactions and tool calls. That enforcement generates audit-ready evidence mapped to HIPAA, including 164.312(b). The same mechanism you exercise in test is then the one that keeps producing evidence in production. Trussed runs in production with healthcare organizations and can be deployed self-managed in the customer cloud, with configurable retention. It is not a pre-deployment testing or red-teaming product, so the test design remains your team's work.

    Retesting and governance after go-live

    A passing result describes one configuration. Define what triggers a retest: changes to the model, prompts, tools or data sources, and changes to the environment. The January 2025 proposal uses a similar trigger, along with a review at least every 12 months, and HealthIT.gov says organizations must continue to review, correct or modify, and update protections. Adopting that cadence now is sound practice whether or not the proposal is finalized.

    Governance should cover people as well as systems. The proposal treats testing as verifying that controls work as designed and that workforce members know how to implement them. For an LLM application, that includes whoever handles escalations. Assign an owner for the evidence, keep a record of which addressable specifications were implemented and how, and rerun the log-review test periodically against production records, not only against test runs. If a reviewer cannot retrieve and examine live records, the audit control is not working, regardless of how it performed before launch.

    Test plan along the interaction path

    Input

    PHI in prompts and user authorization

    Retrieval

    Over-exposure of records and sources

    Model call

    What leaves the boundary and how it travels

    Tool call

    Unauthorized actions and approval gates

    Output

    PHI leakage and audit record completeness

    Turn the test plan into runtime evidence

    Talk to our team about enforcing policy in the execution path and producing audit-ready evidence mapped to HIPAA.

    Talk to an Expert