---
title: "The Physician Builder's HIPAA Risk Analysis Template"
subtitle: "For a practice app built with an AI app builder or coding agent (a vibe-coded app)"
author: "Palo Alto Health Labs"
date: "Version 1.0, November 15, 2026"
---

# How to use this template

This template helps a physician-led practice document a security risk analysis for one app it built, or had built, with an AI app builder or coding agent. Copy it, fill in every bracketed field, delete the example rows, and keep the finished version with your other HIPAA records.

**What the rule says.** Under 45 CFR 164.308(a)(1)(ii)(A), a covered entity or business associate must "Conduct an accurate and thorough assessment of the potential risks and vulnerabilities to the confidentiality, integrity, and availability of electronic protected health information held by the covered entity or business associate." The rule marks this specification Required.

**What comes next.** Under 164.308(a)(1)(ii)(B), risk management is also Required: "Implement security measures sufficient to reduce risks and vulnerabilities to a reasonable and appropriate level." Section 8 of this template (the remediation plan) is where you record that work.

**Keep it in writing, keep it current.** Required assessments must be documented in writing, which may be electronic (164.316(b)(1)). Documentation must be retained for 6 years from creation or the date it was last in effect, whichever is later (164.316(b)(2)(i)), and reviewed periodically and updated in response to environmental or operational changes affecting the security of ePHI (164.316(b)(2)(iii)). A new feature, a new vendor, or moving the app to new hosting is such a change.

**Where this fits with the HHS SRA Tool.** HHS's Office of the National Coordinator (ONC), with the Office for Civil Rights (OCR), offers a free downloadable Security Risk Assessment (SRA) Tool for small and medium providers. Its page states that use of the tool is not required and does not by itself establish compliance. The SRA Tool looks at your whole practice. This template zooms in on one app and the services it uses. You can use both: the practice-wide analysis should reference this app-level document.

**What this template is not.** It is not legal advice, a compliance determination, or a substitute for your practice's practice-wide risk analysis. Your security official, privacy officer and counsel decide what your practice needs. No authority certifies software as HIPAA compliant.

**Do not paste patient information into this document.** Describe kinds of data ("intake answers, medication list, insurance card photo"), never real patients.

Short definitions used below:

- **PHI / ePHI**: protected health information; ePHI is PHI in electronic form.
- **BAA**: business associate agreement, the contract in which a vendor that handles PHI for you agrees to protect it.
- **Likelihood**: how probable it is that a threat actually exploits a weakness in your app.
- **Impact**: how bad it would be for patients and the practice if it did.

---

# Section 1. Scope and ownership

| Field | Your answer |
|---|---|
| Practice name | [ ] |
| App name and version | [ ] |
| What the app does (one or two sentences) | [ ] |
| Who uses it (patients, clinicians, front desk, billing) | [ ] |
| Where it runs (web URL, phone app, iPad) | [ ] |
| How it was built (builder or coding agent, and who prompted it) | [ ] |
| Live with real patient data since | [date, or "not yet live"] |
| Security official (name, role) | [ ] |
| Person completing this analysis | [ ] |
| Date of this analysis | [ ] |
| Next scheduled review | [date; also review after any major change] |
| In scope | [the app, its database, file storage, sign-in, hosting, integrations, the builder workspace and AI tools used to build it, backups, devices staff use to open it] |
| Out of scope (covered elsewhere) | [for example, the EHR itself, covered by the practice-wide analysis dated ___] |

---

# Section 2. Asset and data-flow inventory

List every place patient data is created, stored, sent or shown. Vibe-coded apps hide PHI in places that are easy to miss: builder chat history and screenshots, seed or demo data, the auth or user table, file uploads, server logs and error trackers, analytics and session replay, email and SMS content, AI model calls, preview deployments, backups and exports, and support tickets.

