Skip to content
AI and Dataset Security

AI and Dataset Security

April 13, 2026

An article at The Register about AI had a nugget in it which triggered a memory and set me musing…

A third risk he identified is Copilot providing access to sensitive data, often when users link the AI tool to third-party SaaS apps. Xu said the Web content plugin Microsoft provides for Copilot is on by default, but the plugin allowing connections to third party applications is off. He recommended allowing Copilot to chat with SaaS sources only when strictly necessary.

This isn’t a new problem, it’s an old problem with a new mask on.

I remember looking at a number of organisational wide search devices back in the mid 2000s, including Google’s Search Appliance, which was a bright yellow rackmounted device.

In the end we didn’t go ahead with any of them, because we weren’t convinced that they were able to provide what we required, especially around security.

We had both Windows shares and a Document Management System accessed via http. Both of these document stores presented a similar problem - the need to observe already existing complex security. The search systems themselves were granted high levels of access so that they could build a search index, but the people submitting queries had much lower permissions. The risk of data leakage was very real.

There was simply no decent middle ground that we could find that was worth the costs, so the project was dropped.

One approach was to use pass-thru credentials to try to fetch the URI for each result, and discard ones it had no access to. This required single sign-on or a common userid across systems, which was not gauranteed in 2005. It also meant that fileservers or document management systems got a constant hammering of requests for each and every query performed. That’s a lot of security related noise in your logs…

Another vendor’s approach was to record security information when crawling, and use that to ensure that the user has access to it. If the user didn’t have access, drop the entry from the results set. This could be done relatively quickly, assuming the groups aren’t too complicated. The system was often returning pages of 10 results at a time so configuring a slightly larger internal page size, on the assumption some will be dropped. This approach is very complicated, but lowers the impact on the document stores.

Yet another system queried the permissions dynamically for each result, then queried the authentication system to expand group memberships.

Both the systems doing dynamic permisisons queries ended up launching what looked like an internal denial of service attack on our Active Directory servers if there were many complex queries happening.

A final dumb approach was just to display everything and let the user find out of they had access - not great as sometimes even the filename could reveal confidential details to the wrong people.

Most AI training systems have no concept of recording any security metadata , only the actual content found. This means that AI has all the same problems.

Except that it’s worse, because the cost of building the response pattern is much higher than the cost of querying a search index. After spending processing time creating a response an AI would then have to check each source it references in the response for security purposes. And if it has to discard that source, it must then generate a replacement response from that point onwards, hoping it doesn’t reference something else that’s not available for that person.

It’s easy to see how this could result in very long delays.

LLMs simply aren’t a good fit for any solution that requires granular security. I’m not going to say that this is an unsolvable problem, but I do suspect all the solutions are going to be either leaky or very expensive in storage and processing time. Hopefully someone much smarter than me can find a solution.

Even if it’s fixed and doesn’t leak information those long delays as it rewrites its answers could be used to infer information.

Just ask your AI agent “Will the QA department survive the upcoming restructure”, and watch how long it takes to reply. If it takes a short while then the QA department is probably fine, but if it’s delayed because it’s constantly having to discard results and rewrite then it’s revealing the presence of an upcoming restructure that affects the QA department, even if it’s not telling you directly…

That kind of inference leak was technically possible with the search engines we looked at, but they were much faster to return results so it was a less reliable attack. With AI, I’m not so sure it’s unreliable.

Last updated on