← All Threat Hunting ReportsThreat Hunting Exercise

Threat Hunting Exercise: Analyzing Office 365 Mailbox Forwarding Rule Exfiltration Dataset

This hunt uses a simulated Microsoft 365 Unified Audit Log export (o365_mailbox_forwarding_exfil_2022-05-02T082500.json) to trace T1114.003: Email Collection - Email Forwarding Rule, the direct follow-on from this series' VPN impossible-travel hunt - once an adversary has a live mailbox session, a covert forwarding rule is the single most efficient way to passively exfiltrate all future correspondence without repeated logons.

Step 1: Hypothesis Formation

Hypothesis: Following unauthorized mailbox access, the adversary creates an inbox rule that silently forwards (or forwards-and-deletes) incoming mail matching broad or no criteria to an external address, and/or grants a new delegate/ApplicationImpersonation right for persistent access, all while suppressing visible notification to the legitimate user (e.g., marking forwarded copies as read, or using New-InboxRule rather than the visible Outlook forwarding toggle). Indicators:

Null Hypothesis: Legitimate user-configured auto-forward (e.g., to a personal address while on leave) or an approved third-party integration. Invalidate via correlation with a known-compromised session (per the VPN hunt), destination domain reputation, and the DeleteMessage flag (users forwarding to themselves rarely also delete the original).

Rationale: This report intentionally chains off the VPN Impossible Travel hunt's finding (an OWA rule creation event was flagged there) - demonstrating how M365 UAL analysis completes the picture once network-layer compromise is suspected.

Step 2: Data Sources and Scope

Step 3: Key Findings

Parsed UAL entries (8 shown) confirm a covert forwarding rule created via PowerShell within minutes of the anomalous Bucharest session, followed by active exfiltration of subsequent mail.

Timestamp (UTC)OperationActor/ClientIPKey DetailsIOC/Why Suspicious?
2022-05-02 08:25:01UserLoggedInrharris / 185.81.157.9ResultStatus=Succeeded; ClientInfoString="Client=OWA".Confirms the OWA session tied to the anomalous Bucharest VPN session identified in the companion hunt.
2022-05-02 08:25:20New-InboxRulerharris / 185.81.157.9 (via Exchange Online PowerShell)Name="Server Rule #2b1"; ForwardTo="finance.updates@0utlook-secure.com" (typosquatted external domain); DeleteMessage=True; conditions=none (matches all mail).Core IOC: Blank-condition rule (matches everything) forwarding to a typosquatted external domain, with the original deleted after forwarding - hides the rule's effect from the mailbox owner entirely.
2022-05-02 08:25:22Set-Mailboxrharris / 185.81.157.9AuditEnabled changed from True to False (attempted, partially blocked by tenant policy).Evasion IOC: Attempt to disable mailbox auditing to reduce future detection - blocked by org policy but the attempt itself is a strong signal.
2022-05-02 08:26:00Add-MailboxPermissionrharris / 185.81.157.9User="svc-backup-sync" (same name pattern as the AWS backdoor account in the companion cloud hunt - likely actor reuse); AccessRights=FullAccess.Persistence IOC: Grants a secondary identity full mailbox access - a fallback if the forwarding rule is discovered and removed.
2022-05-02 08:40:15MailItemsAccessedrharris / (Exchange internal, triggered by inbound mail)Folders=Inbox; InternalLogonType=0; ClientInfoString="Client=REST;Client=RESTSystem".Rule engine processes an incoming email matching the (empty) condition - first exfil trigger.
2022-05-02 08:40:16Sendrharris (system, on behalf of rule)Recipient="finance.updates@0utlook-secure.com"; Subject matches the just-received internal email's subject.Exfil IOC: Confirmed forwarding in action - an internal email is silently copied to the external address within one second of arrival.
2022-05-02 08:40:17SoftDeleterharris (system, on behalf of rule)ItemSubject matches the forwarded email; Folder=Deleted Items → permanently removed per DeleteMessage=True.Original evidence removed from the mailbox owner's view entirely.
2022-05-02 09:15:00 - (ongoing)Send x14rharris (system, on behalf of rule)14 additional emails forwarded and deleted over the following hours, including two containing "wire transfer" in the subject line.Business impact IOC: Rule actively captured financially sensitive correspondence, indicating likely BEC (Business Email Compromise) follow-on intent.

Validation:

Step 4: Recommendations & Next Steps

Hypothesis confirmed - covert, self-deleting forwarding rule actively exfiltrating financially sensitive email! Chaining this hunt to the VPN and AWS findings in this series revealed a single coordinated actor across three distinct log sources.