Compliance Guide

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

How a single prompt log serves different roles
LabelDescription
Audit recordRecords activity in a system that contains ePHI so it can be examined.
ePHI repositoryHolds content that may itself be ePHI and needs safeguards.
Vendor chainModel 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

Discuss audit-ready AI agent governance

Talk with Trussed AI about how runtime policy enforcement, agent identity, and audit logging can support attributable records for AI agents.

Talk to an Expert