Treat a jailbroken model as a compromised component
Once a model has been jailbroken, it should be treated as a compromised component. The PHI it can reach defines the maximum a jailbreak can expose, so the question to ask is not what the model has been instructed to do, but what it is able to access.
How PHI can leak, and which paths depend on granted access
A jailbroken or prompt-injected model can disclose any PHI it can reach. That PHI can leave the system through three paths:
- The model's output.
- Retrieved context.
- Tool calls.
A jailbreak does not create access the model lacks, so exposure is bounded by the data and tools granted to the model or agent. Because prompts cannot enforce that boundary, limits must be applied by deterministic controls outside the model.
Strengths and limits of each control
Each control acts at a different point between the user, the model, and the systems that hold PHI. None replaces the others.
Where runtime controls sit in the architecture
-
Input inspection
Sits before the model. Screens user input and retrieved content for injection patterns and unexpected PHI. Reduces attack surface but cannot catch every novel phrasing.
-
Data access scoping
Sits between the model or agent and data stores. Limits retrieval to the records, fields, and purposes the current task and user are entitled to.
-
Agent identity and least privilege
Gives each agent its own identity and a minimal permission set, rather than a shared broad credential, so exposure is bounded per agent.
-
Tool-call policy enforcement
Sits before execution. Evaluates each tool call and retrieval request against policy and allows, denies, or modifies it. High-risk actions can require approval.
-
Output inspection and redaction
Sits after the model. Detects and masks PHI in responses before they reach the user or downstream system.
-
Audit logging
Records who or what accessed which data, the policy decision, and the time, with PHI handled carefully inside the logs themselves.
How this relates to HIPAA Security Rule safeguards
Audit records of access and policy decisions give reviewers evidence for compliance review. The criteria below can be used to evaluate runtime enforcement and audit logging.
Evaluation criteria for runtime enforcement and audit logging
- Is enforcement deterministic and performed outside the model, rather than dependent on system prompts?
- Does each agent have its own identity with least-privilege permissions on data and tools?
- Can tool calls and retrieval requests be allowed, denied, or modified by policy before execution?
- Are inputs, outputs, and tool calls inspected for PHI, and are the false-negative limits documented?
- Do audit records show who or what accessed which PHI, the policy decision, and the time?
- Can audit evidence be exported for compliance review, and are the logs themselves protected from PHI over-collection?