Safeguard
Compliance•

HIPAA audit controls and log review: what engineers must build

HIPAA requires audit controls that record and examine ePHI activity, plus regular review of those records. See what to log and how to show the review.

Safeguard Security Team
3 min read

HIPAA requires two linked things: audit controls that record and examine activity in systems that contain or use ePHI, and a regular review of those records. The first is a technical standard in 164.312(b). The second is a required administrative step in 164.308(a)(1)(ii)(D). Logging without review does not meet the intent.

The two clauses

Section 164.312(b) says to implement hardware, software or procedural mechanisms that record and examine activity in information systems that contain or use ePHI. It does not list events or a retention period.

Section 164.308(a)(1)(ii)(D), under the security management process, requires procedures to regularly review records of information system activity, such as audit logs, access reports and security incident tracking reports. This is a required specification.

The rule is silent on exact fields, so your risk analysis decides scope. That freedom is also the trap: you have to be able to explain your choices.

What to log for ePHI systems

A defensible baseline for an application that handles ePHI:

  • Authentication events, including failures, lockouts and privilege changes.
  • Record level access: who viewed, created, changed or exported which patient record, and when.
  • Administrative actions, such as role changes and configuration edits.
  • Bulk exports and report runs.
  • Break glass or emergency access use.
  • Access by support or operations staff to production data.

Keep the PHI itself out of log lines. Record identifiers and event types, not the content of the record.

Making review real

Regularly is not defined, so set a cadence that fits risk and write it down. Then make the review produce evidence:

  1. Define what you look for. Examples: access to records of employees or VIPs, off hours bulk exports, many failed logins, access from new locations.
  2. Automate alerts for the clear cases, and sample the rest manually.
  3. Record each review: date, reviewer, scope, findings and follow up.
  4. Route findings to the incident process under the security incident procedures standard.
  5. Protect the logs. Integrity matters, since altered logs are worthless. The integrity standard in 164.312(c) asks for policies to protect ePHI from improper alteration, and that logic applies to your evidence too.

Retention

HIPAA sets no specific log retention period in the Security Rule text. It does require documentation of policies, actions and assessments to be kept for six years. Many teams therefore keep security review records for six years and set raw log retention by risk and cost. Confirm the choice with your compliance lead, and see documentation retention.

Why this matters during a breach

If PHI may have been accessed, the risk assessment has to examine whether it was actually acquired or viewed. Record level access logs are often the only way to answer that. See breach notification deadlines.

Quick check

Does HIPAA say how long to keep audit logs?

No fixed log retention period appears in the Security Rule text. The six year rule applies to required documentation, so decide and document your own period.

Is an automated alert enough for the review requirement?

It helps, but the rule asks for procedures to regularly review activity records. Keep a record that people reviewed the output and acted on findings.

Sources

Last reviewed: 19 October 2026.

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.