Is Your Data Safe With AI? A Founder's Real Answer | Digital Pratik
Digital Pratik DigitalPratik
🧠 AI and Automation

Is Your Data Safe With AI? What Actually Happens To Your Company Documents

Growth Marketing Consultant 20 min read
The short answer

"Is my data safe with AI" is really four questions.

Where does the data live, who can open it, does anything leave your building, and does the AI company keep or learn from it.

A safe system answers all four separately: your own storage and database, a login that fails shut with a deny-by-default database behind it, one document sent for a few seconds on a human action, and a vendor whose terms say they do not train on your inputs.

A few days ago I was on a call showing a founder's technical lead what we had built. He watched the demo, then asked the sharpest question I have been asked all year.

A screen-share from the call: a slide titled "AI Automation vs Agentic AI" explaining the difference in plain English, with the video tiles of the call along the bottom. The other participant's face and name are masked.
The call itself. I was part way through explaining agentic AI when his question landed, and it was the right question at the right moment.

Do you send our data to the AI models, and how is that secured. It is exactly the question every founder should ask before handing an AI their documents, and almost nobody answers it well, because it is really four questions wearing one coat.

Most people reach for "we run row level security", which is a real thing and a good thing, and also the answer to a completely different question. So here is the whole thing, properly separated, the way I walk every founder through it.

And I am not going to answer it from a vendor's marketing page. To write this, we ran a full security audit against a live client system, from the outside, using exactly the tools an attacker would use.

This article is that answer, plus the one thing the audit turned up while we were in there, because I wrote in my first book back in 2022 that when a user can get hurt it is the product owner's job to take the extra measures. Publishing that line and then not going to look would be a bit rich.

Two photos side by side. On the left, the yellow cover of the book "24x7 365 EveryDay Practicality" by Digital Pratik. On the right, the open page with the line highlighted: it is the responsibility of the site or product owner to take extra measures to ensure the safety and security for their users.
From my 2022 book, 24x7 365 EveryDay Practicality. The highlighted line is the one I just quoted, written four years before we built any of this.

Four questions are hiding inside one

When a founder asks "is my data safe", he is not asking one question. He is asking four, all at once, in no particular order.

Nobody separates them, which is why these conversations go in circles and why founders end up trusting a feeling instead of a fact.

Here are the four. Where does the data actually live.

Who can open it. Does any of it leave the building, even for a second.

And does the AI company keep it or learn from it. Every one has a different answer, a different failure mode, and a different way to prove it.

Take them in order and the whole thing becomes simple.

A line drawing of a single overcoat on a stand with four separate question-mark shapes emerging from its collar and pockets, one of them in the accent colour.
"Is my data safe" is four questions wearing one coat. Pull them apart and each one has a clear, separate answer.
The four questions, and what a good answer sounds like
QuestionWhat you are really askingA good answer sounds like
Where does it liveWhose computer is my data sitting onYour own storage account and your own database, not shared with other clients
Who can open itWhat happens if someone finds the doorOwner-only login, and a database that denies everyone by default underneath it
What leavesIs my archive being uploaded somewhereOne document, for seconds, on a human action. Never the archive
Who keeps itWill my data end up inside someone's AIThe vendor's terms say they do not train on it, and zero retention is available

Question one. Where does your data actually live

Think of a doctor's clinic. There is a filing room with the actual paper files in it, and there is a register at the front desk that lists who is due for a check-up.

Two different things, in two different places, doing two different jobs.

Every system we build works the same way. The files live in the client's own cloud storage account, on their own subscription, paid for by them.

The register lives in their own database. Both are theirs.

If we walked away tomorrow they would still own every file and every row, and we would have no copy.

A line drawing of a clinic split into two areas. On the left, a storeroom of shelves stacked with paper files, folders and boxes. On the right, a reception desk with a single open register book on it, drawn in the accent colour.
Every client's setup, drawn as a clinic. The paper files sit in their own storeroom, the register on their own desk: two separate places doing two separate jobs, and both belong to the client.

This is the question with the simplest test and almost nobody asks it. Whose name is on the storage account.

If the answer is the agency's, your data is a guest in someone else's house, and you will discover exactly what that means the day you want to leave.

Question two. Who can open the cabinet

Two locks, one behind the other. That is the whole design, and the reason there are two is that one always eventually fails.

The first lock is the front door. Only an email address on an approved list gets in.

