HIPAA Audit Controls and LLM Prompt Logs: What to Log and How to Protect It
If an LLM application or agent processes ePHI, or can plausibly receive it, its prompts, completions, and tool-call records belong in your audit control design under 45 CFR 164.312(b). The same logs then become ePHI themselves, so the log store needs its own access control, integrity protection, retention rules, redaction decisions, and business associate coverage. Treat the log as both a compliance record and a liability.
When prompt logs are in scope
If an LLM application or agent processes ePHI, or can plausibly receive it, the following records belong in your audit control design under 45 CFR 164.312(b):
- Prompts
- Completions
- Tool-call records
Two obligations created by one prompt log
| Label | Description |
|---|---|
| Audit record | Records activity in a system that contains ePHI so it can be examined. |
| ePHI repository | Holds content that may itself be ePHI and needs safeguards. |
| Vendor chain | Model providers, logging vendors, and observability tools may all touch the data. |
Protecting the log store itself
The same logs become ePHI themselves, so the log store needs its own:
- Access control
- Integrity protection
- Retention rules
- Redaction decisions
- Business associate coverage