Skip to main content

How do you prove who saw what in an AI assistant?

By logging from the very first day. If a leak is ever suspected, you will have to show which person put which question, at what time, and which material came back to them; no one can piece that together later. A sound record notes the person, the time, the place they asked and the documents each reply relied on. It is retained long enough, very few people may open it, and it stops short of becoming another store of your sensitive content.

A record you cannot create afterwards

Sooner or later someone will want to know whether a particular document reached the wrong person. With no log, there is nothing to consult, and the prudent assumption becomes the bleakest one. That is why we treat the audit record as part of launch in any assistant project, never as a later improvement.

The badge reader, not the security camera

Think of the badge readers on office doors. They register that a particular badge was used at a particular door at 9:15. They do not film the meeting that followed.

When an item disappears from a room, facilities can pull up whose badge was used. And the badge log itself sits in a restricted system rather than on the noticeboard.

Where the comparison falls short: when an assistant answers, it may carry pieces of a document out with it. So for every reply, the log also has to name the files that fed it, not merely who came and went.

What a useful record captures

For logging in general, the OWASP security foundation says every event should capture "when, where, who and what" (OWASP Logging Cheat Sheet). Applied to an AI assistant, we break that into five items:

  • The person and the time. The named, signed-in employee, rather than a generic "assistant" account.
  • The material behind each reply. Microsoft's Copilot audit entries, for example, list the files, sites and other resources it consulted (Microsoft Learn; note that Microsoft sells this auditing tool).
  • The sensitivity of that material. Each referenced file's sensitivity label appears in Microsoft's entry, which the company says makes it possible to tell whether Copilot reached anything sensitive.
  • Requests that were refused. Those entries also flag when a policy stopped or limited access to a file. Refusals tell you something: someone who keeps trying to get at HR material deserves a closer look.
  • Anything it did. Where the assistant is able to send messages or change records, the log should say what happened and for whom; see when the assistant can do things, not just answer.

A sample entry

The entry below is invented to illustrate the idea; each product lays its records out differently.

FieldEntry
PersonSales manager (signed in)
Time9:42 a.m. on a Tuesday
Asked fromCompany chat app
Question textStored with the conversation; not duplicated here
Files consultedPrice list 2026 (open to all staff); Sales playbook (Sales team)
RefusedSalary bands 2026 (restricted to HR), so withheld
ActionsNo actions

Entries like that turn a worried question about the layoff plan into a quick lookup instead of speculation.

How a well-run record is kept

  • Logging starts before go-live. Nothing can rebuild entries that were never written.
  • Retention matches how late problems surface, which is often months afterwards. By default Microsoft 365 holds audit records "for 180 days"; holding them longer, to a maximum of 10 years, is tied to which licence you have (Microsoft Learn). Confirm what your subscription covers.
  • Access is tight, and watched. OWASP's guidance is that every look at the logs should itself be logged and monitored, with the list of readers kept short and revisited regularly (OWASP).
  • The log links to conversations; it does not duplicate them. Knowing the person, the question and the files consulted resolves most enquiries, without a full transcript of every reply sitting in a further location.
  • Some things stay out entirely. Among the items OWASP says generally do not belong in logs are passwords used for sign-in, access tokens, sensitive personal data and commercially sensitive information.

Required retention periods and privacy-law limits are matters for your lawyers; for the planning side, see our enterprise AI guides.

When the log is the thing that leaks

Researchers in January 2025 discovered that DeepSeek, a Chinese AI firm, had left databases reachable on the open internet. According to the report, they "held over a million log entries containing user chat history in plaintext form", and no password was needed to search them. After being notified, DeepSeek shut off access promptly (BleepingComputer; the exposure was found by Wiz, a seller of cloud security products).

  • Attackers go after logs. OWASP warns they can be a target and may hold personal or otherwise sensitive data (OWASP).
  • Without a log, you are left guessing. When a leak is suspected and nothing was recorded, nobody can establish exposure, and you may be forced to treat every document as compromised.
  • A log nobody reviews only helps in hindsight. Looking regularly at refused requests and odd searches lets you spot trouble while it is still small.
  • The log is yet another copy. Deleting a file may mean scrubbing its mentions from the audit trail too; see deleting something everywhere.

What to ask your IT team or vendor

  • Does every reply leave an entry naming the person, the time and the files consulted?
  • Are refused requests logged, and is someone assigned to look at them?
  • What is the retention period, and is it tied to our licence tier?
  • Which people may open the logs, and is each of their visits logged as well?
  • Are full questions and replies stored inside the log, or only referenced? If stored elsewhere, where, and with what protection?
  • Suppose we feared a leak tomorrow: how long would it take you to list everyone who was shown a particular document?

Terms you may hear

TermWhat it means
Audit log, audit trailA running history of actions: which person, which action, what time.
Prompt and response loggingStoring what people typed and what the assistant replied.
Citations, sources, grounding dataThe files a reply was built from.
Retention periodThe length of time before old records are purged.
SIEMA tool that pulls logs from many systems into one place for security staff to watch and query.
eDiscoveryCombing through company records for litigation or an internal investigation.
TraceabilityFollowing any reply back to the person who asked and the material it relied on.

How we help

We help you define what the record must capture for each answer: the person, the time, where they asked, the documents used, what was blocked and any action taken, and confirm it is switched on before launch.

We work out with you how long records are kept on your current licence, who may read them, how their reading is logged, and what the record should point to rather than copy, so it never becomes a second store of sensitive material.

And we run the drill: pick a document and see how quickly the record can say who was shown it.

Talk to us about your project

Sources

A vendor-neutral explainer on this topic is on securellm.ai, which we publish.