The HIPAA Breach Report 2025: The Code Patterns Behind Healthcare's Biggest Incidents

HHS's breach portal lists about 741 healthcare data breaches in 2024 affecting about 290 million individuals. Not all start in code, but the application weaknesses in healthcare software cluster around a small set of CWEs that scanners can catch early.

DevSecCode Team · · Compliance · 10 min read

Recurring Weaknesses in Healthcare Software

The HHS Office for Civil Rights breach portal lists about 741 breaches affecting 500 or more individuals in 2024, collectively affecting about 290 million individuals. Not all of them start in code, but the application weaknesses that keep appearing in healthcare software form a pattern that is both predictable and preventable.

The CWE Patterns Behind Healthcare Breaches

CWE-89: SQL Injection in Healthcare Applications

EHR systems built on legacy PHP and Java stacks continue to carry injectable query construction. CWE-89 remains a common finding in healthcare application penetration tests.

HIPAA control mapping: 164.312(a)(2)(iv) (Encryption and Decryption), 164.312(c)(1) (Integrity). SQL injection can bypass both data integrity controls and access controls protecting ePHI.

CWE-306 / CWE-287: Missing or Broken Authentication

Authentication bypass (CWE-287) in patient portal applications and missing authentication (CWE-306) in API integrations continue to be primary breach vectors. APIs that return ePHI without verifying the active session, or that accept authentication tokens without expiry validation, represent a 45 CFR 164.312(d) violation.

Stolen credentials are a common way in: the 2024 Change Healthcare breach began on a remote access portal without MFA. Strong authentication and session controls limit what a stolen credential can reach.

CWE-312 / CWE-315: Cleartext Storage of ePHI

Logging libraries configured to capture request bodies, debug output containing patient identifiers in log files, and diagnostic endpoints that expose ePHI in plaintext. These are HIPAA 164.312(a)(2)(iv) violations that appear in virtually every healthcare application assessment. The data is not encrypted at rest where it matters: the application layer.

CWE-284: Improper Access Control in FHIR APIs

The expanded use of FHIR R4 APIs has introduced a new surface for access control failures. Patient records are accessible via standardized endpoints, and the authorization layer is application code, not the FHIR standard. CWE-284 in a FHIR API is a direct breach vector.

HIPAA Technical Safeguards: The Code Layer

HIPAA's Technical Safeguards (164.312) are the most code-relevant section of the Security Rule:

ControlCode PatternCWE
164.312(a)(1). Access ControlAuthorization bypass, missing role checksCWE-284, CWE-269
164.312(b). Audit ControlsMissing audit logging for ePHI accessCWE-778
164.312(c)(1). IntegrityData modification without integrity checksCWE-345
164.312(d). AuthenticationWeak or missing authenticationCWE-287, CWE-306
164.312(e)(1). Transmission SecurityCleartext ePHI transmissionCWE-319

The "Addressable" vs "Required" Distinction

HIPAA distinguishes Required specifications (must implement) from Addressable specifications (implement or document why not). Most developers treat Addressable as optional. OCR enforcement actions show that treating encryption as Addressable is not a safe harbor when a breach occurs. It just means you need to explain why you chose not to encrypt ePHI.

How Deva Addresses HIPAA Compliance

Deva's HIPAA mapping, currently in preview, references the specific 45 CFR clause, not just "HIPAA." When Deva surfaces CWE-319, it shows 164.312(e)(1) Transmission Security and 164.312(e)(2)(ii) Encryption, so you know which control is at risk.

The local model matters here: ePHI never leaves the machine. Patient data in your codebase, log snippets, or test fixtures stay inside your boundary. Cloud-based AI code assistants cannot make this guarantee.