← Overnight blog Compliance & Audit

GDPR, HIPAA, and AI-Generated Software: The Data-Processing Blind Spot

When AI-generated software processes personal data or PHI, the same rules apply as for any other processing. What changes is that the chain of accountability the regulations depend on quietly goes missing.

Guide 5 min read Updated July 21, 2026

The AI-generated code GDPR HIPAA question usually gets framed as if AI were a novel regulatory category. It isn't. If software processes the personal data of EU residents, GDPR applies. If it touches protected health information (PHI) in the US, HIPAA applies. The regulations care about what happens to the data, and they are indifferent to which tool wrote the code. The blind spot is subtler. Both frameworks rest on a chain of contractual accountability, and AI-generated software has a habit of breaking that chain without anyone noticing.

The rules have no AI exception

Under GDPR, a controller decides why and how personal data is processed, and a processor handles that data on the controller's behalf. Article 28 is explicit: a controller may use only processors offering "sufficient guarantees," and the relationship must be governed by a binding written contract setting out the subject matter, duration, and nature of the processing. There is no carve-out for data handled by an app a model generated last Tuesday.

HIPAA reaches the same place by a different route. Anyone who creates, receives, maintains, or transmits PHI on behalf of a covered entity is a business associate, and the covered entity must obtain "satisfactory assurances" through a written business associate agreement (BAA) before that entity touches PHI. HHS is clear that business associates face direct liability for how they handle PHI. The contract does real work here: it is the instrument that assigns responsibility.

The flow-down problem

Here is where AI-generated software gets awkward. Neither regulation lets accountability stop at the first vendor. GDPR Article 28(4) requires that when a processor engages "another processor," meaning a subprocessor, "the same data protection obligations" must be imposed on that subprocessor by contract, and the original processor "shall remain fully liable" for the subprocessor's performance. HIPAA imposes the mirror-image rule: subcontractors that handle PHI on behalf of a business associate are themselves business associates and must agree to the same restrictions down the chain.

Both frameworks assume you can name every party in that chain and point to a contract binding each one. That assumption is what breaks. When an internal team spins up an AI-generated app that queries a customer database or a claims system, the app becomes a place where regulated data is processed, and it usually has no processor of record, no BAA, and no entry on anyone's subprocessor list. The data is being handled. The paperwork that is supposed to govern the handling never got written.

The blind spot

GDPR and HIPAA both require a named, contractually bound party for every link in the data-processing chain. An ad-hoc AI-built app touching regulated data is an anonymous link: processing is happening, and no processor or business associate of record stands behind it.

Why the model vendor can't be your processor

The tempting shortcut is to point at the model provider or the code generator and call them the processor. It doesn't hold. When you send a prompt to a model, that provider may indeed process the data in the prompt under its own terms. That is a separate act from what the software the model emits goes on to do. The generated app runs in your environment, against your database, making its own calls, and the vendor that produced the code takes no responsibility for its behavior at runtime.

This is the line most generation tools will not cross. A code generator writes the software and leaves. It will not sign a BAA or list itself as your GDPR subprocessor for the behavior of code you deploy and run. That refusal is rational on their part, and it leaves you with output that touches regulated data and a contract of record that covers none of the execution. The accountability GDPR and HIPAA demand has to attach to whatever actually runs the software and mediates its access to data. Authorship is beside the point.

Question the regulation asksWho answers for AI-generated software?
Who is the processor / business associate handling this data?Often nobody, because the app was built ad hoc
Is there a contract (Art. 28 / BAA) covering the processing?Rarely for the runtime behavior of generated code
Does the model vendor sign on as subprocessor?No. They wrote the code and left
Can you produce an audit trail of what touched the data?Only if the runtime records it
What GDPR and HIPAA each ask of AI-generated software, and who is on the hook for the answer.

Where accountability has to live

If the code can't carry the accountability and the model vendor won't, the runtime has to: the boundary the software executes inside. That is the layer that can be named on a subprocessor list, bound by a contract, and made to produce the record of what touched which data. A runtime that mediates every call, isolates each app to a tenant you control, and logs everything is the one party in the chain positioned to sign on for how generated software behaves. Getting your compliance posture right for AI-generated software has less to do with vetting each app than with having a runtime willing to stand behind all of them.

Sources

  1. Article 28 GDPR, "Processor" (controller-processor contract, subprocessor authorization and flow-down of obligations under Art. 28(2) and 28(4)) · gdpr-info.eu/art-28-gdpr
  2. U.S. Department of Health and Human Services, "Business Associates" guidance (definition, satisfactory-assurances written contract) · hhs.gov
  3. U.S. Department of Health and Human Services, "Business Associate Contracts" sample provisions (required BAA terms; subcontractors handling PHI are business associates) · hhs.gov
Early access

Request access

Tell us where you want to run AI-written code and we will get back to you.

We use this to connect with you, and for nothing else. No recurring marketing emails.