Skip to content
Healthcare SoftwareEngineering

Security guide

Healthcare Software Security Best Practices

Healthcare is a persistent target for ransomware and data theft. This guide turns the main frameworks into concrete engineering practices, and separates what HIPAA requires from what good security recommends.

12 min read Updated

The frameworks and how they fit together

No single framework covers everything a healthcare software team needs. They operate at different altitudes, and using them together avoids both gaps and duplicated effort.

Security frameworks relevant to healthcare software
FrameworkAltitudeHow engineering teams use it
HIPAA Security Rule (45 CFR 164 Subpart C)Legal requirementDefines required and addressable safeguards for ePHI
NIST SP 800-66r2Implementation guidance for HIPAAMaps Security Rule standards to activities and NIST controls
NIST CSF 2.0Program structureOrganizes work under Govern, Identify, Protect, Detect, Respond, Recover
HHS 405(d) HICPHealthcare-specific practicesPrioritizes threats and practices by organization size
OWASP ASVSApplication requirementsTestable security requirements at three verification levels
OWASP API Security Top 10API risk listGuides design review and testing of FHIR and REST APIs

Govern and Identify: know what you are protecting

CSF 2.0 added a Govern function that makes ownership, policy, and supply chain risk explicit. For engineering teams the most useful outputs are an accurate asset inventory, data flow diagrams that show where ePHI lives, and a risk analysis kept current as architecture changes.

  • Maintain an inventory of services, data stores, queues, and third-party vendors, with ePHI flags.
  • Generate a software bill of materials for each build and track known vulnerabilities in dependencies.
  • Keep data flow diagrams in version control and update them in the same pull request as architectural changes.
  • Assess vendors before integration; confirm a BAA exists for any vendor that will touch ePHI.

Protect: identity and access control

Most healthcare breaches involve credentials somewhere in the chain — phished passwords, leaked API keys, over-privileged service accounts. Identity is the first control to get right.

Checklist

  • Multi-factor authentication for all workforce access, and phishing-resistant MFA for administrators.
  • Single sign-on through the customer's identity provider for clinician users.
  • Least-privilege roles for engineers; standing production access replaced by just-in-time privileged access with approval and logging.
  • Short-lived credentials for services; no long-lived keys in code or CI variables.
  • Authorization decisions centralized and logged, covering patient-level and tenant-level checks.
  • Quarterly access reviews with removal of unused accounts.

Protect: application and API security

OWASP ASVS provides testable requirements grouped by area — authentication, session management, access control, validation, cryptography, logging, and more. Level 2 is a reasonable target for most applications handling ePHI; Level 3 suits the highest-risk components.

FHIR and REST APIs deserve special attention. The OWASP API Security Top 10 places broken object level authorization first, and FHIR makes it easy to commit: a request for Patient/123/Observation must verify the caller is allowed to see patient 123, not just that the token is valid.

OWASP API Security risks seen in healthcare APIs
RiskHealthcare exampleMitigation
Broken object level authorizationChanging a patient ID in a URL returns another patient's recordsCheck patient compartment and scopes on every request
Broken authenticationPatient app accepts expired or unsigned tokensValidate signature, audience, issuer, and expiry; use SMART scopes
Broken object property level authorizationAPI returns full resource including restricted fieldsResponse shaping by role; deny-by-default field exposure
Unrestricted resource consumptionUnbounded _include or $everything queries degrade servicePagination limits, query cost controls, rate limiting
Unsafe consumption of APIsTrusting partner FHIR payloads without validationValidate inbound resources against profiles; sanitize narrative HTML

Protect: data security

  • Encrypt ePHI in transit with TLS 1.2 or later everywhere, including internal service traffic and interface connections; wrap MLLP in TLS or a VPN.
  • Encrypt ePHI at rest with keys managed in a key management service, rotated on schedule, with separation between key administrators and data administrators.
  • Store secrets in a secrets manager; scan repositories and CI logs for leaked credentials.
  • Minimize ePHI in non-production environments; use synthetic data.
  • Scrub ePHI from logs, traces, and error reports before they leave the PHI boundary.
  • Keep immutable, tested backups isolated from production credentials to survive ransomware.

Protect: secure development lifecycle

Security belongs inside the pipeline where it runs on every change. Threat modeling at design time catches architectural flaws; automated scanning catches implementation flaws; human review catches logic flaws scanners miss.

  • Threat model features that touch ePHI, authentication, or external interfaces using STRIDE or similar.
  • Run SAST, dependency scanning, secrets scanning, and infrastructure-as-code scanning in CI with blocking thresholds.
  • Run DAST against staging and commission independent penetration tests at least annually and after major changes.
  • Sign build artifacts and verify provenance before deployment.
  • Track findings to closure with severity-based remediation timelines.

Detect: logging and monitoring

Audit logs must answer who accessed which patient's data, when, from where, and what they did. Security monitoring must notice abnormal patterns — a user viewing hundreds of records in an hour, API calls from unexpected geographies, a service account used interactively.

Respond and Recover

HHS 405(d) HICP highlights ransomware, phishing, and loss or theft of equipment among the top threats to healthcare. Response plans should be specific: who isolates a compromised service, how interface partners are notified, how clinical customers continue operating during an outage, and how evidence is preserved for breach analysis.

Recovery is proven by exercise. Restore from backup into an isolated environment on a schedule, measure the time it takes, and compare it with the recovery objectives promised to customers.

Checklist

  • Incident response plan with named roles and customer notification procedures.
  • Tabletop exercises at least annually, including a ransomware scenario.
  • Breach risk assessment procedure aligned with the HIPAA Breach Notification Rule.
  • Restore drills with measured recovery time.
  • Post-incident reviews that produce tracked corrective actions.

References

This guide is educational and is not legal or regulatory advice.

Frequently asked questions

Which security framework should a healthcare software company follow?

Use several, each for its purpose. The HIPAA Security Rule sets legal requirements for ePHI. NIST SP 800-66r2 explains how to implement them. NIST CSF 2.0 structures the overall program. HHS 405(d) HICP prioritizes healthcare-specific threats. OWASP ASVS and the API Security Top 10 give application teams testable requirements for code and APIs.

Is encryption required by HIPAA?

Under the current Security Rule, encryption at rest and in transit are addressable specifications, meaning an organization must implement them if reasonable and appropriate, or document why not and adopt an equivalent alternative. In practice encryption is expected. The January 2025 Security Rule NPRM proposes making encryption required, but that rule is proposed and not final.

What is the biggest API security risk for FHIR servers?

Broken object level authorization. A valid token does not mean the caller may access every patient. Each request must verify that the requested resources fall within the user's permitted patients and the token's SMART scopes. Testing should include deliberately requesting other patients' resources by ID and confirming access is denied and logged.

What does HHS 405(d) HICP provide?

Health Industry Cybersecurity Practices is a publication from the HHS 405(d) program, developed with industry, that identifies the most significant cybersecurity threats to healthcare and recommends practices scaled to small, medium, and large organizations. It is voluntary but widely used, and it can serve as evidence of recognized security practices.

Discuss your healthcare engineering project

Tell us about the system, the integrations it depends on, and the constraints you are working within. A senior engineer will review it and reply with questions, not a sales script.