In this section

0.9 The Audit Log and Posture

Module 0

Introduction

Every control in this course does something, and the audit log records much of it: a file opened, a label changed, a DLP rule matched, a Copilot question answered with three files. When someone asks what happened, the audit log is usually where the answer starts. When someone asks whether data security is getting better, the answer comes from counting such records over time, which is what posture measures do.

The two uses pull in different directions. An investigation needs one record in full detail, kept long enough to be found. A posture measure needs many records counted consistently, read regularly enough to show a trend. Both depend on the same underlying fact: the tenant recorded what happened, and kept the record.

This lesson covers both. They belong together because they rest on the same discipline: reading what a record actually says, not what it seems to say, and knowing how long it will still be there.

It sets out what the audit log records and how it is searched, reads one Copilot record field by field, separates what the record proves from what it cannot, sets out how long each kind of evidence lasts, and then turns to posture: the DSPM page the course uses to measure change, and the questions to ask before trusting any percentage it shows.

One question, three recordsa Copilot promptAudit recordwho, when, which filesConversationwhat was said, if keptThe filescontent and labels now

Each record answers a different question and lasts a different time. An investigation needs all three; a posture measure counts many records over a window.

The figure is the model for any AI investigation. It also applies to investigations that do not involve AI at all, such as a file shared to the wrong person, which leave the same kinds of evidence minus the conversation.

One question to Copilot leaves evidence in three places: the audit record of what was accessed, the conversation itself if retention kept it, and the files with their current labels. Each answers a different question and lasts a different time. Investigators who know that before an incident set the clocks; investigators who learn it during one find out which records have already gone.

Module 10 uses all three; this lesson introduces them. The point to hold onto is that no single record answers the question people usually ask, which is "what did Copilot tell this person". The audit record says what was read; the conversation says what was said; the file says what the content was.

Missing any one of the three leaves a gap that the other two cannot fill. Without the audit record, the investigator cannot show which files Copilot drew on. Without the conversation, they cannot show what the user was told. Without the file, they cannot show whether what was read mattered. Only together do they describe the event.

1

The Audit Log

What is recorded, and how to search it

The unified audit log records user and administrator activity across Microsoft 365: mail, SharePoint and OneDrive file activity, Teams, Entra sign-ins, Purview configuration changes, and Copilot interactions. For data security work it is the main record of who touched what. It is searched in the Purview portal's Audit solution, in PowerShell, and, for some records, through Microsoft Defender's advanced hunting.

The portal suits a single question about a single user. PowerShell suits repeatable searches and exports. Advanced hunting suits joining audit activity with other security data in a query language. Module 10 runs the same question through all three, because each has its own delays, limits and field names, and an investigator should know which one to reach for.

The Audit Search page in the Microsoft Purview portal, showing counters for active unfiltered searches 0 of 1, active filtered searches 0 of 10, active searches in tenant 0 of 50 and searches in tenant in the last 24 hours 24 of 200, and fields for the UTC date and time range, keyword search, admin units, activities by friendly name and by operation name, record types, search name, users, ObjectId for file, folder or site, and workloads.

The course tenant's Audit search form. Dates are in UTC, and searches are limited in number. Select the image to open it full size.

The capture shows the course tenant's search form. A search is a job: it is named, it runs in the background, and its results are kept for a while so that the same search does not have to be run again.

Dates and times are in UTC, which matters when a complaint says "about ten this morning" and the user is in another time zone. Searches are filtered by user, activity, record type, workload and the object involved, and the counters at the top show that searches are limited in number at any one time.

Microsoft's documentation states that records from core services typically appear within 60 to 90 minutes, and that a single search can cover at most 180 days. Both limits matter in practice. A search run ten minutes after an incident may return nothing, and the absence means only that the record has not arrived yet. A search for a period longer than 180 days has to be split into several.

Microsoft Purview portal

Find what Copilot accessed for one user:
Microsoft Purview › Solutions › Audit › Search
Set the date range in UTC, add the user, and choose the CopilotInteraction record type or the activity. Records from core services typically appear within 60 to 90 minutes.

The audit log is the cheapest evidence a tenant has, because it is collected without anyone deciding to collect it.

Microsoft turns auditing on by default for organizations, so the question in most tenants is not whether records exist but how long they last and who can search them. It is also the evidence most often found to have expired, because its retention depends on licensing and policy that nobody reviewed.

A tenant that has never set an audit retention policy is relying on defaults chosen for everyone, and those defaults were not chosen with Copilot investigations in mind. Section 3 covers that.

