What should I do if my AI-built app has leaked customer data?
The first hour, the 72-hour ICO deadline, when you have to tell your customers, and what to record, for a UK business whose AI-built app has exposed personal data.

Close the way in first, then work out what was exposed, because the clock for telling the Information Commissioner's Office starts when you become aware of the breach and not when you finish investigating. The ICO's guidance says a breach that is likely to put people's rights and freedoms at risk must be reported "without undue delay, but not later than 72 hours after becoming aware of it". You can send what you know in stages if the full picture takes longer, and you write the breach down whether or not it ends up being reported.
What do I do in the first hour?
Stop the exposure, and change nothing else until you have saved what the app was doing. Work through these in this order:
- Cut off the way in. If a database table was readable by anyone, switch that access off. If an API key or password was visible in the code or in a chat, replace it with a new one. Both are routine jobs for whoever built the app, and most services let you rotate a key in a few minutes.
- Save the evidence before you tidy. Export the access and error logs from your host and database, and take note of the date and time you first heard about the problem. Fixing a bug without keeping the logs can leave you unable to say who looked at what.
- Write down when you became aware. That moment is the start of the 72 hours, so put the date and time in a note straight away, along with who told you and how.
- Tell the person who built the app. Whoever built it, whether a colleague, a consultant or a freelancer, probably knows where the data lives, and you will need them to answer questions in the next step.
Do I have to report it to the ICO?
Only if the breach is likely to be a risk to the people whose data it was, but you have to decide that quickly and keep your reasoning. The ICO's guide to personal data breaches says that if a risk is likely you must notify, and that if it is unlikely you don't have to, but you should document why. A list of customer names and emails that was open for a day is a different case from addresses, payment details or health information that was open for months, and the ICO's wording is about the likely effect on people, not about how embarrassing it is for you.
If you can't tell yet, treat the 72 hours as real and prepare the notification while you investigate. The ICO says that where you can't investigate fully in time you may provide information in phases, and that if you report late you have to explain the delay.
When do I have to tell my customers?
When the breach is likely to be a high risk to them, and then you tell them directly and without undue delay. That is a higher bar than the one for telling the ICO. The ICO's guide says telling people helps them protect themselves, for example by changing a password they reused elsewhere, so a plain message saying what was exposed and what they should do next is usually what is wanted. Say what you know, say what you don't know yet, and don't guess at numbers.
What should I write down?
Everything, even if you decide not to report. The ICO says you should record all breaches regardless of whether you report them, and that the record should cover the facts, the effects and the action you took. A short document with the timeline, what data and how many people, the decision on reporting and your reasoning is enough, and the ICO can ask to see it.
How do I find out what was actually exposed?
You read the app, not the screen, because the screen only shows what a logged-in owner sees. The questions to put to a developer are specific:
- Which tables or files could be reached without logging in, or by a logged-in user who shouldn't have seen them?
- Do the access logs show anyone reading them, and from where?
- Was a key or password exposed, and what could it open?
- Did the exposure end when you closed it, or is there a copy somewhere, such as a public repository or an old deployment?
If the app stores data in Supabase, the usual cause is a table without row-level security, and Supabase's documentation says to enable it on every table in an exposed schema. A payment link or webhook that doesn't check who is calling is another common one, and Stripe's guidance says to verify the signature on each event. Both of these are easy to leave out when the aim was to get something working, and we wouldn't blame anyone for it.
Will this happen again after I fix the hole?
It can, unless someone checks the rest of the app, because an exposed table is rarely the only gap. The ICO's security guidance says the UK GDPR expects measures that are appropriate to the risk and a process for regularly testing and evaluating them, with vulnerability scanning and penetration testing given as examples. It doesn't prescribe a checklist, so what counts depends on what you hold. Our piece on how to tell whether a vibe-coded app is secure lists five checks you can ask for in writing, and the one on auditing AI-written code before you take payments covers the money side.
Where does We UC come in?
After the first hour, when you need to know what else is open. The We UC Rescue audit is a fixed £2,500 + VAT, deducted from the first phase if you go ahead with us on the fix. It reads the code and the hosting setup, covering security, data, hosting, code, payments and integrations, and running costs, and you get a written report, a priced plan and a walkthrough call. Nothing is changed during the audit, so we need read access, and the report is yours either way. It is not a substitute for the ICO notification, which is your decision as the organisation holding the data, and we aren't lawyers, so take this as a pointer to the sources and not legal advice.
We UC is a UK software company, and the team that does the review also runs Olatti, a UK business phone network, and Quenta, an app that posts receipts into Xero, in production. Two QA engineers test our work, and an engineer reviews every change before it ships.
Common questions
How long do I have to report a data breach in the UK?
No later than 72 hours after you become aware of it, if it is likely to be a risk to people's rights and freedoms. If you take longer, you have to explain why, and you can give information in phases while you investigate.
Do I have to report every breach?
No, but you have to record every one. If a risk to people is unlikely you needn't notify the ICO, and the ICO's guide says you should document why.
Do I have to tell my customers?
If the breach is likely to be a high risk to them, yes, directly and without undue delay.
Is a breach my fault if an AI tool wrote the code?
The law puts the duty on the organisation that holds the data, whoever or whatever wrote the app. That is another reason to have someone read the code before it matters, and nothing here says AI tools write worse code than people do.
Can you fix the app after a breach?
We can audit it first and then fix, rebuild or hand back a plan, and you decide which. If you are in the middle of one now, tell us what happened and we'll say what we would look at first, or book a Rescue audit if you already know you want the whole app read.