Glossary
HIPAA compliance
HIPAA compliance for AI means any AI system that handles protected health information for US covered entities does so under HIPAA's privacy, security and breach rules, usually under BAAs.
HIPAA compliance for AI means that an AI system which creates, receives, stores or transmits protected health information (PHI) for a US healthcare provider, health plan or clearinghouse does so under the safeguards the Health Insurance Portability and Accountability Act requires. In practice that covers the model provider, the vector database, the agent memory layer, the logging stack and every other service that touches PHI, and each of those vendors normally signs a business associate agreement (BAA). There is no official HIPAA certification. Compliance is a state an organisation maintains through its own policies, risk assessments and contracts, so the useful question for an AI team is whether a tool can be used inside a compliant system, and on what terms.
Who HIPAA applies to
HIPAA applies to covered entities (healthcare providers that bill electronically, health plans and healthcare clearinghouses) and to their business associates, which are the companies that handle PHI on a covered entity’s behalf. A startup selling an AI scribe to clinics is a business associate. So is the cloud provider hosting its database, if that database holds PHI; it becomes a subcontractor business associate further down the chain. A consumer wellness app that never works for a covered entity usually falls outside HIPAA, though it may still be caught by state privacy laws or the FTC’s Health Breach Notification Rule.
PHI is individually identifiable health information: anything that links a person to their health condition, their care or payment for that care. A transcript of a patient describing symptoms is PHI. So is an appointment reminder that pairs a name with a clinic. Once a record is properly de-identified under the Safe Harbor or Expert Determination methods it stops being PHI, which is why de-identification comes up so often in AI projects that want to train or evaluate on clinical data.
The three rules that matter for AI systems
Most of the obligations sit in three parts of the regulation. The table below summarises what each asks for and how it lands on an AI product.
Rule | What it requires | What it means for an AI system |
|---|---|---|
Privacy Rule | Limits on how PHI is used and disclosed, plus patient rights such as access to their records | Use PHI only for the permitted purpose and apply the minimum necessary standard to prompts and retrieval |
Security Rule | Administrative, physical and technical safeguards for electronic PHI | Access controls, encryption, audit controls, integrity checks and transmission security across every component |
Breach Notification Rule | Notice to individuals, HHS and sometimes the media after a breach of unsecured PHI | Know where PHI flows so you can tell what was exposed and whom to notify |
The Security Rule is the one engineering teams feel most. Its technical safeguards ask for unique user identification, emergency access procedures, automatic logoff, audit controls, integrity controls and transmission security. Encryption is listed as addressable rather than required, but almost every organisation treats encryption at rest and encryption in transit as mandatory, because PHI encrypted to the standard HHS describes does not count as unsecured for breach notification purposes.
Where PHI goes in an AI agent
A traditional application stores PHI in a database and perhaps a file store. An AI agent spreads it much further. The patient’s words enter a prompt, the prompt goes to a model provider, retrieved documents come back from a RAG pipeline, the agent writes notes, and facts are extracted into a memory layer so the next session can pick up where this one left off. Each hop is a place where PHI is processed, and each processor needs to be covered.
A useful exercise is to draw the data flow for a single request and mark every system it touches. For a clinical assistant the list typically includes the speech-to-text service, the LLM gateway, the model provider, the search index, the memory store, the file storage holding uploaded documents, the tracing tool and any background job that summarises or re-indexes content. LLM observability tools are easy to forget. They often log full prompts and completions, which means they hold PHI too.
Memory deserves particular attention. Long-term memory is designed to keep facts about a person across sessions, so it becomes a durable store of health information by construction. That is useful: a healthcare agent that remembers a patient’s medication preferences and past interactions gives better, safer answers. It also means the memory layer needs the same access controls, retention rules and deletion paths as the electronic health record itself.
Business associate agreements
A BAA is the contract in which a vendor agrees to safeguard PHI, report breaches, limit its own use of the data and pass the same obligations on to its subcontractors. Without one, a covered entity or business associate generally cannot send PHI to that vendor at all, however good its security is. The large cloud providers offer BAAs covering a published list of eligible services, and several model providers offer them for specific API products and configurations, sometimes with conditions such as zero data retention.
Two details catch teams out. A BAA usually covers named services rather than a whole account, so a team can be covered for one storage product and uncovered for the logging service sitting next to it. The chain also has to be unbroken: if your vendor’s subprocessor handles PHI without its own agreement, the gap becomes yours to close. Ask every vendor directly whether it signs BAAs, which services the agreement covers and which subprocessors sit behind it. That question applies to Exabase as much as to anyone else.
Technical safeguards in practice
Most of the engineering work maps onto controls that a well-run multi-tenant system needs anyway.
Access control and isolation. Each user should reach only the PHI they are allowed to see, and one customer’s data must never surface in another customer’s results. In AI systems the usual failure is retrieval that forgets a filter, so a search for one clinic returns another clinic’s documents. Tenant isolation enforced at the infrastructure level makes that mistake much harder to make than a shared index guarded by row-level security or a metadata filter. Least privilege applies to agents as well: give an agent the tools and records it needs for the task in front of it and nothing more.
Encryption. Encrypt PHI at rest, typically with AES-256, and in transit with TLS. Keep API keys server-side, scope them tightly and rotate them.
Audit controls. Record who or what accessed or changed PHI, and when. For agents that means logging tool calls and the records they touched, and keeping an audit trail of memory writes, updates and deletions so a reviewer can reconstruct what the system knew at a given moment.
Integrity. Protect PHI from improper alteration or destruction. An agent with write access can rename, move or delete records by mistake, so versioning and recovery matter. A snapshot history that records the state of a workspace over time lets you see what an agent changed and restore what it removed, without reverting everyone else’s work.
Retention and deletion. HIPAA does not set one retention period for medical records (state law usually does), but it does expect PHI to be disposed of properly once it is no longer needed. Decide how long transcripts, memories, extraction outputs and logs are kept, and make sure deletion reaches every copy, including search indexes and caches. Data retention policies for AI systems need to cover derived data such as embeddings and extracted facts as well as the original files.
Common mistakes in AI projects
The first is sending PHI to a model or tool under a standard account with no BAA in place, often during a prototype that later reaches production unchanged. The second is assuming that because the main database is covered everything is covered, when traces, error reports, analytics events and vector indexes also hold PHI. The third is building one shared index for all customers and relying on metadata filters for separation, which works until a query omits the filter and causes cross-tenant data leakage. The fourth is forgetting that memories and summaries are derived PHI: deleting a patient’s uploaded file does not delete the facts an agent extracted from it.
Prompt injection adds a newer risk with a HIPAA angle. A document or message that instructs the agent to reveal another patient’s details is an attempt to cause an impermissible disclosure. Isolation and least privilege limit the damage far more reliably than careful prompt wording, because an agent that cannot reach another patient’s records cannot leak them.
HIPAA alongside other frameworks
Because HIPAA has no certification scheme, buyers often ask for evidence from other frameworks. A SOC 2 report, an ISO 27001 certificate or a HITRUST certification shows that a vendor’s controls have been independently examined, though none of them makes a system HIPAA compliant by itself. CASA certification plays a similar role for applications that access Google user data. Teams serving European patients also need to think about GDPR for AI, which treats health data as a special category and gives people rights such as the right to be forgotten that reach into agent memory. Where data is stored can matter as well; see data residency.
Where Exabase fits
Exabase is infrastructure that a healthcare AI product can build on, and the compliance determination for any deployment belongs to the customer’s own legal, security and engineering review. Exabase does not hold a HIPAA certification (no such certification exists) and does not claim SOC 2. It is CASA certified, encrypts data with AES-256 at rest and SSL in transit, and scans uploaded images and video for malware.
The parts of the platform that map onto the safeguards above are isolation, memory control and recovery. A Base is an isolated environment with its own file storage, memory, search index and extraction pipeline, and a call scoped to one Base cannot reach another Base’s data whatever the query says. Teams can create one Base per patient, per practice or per customer, as described on the multi-tenant solution page and in the about Bases guide. Memory follows the same Base ID (see memory scoping), individual memories can be removed through the delete memory endpoint, and deleting a Base permanently removes its files, memories, search index and history (deleting Bases). Every memory carries creation and modification timestamps, and filesystem snapshotting records resource metadata for up to seven days so you can see what an agent changed. Snapshots record metadata, not file content.
Before sending PHI to Exabase or any other vendor, confirm directly whether a BAA is available for your use and what it covers. The healthcare industry page shows how teams structure patient context, and patient context for healthcare agents: the compliance view walks through the design questions in more depth.
Frequently asked questions
Is there a HIPAA certification for AI tools?
No. HHS does not certify products or vendors for HIPAA. A third-party badge reflects a private assessment; what matters is whether the vendor signs a BAA and whether your overall system meets the Privacy, Security and Breach Notification Rules.
Can I send patient data to an LLM API?
Only if the provider signs a BAA that covers the specific API product you use, and your configuration matches the terms of that agreement. Without a BAA, send only de-identified data.
Does de-identified data fall under HIPAA?
No. Data de-identified under the Safe Harbor or Expert Determination method is no longer PHI. Re-identification risk still deserves care, especially when an agent combines several sources about the same person.
Is agent memory PHI?
Yes, if it holds health information linked to an identifiable person. Extracted facts, summaries and conversational memory derived from PHI should get the same access, retention and deletion rules as the source records.
Are vector embeddings PHI?
Treat them as PHI. Embeddings derived from clinical text can leak information about their source and usually sit next to identifiers in the index, so protect and delete them along with the records they came from.
What is the minimum necessary standard?
It is the Privacy Rule requirement to use or disclose only the PHI needed for a purpose. For AI agents it means retrieving the facts relevant to the current task instead of loading a patient’s full record into the context window.
Does Exabase sign BAAs?
Exabase’s published feature documentation does not state BAA availability, so confirm it with Exabase before sending PHI. Exabase is CASA certified, encrypts data with AES-256 at rest and isolates each Base at the infrastructure level.
Related pages: SOC 2, GDPR for AI, Right to be forgotten, Zero data retention, Encryption at rest, Audit trail, Healthcare agents use case, Multi-tenant solution, Compliance audit use case, Compliance will decide which agents ship