The audit log also records what administrators do in Purview. Changes to DLP policies, labels and retention settings appear there with who made them and when, which is the evidence that a review of the program itself relies on.

2

Reading a Copilot Record

Who, which app, which files, and no text

When a user interacts with Copilot, the audit log records a CopilotInteraction event. Microsoft documents its properties, and the ones that matter most for data security are below, in a worked record with fictional values.

{
  "CreationTime": "2026-11-18T10:42:17",
  "Operation": "CopilotInteraction",
  "UserId": "nestor.wilke@ne.com",
  "CopilotEventData": {
    "AppHost": "BizChat",
    "AccessedResources": [
      { "Name": "Salary bands 2026.xlsx", "Action": "read",
        "SensitivityLabelId": "4b1c6f2e-8d3a-4f7b-9e21-6a0c5d7e9f13",
        "Status": "success", "XPIADetected": false }
    ],
    "Messages": [ { "Id": "<id>", "IsPrompt": true },
                  { "Id": "<id>", "IsPrompt": false } ]
  }
}

Read it from the top, one field at a time. Each field answers one question, and the order of the questions is the order an investigator asks them. The envelope says who asked and when: Nestor Wilke, on 18 November 2026 at 10:42 UTC. AppHost says where: BizChat is Microsoft 365 Copilot Chat.

AccessedResources lists what Copilot read to answer: one spreadsheet, read successfully, carrying a sensitivity label identified by its ID. XPIADetected records whether a cross-prompt injection attempt was detected in that resource. It is the one place in the course where an attack on Copilot itself appears in the evidence: a file containing instructions meant to steer the assistant.

The course does not teach those attacks, and Module 10 reads the flag where it appears. Messages lists the prompt and the response by ID. Other properties record more detail: the contexts the user was working in, plugins and agents involved, and whether DLP evaluation was deferred. Module 10 reads every documented property; the ones above are the ones every investigation uses.

Foundations.xlsx
B6no
ABC
1QuestionThe record answers?From
2Who asked, and whenyesUserId, CreationTime
3Which appyesAppHost
4Which files Copilot readyesAccessedResources
5Which label the file carriedyes, as an IDSensitivityLabelId
6What the user askednoneeds the retained conversation
7What Copilot answerednoneeds the retained conversation
What the record proves

The highlighted row is the limit most people do not expect. It is also the one stakeholders most often assume away. A manager who hears that "everything Copilot does is audited" will expect the audit log to show what an employee asked about a colleague's salary.

The record does not hold what the user asked or what Copilot answered. Messages holds identifiers and whether each was a prompt, and nothing else. The words are in the conversation, stored in a hidden folder of the user's mailbox and found with eDiscovery, as Lesson 0.7 described, and only for as long as retention keeps them.

That split is deliberate on Microsoft's part: the audit log is widely readable by administrators and auditors, and putting every prompt into it would spread the content of people's questions to everyone with audit access. Keeping the words in the mailbox, behind eDiscovery permissions, limits who can read them.

Microsoft Purview portal

Find the conversation behind a record:
Microsoft Purview › Solutions › eDiscovery › Cases › select a case › Searches
Search the user's mailbox for Copilot interactions in the record's date range. A result exists only if the conversation was kept.

The search and the audit record together give both halves of what happened.

The label is also only an ID, a long string that means nothing to a reader until it is resolved. Turning it into a name means looking it up against the tenant's labels, which Module 10 does with PowerShell.

A label that has since been renamed keeps its ID, which is one reason label IDs, not names, are the stable evidence. And the label recorded is the one the file carried at the moment Copilot read it; the file's label today may be different. An investigation that reads the file's current label and assumes it was the same in November can reach the wrong conclusion.

The same caution applies to access. The record says the file was read successfully, which proves the user had access at that moment. It says nothing about whether they still have it, or how they got it. Those come from the file's current permissions and from the sharing activity in the audit log, read for the period before the interaction.

3

How Long Evidence Lasts

Three records, three clocks

The three kinds of evidence are kept by three different settings, and an investigation can only use the evidence that still exists when it starts.

How long each record lasts, by defaultDay 0the questionis asked180 daysaudit records for mostactivities end1 yearcore-service recordsend (E5 users)Conversationkept only as long asa policy saysA complaint that arrives after the first box it depends on has closed finds nothing.

Defaults, before anyone sets audit or Copilot retention. The conversation has no default at all.

The sheet below gives the same defaults with the setting that changes each.

