M365 UAL Timestamps: UTC Conversion, Local Excel Traps, and Clock Skew in DFIR
Always build Microsoft 365 incident timelines from AuditData.CreationTime (strict UTC ISO-8601) rather than the top-level CreationDate column when exported from the Purview web portal—because Purview UI exports often render CreationDate in the exporting analyst’s local browser timezone without an offset tag, whereas CreationTime inside AuditData is universally UTC.
Detection Objective & Threat Scope
One of the easiest ways to embarrass an incident response team in front of leadership or external counsel is presenting a timeline that claims an attacker created an inbox rule five hours before the victim even clicked the phishing link. Almost every time this happens, the culprit is an un-normalized timezone mismatch between Purview UI CSV exports and Entra ID logs.
Understanding how Microsoft Purview formats dates across the web portal vs. PowerShell, why Excel silently rewrites UTC strings, and how cloud microservice ingestion latency creates perceived delays keeps your forensic chronology rock-solid.
When an analyst clicks Export inside the Microsoft Purview web console, the browser UI frequently formats the top-level CreationDate CSV column using the browser’s local timezone (e.g., 12/01/2026 03:18:55 AM EST) with no timezone indicator—yet the nested AuditData JSON string inside that exact same row preserves CreationTime in strict UTC ("2026-12-01T08:18:55Z"). Meanwhile, Entra ID Sign-In JSON exports use strict UTC ISO-8601 exclusively.
Additionally, Purview UAL ingestion is asynchronous across globally distributed Exchange, SharePoint, and Teams shards. While Entra and Exchange Admin events typically appear within 5–15 minutes, SharePoint and MailItemsAccessed batches can lag 30–90 minutes (and occasionally several hours during service peaks).
Forensic Telemetry Fields & High-Signal Indicators
| Telemetry Field / Pattern | Meaning in M365 / Entra | High-Signal Threat Indicator |
|---|---|---|
AuditData.CreationTime | Strict ISO-8601 UTC inside JSON payload | Authoritative primary DFIR timestamp |
CSV CreationDate (Purview UI) | May reflect analyst browser timezone without offset | Never rely on it when merging multi-region exports |
CSV CreationDate (PowerShell) | Returned in UTC by Search-UnifiedAuditLog | Still cross-check against AuditData.CreationTime |
Entra createdDateTime | Strict ISO-8601 UTC from Entra ID | Correlates 1:1 with AuditData.CreationTime |
Ingestion Delay | 5 min – 90 min cloud shard batching lag | Wait 60–90 min post-containment for final log sweep |
Excel Auto-Reformat Risk | Strips seconds / Z suffix on Save | Keep unmodified raw CSV as read-only evidence |
Force Clean UTC Extraction & Sorting in PowerShell
$ual = Import-Csv .\Purview_UI_Export.csv
$ual | ForEach-Object {
$ad = $_.AuditData | ConvertFrom-Json
[PSCustomObject]@{
CreationTimeUTC = [datetime]::Parse($ad.CreationTime).ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ssZ")
BrowserCol = $_.CreationDate
Operation = $ad.Operation
User = $ad.UserId
}
} | Sort-Object CreationTimeUTC | Format-Table -AutoSize
Sample Timezone Discrepancy Caught by PowerShell
CreationTimeUTC BrowserCol Operation User
--------------- ---------- --------- ----
2026-12-01T08:18:55Z 12/01/2026 03:18:55 AM New-InboxRule finance.director@contoso.invalid
Timestamp Reliability Across Microsoft 365 Export Paths
| Export Source & Column | Timezone Format | Safe for Multi-Source Correlation? |
|---|---|---|
| AuditData.CreationTime (Any CSV/JSON) | Strict UTC (Z) | Yes — Authoritative event time |
| Entra Sign-In createdDateTime | Strict UTC (Z) | Yes — Correlates cleanly with CreationTime |
| Purview Portal CSV CreationDate | Browser local time (often no offset) | No — Causes timezone shift errors |
| Modified CSV re-saved in Excel | Local Excel date string (seconds lost) | No — Corrupts forensic precision |
Side-by-Side Timestamp Mismatch Example
{
"Purview_UI_CreationDate_Column": "12/01/2026 03:18:55 AM",
"AuditData_CreationTime_UTC": "2026-12-01T08:18:55Z",
"Entra_SignIn_createdDateTime": "2026-12-01T08:12:04Z"
}
Comparing Purview_UI_CreationDate_Column (03:18 AM) against Entra_SignIn_createdDateTime (08:12 AM) creates a false 5-hour inversion—whereas AuditData_CreationTime_UTC (08:18:55Z) places the inbox rule accurately 6 minutes and 51 seconds after login.
Real-World Incident Walkthrough
An analyst in New York (UTC-5) exports a Purview CSV via the web portal while a colleague in London (UTC+0) exports Entra Sign-In JSON. Merging them using CreationDate makes the New-InboxRule appear 5 hours earlier than the Entra login that enabled it.
Dropping both raw exports into AuditVane eliminates the bug immediately: AuditVane always prioritizes AuditData.CreationTime (and Entra createdDateTime) over top-level CreationDate, sorting every merged event onto one unified UTC axis.
Step-by-Step Triage, Containment & Verification
- Never overwrite or re-save original exported Purview CSV files inside Microsoft Excel.
- Standardize every forensic spreadsheet and timeline explicitly on UTC (ISO-8601) derived from AuditData.CreationTime.
- Drop raw exports directly into AuditVane, which prioritizes AuditData.CreationTime automatically across all charts and tables.
- Remember ingestion lag: if containment happened 10 minutes ago, re-pull UAL logs 90 minutes later to verify delayed SharePoint or MailItemsAccessed records.
- Document timezone UTC explicitly on every exported report, chart, and legal summary.
How to Verify Containment Completed Cleanly
- Every event timestamp in the incident report confirmed in UTC.
- Original unmodified CSV/JSON exports preserved with SHA-256 hashes.
- Post-containment log sweep repeated after 90-minute ingestion buffer.
Analyst Blind Spots, Licensing Quirks & False Positives
Excel’s default CSV double-click import strips trailing seconds and drops UTC Z suffixes, silently shifting rows into the analyst’s workstation clock. Always use raw CSVs in AuditVane or PowerShell Import-Csv.
Remember also that Search-UnifiedAuditLog -StartDate / -EndDate interprets unspecified DateTime strings in the local PowerShell session’s timezone unless .ToUniversalTime() is passed!
Frequently Asked Questions
Which timestamp field does AuditVane use for sorting and charts?
AuditVane prioritizes AuditData.CreationTime first, then CreationTime, CreationDate, createdDateTime, and activityDateTime, plotting everything in UTC.
Why do Purview logs sometimes show up an hour after an event happened?
Microsoft Purview ingests events asynchronously from Exchange, SharePoint, and Teams shards—lag varies from 5 minutes up to ~90 minutes (and rarely longer).
Does opening a Purview CSV in Excel corrupt it?
Opening and viewing does not alter disk bytes, but clicking Save overwrites ISO timestamps and triggers Excel formula re-formatting.
Should PowerShell scripts always convert dates to UTC?
Yes—always use (Get-Date).ToUniversalTime() or explicit UTC DateTime values when querying Search-UnifiedAuditLog.