Page content

AI Audits & Compliance

AI GDPR Compliance and HIPAA Review

Use AI on personal data without guessing where that data goes.

Code & Pepper's AI GDPR compliance review maps how personal and health data moves through your chatbots, RAG systems, AI agents and LLM integrations, then closes the gaps an auditor, DPO or enterprise buyer would find. The AI data privacy review runs 2–4 weeks and ends with a data flow map, a completed DPIA for AI, a vendor and LLM data residency assessment, and a prioritised list of engineering fixes. It is built for FinTech, InsurTech and HealthTech teams that process data under GDPR, UK GDPR or HIPAA. Our engineers review the system as built, in code, logs and configuration, not only the policy documents.

Key numbers

growth in one year on Sohar Health's HIPAA-regulated API platform, with no compliance incident
7×
US health insurers configured on Sohar Health's eligibility platform
~3,000
building HIPAA-compliant telehealth for Pelago (since January 2022)
4+ years
standards, incl. GDPR, HIPAA, SOC 2 and ISO 27001, in the Mindsec compliance platform we engineer
20+

AI GDPR compliance review at a glance

Item Detail
What it is An engineering-led AI data privacy review of one or more AI systems that touch personal or health data
Duration 2–4 weeks per review, depending on the number of AI systems and vendors
Deliverables Data flow map, DPIA for AI (draft for DPO sign-off), vendor and LLM data residency register, AI vendor data processing agreement gap list, prioritised fix backlog
Regulations GDPR, UK GDPR, HIPAA (Privacy and Security Rules), EU AI Act touchpoints (Art. 26 deployer duties)
AI systems in scope Chatbots and assistants, RAG and AI search, AI agents and MCP tools, document AI, ML scoring models, AI coding tools
Model providers covered OpenAI, Anthropic Claude, Google Vertex AI / Gemini, AWS Bedrock, Azure OpenAI, self-hosted open-weight models
Industries FinTech, InsurTech, HealthTech, RegTech, SaaS
Delivery Remote from Poland (EU), working hours overlap with UK, EU and US East Coast
Follow-on Implementation of fixes by the same team, or handover to yours

Regulated data products already in the market

Sohar Health (US, since 2023)

Backend engineering for a HIPAA-regulated eligibility and benefits API that grew 7× in a year under BAAs and client-side final code review. AI is used for data quality checks with a human approving every change.

Pelago

Pelago (UK/US, since 2022)

Telehealth platform for substance use treatment, built with HIPAA-compliant consent and data flows and integrations with Express Scripts and remote monitoring devices.

Mindsec (US, since 2024)

Frontend and backend for a compliance automation platform covering 20+ standards, including GDPR, HIPAA, SOC 2 and ISO 27001, with automated evidence collection and continuous monitoring.

Why Code & Pepper for AI GDPR compliance?

Code & Pepper has built software for regulated finance and healthcare since 2006. We review AI privacy the way we build products: in the code, the data pipelines and the vendor settings.

We already ship under HIPAA and GDPR.

Sohar Health, Pelago and Patchwork run on systems our teams build and maintain, with BAAs, NHS data rules and client-side compliance review as part of normal delivery.

We read the system, not just the policy.

The review traces real prompts, embeddings, logs and tool calls, so findings point to a file, a setting or a contract clause you can change.

We can fix what we find.

The same engineers implement redaction, retention, regional routing and access controls, or hand a ready backlog to your team.

What the AI GDPR and HIPAA review covers

From the first prompt to the last log line, every place personal data can reach.

Explore all AI services

Regulations and guidance the review maps to

EU and UK data protection

GDPR Art. 5, 6 and 9: principles, lawful basis, special category data

GDPR Art. 22: automated decisions with legal or similar effect

GDPR Art. 25: data protection by design and by default

GDPR Art. 28: processor contracts with AI vendors

GDPR Art. 35: data protection impact assessment

GDPR Chapter V: transfers outside the EEA, incl. the EU-US Data Privacy Framework and SCCs