Foundations.xlsx
B4only if a policy keeps it
ABC
1EvidenceDefaultSet by
2Audit: core services, E5 usersone yearaudit retention policies
3Audit: other activities, or non-E5 users180 daysaudit retention policies
4Copilot conversationonly if a policy keeps itretention for Copilot interactions
5The fileuntil deleted, unless retention keeps itretention for SharePoint and OneDrive
What the record provesHow long evidence lasts

Audit records are kept by audit retention. Microsoft's documentation states that on E5, records from Exchange, SharePoint, OneDrive and Entra are kept for one year by default, and all other activities for 180 days; users without E5 get 180 days. Records of Copilot interactions are not among the core services listed, so their default is the shorter one unless a policy says otherwise.

Audit retention policies can keep chosen record types longer, and changes apply only to records created after the change. That last point catches people out. A team that discovers during an investigation that Copilot records are kept for 180 days, and sets a one-year policy that afternoon, has protected future records. The records it needs for the investigation in hand are still on the old clock.

Microsoft Purview portal

Check how long audit records are kept:
Microsoft Purview › Solutions › Audit › Policies
Read each policy's record types, users, duration and priority. No policy means the defaults apply.

Module 10 reads this page in the course tenant and finds one global policy with no owner.

The highlighted row is the conversation, and it has no default at all. It is kept for as long as a retention policy for Copilot interactions keeps it, and if there is no policy, users can delete it and it is gone.

The file has its own clock: it exists until someone deletes it, and then retention for its location decides whether a copy survives. Its label and permissions change on their own schedule too, so the file an investigator opens today may not be the file Copilot read.

These three clocks rarely agree in a tenant that has not set them on purpose, and the disagreement is usually discovered at the worst moment. Nobody set them to disagree; each was set, or left at its default, by a different decision at a different time, usually before Copilot was licensed.

A complaint that arrives eight months after a Copilot interaction may find the file, find no audit record of the interaction, and find no conversation. Module 10 sets out the clocks for its own case, and Module 8 and Module 10 together set them deliberately for the future. Setting the clocks is a design decision, and it is cheap compared with discovering the gap during an investigation.

The design rule is simple to state: the conversation should be kept at least as long as the audit record of the interaction, and both at least as long as the time it usually takes a complaint to arrive. A tenant that meets that rule can answer the questions people actually ask.

4

Posture: Measuring Over Time

The DSPM posture page

An investigation looks at one event, in as much detail as the records allow. Posture looks at many, over a period, to say whether the organization's data security is getting better.

The two are linked: the alerts triaged metric, for example, counts the same DLP and insider risk alerts that investigations start from, and a queue that nobody reads shows up in posture as a low triage figure. The course uses Data Security Posture Management for this, the newest Purview solution and the one Microsoft now offers for posture across data, apps and agents.

Posture is the evidence a board or a stakeholder asks for: not "what happened on Tuesday" but "are we better protected than we were in the autumn". It is harder to produce honestly than an investigation, because it depends on measures staying the same while the organization changes around them.

The Data Security Posture Management Posture page with navigation for Posture, Objectives, AI observability, Discover, Classifiers, Tasks and actions and Reports; a banner saying the classic DSPM and DSPM for AI were retired on 30 November 2026; suggested Copilot prompts; and Key posture metrics for the last 30 days: Activities covered by Data Loss Prevention 8 percent, up 3 percent in 30 days, and Data protection alerts triaged 28 percent, up 28 percent in 30 days.

The course tenant's DSPM Posture page with its two key posture metrics. Select the image to open it full size.

The capture shows the course tenant's posture page. It is the first page the course measures from, and Module 11 returns to it monthly. Two key metrics sit at the top: activities covered by data loss prevention at 8 percent, up 3 percent in 30 days, and data protection alerts triaged at 28 percent, up 28 percent in 30 days.

Microsoft's documentation describes the page as showing key posture metrics, objectives and a 30-day trending graph, and does not describe a single composite score. The banner notes that the classic DSPM pages were retired at the end of November 2026, which is why posture in this tenant starts there.

A posture history that begins on a known date is still useful; it means every report says "since 1 December 2026" and none pretends to show a longer trend.

Foundations.xlsx
B3not stated on the page
AB
1QuestionFor "8%, up 3%"
2What is counted?activities covered by a DLP policy
3Out of what?not stated on the page
4Over which window?the last 30 days
5Up 3 what?points or percent: not stated
What the record provesHow long evidence lastsFour questions of a percentage

Before reporting a percentage, four questions need answers: what is counted, out of what, over which window, and what the change phrase means. They sound pedantic until a board member asks the second one. A percentage without a known denominator can rise because protection improved, because activity fell, or because the product changed what it counts.