| # | Component or data flow | What patient data it touches | Where it is stored or sent | Who can access it | Vendor |
|---|---|---|---|---|---|
| A1 | Example: intake form to database | Name, DOB, phone, medications, history | App database, primary region | Front desk, clinicians, app admin | [database vendor] |
| A2 | Example: insurance card photo upload | Card image (member ID, name) | File storage bucket | Front desk | [storage vendor] |
| A3 | Example: patient sign-in | Email, phone, password hash | Auth / user table | App admin | [auth vendor] |
| A4 | Example: AI summary of intake answers | Full intake answers | Sent to AI model API | Vendor systems | [AI vendor] |
| A5 | Example: appointment reminder text | Name, date, practice name | SMS provider | Vendor systems | [SMS vendor] |
| A6 | Example: error logging | Request payloads may include form fields | Error tracker | Developer accounts | [logging vendor] |
| A7 | Example: builder workspace | Prompts, screenshots, test data | Builder's platform | Anyone with workspace access | [builder] |
| A8 | Example: preview / staging deployment | Copy of production data? | Preview URL | Anyone with the link? | [host] |
| A9 | Example: nightly backup / CSV export | Full database | [location] | [ ] | [ ] |
| A10 | [ ] | [ ] | [ ] | [ ] | [ ] |

Attach or link a simple data-flow diagram if you have one.

---

# Section 3. Vendors and BAAs

A covered entity may let a business associate create, receive, maintain or transmit PHI on its behalf only with satisfactory assurance that it will appropriately safeguard the information (164.502(e)(1)(i)). A subcontractor that does the same for your vendor is also a business associate (160.103). HHS has said a data storage company holding PHI is a business associate even if it does not view the information (78 FR 5572).

For every vendor in Section 2:

| Vendor | Service used | Touches PHI? (Y/N/unsure) | BAA signed? (date, signer) | Plan or tier the BAA requires | Services the BAA covers | Services you use that it does NOT cover | Data return / deletion at end of contract | Where the signed copy is filed |
|---|---|---|---|---|---|---|---|---|
| [builder] | [ ] | [ ] | [ ] | [ ] | [ ] | [ ] | [ ] | [ ] |
| [database] | [ ] | [ ] | [ ] | [ ] | [ ] | [ ] | [ ] | [ ] |
| [hosting] | [ ] | [ ] | [ ] | [ ] | [ ] | [ ] | [ ] | [ ] |
| [auth] | [ ] | [ ] | [ ] | [ ] | [ ] | [ ] | [ ] | [ ] |
| [AI model API] | [ ] | [ ] | [ ] | [ ] | [ ] | [ ] | [ ] | [ ] |
| [email / SMS] | [ ] | [ ] | [ ] | [ ] | [ ] | [ ] | [ ] | [ ] |
| [logging / analytics] | [ ] | [ ] | [ ] | [ ] | [ ] | [ ] | [ ] | [ ] |

Any "Y" or "unsure" without a signed BAA is a risk. Record it in Sections 4 to 8.

Check the dated BAA Matrix for each vendor's current public stance: https://paloaltohealthlabs.com/guides/vibe-coded-hipaa/2026-baa-matrix/

---

# Section 4. Threats and vulnerabilities

A **threat** is something that could go wrong (a person, an event, a mistake). A **vulnerability** is the weakness that would let it happen. Consider confidentiality (who can see the data), integrity (could it be changed or corrupted) and availability (could you lose access to it).

Prompts for a vibe-coded app:

- Database rules that let any signed-in user read every patient's rows.
- API keys or service credentials in front-end code or in the repository.
- PHI sent to a vendor with no BAA (AI model, email, SMS, analytics, error tracker).
- Real patient data pasted into builder chat or used as seed data.
- Preview or staging links that show production data to anyone with the URL.
- Shared staff logins; no multi-factor sign-in; former staff still have access.
- No record of who viewed or changed which patient record.
- No tested backup; data lives only in a builder's managed database.
- Patient-facing file uploads stored in a publicly readable bucket.
- An AI feature that could produce unsafe clinical output (a clinical-safety risk as well as a privacy one).
- Lost or shared devices with the app left signed in.

Record each one you find in Section 7 (risk register).

---

# Section 5. Likelihood and impact scales

Use the same scale every time so ratings are comparable year to year.

**Likelihood**

| Score | Label | Meaning |
|---|---|---|
| 1 | Low | Would need several unusual failures at once; no sign it has happened. |
| 2 | Medium | Plausible in the next year given how the app is built and used. |
| 3 | High | Easy to exploit, already exposed, or has already happened. |

**Impact**

| Score | Label | Meaning |
|---|---|---|
| 1 | Low | Few records, limited sensitivity, quickly contained. |
| 2 | Medium | Many records or sensitive data; patient notification may be needed. |
| 3 | High | Large exposure, highly sensitive data (for example behavioral health, reproductive, substance use), loss of records, or harm to care. |

**Risk score = Likelihood x Impact.** 1-2 = Low, 3-4 = Medium, 6-9 = High.

---

