概要
HIPAA technical safeguards in 45 CFR 164.312 for developers: access control, audit logs, integrity, authentication and encryption in transit and at rest.
HIPAA technical safeguards for developers start with the Security Rule at 45 CFR §164.312: five standards covering access control, audit controls, integrity, person or entity authentication, and transmission security. Unique user identification and an emergency access procedure are required; automatic logoff, encryption at rest, a mechanism to authenticate ePHI and encryption in transit are addressable, which means they must be assessed and documented, not that they are optional.
This guide is written for the people who build the system: in-house engineers at HealthTech companies and offshore teams, including Vietnamese ITO and SaaS vendors, who write code for US covered entities and business associates. It maps each specification to the design decisions a developer actually makes.
When is your code in scope for HIPAA?
Your code is in scope when your company creates, receives, maintains or transmits electronic protected health information (ePHI) on behalf of a covered entity (a provider, health plan or clearinghouse) or on behalf of another business associate. Your company is then a business associate and the systems involved must meet the Security Rule. Examples include patient management software for a US hospital, a telemedicine platform for clinics, or a system that stores visit records. A marketing website that never touches PHI is out of scope.
There is no official HIPAA certification approved by HHS (Microsoft Learn); the obligations come from the regulation and the business associate agreement (BAA). Whether an offshore team counts as a business associate is covered in does HIPAA apply to offshore vendors in Vietnam, and what the contract must contain in HIPAA BAAs for offshore vendors. For how a typical project moves from first contract to audit readiness, see how long HIPAA compliance takes.
Where does ePHI show up in your code?
PHI is individually identifiable health information held by a covered entity or business associate (45 CFR §160.103); ePHI is PHI in electronic form, and the Security Rule applies only to ePHI. In a running system it lives in database records, API responses, uploaded files, message queues, caches, logs and backups.
The 18 identifiers (names, geographic units smaller than a state, all elements of dates except the year, phone numbers, email addresses, medical record numbers, IP addresses, URLs, full-face photos and others) are the list you must remove to de-identify data under the Safe Harbor method (§164.514(b)(2)). Developers can use it the other way round: if test data or a log line still carries any of those identifiers alongside health information, treat it as ePHI.
What is the difference between required and addressable?
The Security Rule labels each implementation specification as required or addressable; the standards themselves always have to be met. Required means implement it. Addressable means assess it: implement it if it is reasonable and appropriate for your environment; if it is not, document why and implement an equivalent alternative measure where that is reasonable and appropriate (§164.306(d)). Addressable is therefore not optional. The decision has to rest on your risk analysis and be written down. Whether your evaluation of these safeguards should include a pentest is covered in does HIPAA require penetration testing.
| Standard (§164.312) | Implementation specification | Label | Common implementation |
|---|---|---|---|
| (a)(1) Access control | (a)(2)(i) Unique user identification | Required | One account per person; no shared accounts |
| (a)(1) Access control | (a)(2)(ii) Emergency access procedure | Required | Break-glass account with defined activation conditions and full logging |
| (a)(1) Access control | (a)(2)(iii) Automatic logoff | Addressable | Session timeout after inactivity |
| (a)(1) Access control | (a)(2)(iv) Encryption and decryption | Addressable | Encrypt databases, object storage and backups; keys in a KMS |
| (b) Audit controls | (no separate specification) | Standard | Append-only logs, reviewed on a schedule |
| (c)(1) Integrity | (c)(2) Mechanism to authenticate ePHI | Addressable | Hashes, audit tables, digital signatures |
| (d) Person or entity authentication | (no separate specification) | Standard | Strong authentication; MFA is the common choice |
| (e)(1) Transmission security | (e)(2)(i) Integrity controls | Addressable | TLS with integrity protection |
| (e)(1) Transmission security | (e)(2)(ii) Encryption | Addressable | TLS 1.2 or higher |
Is the HIPAA Security Rule changing?
HHS published a proposed rule on 6 January 2025 (Federal Register NPRM) that would, among other changes, remove the required/addressable distinction and make encryption and MFA mandatory with limited exceptions. As of November 2026 it is still a proposal: it has not been finalized, and the federal regulatory agenda has moved the target for final action into 2027. The current rule described in this article stays in force until a final rule is published and takes effect. Check the Federal Register before you rely on either version, and expect clients to ask about encryption and MFA either way.
What does access control require?
Access control requires technical policies and procedures that allow only authorized people or software to access ePHI (§164.312(a)(1)). Unique user identification is a hard requirement: no shared accounts on systems holding ePHI, including the team's admin account. The emergency access procedure is also required; a common design is a break-glass account that activates only under predefined conditions, logs every action and is reviewed after use.
Automatic logoff is addressable and the regulation sets no number. Choose a timeout per interface based on its risk and record the reasoning. Role-based access control and the minimum necessary principle are the usual ways to limit who can read which record.
What should audit controls record?
Audit controls require hardware, software or procedural mechanisms that record and let you examine activity in systems that contain or use ePHI (§164.312(b)). A useful log entry contains:
- The user ID or service account that acted
- The timestamp, with time zone
- The action: read, create, update, delete, export
- The object affected: patient record ID, document ID
- The source: IP address or workstation
- The outcome: success or denied
Protect logs from being changed or deleted by the users they record. In the cloud, a common pattern is to write logs to a separate bucket or service where the application layer has write-only access. The regulation does not set a log retention period; many organizations keep logs for six years to match the documentation retention requirement in §164.316(b)(2). Regular log review falls under the administrative safeguard "information system activity review", which is required (§164.308(a)(1)(ii)(D)).
What do integrity controls protect against?
The integrity standard requires policies and procedures that protect ePHI from improper alteration or destruction (§164.312(c)(1)); a mechanism to authenticate that ePHI has not been altered is addressable. Common approaches:
- Store a hash on write and verify it on read.
- Keep change history in an audit table or event log, not only the latest state.
- Digitally sign critical documents such as lab results and prescriptions.
- Use immutable storage for records that must not change.
Integrity is not only about attackers. The same controls catch software that overwrites data, disk faults and bugs in migration scripts.
How do you implement person or entity authentication?
This standard requires procedures to verify that a person or system seeking access to ePHI is the one claimed (§164.312(d)). The current rule does not name MFA, but MFA for users and strong service-to-service authentication (mTLS, short-lived tokens, workload identity) are the common way to meet it, and US clients routinely ask about MFA in security questionnaires.
What does transmission security require?
Transmission security requires measures that guard against unauthorized access to ePHI sent over a network (§164.312(e)(1)); integrity controls and encryption in transit are addressable. In practice:
- Every endpoint that carries ePHI accepts HTTPS only, with TLS 1.2 or higher configured per NIST SP 800-52 Rev. 2.
- Certificate validation is never disabled in production.
- Internal traffic is encrypted too unless the network is fully controlled.
- ePHI is not sent by ordinary email; use a service covered by a BAA with encryption, or send a link to a secure portal.
Is encryption at rest mandatory under HIPAA?
Under the current rule, encryption at rest is addressable, but the risk analysis for most cloud systems will lead to encrypting. There is also a practical reason: under HHS guidance on "unsecured" PHI, data encrypted in line with NIST guidance (with keys not compromised) does not trigger breach notification if it is exposed (HHS breach notification guidance). NIST SP 800-111 covers storage encryption. Common mistakes:
- Encrypting the database but not the backups and snapshots.
- Storing keys next to the data or hardcoding them in source code.
- Encrypting fields while leaving identifying metadata exposed.
- Encrypting at the application layer while logs and monitoring tools still see plaintext.
Do AI coding tools change anything?
AI coding tools do not violate HIPAA by themselves; the risk is ePHI reaching a vendor without a BAA through prompts, indexed files or logs. Whether a vendor signs a BAA depends on the vendor and the plan, so check the vendor's current compliance page and keep the answer on file. Use synthetic data in development and with these tools.
What should a developer check when a project involves PHI?
When a project may touch PHI, work through these checks in order:
- Identify which data is ePHI and which components it passes through.
- Ask about BAAs: who signs with whom, and whether subcontractors and cloud services are covered.
- Confirm every ePHI access is logged and the logs are protected.
- Check encryption at rest and in transit, including backups.
- Check access control against minimum necessary.
- Confirm the incident reporting path: a business associate notifies the covered entity without unreasonable delay and no later than 60 days after discovery (§164.410); BAAs often set a shorter deadline.
- Check backups and the ability to restore ePHI.
- Use synthetic data in development environments and with AI coding tools.
How does pTrackly support the technical side?
pTrackly does not implement encryption or logging in your code; that stays with your team. pTrackly keeps the evidence and the review rhythm: the HIPAA framework's compliance matrix maps each §164.312 specification to controls and lets you record the rationale and alternative measures for addressable specifications; evidence tasks such as "review audit logs" carry a frequency and reminders 7, 3 and 1 days before the due date; access reviews gather accounts and store the results; and Cloud Tests check configuration in AWS (S3, IAM, KMS, CloudTrail and more), GCP, Azure and Cloudflare.
See HIPAA on pTrackly, how teams fit these checks into delivery in HIPAA tracking in DevOps sprints, and a customer case in HIPAA readiness in 2 weeks.
These safeguards are one part of the program; the HIPAA compliance checklist for software companies covers contracts, administrative safeguards, breach notification and vendors as well. If your developers use Cursor, Copilot or ChatGPT, read AI coding tools and HIPAA before any real data reaches a prompt.
Frequently asked questions
Does HIPAA set a specific session timeout?
No. Automatic logoff is addressable and the regulation sets no number; choose a timeout per interface based on risk and document the reason.
Does HIPAA require MFA?
The current Security Rule requires person or entity authentication at 45 CFR §164.312(d) but does not name MFA. MFA is the common way to meet it and clients usually expect it; the 2025 proposed rule would make it mandatory if finalized.
Are audit logs required under HIPAA?
Audit controls are a standard at §164.312(b), so they must be met, though there is no separate implementation specification. Regular review of system activity is required under §164.308(a)(1)(ii)(D).
Is test data with fake names but real birth dates ePHI?
It can be. A full date of birth is one of the 18 Safe Harbor identifiers in 45 CFR §164.514(b)(2), so that data is not de-identified if it comes with health information.
Is unencrypted ePHI a HIPAA violation?
Not automatically under the current rule, because encryption is addressable. You need a documented assessment and an equivalent alternative where reasonable, and unencrypted data that is exposed must be evaluated for breach notification.