The highlighted cell is the answer most often missing. The page says 8 percent of activities are covered by DLP, and does not say 8 percent of which activities, so the number cannot be compared with anything outside the page. "Up 3 percent" may mean three points or three percent of the previous value, and the page does not say which.

Module 11 treats both as open questions, records the reading exactly as displayed, and reports change only by comparing later readings with it. The second metric shows why. If "up 28 percent" means points, the value rose from zero, which would mean measurement began during the window.

If it means percent, it rose from about 22. The page does not say which, and the two stories are very different: one is a new measure, the other a real improvement. Reading change phrases literally is the commonest way to report progress that did not happen.

Microsoft Purview portal

Take a posture reading:
Microsoft Purview › Solutions › DSPM › Posture
Record each key metric exactly as displayed, with its change phrase and the date and time of the reading. Then open Objectives and record the same for each objective you report.

The recorded reading, not a remembered one, is what a later comparison is made against.

Posture has one more limit worth knowing at the start. It measures what Purview can see. Data outside Microsoft 365, activity on unmanaged devices, and AI tools that nothing captures are not in any figure on the page, and a posture report should say so in a line rather than let the reader assume full coverage.

Microsoft documents that DSPM processing pauses after more than 60 days without anyone accessing it, so a posture program that reads the page quarterly will find gaps in its own history. The pause is easy to miss, because the team that stopped looking is the team that would have noticed, and the gap in the history only shows when someone later tries to compare readings across it.

Module 11 sets a monthly reading for that reason. A monthly reading also matches the page's 30-day window, so each reading covers a period that does not overlap much with the last and leaves no gap before the next.

Microsoft 365 CopilotWorkWebPrepared example
Can I use the audit log to see exactly what a user asked Microsoft 365 Copilot?
Yes. Interactions with Microsoft 365 Copilot are recorded in the unified audit log, including the prompts and responses, which you can search in the Purview portal.
Check before you use itWrong in the way that matters most for an investigation. The CopilotInteraction record holds message IDs and whether each was a prompt, not the text. The words are in the conversation, kept in the user's mailbox only if a retention policy keeps them, and found with eDiscovery. An investigator who trusts this answer will promise evidence the audit log does not hold.

The assistant's answer is the most consequential error this lesson can prevent. An investigator who believes the audit log holds prompts will tell a stakeholder that the evidence exists, and then find message IDs and no words.

Ask instead what the CopilotInteraction record contains and where prompt text is stored, and check the answer against the record above. Then ask how long each is kept by default in your tenant, and check that against the clocks sheet. The two follow-up questions turn a confident wrong answer into an accurate plan for keeping the evidence.

Do

Practice

What one audit record proves
the requirement set
Review taskFoundationsWhat one audit record proves
DeliverableFor the record in this lesson, what it proves, what it cannot, and where the rest would come from.
Done whenEach claim the record supports is listed, each it does not is matched to the evidence that would, and each has a date it expires.
  • The envelopeRead who and when. User, time in UTC, app.
  • ResourcesRead what was reached. File, action, label ID, status.
  • MessagesRead what is missing. IDs only: what is needed to know what was said?
  • ClocksSay how long each lasts. This record, the conversation, the file.

Use the record from section 2 and the clocks from section 3. Treat the record as the only evidence you have been handed, as an investigator often is. Write each claim the record supports in one sentence, then each claim it cannot support with the evidence that would.

Assume the user has E5, there is no audit retention policy for Copilot records, and there is no retention policy for Copilot interactions, and say on which date each piece of evidence about this question will no longer exist.

Try thisCheck it says the text is not in the record
What does a CopilotInteraction record in the Microsoft Purview audit log contain, and what does it not contain?

What to look at: whether it lists the user, the app, the accessed resources with labels, and says the messages hold IDs, not prompt or response text. An answer that says the record holds the prompt has confused the audit log with the retained conversation.

The answer worth trusting lists the user, the app and the accessed resources with label IDs, and says the messages hold IDs and not text. An answer that says the record holds the prompt has confused the audit log with the retained conversation.

The audit log records Copilot interactions with who asked, when, in which app and which files were read, with each file's label at that moment, and holds no prompt or response text.

The conversation is separate evidence, kept only if retention keeps it, and the file is a third, with its own clock. Audit records last a year or 180 days by default depending on license and activity type, and audit retention policies change that going forward only.

Posture measures change over time from DSPM readings, and every percentage needs its numerator, denominator, window and change phrase settled before it is reported. The last lesson in this module explains how the course is worked, from requirements to models to a safe place to practice.