EDPB Opinion 28/2024 on personal data in AI models

UK GDPR and Data Protection Act 2018

US health data

HIPAA Privacy Rule: minimum necessary use and disclosure of PHI

HIPAA Security Rule: administrative, physical and technical safeguards

Business Associate Agreements with every AI vendor that receives PHI

De-identification by Safe Harbor or Expert Determination

AI-specific rules

EU AI Act Art. 26: deployer duties, incl. using provider information for the DPIA

EU AI Act Art. 50: transparency for chatbots and generated content (applies from 2 August 2026)

Model provider terms on training use, retention and abuse monitoring

How the AI GDPR compliance review runs, week by week

The review takes 2–4 weeks in four phases, and every phase ends with something your DPO or CTO can use on its own. Phase durations below are proposals.

  1. 2–3 days

    Scope and inventory

    Kick-off with product, engineering and the DPO; list of AI systems, models, vendors and data categories; read access to repositories, cloud consoles and vendor settings. Deliverable: AI system and vendor inventory.

  2. 1–2 weeks

    Data flow and technical review

    Trace personal data and PHI through prompts, context, embeddings, tool calls, outputs, logs and backups; test redaction, retention and deletion. Deliverable: AI data privacy review findings and a data flow map.

  3. 3–5 days

    DPIA, residency and contracts

    Complete the DPIA for AI, the LLM data residency and transfer assessment, and the AI vendor data processing agreement and BAA gap list. Deliverable: draft DPIA and vendor register.

  4. 2–3 days

    Report and fix plan

    Read-out to leadership; findings ranked by risk and effort; backlog written as engineering tickets. Deliverable: report and prioritised backlog.

  5. Optional phase 5

    implementation of fixes by Code & Pepper engineers, usually 2–6 weeks.

Privacy by design AI: the controls we check and build

Minimisation and redaction

PII and PHI detection before data reaches the model

Pseudonymisation and tokenisation of identifiers

Prompt templates that send only the fields a task needs

Output filtering for personal data the model should not repeat

Access and identity

Permission-aware retrieval in RAG (users see only what they could see in the source)

Scoped credentials and OAuth for agents and MCP tools

Human approval for actions on personal data

SSO and role-based access to transcripts and logs

Residency and hosting

EU or US region pinning per provider and endpoint

Zero data retention and training opt-out settings verified in the console

Model routing that keeps sensitive requests on approved models

Self-hosted open-weight models where data cannot leave your cloud

Retention, deletion and audit

Retention limits for prompts, outputs, traces and embeddings

Deletion that reaches vector stores, caches and backups

Audit trail of who or what accessed personal data

Breach detection and 72-hour GDPR notification readiness

Which AI compliance review do you need?

Pick by the question you need answered; most regulated teams start with privacy and add the others as the AI estate grows.

Review Answers the question Typical trigger Link
AI GDPR & HIPAA Review (this page) Is personal data in our AI handled lawfully and safely? Enterprise security questionnaire, DPO request, new AI vendor —
EU AI Act Compliance Which of our AI systems are high-risk and what must we do? AI used in credit, insurance pricing or hiring /services/ai/eu-ai-act-compliance/
AI Red Teaming Can someone make our AI leak data or misuse its tools? Launch of a public chatbot or agent /services/ai/ai-red-teaming/
AI Governance & ISO 42001 Who approves AI use and how do we prove control? Board or regulator asks for an AI policy /services/ai/ai-governance/

When this review is the right fit

Your AI system processes customer, patient or employee data

A customer, auditor or DPO has asked for a DPIA or vendor list

You use US-hosted model APIs with EU or UK users

You are adding a new AI vendor or moving from prototype to production

When it is not the right fit

You need a legal opinion or a signed DPO service: we work alongside your lawyer or DPO, we do not replace them

You need ISO 27001 or SOC 2 certification audits: those require an accredited certification body

Your AI does not touch personal data at all, e.g. code generation on public data only

Tell us about the AI system.

