DET-077 · human · confidence Medium

Mail Flow Trace in Exchange

Message trace shows which mailboxes sent and received mail, with time, subject, and recipients.

In Exchange Online or on-prem, message trace lists each message's sender, recipient, time, subject, status, and size. It does not need the mailbox itself. Use it to find mail sent to personal addresses, large attachments leaving, or a pattern of forwarding to a single outside address. Message trace usually holds 90 days of data (historic search is slower), so start early.

Data sources
Exchange message traceMicrosoft 365 unified audit log
Platforms
Microsoft 365

Logic

Get-MessageTrace -SenderAddress user@corp.com -StartDate (Get-Date).AddDays(-10) -EndDate (Get-Date) | Where-Object { $_.RecipientAddress -notlike '*@corp.com' } | Group-Object RecipientAddress | Sort Count -Desc
Review consumer domains (gmail, proton) and unusual recipients.

False positives

Customers, partners, and employees emailing their own personal address for harmless reasons.

Catches 14 techniques