Purview Audit: Turning On the Logs You’ll Need After a Breach
A Microsoft 365 account is compromised.
The immediate questions are predictable:
When did the attacker get in?
Which account did they use?
What did they read, download, delete or change?
Did they create forwarding rules?
Did they access SharePoint or OneDrive?
Did they change administrator roles or security settings?
The answers often depend on Microsoft Purview Audit.
But audit logs only help when they were being collected before the incident.
You cannot discover after a breach that auditing was disabled and then ask Microsoft 365 to reconstruct six months of activity that was never recorded.
That is why every Microsoft 365 security review should include:
auditing → retention → permissions → test search.
What Is Microsoft Purview Audit?
Microsoft Purview Audit provides a central audit trail for activities across Microsoft 365.
Depending on the workload and licensing, records can help investigators understand activity involving:
Exchange Online
SharePoint
OneDrive
Teams
Microsoft Entra ID
Microsoft 365 administration
Copilot and AI interactions
other Microsoft 365 workloads
Audit records can show events such as:
mailbox actions
message and rule activity
file access
downloads
sharing
deletions
administrator changes
group and role changes
application activity
Microsoft also records Microsoft 365 Copilot interactions in Audit Standard when auditing is enabled, including who interacted with Copilot, when, where and references to organisational resources that were accessed during the interaction.
Purview Audit should not be treated as your only forensic source.
You may also need:
Microsoft Entra sign-in logs
Defender alerts
endpoint telemetry
email investigation data
firewall/VPN records
Think of Purview Audit as the evidence showing what identities did inside Microsoft 365.
First: Verify That Auditing Is Actually Enabled
This is particularly important for smaller businesses.
Microsoft currently states that auditing is not enabled by default for SMB subscriptions including Microsoft 365 Business Basic, Business Standard and Business Premium.
So do not assume:
“We use Microsoft 365, therefore the audit log must already be recording everything.”
Check it.
In the Microsoft Purview portal:
Solutions > Audit
If you are prompted to:
Start recording user and admin activity
then auditing is not currently active.
Enable it.
You can also verify the tenant setting through Exchange Online PowerShell:
Get-AdminAuditLogConfig |
Format-List UnifiedAuditLogIngestionEnabled
You want:
UnifiedAuditLogIngestionEnabled : True
The important operational lesson is simple:
verify rather than assume.
Auditing Does Not Work Retroactively
If auditing was disabled last month and you enable it today, you do not suddenly gain last month’s missing evidence.
Microsoft audit retention begins when the events are added to the audit log.
That means the worst possible time to discover auditing is disabled is:
during the breach investigation.
Check it during normal operations.
Verify Mailbox Auditing Too
Mailbox activity is particularly important in business email compromise.
Microsoft says mailbox auditing is turned on by default at organisation level and records selected actions performed by:
mailbox owners
delegates
administrators.
Verify the organisation setting:
Get-OrganizationConfig |
Format-List AuditDisabled
You normally want:
AuditDisabled : False
That means mailbox auditing on by default is active.
This can help provide evidence around activities such as:
mailbox access
message operations
delegate activity
depending on the specific audited action and licensing.
Be Careful Customising Mailbox Audit Actions
Microsoft maintains default audited mailbox actions.
That is useful because Microsoft can add newly supported actions to the default configuration over time.
If you heavily customise which mailbox actions are audited, you take on more responsibility for keeping those settings current.
For many SMEs, the safer approach is:
retain Microsoft’s managed defaults unless you have a clear compliance or forensic reason to customise them.
More configuration is not automatically better.
Shared Mailboxes Matter
Do not test only ordinary user mailboxes.
Shared mailboxes frequently contain some of the organisation’s most attractive data:
invoices
bank details
payroll correspondence
HR messages
customer information
Examples might include:
accounts@
finance@
hr@
support@
During a business email compromise investigation, activity involving a shared finance mailbox may matter far more than the original user mailbox.
Make shared mailboxes part of your test plan.
How Long Are Audit Logs Retained?
This is where licensing matters.
For Audit Standard, Microsoft currently retains audit records for 180 days by default.
That is roughly six months.
Six months may sound generous.
But imagine an attacker gains access in January and suspicious financial activity is not discovered until August.
Your earliest evidence may already have expired.
That is why audit retention should reflect:
how long an incident might remain undiscovered
rather than simply accepting the default.
Audit Premium Changes Retention
For appropriately licensed Audit Premium users, Microsoft provides a default policy retaining qualifying:
Exchange
SharePoint
OneDrive
Microsoft Entra
audit records for one year.
Other activities remain at 180 days unless another applicable retention policy extends them.
Microsoft also supports custom audit retention policies and, with the appropriate licensing/add-on, retention for up to 10 years.
But there is an important detail:
retention follows the licence of the user generating the activity.
It is not enough for one administrator who performs investigations to hold an advanced licence if the users whose activity you expect to retain longer do not.
Mixed Licensing Needs Careful Planning
This matters for SMEs trying to control cost.
You might decide that extended audit capability is most valuable for users such as:
administrators
finance
executives
HR
legal
security personnel
That can be sensible.
But make sure you understand exactly which events and retention periods apply to each licensing group.
Do not create an incident-response plan that assumes:
“we keep a year of logs”
when most employees are actually retained for only 180 days.
Audit Standard vs Audit Premium
A simple way to think about the distinction:
Audit Standard
Provides the core unified audit log and 180-day default retention for supported records.
For many organisations, this is already extremely useful.
Audit Premium
Adds capabilities including:
longer default retention for qualifying workloads/users
custom audit retention policies
additional high-value events and investigation capabilities
Microsoft currently describes Audit Premium as providing up to one-year retention for eligible user activity, with longer custom retention available under appropriate licensing.
The important question is not:
“Do we need the most expensive licence?”
It is:
“How far back must we realistically be able to investigate?”
Make Sure Someone Can Search the Logs
Collecting evidence is pointless if nobody can access it during an incident.
Do not wait until:
02:00 during a ransomware incident
to discover the only administrator familiar with Purview is unavailable.
Assign audit-search permissions to at least two appropriately authorised people.
Use least privilege.
Investigators should have the permissions necessary to search audit data without automatically making everyone a Global Administrator.
That reduces the security risk associated with highly privileged accounts.
Test Audit Search Before You Need It
This is one of the most important improvements any business can make.
Create a controlled test.
For example:
1. Create a document in SharePoint.
2. Open it.
3. Download it.
4. Rename it.
5. Share it with another account.
6. Delete it.
7. Wait for those records to become available.
8. Search for the events in Purview Audit.
You have now proved:
auditing is functioning
relevant activity is captured
your investigators have access
they know how to run a search
That is far better than discovering during an incident that nobody has ever opened the Audit portal before.
Audit Search Is Not Always Instant
Do not expect every activity to become searchable immediately.
Audit data can take time to ingest, and very broad investigations can also take time to search.
Microsoft’s current search interface runs audit queries as search jobs. Those jobs continue running even if the browser is closed, and Microsoft keeps completed search jobs for 30 days. Broad searches in very large tenants may take much longer than narrowly scoped ones.
For incident response:
start narrow.
Search around:
the suspected account
the likely time period
the relevant workload
the suspicious activity
Then broaden the investigation as evidence develops.
Export Important Search Results
When investigating an incident, do not rely solely on repeatedly recreating the same search.
Export relevant results for:
analysis
incident records
insurers
legal teams
management
regulatory investigation
Microsoft Purview supports exporting audit search data for offline analysis.
Document:
search criteria
date/time range
users
workloads
export time
That creates a more repeatable investigation trail.
What Should You Search After a Compromised Account?
The exact events depend on the incident, but I would typically investigate several areas.
Mailbox
Look for:
mailbox access
inbox-rule changes
forwarding
delegate changes
message activity
SharePoint and OneDrive
Look for:
unusual downloads
mass access
file deletion
unusual sharing
permission changes
Identity and administration
Look for:
group membership changes
privileged role changes
application changes
configuration changes
Copilot
Where Microsoft 365 Copilot is in use, audit records can show interaction activity and references to resources accessed during those interactions.
Do not assume an audit record automatically contains every piece of content involved. For certain Copilot investigations, other Purview capabilities such as eDiscovery or DSPM for AI may be required for deeper content inspection.
Purview Audit Does Not Replace Entra Sign-In Logs
Suppose an attacker logs in from an unusual IP address.
The Entra sign-in logs help answer:
How and from where did authentication occur?
Purview Audit helps answer:
What happened inside Microsoft 365 afterwards?
You want both perspectives.
A useful investigation timeline might be:
21:03 — suspicious successful sign-in
21:07 — mailbox rule created
21:12 — files accessed in SharePoint
21:18 — finance mailbox accessed
21:25 — external sharing changed
That sequence is much more useful than any one log source alone.
Logging Is Not Detection
Another important distinction:
Audit logs record activity.
They do not necessarily mean somebody is watching that activity in real time.
A business also needs to consider:
Defender alerts
identity-risk alerts
SIEM/SOC monitoring
incident response
security escalation
Audit is evidence.
Monitoring and detection are the mechanisms that help you discover the incident sooner.
The two complement each other.
Your 2026 Purview Audit Checklist
For a Microsoft 365 tenant:
1. Open Purview > Audit.
2. Verify unified auditing is enabled.
3. Pay particular attention if you use Business Basic, Business Standard or Business Premium, because Microsoft says SMB auditing is not enabled by default.
4. Verify mailbox auditing.
5. Include shared mailboxes in testing.
6. Confirm your actual retention period.
7. Check whether important users need longer Audit Premium retention.
8. Assign search access to at least two trained administrators.
9. Run controlled audit tests.
10. Export sample records.
11. Confirm your incident-response procedure references Purview Audit.
12. Review the configuration periodically.
The key principle is:
Do not wait for the breach to discover whether you have the evidence needed to investigate it.
How Hamilton Group Can Help
Hamilton Group can help businesses review whether their Microsoft 365 tenant is actually producing the security evidence they would need after an account compromise or cyber incident.
We can assist with:
Microsoft Purview Audit
Microsoft 365 audit reviews
mailbox auditing
audit retention
Microsoft Entra sign-in investigations
Microsoft Defender
Microsoft 365 security
business email compromise
incident response
Microsoft 365 Copilot security and governance
For SMEs using Microsoft 365 Business Premium in particular, verifying the audit configuration should be part of the security baseline rather than something discovered during an incident.
Visit hgmssp.com or call 01423 438 953 to discuss Microsoft 365 security and audit readiness.
0 comments
- Be the first to comment.