Not "anyone with an account", which is a mistake I have seen make a system wide open while looking perfectly locked. An approved list, and if the check fails for any reason at all, the door slams shut rather than swinging open.

Failing shut is a design decision, and it is the one that matters when something goes wrong at 3am.

The second lock is the one worth understanding, because it is the one that keeps protecting you after the first one fails.

A line drawing of a heavy wooden door with a padlock, and behind it, seen through an opening, a second barred strongroom gate with its own padlock drawn in the accent colour. Two locks, one behind the other.
Two locks, one behind the other. The outer door is the owner-only login. The inner lock is the database denying everyone by default, so the day the first one fails, the second still holds.

Row Level Security, explained without the jargon

First, the name, because half the internet says it wrong. It is Row Level Security, not role level.

A row is one line in a table: one client, one document, one deadline. So this is security applied line by line, not just at the door.

Here is what it actually does. Picture the filing cabinet with a rule glued to the front of it: no drawer opens unless the person's name is on this list.

Then leave the list empty. Now it does not matter who walks up to the cabinet or what they are carrying.

Every drawer is welded shut, because nobody is on the list.

That sounds paranoid until you understand what is genuinely public about a modern web app. Any website built this way ships a small key to your browser, and it is visible to anyone who looks at the page source.

It is meant to be visible. It is the doorbell, not the door key.

But if the cabinet inside has no rule glued to it, that doorbell opens every drawer in the building, and this is the single most common way small companies leak their entire database without ever being hacked.

A line drawing of a filing cabinet whose drawers are all chained shut, with a clipboard holding a completely blank list pinned to the front, the clipboard in the accent colour.
Row Level Security is a rule glued to the cabinet: no drawer opens unless the name is on the list. Leave the list empty and every drawer stays sealed, no matter who walks up.

Question three. Does anything leave the building

Yes. And this is the part where most agencies get vague, so let me be specific instead.

Take a real job. A clerk at a compliance firm is handed a licence document by a walk-in client.

Someone has to read it, work out which company it belongs to, find the expiry date, file it in the right folder, and set a renewal reminder. Done by hand that is close to an hour of careful, boring, error-prone work, and the error nobody catches is the expensive one.

In our systems the clerk uploads that one document and it goes to an AI model to be read. It comes back with the document type, the company name and the expiry date, the clerk confirms what she is looking at on screen, and it files itself.

About four seconds instead of about an hour.

So picture the window at a bank. She passes one page through the window to a translator.

He reads it out loud, hands the page straight back, and that is the end of it. He never got the filing room.

He never got the other documents. He got one page, for four seconds, because a human decided to hand it over.

A line drawing of a hand passing a single sheet of paper through a service window to a seated reader, with the back-room door firmly shut, the single page in the accent colour.
One page through the window, read, and handed straight back. The filing room behind stays shut. That is the whole of what leaves.

The part most agencies will not tell you

Here is the detail that separates a system built carefully from one built to demo well. We did not upload the client's archive into an AI.

Not one document of it beyond the one in the clerk's hand.

That archive has hundreds of thousands of documents in it. The fashionable thing to do in 2026 is to feed all of it into a retrieval system so you can chat with it.

We deliberately did not, for two reasons that have nothing to do with fashion.

A line drawing of a towering mountain of document folders on one side and a machine with a funnel hopper on the other, with a large no-entry sign in the accent colour blocking the folders from being poured in.
The fashionable move is to tip the whole archive into a model so you can chat with it. We did not. The archive never goes near the machine.
  • The questions are exact, so the answers should be too. "Whose licence expires in the next thirty days" has one correct answer. A database gives you exactly right. A retrieval system gives you approximately right. For a compliance deadline, approximately right is worth nothing.
  • A misread date is the most expensive failure this kind of system can produce. It is silent. The document gets filed, it looks perfect on screen, and the reminder never fires. You find out when the penalty arrives. So we spend more on accuracy at the one moment a document is read, and we make a human confirm it.
  • Nothing in bulk ever leaves. One page at a time is the smallest exposure a working system can have. That is not a limitation we apologise for. It is the design.

There is a place where retrieval is exactly the right tool, and it is when the material is the client's own expertise rather than their records. We built that for a physiotherapist: two decades of his own knowledge and his own books, so his team can ask a question and get his answer instead of a generic one.

Right tool, right job. The point is that the architecture should follow the question being asked, not the trend.

A line drawing of a tall wall of bookshelves with one open book on a stand in front, drawn in the accent colour, a question mark floating above it.
Where retrieval does belong: a wall of the expert's own books, turned into something his team can ask. The right tool follows the question, not the trend.
Work with meWant this installed in your business?

