Industries
Key takeaways
- A signed cloud BAA covers the hypervisor, not your session handling, role scoping or audit trail, and those stay entirely with the app team.
- Logs, crash reporting SDKs and push payloads leak more PHI in practice than databases do, and almost no compliance checklist has a line for them.
- Every AI vendor needs its own BAA, because a cloud agreement does not extend to a connected model API even when the vendor is the same.
- Consumer wellness apps outside HIPAA still answer to the FTC Health Breach Notification Rule, which has already produced multi-million dollar settlements.
- Treat encryption as required rather than addressable today, and the pending Security Rule update will not force a re-architecture later.
What does HIPAA compliant app development actually require?
HIPAA compliant app development requires four layers to hold at once: a Business Associate Agreement signed with every vendor that touches protected health information, technical safeguards written into your own code, administrative controls including a documented risk analysis, and infrastructure controls inherited from a HIPAA eligible host. Three out of four is not compliance. It is a finding waiting to be written up.
There is no HIPAA certificate and no pre-launch inspection. Compliance is a position you have to evidence on the day the Office for Civil Rights asks, which makes the paperwork as load bearing as the code: the risk analysis, the vendor register, access review records, the breach runbook. Teams that schedule those for launch week discover that the evidence was supposed to have been accumulating for months.
That is the environment the app ships into. Hacking or IT incidents caused 81% of all reported breaches that year, and OCR collected $9,944,612 in HIPAA penalties across 2024, of which $7,813,831 came from breach investigations.1
Which HIPAA app requirements are mandatory, and which are addressable?
The Security Rule splits its technical safeguards (45 CFR 164.312) into required and addressable implementation specifications. Addressable does not mean optional. It means you either implement the control or document why an equivalent alternative is reasonable for your environment. Most teams that skip an addressable control never write that justification, and the justification is what an investigator asks for first.
Encryption sits in the addressable column as the rule reads today. HHS published a Security Rule update proposal on 06-Jan-2025 that would delete the required and addressable distinction entirely and make encryption mandatory, and that proposal has since moved to a long-term agenda targeting Jul-2027. The practical read for anyone building now is to treat encryption as required. If the rule finalises, you re-architect nothing.
| Technical safeguard | What the rule asks for | What it means in the build |
|---|---|---|
| Access control | Unique user identification, emergency access, automatic logoff, encryption and decryption | One identity per human, no shared service accounts, role scoping enforced server side, short session lifetimes |
| Audit controls | Record and examine activity in systems holding PHI | An append only log of every PHI read and write, carrying actor, subject, timestamp and purpose |
| Integrity | Protect PHI from improper alteration or destruction | Versioned records, soft deletes, checksums, no destructive update without a trail |
| Transmission security | Guard PHI moving across a network | TLS everywhere, certificate pinning on mobile, never PHI in a URL path or query string |
Documentation under the Security Rule has to be retained for six years, which is a storage and query design decision rather than a filing decision. An audit log you cannot search across that horizon is not an audit log.
Do you need a BAA with AWS, Firebase or your LLM provider?
Yes, with each of them separately, and the signature is where the work starts rather than where it finishes. AWS, Azure and Google Cloud will sign a Business Associate Agreement and publish a list of HIPAA eligible services. Under the shared responsibility model that covers their half. Session handling, role based access control, audit logging and the data model stay entirely with the app team.
A cloud BAA tells a regulator who is responsible for the hypervisor. It says nothing about who is responsible for your session tokens.
Two failure modes recur. The first is running on a provider that will sign a BAA while using a service outside its HIPAA eligible list, which is easy to do with newer managed features. The second is assuming one agreement covers a chain: analytics SDK, crash reporter, transactional email and SMS delivery, EHR integration middleware, model API. Each needs its own agreement in place before PHI reaches it. Building that vendor register during discovery costs an afternoon; reconstructing it during an investigation costs considerably more, which is why it belongs in the first sprint of any product engineering programme rather than in a pre-launch scramble.
Where does PHI actually leak in a mobile app?
Rarely the database. In a PHI mobile app, the database is the one asset everybody remembers to encrypt. The leaks come from the places health data travels incidentally.
- Application logs. Verbose errors and request or response logging capture identifiers, payload bodies and sometimes whole records in plaintext. Scrub at the logger, not at the aggregator, because by then the data has already crossed a boundary.
- Crash reporting and analytics SDKs. Third party SDKs send breadcrumbs, screen names and user properties off device by default. A screen name such as PatientChart-oncology is identifying in context even with no name attached to it.
- Push notifications. Payloads render on a locked screen and pass through a delivery provider you very likely have no BAA with. Send an opaque identifier and fetch the content inside the authenticated app.
- Device caches and backups. Task switcher screenshots, WebView caches, unencrypted local stores and cloud device backups all persist PHI in places outside your control.
- URLs and query strings. A record identifier in a path lands in proxy logs, referrer headers and browser history, none of which are covered by your encryption story.
None of these appear on a standard compliance checklist, and all of them turn up routinely in security review. A PHI scrubbing rule in the logging middleware plus a strict allowlist for SDK telemetry closes most of the exposure for about a day of engineering.
Is using AI inside a healthcare app a HIPAA violation?
Not by definition. It becomes one when PHI reaches a model provider with no BAA in place, or when a staff member pastes a record into a consumer chatbot. Both are common. In a 2025 survey of healthcare IT leaders, 62% had observed staff using unsanctioned ChatGPT at work while 94% felt confident they would detect AI misuse before it caused a HIPAA violation.7 Those two numbers cannot both be true.
Attackers are moving on the same curve. 16% of breaches in 2025 involved attackers using AI, and among organisations that suffered an AI related security incident, 97% lacked proper AI access controls.3
Three rules keep an AI feature inside the line. Sign a BAA with the model provider specifically, because a cloud BAA does not extend to a connected model API even when both sit with the same vendor. De-identify before the call wherever the feature allows it, by stripping the 18 identifiers rather than trusting a prompt instruction to behave. And log every model call as a PHI access event, with actor, purpose and payload class, so the audit trail survives the question of what the model saw. That governance design belongs in the same backlog as the feature, not in a later phase of AI consulting work.
What if your app is not a covered entity?
Then HIPAA may genuinely not apply, and a second regulator steps in. The updated FTC Health Breach Notification Rule took effect on 29-Jul-2024 and reaches consumer health, fitness and wellness apps that sit outside HIPAA jurisdiction. It has teeth. The FTC fined GoodRx $1.5 million on 01-Feb-2023 in its first action under the rule, for sharing user health data with Facebook and Google without consent.5 BetterHelp was required to pay $7.8 million to consumers for sharing mental health data with third parties for advertising retargeting without proper consent.6
This matters more each year because more products drift into the category. The mHealth apps market was valued at $40.65 billion in 2025 and is projected to reach $113.2 billion by 2034, an 11.80% compound annual growth rate.8 Plenty of that growth comes from teams who did not set out to build a regulated product. If the app collects health data and shares any signal with an ad platform, the consent and disclosure review is not optional, whatever the HIPAA analysis says.
What does HIPAA compliant app development cost, and what does a breach cost?
Published cost ranges for these builds span an order of magnitude, which makes them nearly useless without a scope definition. The more answerable question is which line items are additive to a normal product build, because those are the ones that get left out of the estimate.
| Additive cost driver | Why it costs | What contains it |
|---|---|---|
| PHI boundary and data model | Separating identified from de-identified data touches every service | Draw the boundary before the schema, not after |
| Audit logging and six year retention | Write volume, storage, and queryability over a long horizon | Log events, not raw payloads; tier storage by age |
| Identity and access control | MFA, role scoping, break glass access, periodic access reviews | Buy identity, build only the role model |
| BAA and vendor management | Each vendor negotiated and tracked separately, ongoing | A single register maintained from sprint one |
| Independent testing | Penetration testing and risk analysis refreshed on material change | Book it early so remediation is not on the launch path |
| Incident readiness | Forensic grade logging and a notification clock you can actually meet | Rehearse the runbook once before you need it |
The recurring cost is the one that gets missed. Compliance is an annual operating expense, not a project line, and the annual portion tends to be a meaningful fraction of the original build once testing, log retention, access reviews and vendor renewals are counted.
Against that, the downside case. The average healthcare data breach cost $7.42 million in 2025, down from $9.77 million in 2024 and $10.93 million in 2023, though healthcare has still been the costliest industry for fifteen consecutive years.3
Detection is where the money goes. Healthcare organisations stay in the dark longer than any other sector, and the gap is not marginal.
That gap is an argument for audit logging you can actually query. A team that can answer which records were accessed, by whom and when, closes an incident in days rather than months, and the notification scope shrinks with it.
Ransom economics moved sharply in the other direction. Average demands against healthcare providers fell 91% to $343,000 in 2025 from $4 million in 2024, and the average payment fell to $150,000 from $1.47 million.4 Smaller demands are not good news on their own. They point to higher volume attacks aimed at smaller providers and vendors, which is precisely where a single under-secured app sits.
How to build a HIPAA compliant app, in order
The sequence matters more than the checklist, because several of these decisions are cheap in week one and expensive in month nine.
- Draw the PHI boundary first. List every field, every service that reads it and every place it leaves your system. Anything outside the boundary should be provably de-identified rather than assumed to be.
- Run the risk analysis before the architecture is fixed. It is a Security Rule obligation and, done early, it is also the cheapest design review you will get.
- Sign BAAs before integration. Not before launch. A vendor that will not sign is a vendor you have to design around, and finding that out late reopens the architecture.
- Build audit logging as a product feature. Give it a schema, an owner and a query interface. Retrofitting it after an incident is not possible.
- Scrub PHI at the source of every log and telemetry stream. Logger middleware, SDK allowlists, opaque push payloads, no identifiers in URLs.
- Test independently, then again after material change. Penetration testing plus a refreshed risk analysis whenever the data model or a vendor changes.
Retrofitting an existing app is possible, and the honest framing is that the cost tracks how far PHI has already spread. If it lives in one service behind one auth layer, the work is contained. If identifiers are in logs, analytics, notification payloads and three third party tools, the data flow rework will look a lot like a rebuild. Telehealth products carry an extra layer here, because video sessions, waiting rooms and scheduling metadata all count; our primer on what telehealth covers maps that surface area. If you want a second opinion on a PHI boundary before it hardens into code, start a conversation.
Frequently asked questions
What makes a mobile app HIPAA compliant?
Four things at once: signed Business Associate Agreements with every vendor that touches protected health information, technical safeguards in your own code such as unique user identity, access control, audit logging and encryption, administrative controls including a documented risk analysis, and infrastructure controls inherited from a HIPAA eligible host. There is no certificate and no pre-launch inspection, so compliance is a position you evidence when the Office for Civil Rights asks. Missing any one layer leaves the app non compliant regardless of how well the other three are built.
Do I need a Business Associate Agreement with AWS, Google Cloud or Firebase?
Yes, with each provider separately, and the BAA only covers their side of the shared responsibility model. The provider is accountable for the physical and platform layer and for the services on its HIPAA eligible list. Session handling, role based access control, audit logging and the data model remain the app team's responsibility. Using a service outside the eligible list, even at a provider that has signed a BAA, is a common and avoidable gap.
Is using ChatGPT or another AI model inside a healthcare app a HIPAA violation?
Not by itself. It becomes a violation when protected health information reaches a model provider that has not signed a Business Associate Agreement covering that specific service, or when staff paste records into a consumer chatbot. A cloud BAA does not automatically extend to a connected model API. The safer pattern is a dedicated BAA with the model provider, de-identification before the call where the feature allows it, and logging every model call as a PHI access event.
Does a fitness or wellness app need to be HIPAA compliant if it collects health data?
Often not under HIPAA, because HIPAA reaches covered entities and their business associates rather than every app that handles health data. That is not the shield it sounds like. The updated FTC Health Breach Notification Rule, in force since 29-Jul-2024, covers consumer health, fitness and wellness apps outside HIPAA jurisdiction, and the FTC has already acted against GoodRx and BetterHelp over health data shared with advertising platforms. Any app sharing health signals with an ad platform needs a consent and disclosure review whatever the HIPAA analysis concludes.
Can I retrofit an existing app to be HIPAA compliant, or does it need a rebuild?
A retrofit is possible, and the cost tracks how far protected health information has already spread through the system. If it sits in one service behind one authentication layer, the work is contained and mostly involves audit logging, access control and documentation. If identifiers have leaked into application logs, analytics, notification payloads and several third party tools, the data flow rework will resemble a rebuild. Map the current PHI boundary before estimating anything.
Sources
- HHS Office for Civil Rights: Reports to Congress on HIPAA Compliance and Breaches, 2024. hipaajournal.com
- HHS Office for Civil Rights: HIPAA Violation Civil Penalty Tiers, 2026. hipaajournal.com
- IBM Security and Ponemon Institute: Cost of a Data Breach Report, 2025. hipaajournal.com
- Sophos: The State of Ransomware in Healthcare, 2025. sophos.com
- Federal Trade Commission: Enforcement Action to Bar GoodRx from Sharing Consumers' Sensitive Health Info for Advertising, 2023. ftc.gov
- California Lawyers Association: FTC Enforcement Action Against GoodRx and BetterHelp, 2023. calawyers.org
- Paubox: Why Healthcare's AI Adoption Is Moving Faster Than Compliance Can Handle, 2025. paubox.com
- Fortune Business Insights: mHealth Apps Market, 2026. fortunebusinessinsights.com




