HIPAA safeguards
How the HIPAA Security Rule safeguards map to MedHook features and settings, and which parts you operate yourself.
On this page
- Shared responsibility
- Business associate agreement
- Administrative safeguards (164.308)
- Physical safeguards (164.310)
- Technical safeguards (164.312)
- Access control (164.312(a))
- Audit controls (164.312(b))
- Integrity (164.312(c))
- Person or entity authentication (164.312(d))
- Transmission security (164.312(e))
- Reference
This page maps the safeguards of the HIPAA Security Rule (45 CFR 164.308, 164.310 and 164.312) to what the MedHook engine does and which settings control it. Use it when you write your own risk analysis or answer a security questionnaire.
It is a map, not a certification. MedHook does not claim HIPAA certification, and no government body certifies software for HIPAA. Whether your deployment meets the rule is decided by your own risk analysis, policies and operation of the systems around the engine.
Shared responsibility
You run the engine in your own infrastructure: your cloud project or data center, your database, your network. MedHook supplies the software and its safeguards. Patient data stays in your environment and never reaches medhook.dev.
| Area | MedHook provides | You operate |
|---|---|---|
| Application controls | Roles, sign-in and MFA, audit log, encryption of credentials and stored messages | Who gets which role, and reviewing the audit log |
| Infrastructure | Install bundles, Terraform and Helm defaults that keep the engine on private networks | The cloud project or hosts, firewall rules, OS and cluster patching, physical security of the data center |
| Keys | AES-256-GCM encryption under keys you supply | Generating, escrowing and rotating ENCRYPTION_MASTER_KEY and the other secrets |
| Database and backups | Retention settings and a restore procedure | The PostgreSQL service, its backups, and restore drills |
| Connections to healthcare organizations and their systems | TLS, mutual TLS, SFTP host key pinning, MLLP over TLS, IPsec tunnels | Using https:// endpoints for PHI, agreeing each connection with the other party, and keeping its certificates and keys current |
| People and policies | Nothing on its own | Workforce training, sanctions, incident response, contingency plans and your own BAAs |
Business associate agreement
When the engine processes PHI on your behalf, MedHook acts as a business associate. A business associate agreement (BAA) is available on request. The BAA template is under legal review. Do not send PHI through the engine before a BAA is in place: by default the engine refuses to run a workflow marked as handling PHI until the signed license allows it. See PHI handling.
Administrative safeguards (164.308)
| Safeguard | What MedHook provides | Docs |
|---|---|---|
| Information system activity review | A hash-chained audit log of configuration changes, sign-ins, message reads and replays, exportable as CSV and to your SIEM. Flags pick out unusual PHI views, sign-ins and exports for review. | Audit log, Log exporters |
| Workforce security and information access | Three roles (viewer, operator, admin) checked on every request, per-workspace membership, and viewers never see message content. | Roles, Workspaces |
| Termination procedures | Disabling a person ends every session, code and link at once; API clients expire and can be revoked. | Offboard an engine user, API clients |
| Security awareness: log-in monitoring | Failed sign-ins and lockouts are audited, and guessing is rate limited. | Sign-in and MFA |
| Security awareness: password management | Passwords are hashed with scrypt, and a password sign-in always needs a second factor. | Sign-in and MFA |
| Security incident procedures | Alert rules, Prometheus metrics and health checks to detect failures and blocked PHI runs. Your incident response plan uses them. | Monitoring |
| Contingency plan: backup and disaster recovery | Database backups set up by the install, a restore procedure and a restore drill. | Back up and restore |
| Contingency plan: emergency mode | Break-glass sign-in when your identity provider is down. | Break-glass access |
| Business associate contracts | A BAA is available on request (see above). | PHI handling |
Risk analysis, risk management, the sanction policy, the security official and workforce training are yours. The engine has no setting for them.
Physical safeguards (164.310)
The engine runs on infrastructure you choose and control, so facility access, workstation use and workstation security are yours, or your cloud provider's under your agreement with them.
| Safeguard | What MedHook provides | Docs |
|---|---|---|
| Device and media controls: disposal and re-use | Stored messages can be encrypted at rest, so a database dump, disk or backup holds no message text. Executions are deleted after the retention you set, and each purge is audited. | Stored message encryption, Retention |
| Device and media controls: data backup | Backups of the PostgreSQL database that holds messages and the audit log. | Back up and restore |
Technical safeguards (164.312)
Access control (164.312(a))
| Specification | What MedHook provides | Docs |
|---|---|---|
| Unique user identification | Every person signs in as themselves; machines use named API clients. The audit log names the person, api-client:NAME or cli for every action. | People, API clients |
| Emergency access procedure | Break-glass sign-in for when single sign-on is unavailable. | Break-glass access |
| Automatic logoff | Sessions end after 60 minutes without activity and 12 hours after sign-in at most (both configurable); API tokens last 2 hours. | Sign-in and MFA, Tokens |
| Encryption and decryption | AES-256-GCM for credentials, secrets and, when turned on, stored messages, under keys you hold. | Encryption at rest, Keys and secrets |
| Network access | An IP allowlist for the UI and API. | IP allowlist |
Audit controls (164.312(b))
The engine records activity in the audit log: changes to workflows, adapter profiles, triggers, mappings, settings, users and API clients, sign-ins, message reads and replays. It never records message content. Rows are hash-chained so tampering shows, a daily anchor can be published to an RFC 3161 timestamping service you set in Settings › Notifications (see Daily anchor), and rows are kept for six years by default and archived before they are deleted. The monthly HIPAA access report lists who viewed whose PHI for your privacy officer, and legal holds keep records past retention. See Audit log and the audit settings.
Integrity (164.312(c))
| Specification | What MedHook provides | Docs |
|---|---|---|
| Protect PHI from improper alteration | Only operator and admin can change workflows or replay messages, and each change is audited. Custom JavaScript runs in a sandbox with read-only input. | Roles, The sandbox |
| Mechanism to authenticate PHI | Stored messages encrypted with AES-256-GCM fail to decrypt if altered. The audit log's hash chain can be verified. HL7v2 sends wait for the receiver's ACK. | Stored message encryption, MLLP and ACKs |
Person or entity authentication (164.312(d))
People sign in with a password and a second factor (an emailed code or an authenticator app), with Google Workspace, or through your identity provider over OIDC or SAML. Machines use API clients with a role and an expiry. Inbound webhooks check an HMAC signature. See Sign-in and MFA, Single sign-on and Authentication.
Transmission security (164.312(e))
| Specification | What MedHook provides | Docs |
|---|---|---|
| Integrity controls | TLS on every HTTP connection to an https:// endpoint, with certificate and host name checks that cannot be turned off, and host key pinning on SFTP. Most adapters also accept http:// endpoints, which have no TLS: use https:// for every endpoint that carries PHI. Saving or testing a SOAP or WebDAV profile with an http:// URL, or an FTP or SMTP profile without TLS, returns a warning. | Outbound connections |
| Encryption | TLS 1.2 or later for https:// endpoints, with optional mutual TLS and a private CA; SFTP over SSH; MLLP over TLS or inside a site-to-site IPsec tunnel; SMTP over STARTTLS or TLS; FTPS. The SMB client does not encrypt, so mount a share that carries PHI as a volume and use the Local File adapter. Outbound calls cannot be sent to internal addresses by default. An operator can allow them for chosen hosts with SSRF_ALLOWLIST, or for all hosts with ALLOW_PRIVATE_URLS outside production. | Connection options, MLLP and ACKs, HA VPN, SSRF protection |