# Section 6. Current controls

For each component in Section 2, list what already protects it. Be specific and note evidence (a screenshot, a setting, a signed document).

| Component (# from Section 2) | Access control (who can reach it, by role) | Sign-in (unique accounts, MFA) | Audit log (what is recorded, who reviews it, how often) | Encryption in transit / at rest | Backup and restore tested? | Evidence |
|---|---|---|---|---|---|---|
| [A1] | [ ] | [ ] | [ ] | [ ] | [ ] | [ ] |
| [A2] | [ ] | [ ] | [ ] | [ ] | [ ] | [ ] |

Notes from the rule: systems with ePHI need audit controls that record and examine activity (164.312(b)), and activity records such as audit logs and access reports must be reviewed regularly (164.308(a)(1)(ii)(D)). "Addressable" items are not optional: implement them if reasonable and appropriate, or document why not and implement an equivalent alternative if reasonable and appropriate (164.306(d)(3)).

---

# Section 7. Risk register (risk level)

Use the companion CSV file (physician-builder-risk-register.csv) or this table. One row per risk.

| ID | Component | Threat / vulnerability | Current controls | Likelihood (1-3) | Impact (1-3) | Score | Level |
|---|---|---|---|---|---|---|---|
| R1 | Example: A4 AI summary | Intake answers sent to an AI API with no BAA | None | 3 | 3 | 9 | High |
| R2 | Example: A1 database | Row rules let any signed-in patient read other patients' records | Sign-in required | 2 | 3 | 6 | High |
| R3 | Example: A6 error logging | Error tracker stores form payloads with PHI | Developer-only access | 2 | 2 | 4 | Medium |
| R4 | [ ] | [ ] | [ ] | [ ] | [ ] | [ ] | [ ] |

---

# Section 8. Remediation plan (risk management)

Start with High risks. For each, decide: fix, replace the component, stop the data flow, or accept the risk with a written reason.

| Risk ID | Action | Owner | Target date | Status | Residual likelihood | Residual impact | Residual level | Evidence of completion |
|---|---|---|---|---|---|---|---|---|
| R1 | Example: turn off AI summary until a BAA-covered model endpoint is in place | [ ] | [ ] | Open | 1 | 3 | Low | [ ] |
| R2 | Example: rewrite row rules so each user sees only permitted records; test with two test accounts | [ ] | [ ] | Open | 1 | 3 | Low | [ ] |
| R3 | Example: scrub form fields from error logs or move to a BAA-covered logger | [ ] | [ ] | Open | 1 | 2 | Low | [ ] |
| [ ] | [ ] | [ ] | [ ] | [ ] | [ ] | [ ] | [ ] | [ ] |

Accepted risks (with reason and approver):

- [ ]

---

# Section 9. Sign-off and review

| Role | Name | Signature | Date |
|---|---|---|---|
| Security official | [ ] | [ ] | [ ] |
| Practice owner / physician lead | [ ] | [ ] | [ ] |
| Person who built or maintains the app | [ ] | [ ] | [ ] |
| Reviewer (privacy officer, counsel or outside reviewer, if any) | [ ] | [ ] | [ ] |

**Review triggers** (re-run Sections 2 to 8 when any of these happen): a new feature that handles patient data; a new vendor or AI model; a change of hosting, database or builder plan; a security incident; a staff role change affecting app access; and at least once each year.

**Retention:** keep each signed version for at least 6 years from creation or the date it was last in effect, whichever is later.

---

# Sources

- 45 CFR 164.308 (administrative safeguards), 164.306 (general rules), 164.312 (technical safeguards), 164.316 (documentation), 164.502(e) and 160.103 (business associates): eCFR, https://www.ecfr.gov/current/title-45/part-164 , text checked November 15, 2026.
- 78 FR 5566, 5572 (HIPAA Omnibus Final Rule preamble): https://www.govinfo.gov/content/pkg/FR-2013-01-25/html/2013-01073.htm
- ONC Security Risk Assessment Tool page (Last Updated September 18, 2026): https://healthit.gov/privacy-security/security-risk-assessment-tool/
- Plain-language guide to this template: https://paloaltohealthlabs.com/guides/vibe-coded-hipaa/risk-analysis-template/

Prepared by Palo Alto Health Labs. General information, not legal advice. If your app already holds patient data and you want help moving it into an environment built for HIPAA compliance, with a BAA, see https://paloaltohealthlabs.com/fabrica/