Reading about a system and running one are different jobs. If you are a founder doing $50k a month or more, this is what a working session looks like.

See how it works

Question four. Does the AI company keep it or learn from it

This is the fear underneath all the others. That your client list, your contracts, your numbers quietly become part of some model that a competitor will one day query.

For the commercial APIs that serious systems are built on, the answer is that they do not train their models on what you send through the API. That is in the terms, not in a blog post.

Inputs are held briefly for abuse monitoring and then dropped. And if your compliance people need more than that, there is a thing called a zero data retention agreement, which means the vendor holds nothing at all.

A line drawing of a sheet of paper passing through a magnifying-lens reader on a stand, with an open, completely empty drawer below it drawn in the accent colour.
A document is read and passes through. The drawer behind stays empty. Nothing is kept, and a zero data retention agreement puts that in writing.

Two things to do with that. Ask your vendor to send you the actual page from the actual provider, not their paraphrase of it.

And notice whether they know the phrase "zero data retention" without being prompted, because the ones who do are the ones who have had this conversation with a real compliance team before.

We attacked our own client's system to write this

Reading your own security documentation and concluding you are safe is not a test. It tells you what somebody intended, on the day they wrote it.

So we did the other thing.

We took a live client system, a business-setup and compliance firm, and came at it from the outside like a stranger with bad intentions and a browser. First the front door.

Every page and every data address answered with a redirect to the login screen and handed over nothing. Then the page source, which is where people expect to find secrets.

The login page turned out to be eight kilobytes of nothing at all.

A line drawing of a hooded figure seen from behind, standing on the pavement and trying the handle of a building's front door, the door handle drawn in the accent colour.
Reading your own documentation proves nothing. The only real test is to stand outside your own front door, like a stranger, and try the handle.

So we went further, followed all eight of the site's script files, about two thirds of a megabyte, and read every one. Two values in there, both public by design: the database address and that doorbell key.

Zero sign of the things that would actually matter, no master database key, no AI provider key, no messaging token, no storage secret. Then we took the doorbell key, the one anybody can copy, and used it to try to read all twenty-four tables in the client's database.

What the public key got back from the client's live database
AnswerWhat it meansTables
Permission deniedLocked twice. Denied before the database even consulted its own rules20 of 24
An empty listLocked once. The rule held, but the outer layer was missing3
Table not foundRenamed or retired. Nothing there to protect1

Twenty out of twenty-four is not a pass mark. Three tables came back with an empty list rather than a refusal, and the difference between those two answers is the whole reason to run the test.

What "one lock instead of two" actually means

Nothing leaked. No data came out of any of those three tables, no client was exposed, and the rule glued to the cabinet did its job perfectly.

But the outer lock, the one that should stop a stranger before the rule is even consulted, had gone missing on those three.

Think of a door that is both bolted and behind a locked gate. Take away the gate and the bolt still holds.

You are still safe today. You are one mistake away from not being, and you would have no warning, because nothing looks wrong from the outside.

The cause is boring and worth knowing, because it will happen to any growing system. Months earlier we had told that database to lock every table and to stop handing out permissions on new tables in future.

That instruction only binds the person who gave it. Those three tables were created later, by a different route, and they quietly inherited the default permissions that come with a fresh table.

Nobody was careless. The instruction had simply gone stale, and staleness does not announce itself.

The fix that matters more than the fix

We could have just locked the three tables. That takes one command and it would have made the report look clean.

It also would have guaranteed a fourth table next quarter.

So we fixed the class of problem instead. The database now has a standing instruction that fires the instant anyone creates a new table anywhere in it: lock it, enforce the lock, and strip the public permissions.

Nobody has to remember. Nobody has to re-run anything.

A new table is born locked.

This is the difference between a checklist and a system, and it is the same difference I talk about with founders all day for a completely different reason. A checklist depends on a person being sharp on a bad day.

A system does not care what kind of day anyone is having. We re-ran the attack afterwards: twenty out of twenty, every table refusing at the outer lock, and the client's dashboard working exactly as it did before, because the app reads through a separate server-side key that was never affected.

A line drawing split in two: on the left a paper checklist and pencil, on the right a mechanical arm automatically clamping a padlock, in the accent colour, onto a brand-new drawer as it opens.
A checklist needs a person to be sharp on a bad day. A system locks every new drawer the instant it appears, whatever kind of day anyone is having.
As tech evolves, cybersecurity concerns will always arise, and we must be on our toes and take precautions against them. If a user can get hurt, it is the product owner's job to take the extra measures.

