Can an AI answer reveal a document you are not allowed to open?
It can. Stopping someone from opening a file is not enough if the assistant has already read it, because its reply can carry the contents. The leak can travel through the answer, the list of sources, a reused answer, a shared chat or the coded copies used for search, and each of those needs the same permission check as the file.
Locking the file is only half the job
Most permission discussions stop at the file: who may open it. With an AI assistant that is the starting point, not the finish. Once a system has read a document, there are several routes by which its contents can reach someone who was never allowed near it.
When we review an assistant, we follow each of those routes rather than taking the file permissions as the whole story.
A colleague who has seen the board papers
Imagine a colleague who has read the board pack. They would never pass you the folder. But mention the Denver office lease over coffee, and a pause, a hint, or a kindly "I wouldn't sign that lease yet" tells you what the papers say.
An assistant can do the same, without the tact.
Here the comparison breaks down in an important way. Your colleague has a sense of what is secret. An assistant has none; it works with whatever material the software hands it. Protection therefore has to be engineered into the system rather than left to the assistant's discretion.
Five routes out for one restricted file
Take a file called "Layoff plan, Denver", which only HR may open. Even with that rule in place, traces of it can turn up in five places someone outside HR might see.
1. The answer
A summary of the file, or a hint shaped by it, given to someone who could not open it. The OWASP security foundation puts sensitive information disclosure on its list of the most serious threats facing AI applications (OWASP, LLM02:2025).
2. The list of sources
Answers often name the documents they drew on. A title like "Layoff plan, Denver" gives a great deal away even if clicking it gets you nowhere.
3. Saved answers
To cut time and cost, some systems hand out an earlier answer when a similar question comes in. Researchers have shown that a shared store of answers like this can let an attacker work out the questions other people typed (Song et al., 2024).
4. Chat histories
Conversations are stored, sometimes together with the sources behind them. Microsoft says the history it keeps for Copilot includes the user's question and Copilot's reply, citations included (Microsoft Learn). If a history is shared or exposed, so is all of that.
5. The coded copies
For meaning-based search, the assistant converts passages into long lists of numbers called embeddings. They look meaningless, but researchers were able to reconstruct 92% of short passages exactly from them, and pulled full names out of clinical notes (Morris et al., 2023).
A sound system checks permission at all five exits, not only at the file.
What a well-built system does at each exit
- It reads only what this person may see. Restricted text that is never read for them cannot influence the answer. More on this in why the check must happen before the assistant reads anything.
- It checks sources as well. A document is named or linked only if the person asking may open it.
- It keeps saved answers per person, or keeps none. An answer prepared for the finance director is never reused for someone else.
- It sets rules for histories and sharing in advance. Visibility of each conversation, its retention period and any sharing beyond the company are all settled before launch.
- Embeddings get the same protection as the files. For embedding stores, OWASP advises access controls that are fine-grained and that respect permissions (OWASP, LLM08:2025).
This has already happened
- March 2023. A bug in ChatGPT let some users see short descriptions of other people's conversations in their history, and for a few hours may also have revealed payment information belonging to 1.2% of paying subscribers (The Hacker News).
- 2025. OpenAI withdrew an opt-in feature that let shared ChatGPT conversations be found by search engines. Its security chief said the feature created too many chances for people to share things by accident (Malwarebytes).
Both involved a consumer product rather than a company assistant. The point for you is that chat histories, sharing features and reused answers all exist in the tools you are being asked to approve, and each is a possible exit.
Questions for your vendor or IT team
- Is the assistant limited to text this person is cleared for, or does it take in more and trim the reply afterwards?
- Before a document title or link is displayed, is it verified against what this person may open?
- Are saved answers ever reused between people? If so, how is access confirmed?
- Which people can view a user's past conversations, what is the retention period, and can a conversation be sent outside the company?
- Do the embeddings carry the same access rules as the documents they came from?
Terms you may hear
| Term | What it means |
|---|---|
| Sensitive information disclosure, data leakage | Confidential material ending up with the wrong person. |
| Citations, grounding | The documents a reply draws on. |
| Semantic cache | Previously generated replies, kept and handed out again when a question looks alike. |
| Embeddings, vectors | Numeric fingerprints of passages that let an assistant match on meaning. |
| Embedding inversion | Reconstructing the original wording from those fingerprints. |
| Vector database, vector store | The storage system holding the embeddings. |
How we help
We trace every exit with you: the answer, the source list, any saved answers, chat histories and sharing, and the embeddings. For each one we confirm that the same permission check applies as for the document itself.
We help you settle the rules that are easy to leave to defaults, such as who may see a conversation, how long it is kept, and whether it can leave the company, before the system goes live.
And we test it the way a curious employee would: asking around a restricted subject from an account that should not see it, and checking the titles and links as well as the words.
Talk to us about your projectSources
- OWASP, LLM02:2025 Sensitive Information Disclosure
- OWASP, LLM08:2025 Vector and Embedding Weaknesses
- Song et al., research on shared answer stores (2024)
- Morris et al., text recovered from embeddings (2023)
- Microsoft Learn, Data, privacy and security for Microsoft 365 Copilot
- The Hacker News, OpenAI reveals Redis bug behind ChatGPT incident (2023)
- Malwarebytes, OpenAI ends searchable shared chats (2025)