Key takeaway
A HIPAA-compliant development process embeds security activities in every phase: applicability and data mapping in discovery, risk analysis and threat modeling in design, secure coding and automated checks in build, control verification and penetration testing in QA, readiness reviews at launch, and monitoring and periodic reassessment in operations. Each activity should leave an artifact that demonstrates the safeguard exists.
Last reviewed November 17, 2026
Phase overview: activities and artifacts
The table summarizes the process. The sections that follow explain each phase in more detail.
| Phase | Key security activities | Artifacts produced |
|---|---|---|
| Discovery | HIPAA applicability, data inventory, vendor BAA screening, customer security requirements | Applicability memo, data inventory, data flow diagram, vendor list with BAA status |
| Design | Risk analysis, threat modeling, architecture and identity design, encryption and key management design | Risk register, threat model, architecture diagram, access control matrix, key management description |
| Build | Secure coding standards, code review, SAST, secret scanning, dependency and IaC scanning, PHI-safe logging | Pipeline scan results, SBOM, reviewed pull requests, infrastructure as code |
| Testing | Authorization tests, audit log verification, ASVS or MASVS checks, penetration test, restore test | Test reports, pen test report with remediation tracking, backup restore record |
| Launch | Readiness review, BAA reconciliation, incident response tabletop, monitoring verification | Go-live checklist, updated risk analysis, tabletop notes, security documentation package |
| Operations | Log review, access recertification, patching, vulnerability management, periodic reassessment | Review records, patch reports, access review sign-offs, risk analysis updates |
Phase 1: Discovery
Discovery defines the problem and the compliance boundary. Product and engineering interview stakeholders about workflows, while a security lead establishes whether HIPAA applies, which data elements are PHI and which vendors are in scope.
The most valuable output is a data flow diagram that shows every path PHI takes, including analytics, support and notification channels. It is the input for the risk analysis and the vendor BAA review, and it often removes features or vendors before anyone writes code.
- Collect customer security requirements early: SSO, data residency, audit export, retention and questionnaire expectations.
- Identify sensitive data categories that need extra handling, such as 42 CFR Part 2 records.
- Screen each proposed vendor for BAA availability and the plan tier that includes it.
Phase 2: Design
Design turns requirements into an architecture and a documented assessment of its risks. The Security Rule's risk analysis requirement (45 CFR 164.308(a)(1)(ii)(A)) fits naturally here, because you can still change the design cheaply.
Threat modeling with a method such as STRIDE complements the risk analysis by examining each component and data flow for spoofing, tampering, repudiation, information disclosure, denial of service and elevation of privilege. The access control matrix, which maps roles to PHI resources and actions, becomes the specification for authorization code and tests.
HIPAA requirement
What the rules themselves require
- Risk analysis and risk management (164.308(a)(1)(ii)(A) and (B)).
- Designs that implement access control, audit controls, integrity, authentication and transmission security (164.312).
- Documented decisions for addressable specifications such as encryption and automatic logoff.
Recommended practice
Widely accepted security practice
- STRIDE or similar threat modeling for each significant feature.
- Security requirements written as testable acceptance criteria, mapped to OWASP ASVS or MASVS.
- Key management design using a managed KMS with separation of duties.
Architecture decision
Depends on your product and risk analysis
- Tokenization or a separate identity vault for direct identifiers.
- Per-tenant encryption keys, depending on customer requirements.
- A formal privacy impact assessment for AI or analytics features.
Your organization's responsibility
Policies and operations software cannot do
- Risk acceptance decisions by the accountable executive or security official.
- Approval of the minimum necessary access policy that the access matrix implements.
- Contracting and BAA execution with chosen vendors.
Phase 3: Build
During build, the process should make the secure path the easy path. Shared libraries handle authorization checks, audit events and PHI redaction so individual developers do not reinvent them. Every change reaches production through a reviewed pull request and an automated pipeline.
Code review
Reviewers use a checklist covering authorization on every endpoint, input validation, PHI in logs and error messages, and secrets handling.
Automated scanning
SAST, secret scanning, dependency scanning and IaC scanning run on each pull request, with severity thresholds that block merges.
Environment hygiene
Non-production environments use synthetic or de-identified data. Production access is limited, logged and time-bound.
Supply chain
Pin dependency versions, generate an SBOM per release and sign build artifacts where your platform supports it.
Phase 4: Testing and verification
Functional QA confirms features work. Security verification confirms controls work, and it needs deliberate test cases: horizontal and vertical privilege escalation attempts, session expiry, audit log completeness, error messages that leak data, and transport configuration.
An independent penetration test before launch gives you an outside view and an artifact customers will ask for. Track every finding to closure or documented risk acceptance, and test a backup restore so the contingency plan is grounded in reality.
Phase 5: Launch readiness
- 1
Reconcile vendors and BAAs
Compare the production vendor list and data flows with signed BAAs. Remove or reconfigure anything that sends PHI without one.
- 2
Update the risk analysis
Record the as-built architecture, test findings and remaining risks with owners and due dates.
- 3
Run an incident response tabletop
Walk through a realistic scenario, such as a leaked access token, including breach risk assessment and notification decisions.
- 4
Verify monitoring
Confirm alerts fire and reach on-call staff for suspicious authentication, privilege changes and bulk data access.
- 5
Assemble the security package
Architecture summary, data flow diagram, encryption description, pen test summary and policy references for customer reviews.
Phase 6: Operations and continuous improvement
The process does not end at launch. Set a calendar of recurring activities and keep the records, because HIPAA requires required documentation to be retained for six years from creation or last effective date (164.316(b)(2)).
- Regular audit log review, with defined triggers for investigation.
- Periodic access recertification for workforce users and customer administrators.
- Patch and vulnerability remediation within defined timelines by severity.
- Risk analysis updates on a regular cycle and whenever the architecture, vendors or data flows change materially.
- Periodic penetration tests and backup restore tests.
Who owns what: a simple responsibility map
Process failures in healthcare projects are often ownership failures. A security activity that belongs to everyone tends to belong to no one, so name an owner for each artifact before the project starts.
| Activity | Typical owner | Typical contributors |
|---|---|---|
| Applicability decision | Privacy or compliance lead with counsel | Product lead, engineering lead |
| Data flow map | Engineering or architecture lead | Product, security, integration engineers |
| Risk analysis | Security official | Engineering, operations, clinical and business owners |
| Vendor BAA review | Compliance or legal | Engineering (to confirm actual data flows) |
| Threat model | Security engineer or tech lead | Feature developers, QA |
| Penetration test coordination | Security lead | Engineering for remediation and retest |
| Incident response plan | Security official | Engineering on-call, legal, communications, privacy |
Common gaps in a HIPAA-compliant app development process
When we assess existing healthcare products, the same process gaps recur. None of them are hard to fix once named, but each one tends to surface at the worst time: during a customer's security review or after an incident.
Risk analysis disconnected from engineering
The document exists but was written by someone who never saw the architecture, so it lists generic risks rather than the app's real data flows.
Vendors added outside the process
A marketing, support or analytics tool is adopted without passing through BAA review, creating an unreviewed PHI flow.
Security findings without owners
Pen test findings sit in a PDF instead of a tracked backlog with due dates and accepted-risk decisions.
No change trigger for reassessment
Major features ship without anyone asking whether the data flow map or risk analysis needs an update.
Evidence assembled by hand
Every customer questionnaire becomes a scramble because evidence is not produced automatically by the pipeline and infrastructure code.
How we run the process with your team
Our approach is to own the engineering side of each phase and produce the artifacts as part of delivery, while your compliance, legal and clinical leaders own the organizational decisions: risk acceptance, policies, workforce training and contracts. We design the handoffs so those decisions are made with clear information rather than discovered at go-live.
Frequently Asked Questions
What are the phases of HIPAA-compliant app development?
Discovery, design, build, testing, launch and operations. Each phase has specific security activities, such as data mapping in discovery and risk analysis in design, and produces artifacts that show the safeguards exist.
When should the HIPAA risk analysis happen?
Start it in the design phase, using the data flow map from discovery, and update it before launch and whenever the system changes materially. A risk analysis written after launch cannot influence the design decisions it should have informed.
What documentation should a HIPAA development process produce?
Typically a data flow diagram, risk analysis and risk register, threat model, architecture and access control documentation, scan and test results, a penetration test report, vendor BAA records and an incident response plan. HIPAA requires retention of required documentation for six years.
Does agile development work for HIPAA-compliant apps?
Yes. Security activities fit into sprints as acceptance criteria, threat modeling for new features and automated pipeline checks. The key is updating the risk analysis and data flow map as the product evolves rather than treating them as one-time documents.
Who is responsible for HIPAA compliance during development?
The covered entity or business associate is accountable. The development team designs and builds safeguards and produces evidence, while the organization owns policies, training, BAAs, risk acceptance and incident response.
Is a penetration test required by HIPAA?
HIPAA does not name penetration testing, but it requires periodic evaluation of safeguards (164.308(a)(8)) and risk management. Penetration testing is widely accepted practice and most enterprise healthcare customers expect it.