Four guiding questions:
What does it do?
Whose personal data goes into it?
Which models and vendors does it use?
Who is asking for proof: a DPO, a customer or a regulator?

AI GDPR compliance FAQ

What is AI GDPR compliance?

AI GDPR compliance means an AI system processes personal data lawfully, for a stated purpose, with only the data it needs and with safeguards a supervisory authority would accept. For AI that covers prompts, context, embeddings, outputs, logs and every vendor in the chain. Breaches of the core principles can bring fines of up to €20 million or 4% of global annual turnover under GDPR Art. 83.

What does an AI data privacy review include?

An AI data privacy review from Code & Pepper includes an AI system and vendor inventory, a data flow map, a technical check of redaction, retention, access and deletion, a DPIA for AI, an LLM data residency assessment and a vendor contract gap list. You receive a report and a backlog of engineering tickets ranked by risk.

When do we need a DPIA for AI?

GDPR Art. 35 requires a DPIA when processing is likely to result in a high risk to people, and using new technology such as AI is one of the EDPB's risk criteria. In practice most AI systems that profile people, score them, handle health or financial data, or run at scale need one. Our review screens each system and drafts the DPIA for AI for your DPO to approve.

Does LLM data residency in the EU make us GDPR compliant?

No, LLM data residency reduces transfer risk but does not settle it on its own. Remote access by a non-EU provider, support staff and sub-processors can still count as a transfer under GDPR Chapter V. The review checks the whole chain and the transfer tool in use, such as the EU-US Data Privacy Framework or SCCs. If data must stay in your own cloud, see Private LLM Deployment.

What should an AI vendor data processing agreement include?

An AI vendor data processing agreement must cover the GDPR Art. 28 basics: documented instructions, confidentiality, security, sub-processors, assistance with data subject rights, deletion and audits. For AI vendors also check that your data is not used for training, how long prompts and outputs are retained, whether humans review flagged content, and in which region data is processed. We compare those clauses with the settings actually switched on in your account.

Can we use OpenAI, Claude or Gemini APIs with personal data under GDPR?

Yes, with the right contract, settings and safeguards in place. The major providers' business API tiers offer DPAs, no training on API data by default and regional options; OpenAI, for example, has offered European data residency with in-region processing for eligible API endpoints since February 2025. The review confirms what your specific account and endpoints do.

Does the review cover HIPAA as well as GDPR?

Yes, the same review checks PHI flows, minimum necessary access, Security Rule safeguards and whether every AI vendor that receives PHI has signed a Business Associate Agreement. For building HIPAA-compliant AI products, see AI for HealthTech.

What is privacy by design AI?

Privacy by design AI applies GDPR Art. 25 to AI systems: data protection is built into the architecture, not added after launch. Typical controls are redaction before the model, permission-aware retrieval, short retention, regional routing and human approval for actions on personal data.

Do we need both a DPIA and an EU AI Act assessment?

Often yes, because they answer different questions. The DPIA covers risks to personal data under GDPR; the AI Act assessment classifies the system and sets duties such as transparency and human oversight. Under AI Act Art. 26 deployers use the provider's information to complete their DPIA, so one review can feed the other. See EU AI Act Compliance.

Can personal data be deleted from a RAG system or an LLM?

In a RAG system, yes: the source chunks and their embeddings can be deleted and the index rebuilt, if deletion is designed in. In a fine-tuned model it is much harder and may mean retraining. The EDPB's Opinion 28/2024 confirms authorities can order erasure of datasets or retraining when training data was processed unlawfully.

How long does the review take and what does it cost?

A review takes 2–4 weeks, depending on the number of AI systems and vendors. It is offered at a fixed price agreed after a scoping call.

Does Code & Pepper provide legal advice or act as our DPO?

No. Code & Pepper provides the technical facts, evidence and engineering changes; legal interpretation and sign-off stay with your DPO or counsel.

Can Code & Pepper fix the issues the review finds?

Yes. The same engineers can implement redaction, retention jobs, regional routing, access controls and audit logging, or hand the backlog to your team. See AI Integration Services.