← Back to Blog

Copilot Is in Your Audit Log. ChatGPT Is Not, by Default.

1 December 2026 Security Operations 9 min read
Which AI interactions reach your audit log CopilotInteraction record type 261 Microsoft 365 Copilot, Security Copilot and others logged by default ConnectedAIAppInteraction record type 328 AI apps registered in your tenant some scenarios billed AIAppInteraction record type 284 ChatGPT, Gemini and other third-party AI apps only with pay-as-you-go No audit record holds what was typed: Messages carries IDs and flags

Your team can find Copilot interaction records in Microsoft Purview Audit. That does not tell you whether it could investigate someone pasting a customer file into ChatGPT. The evidence for that depends on the application, on how it is collected, and on what your organization configured before the incident. This post sets out what Purview Audit records for AI use, where the conversation text lives when it exists, and how to prove coverage with a test rather than infer it from an empty search.

Three record types, three different defaults

Microsoft's Copilot audit page splits AI activity into three record types: CopilotInteraction for Microsoft-developed copilots, ConnectedAIAppInteraction for AI apps deployed and registered in your tenant, and AIAppInteraction for third-party AI apps that are not deployed in your organization. The Management Activity API schema numbers them 261, 328 and 284.

The defaults differ. CopilotInteraction is part of Audit Standard: if auditing is on, Copilot interactions are recorded with no further setup. AIAppInteraction is not included in your subscription. It falls under pay-as-you-go billing, has to be enabled, is kept for 180 days and is charged by the number of records ingested, and some ConnectedAIAppInteraction scenarios fall under the same model. The page also says how the third-party records are produced: through network or browser DLP, which is why they carry an AIApp workload.

The numbers to check against your own tenant. Record types 261 (CopilotInteraction), 328 (ConnectedAIAppInteraction), 284 (AIAppInteraction), and 63 (DLPEndpoint) for endpoint DLP events. AIAppInteraction retention: 180 days once enabled. Search-UnifiedAuditLog returns at most 5,000 results per call, and up to 50,000 per paged session.

Public ChatGPT and ChatGPT Enterprise are separate questions. Microsoft documents a ChatGPT Enterprise connector with auditing and eDiscovery support, which needs pay-as-you-go billing and a connector scan before Purview can manage the interactions. Its setup page adds that conversations are ingested 24 hours after they occur. If your organization runs a managed workspace, check that route on its own. It tells you nothing about staff using the public site from a browser.

The audit record, and where the conversation lives

A CopilotInteraction record carries the user, the app that hosted the interaction, and the resources Copilot accessed, each with its name, location and sensitivity label ID. It does not carry the conversation. The Messages property holds an ID and an isPrompt flag for each message, plus a jailbreak detection flag.

An audit record of an AI interaction is evidence that it happened, not of what was said. Go to the right store for the words.

For Microsoft 365 Copilot the words are kept separately. Microsoft's retention documentation says Copilot message data is stored in a hidden folder in the user's mailbox, which compliance administrators search with eDiscovery tools, and the eDiscovery guide lists the item classes, such as IPM.SkypeTeams.Message.Copilot.*. Whether a given prompt is still there depends on your retention policies and on whether the user deleted the chat, and searching it needs eDiscovery permissions, so confirm all three before you promise an investigator the text.

For third-party AI apps, content availability depends on the integration and on the collection policies you configured. Nothing is kept by default.

Here is what one CopilotInteraction record looks like, built from the documented schema with placeholder values:

{
  "CreationTime": "2026-11-24T14:02:11",
  "Operation": "CopilotInteraction",
  "RecordType": 261,
  "UserId": "lee.gu@example.com",
  "CopilotEventData": {
    "AppHost": "Word",
    "AccessedResources": [
      { "Name": "Q4 pricing review.docx",
        "SiteUrl": "https://example.sharepoint.com/sites/Finance/",
        "SensitivityLabelId": "8f2c0e1a-0000-0000-0000-000000000000",
        "Type": "File", "Action": "Read" }
    ],
    "Messages": [ { "ID": "1732456931001", "isPrompt": true },
                  { "ID": "1732456932140", "isPrompt": false } ]
  }
}

What it proves: this user ran Copilot in Word at that time, and Copilot read that labeled file while producing its answer. What it does not prove: what the user asked, what the answer contained, whether anything from the file appeared in it, or that anything left the tenant. The first two are in the mailbox, if retention kept them. The last two need other evidence.

Start with a known test interaction

An empty search proves only that no matching records were found in that source and time window. Records can be missing because the type is not enabled, but also because the user is out of collection scope, the access path is unsupported, ingestion has not caught up, or the SIEM never received them. Browser traffic to an AI site does not prove a prompt was submitted either.

So create the evidence you expect to find. From a managed device and browser within your DLP scope, have a test account submit a harmless prompt containing a unique marker, such as RC-AUDIT-TEST-0112, to Copilot Chat and to a public AI site. Write down the account, device and time. Allow several hours for ingestion, then trace each interaction through the checks below. For Copilot, the marker will not be in the audit record, but an eDiscovery search for it should find the prompt in the mailbox.

Check one: the audit log

Count each AI record type for the test window, paging until the session is exhausted:

# Records returned for each AI type in the window. Re-run with a narrower window
# if Reported reaches 50,000, the per-session ceiling.
$start = (Get-Date).AddDays(-1); $end = Get-Date
foreach ($type in 'CopilotInteraction','ConnectedAIAppInteraction','AIAppInteraction') {
    $sid = "ai-$type-$(Get-Random)"; $seen = @{}; $reported = 0
    do {
        $page = @(Search-UnifiedAuditLog -StartDate $start -EndDate $end `
            -RecordType $type -ResultSize 5000 -SessionCommand ReturnLargeSet `
            -SessionId $sid)
        foreach ($r in $page) { $seen[$r.Identity] = $true }
        if ($page.Count) { $reported = $page[0].ResultCount }
    } while ($page.Count -gt 0 -and $seen.Count -lt $reported)
    [pscustomobject]@{ RecordType = $type; Returned = $seen.Count;
        Reported = $reported; SplitWindow = ($reported -ge 50000) }
}