I wrote a version of that in my first book in 2022, before any of this existed. Writing the line is easy.

Living up to it means running the audit even when it might find something, and publishing what it found. That is the difference between a claim and a standard.

What to ask before you sign anything

You do not need to be technical to run this conversation. You need five questions and the confidence to keep asking until the answer is specific.

  1. Whose account is my data in. Mine or yours. If it is theirs, ask what happens the day you leave, and get the answer in writing.
  2. Show me what a stranger sees. Ask them to open the page source on your own system while you watch. Anyone who has built this properly will enjoy doing it.
  3. Now use that key against my database. This is the real test and it takes two minutes. The right result is a refusal. An empty list is a warning. Actual data is a fire.
  4. Exactly what leaves, and when, and who triggers it. "One document, when a person uploads it" is a good answer. "It is all encrypted" is not an answer to this question, it is an answer to a different one.
  5. Send me the provider's own page about training on customer data. Their words, their link. Then ask whether zero data retention is available on your account.

If a vendor gets uncomfortable at question three, you have learned the most useful thing you were going to learn that day. Nobody who has actually done this work minds being tested, because the test is the best part of the pitch.

One more thing nobody asks about

While we were in there I looked at something the audit was not even asking about. Our system lets an authorised person delete an entire company folder by voice command, with one confirmation.

That worked exactly as designed, and I decided the design should go one step further.

A line drawing of a junior clerk standing beside one oversized push button on a stand, in the accent colour, with a tall stack of file boxes representing a whole company teetering behind it.
One confirmation, and a whole company folder is gone. The newest clerk had the same power as the owner. That is now a second approval and a permission level of its own.

Every action is logged, so nothing is invisible. But there was no separation between "can file a document" and "can delete a client's entire history", which means the newest clerk had the same destructive power as the owner.

That is not a breach. It is the kind of thing that becomes a very bad afternoon eventually, and it is now getting a second approval step and a permission level of its own.

I am including it because it is the honest shape of this work. Security is not a certificate you get once.

It is a habit of going and looking, and being willing to write down what you find.

A line drawing of a person crouching to shine a hand torch, in the accent colour, into a dark corner of a room, ignoring a blank framed certificate on the wall behind them.
Security is not the framed certificate on the wall. It is the habit of taking a torch into the corners, and writing down what you find there.

The answer, in one paragraph

Your data lives in your own accounts. Two independent locks stand between it and the internet, and the public key that anyone can copy from your own website reads nothing at all.

One document at a time leaves to be read, for a few seconds, because a person chose to send it, and your archive never goes anywhere. The provider's terms say they do not train on it, and if you need zero retention it exists.

That is the answer, and none of it should be taken on faith, because all of it can be shown to you in under five minutes.

If you are about to hand your company's documents to an AI system, ask the five questions. If the person on the other end cannot answer question three by actually doing it in front of you, you have not found your partner yet.

Frequently asked questions

It depends on four things, and you should check them separately: whose account your data sits in, whether the database denies the public by default, exactly what gets sent to an AI model and when, and whether the AI provider trains on it. A properly built system answers all four with something specific, and can demonstrate the second one live in about two minutes.

It is a rule attached to a database table saying no row may be read unless the requester is on an approved list. Leave the list empty for the public and every row is sealed. It matters because modern web apps ship a public key to the browser on purpose, so without this rule that visible key can read the whole database.

For the commercial business APIs that serious systems are built on, no. Their terms state they do not train models on what you send through the API, and inputs are held only briefly for abuse monitoring. Zero data retention agreements are available if your compliance team needs the vendor to hold nothing at all. Free consumer chatbots have different terms, so read those separately.

It is a bigger exposure, because building one means copying a body of your documents into a searchable index rather than reading a single file at a time. Sometimes that is the right trade, for example when the material is a firm's own published expertise. For records and compliance deadlines a plain database is both more accurate and a smaller target.

Ask your vendor to open your own system's page source while you watch, copy the public key out of it, and use that key to query your own database in front of you. The correct result is a refusal. You do not need to understand the commands to read the outcome, and a vendor who has done the work properly will be glad to show you.

Stop reading, start building

Install this in your business

An article gives you the map. A working session gives you the system, built around what you actually sell and who actually buys it.

Keep reading

Related guides