VamiBlueDeutschBook a demo
Knowledge base / Evidence collection

Collecting evidence for business e-mail compromise

The mailbox, sign-in and audit data needed when an e-mail account was taken over, for Microsoft 365 and Google Workspace.

Cloud logs have short retention. Export them as soon as you suspect a compromised mailbox.

The fraudulent messages

Export the relevant messages as .eml (or .msg) with full headers: the fraudulent mail, the replies, and any mail that carried new payment details. Do not forward them; forwarding rewrites the headers.

Microsoft 365

  • Unified audit log: Microsoft Purview → Audit → search the affected user for the incident window (at least 30 days back) and export to CSV. From PowerShell: Search-UnifiedAuditLog -StartDate ... -EndDate ... -UserIds user@company.com -ResultSize 5000.
  • Sign-in logs: Microsoft Entra admin center → Sign-in logs → filter by user → download.
  • Inbox rules and forwarding: Get-InboxRule -Mailbox user@company.com | fl * and the mailbox's forwarding settings.
  • Message trace for the time window, to see what was sent and received.

Google Workspace

  • Admin console → Reporting → Audit and investigation: Gmail log events, user log events (sign-ins), admin log events. Export to CSV or Sheets.
  • Mail filters and forwarding of the affected user.

Contain at the same time

Reset the password, revoke sessions and app passwords, review MFA methods registered recently, and remove malicious rules after exporting them.