Key takeaway
Healthcare app security best practices include a secure SDLC with threat modeling, verification against OWASP ASVS or MASVS, managed secrets, dependency scanning with SBOMs, MFA for workforce and privileged users, centralized logging and monitoring, 3-2-1 backups with an immutable copy, and a rehearsed incident response plan. Aligning these with recognized frameworks such as NIST CSF 2.0 and 405(d) HICP supports HIPAA compliance and can be considered by OCR under the 2021 HITECH amendment.
Last reviewed November 17, 2026
Build security into the SDLC
A secure software development lifecycle puts a security activity at each stage of delivery, so problems are caught when they are cheapest to fix. The NIST Secure Software Development Framework (SP 800-218) is a useful reference for structuring it.
- 1
Requirements
Write security requirements as acceptance criteria, drawn from ASVS or MASVS and from the risk analysis.
- 2
Design
Threat model new features and significant changes before implementation.
- 3
Implementation
Use vetted libraries for authentication, authorization, cryptography and logging rather than custom code.
- 4
Verification
Run SAST, dependency, secret and IaC scanning in CI, plus targeted manual review of security-sensitive code.
- 5
Release
Deploy through an automated pipeline with approvals, signed artifacts and rollback.
- 6
Operations
Monitor, patch and feed incidents and findings back into requirements.
Threat modeling with STRIDE
STRIDE gives teams a structured way to ask what could go wrong with each component and data flow. In healthcare, run it against the data flow diagram that already supports your risk analysis.
| Threat | Healthcare example | Typical mitigations |
|---|---|---|
| Spoofing | Attacker uses a stolen clinician password to sign in | MFA, phishing-resistant factors for privileged users, anomaly detection |
| Tampering | Modified device readings in an RPM ingestion API | Signed payloads, input validation, integrity checks, audit trails |
| Repudiation | User denies viewing a celebrity patient's record | Unique user IDs and immutable audit logs with timestamps |
| Information disclosure | API returns another patient's lab results when an ID is changed | Object-level authorization checks, tests for cross-patient access |
| Denial of service | Ransomware or traffic flood takes scheduling offline | Rate limiting, autoscaling, immutable backups, tested recovery |
| Elevation of privilege | Patient account gains staff permissions through a role bug | Server-side role enforcement, least privilege, authorization tests |
Verify against OWASP ASVS, MASVS and the API Top 10
The OWASP Application Security Verification Standard (ASVS) defines verification levels with specific requirements for authentication, session management, access control, validation, cryptography, error handling, logging and more. Many healthcare apps handling PHI target Level 2 as a baseline, with selected Level 3 requirements for high-risk components.
Mobile apps use OWASP MASVS, and APIs should be reviewed against the OWASP API Security Top 10, where broken object level authorization is the leading risk. Map requirements to tests so verification is repeatable rather than a one-time audit.
Secrets management and the software supply chain
Modern apps are mostly third-party code. Track it with a software bill of materials generated at build time in a standard format such as SPDX or CycloneDX, scan dependencies continuously for known vulnerabilities, and define remediation timelines by severity.
Pin versions, review new dependencies before adoption, and watch for typosquatting and compromised packages. For mobile apps, review what each SDK collects, since an analytics or advertising SDK can become an unapproved PHI disclosure. Customers increasingly ask for SBOMs, so producing them routinely saves effort later. Secrets need the same discipline:
- Store secrets in a managed secrets service or vault, never in source code, container images, mobile app bundles or CI logs.
- Prefer workload identity and short-lived credentials over long-lived API keys.
- Rotate secrets on a schedule and immediately after staff departures or suspected exposure.
- Run secret scanning on every commit and in repository history, and treat any leaked secret as compromised.
- Separate secrets by environment so a development credential cannot reach production PHI.
Identity, MFA and least privilege
MFA everywhere it matters
Require MFA for workforce users, administrators, cloud consoles, source control and CI systems. Use phishing-resistant methods such as FIDO2 security keys or passkeys for privileged access where possible.
Federation for enterprise customers
Support SAML and OpenID Connect so hospitals can apply their own identity policies and deprovision users centrally.
Least privilege
Scope roles to the minimum necessary PHI and actions, and recertify access periodically.
Just-in-time admin access
No standing production access; time-bound, approved and logged elevation instead.
Logging, monitoring and detection
Audit controls are required by 164.312(b), but logs only help if someone looks at them. Centralize authentication logs, audit events, cloud control-plane activity and infrastructure logs in a SIEM, and write detections for the events that matter in healthcare.
- Unusual volumes of patient record access by a single user or token.
- Access to records outside a user's normal patients, clinic or tenant.
- Privilege changes, new API keys and disabled logging.
- Impossible travel and repeated MFA failures.
- Bulk exports and large data transfers out of PHI stores.
Vulnerability management and secure configuration
Unpatched systems and misconfigured cloud resources are recurring causes of healthcare breaches. Define remediation timelines by severity, track them as service levels, and report exceptions to the security official so risk acceptance is a decision rather than an accident.
For cloud environments, enforce secure configuration with policy as code: block public storage, require encryption on new resources, restrict security group rules and alert on drift. Benchmarks such as the CIS Benchmarks give a starting point for hardening operating systems, containers and cloud accounts.
| Severity | Example remediation target (set in your own policy) |
|---|---|
| Critical, actively exploited | Days, with emergency change process |
| High | Within a few weeks |
| Medium | Within one to three months |
| Low | Next scheduled maintenance window or documented acceptance |
Backups that survive ransomware
Ransomware groups target backups first. Follow the 3-2-1 practice: at least three copies of data, on two different types of storage, with one copy offsite. For cloud workloads, make at least one copy immutable using object lock or vault lock features in a separate account with separate credentials.
Data backup and disaster recovery plans are required parts of the HIPAA contingency plan (164.308(a)(7)). Test restores regularly, measure them against recovery objectives agreed with clinical stakeholders, and document the results.
Incident response readiness
A healthcare incident response plan must cover technical response and HIPAA obligations: security incident procedures (164.308(a)(6)), breach risk assessment and notification within regulatory deadlines. Business associates must notify covered entities as their BAAs require.
- 1
Prepare
Define roles, contacts, forensic retainers and communication templates, and confirm log retention supports investigations.
- 2
Detect and analyze
Triage alerts, determine scope using audit logs and preserve evidence.
- 3
Contain and eradicate
Revoke credentials, isolate systems and remove the attacker's access.
- 4
Recover
Restore from known-good backups and monitor closely for recurrence.
- 5
Assess and notify
Perform the documented breach risk assessment and meet notification obligations with counsel.
- 6
Learn
Update the risk analysis, controls and runbooks based on what happened.
Align with 405(d) HICP and recognized frameworks
The HHS 405(d) program publishes Health Industry Cybersecurity Practices (HICP), which describe ten practices for healthcare organizations: email protection, endpoint protection, access management, data protection and loss prevention, asset management, network management, vulnerability management, security operations and incident response, network-connected medical device security, and cybersecurity oversight and governance. HHS has also published healthcare Cybersecurity Performance Goals.
Under Public Law 116-321, HHS must consider recognized security practices in place for the prior 12 months when making certain enforcement decisions. Aligning with HICP or NIST CSF 2.0, and keeping evidence that you have done so consistently, is good security and a practical consideration in enforcement.
HIPAA requirement
What the rules themselves require
- Risk analysis and risk management (164.308(a)(1)).
- Security incident procedures (164.308(a)(6)) and contingency planning (164.308(a)(7)).
- Technical safeguards for access, audit, integrity, authentication and transmission (164.312).
Recommended practice
Widely accepted security practice
- Secure SDLC aligned with NIST SP 800-218, threat modeling and OWASP ASVS or MASVS verification.
- MFA, centralized monitoring, SBOMs and immutable 3-2-1 backups.
- Alignment with 405(d) HICP or NIST CSF 2.0, with evidence of sustained use.
Architecture decision
Depends on your product and risk analysis
- ASVS Level 3 controls for the highest-risk components.
- Runtime application self-protection or advanced bot defense, depending on threat profile.
- External red team exercises for mature programs.
Your organization's responsibility
Policies and operations software cannot do
- Security governance, budget and an accountable security official.
- Workforce security awareness and phishing training.
- Incident response team, communications and breach notification decisions with counsel.
Frequently Asked Questions
What are the most important healthcare app security best practices?
Threat modeling and a secure SDLC, strong authorization on every API request, MFA for workforce and admin access, keeping PHI out of logs and third-party tools, centralized monitoring, immutable backups with tested restores, and a rehearsed incident response plan.
What is STRIDE threat modeling?
STRIDE is a threat modeling method that examines each component for Spoofing, Tampering, Repudiation, Information disclosure, Denial of service and Elevation of privilege. It helps teams find design weaknesses before code is written.
Which OWASP ASVS level should a healthcare app target?
Many healthcare apps handling PHI use Level 2 as a baseline, with selected Level 3 requirements for the most sensitive components. The right level depends on your risk analysis and customer expectations.
What is 405(d) HICP?
Health Industry Cybersecurity Practices is a publication from the HHS 405(d) program, developed with industry, describing practical cybersecurity practices for healthcare organizations of different sizes. It is one of the recognized security practices HHS can consider under the 2021 HITECH amendment.
What is the 3-2-1 backup rule?
Keep at least three copies of data, on two different types of storage, with one copy offsite. For ransomware resilience, make at least one copy immutable and keep it in a separate account with separate credentials.
Is an SBOM required for healthcare apps?
HIPAA does not require an SBOM. Federal law now requires SBOMs in FDA premarket submissions for cyber devices, and enterprise customers increasingly request them. Generating them automatically at build time is a widely recommended practice.
Do these best practices guarantee HIPAA compliance?
No. They strengthen security and support compliance, but HIPAA compliance also depends on administrative safeguards, policies, training, BAAs and risk management owned by the covered entity or business associate.