The cmdlet reference caps a call at 5,000 results and a paged session at 50,000. The loop deduplicates by record identity because paged results come back unsorted. For bulk or scheduled collection, the same page points to the Management Activity API instead.

Find the test account's records at the times you noted. If the Copilot test is there and the public-site test is not, check DLP scope for that user and device, then the pay-as-you-go setting, before you conclude that auditing is off.

Check two: Defender XDR and Sentinel

CloudAppEvents carries Copilot interactions with an ActionType of CopilotInteraction. In Sentinel, the Defender XDR connector streams only the tables you tick in its configuration, according to the connector documentation, so confirm CloudAppEvents is selected before reading anything into its absence.

// Source: CloudAppEvents (Defender XDR, or Sentinel with the table selected)
// Zero rows for a type means not found here, in this window. Compare with check one
// for the same window before calling it a gap.
CloudAppEvents
| where Timestamp > ago(1d)
| where ActionType in ("CopilotInteraction", "ConnectedAIAppInteraction", "AIAppInteraction")
| extend AppIdentity = tostring(RawEventData.AppIdentity)
| summarize Events = count(), Users = dcount(AccountObjectId),
            FirstSeen = min(Timestamp), LastSeen = max(Timestamp)
            by ActionType, AppIdentity
| sort by ActionType asc, Events desc

Third-party apps audited through network or browser DLP appear with identities following the AIApp.SaaS. pattern. For the resources Copilot read, expand AccessedResources and count references, not interactions:

// Purpose: which resources Copilot referenced, per user. A reference shows the file
// was read for a response, not that its content appeared in the answer.
CloudAppEvents
| where Timestamp > ago(7d)
| where ActionType == "CopilotInteraction"
| extend CopilotData = todynamic(RawEventData.CopilotEventData)
| mv-expand Resource = CopilotData.AccessedResources
| extend ResourceId = tostring(Resource.ID), ResourceName = tostring(Resource.Name),
         SiteUrl = tostring(Resource.SiteUrl), Label = tostring(Resource.SensitivityLabelId)
| summarize ResourceReferences = count(), Events = dcount(ReportId)
            by AccountObjectId, AccountDisplayName, ResourceId, ResourceName, SiteUrl, Label
| sort by ResourceReferences desc

Group by the account object ID, because display names change, and keep the resource ID and site, because file names repeat. Property names inside RawEventData follow the audit schema; check one raw event before trusting the extraction.

Check three: Splunk

The Splunk Add-on for Microsoft Office 365 pulls the Management Activity API into the o365:management:activity sourcetype:

index=o365 sourcetype="o365:management:activity"
    Operation IN ("CopilotInteraction", "ConnectedAIAppInteraction", "AIAppInteraction")
| eval app_identity=coalesce('AppIdentity', "unknown")
| stats count AS events dc(UserId) AS users earliest(_time) AS first latest(_time) AS last
    BY Operation app_identity
| convert ctime(first) ctime(last)
| sort Operation -events

Confirm the field names against one raw event, because add-on versions flatten nested properties differently. If check one finds records that never arrive here, look at which Management Activity content types the input subscribes to.

Reading the results

When totals differ between sources, align the time windows, time zones, filters, paging and deduplication first, and allow for ingestion delay. Then compare record IDs rather than counts: a missing ID is a finding, a different total often is not.

Your test records present in every source: collection works for that user, device and app. It does not establish complete coverage across every user, device or access path, so repeat the test for anything an investigation might depend on.

CopilotInteraction present, AIAppInteraction absent for the public-site test: you cannot currently investigate that use from the audit log. Endpoint DLP events, proxy logs and any other collection you run are the remaining sources, each with its own gaps.

Records in the audit log but not in your SIEM: a forwarding or connector gap. The evidence exists; fix the pipe while it is within retention.

Write down what you found, with the date and the test details, because the first question in an AI-related incident will be what you would have, and "we assumed" is the worst available answer.

Where to read more

What to do this week

  1. Run a marked test interaction in Copilot Chat and in a public AI site from a managed device, and record the account, device and time.
  2. Trace it through check one, paging the search, and note which record types the test produced.
  3. Trace it through your SIEM with check two or three, after confirming CloudAppEvents is selected in the connector or the right content types in the Splunk input. Compare record IDs, not totals.
  4. Search eDiscovery for the marker to confirm Copilot prompts are retained and that your investigators have the permissions to reach them.
  5. Decide, in writing, what you need for third-party AI: DLP scope, pay-as-you-go audit, the ChatGPT Enterprise connector, or content collection. Make that decision with your data protection lead now, not during the incident.
Ridgeline Cyber Defence Written by security professionals. Published weekly on Tuesdays.

Related Articles

27 May 2026

Vulnerability Exploitation Just Overtook Credential Theft as the #1 Breach Vector. But Is It Really This Bad?

DBIR 2026: 31% of breaches start with exploitation, credentials dropped to 13%. What this means for your detection prior

30 September 2026

Your Time-to-Close Metric Ignores Every Incident Still Open

The standard time-to-close query drops every incident still open. Measure what closed, who closed it, and what is still

22 September 2026

Two Checks Passed. The Message Was Still Forged.

A pass belongs to the domain it was issued to, not the one the reader saw. Read the header for that domain, then find yo