Contained & remediated
Microsoft 365 · Identity · Email · Financial Risk

Business Email Compromise → Mailbox Persistence → Payment-Fraud Investigation

A controlled Microsoft 365 lab case connecting credential phishing, unauthorized authentication, Exchange Online mailbox activity, suspicious rules, financial reconnaissance, tenant-wide scoping, and verified remediation.

Defender XDREntra IDExchange OnlineAdvanced HuntingKQLOSINT
VALIDATETRACEIDENTITYSESSIONPERSISTENCESCOPECONTAINVERIFY
Incident Profile
Incident typeBEC / Account Takeover
SeverityHigh
EnvironmentMicrosoft 365 / Entra ID
DispositionContained & Remediated
MITRE ATT&CK Chain

T1566.002 → T1078 → T1114 → T1114.003 → T1098

Phishing link → valid accounts → email collection → forwarding rule → account manipulation.

▶
Project 03 walkthroughVideo pending
Incident Scenario

From a phishing click to mailbox persistence.

A finance/payroll employee received a phishing email impersonating a trusted business service and entered credentials into a fraudulent Microsoft 365 authentication page. Suspicious authentication followed. The investigation identified unauthorized mailbox access and attacker-created rules intended to monitor or redirect finance-related correspondence.

The investigation expanded beyond the original alert to test for persistence, sensitive-email access, impersonation, additional compromised identities, endpoint execution, and attempted financial fraud.

Investigation Timeline

Two hours from delivery to monitored recovery.

The sequence preserves the case chronology while keeping user, IP, domain, and destination values anonymized.

T+00Phishing email delivered
T+08–11URL clicked; credentials submitted
T+16–24Unfamiliar authentication; mailbox activity begins
T+31–38Suspicious rule created; finance messages accessed
T+45–55Detection generated; compromise confirmed
T+61–74Sessions contained; mailbox persistence removed
T+90Tenant-wide IOC hunt completed
T+120Account restored with enhanced monitoring
01 · VALIDATE

Confirm unauthorized mailbox manipulation.

Correlate the alert, affected user, rule operation, parameters, forwarding destination, authentication context, and historical baseline. External forwarding, finance-related keywords, and abnormal authentication increase confidence when considered together.

02 · TRACE INITIAL ACCESS

Work backward to the phishing email.

Use EmailEvents, EmailUrlInfo, and UrlClickEvents to establish delivery, recipient interaction, URL activity, and the timing relationship to suspicious authentication.

let affectedUser = "finance.user@lab.example";
EmailEvents
| where Timestamp > ago(7d)
| where RecipientEmailAddress =~ affectedUser
| project Timestamp, NetworkMessageId, SenderFromAddress, RecipientEmailAddress, Subject, DeliveryAction
| join kind=leftouter (UrlClickEvents | where AccountUpn =~ affectedUser | project ClickTime=Timestamp, NetworkMessageId, Url, IsClickedThrough) on NetworkMessageId
| order by Timestamp desc
Microsoft Defender Advanced Hunting query history in Donald Ella's lab
BEC hunting workspaceMicrosoft Defender Advanced Hunting used to review email, URL-click, file, and network activity while building the investigation timeline.
03 · IDENTITY

Validate the account takeover in Entra ID.

Review IP, country, ASN, device, browser, MFA, Conditional Access, result, and session context. A foreign sign-in is not automatically impossible travel; VPN, travel, and known infrastructure must be excluded first.

SigninLogs | where TimeGenerated > ago(7d) | where UserPrincipalName =~ "finance.user@lab.example" | project TimeGenerated, UserPrincipalName, IPAddress, Location, AppDisplayName, ClientAppUsed, ConditionalAccessStatus, AuthenticationRequirement, ResultType
04 · SESSION & ACTIVITY

Determine what happened after authentication.

Reconstruct authentication → Exchange session → mailbox operations → persistence → data access. Review MailItemsAccessed, New-InboxRule, Set-InboxRule, UpdateInboxRules, Send, SendAs, SendOnBehalf, mailbox permissions, and search activity.

05 · PERSISTENCE

Check beyond the inbox rule.

Review forwarding addresses, delete and mark-as-read rules, finance keyword rules, mailbox-level forwarding, delegates, OAuth consent, application permissions, MFA methods, device registrations, and active sessions.

06 · COLLECTION & FRAUD

Distinguish takeover from attempted payment diversion.

Search for invoice, payment, bank, wire, ACH, remittance, vendor, and statement activity. Review outbound mail, recipients, replies, deleted messages, Reply-To changes, and Send/SendAs/SendOnBehalf events. Classify the outcome only as far as the evidence supports.

07 · BLAST RADIUS

Hunt across the tenant and associated endpoints.

Pivot on attacker infrastructure, phishing sender, URL/domain, recipients, OAuth application, forwarding destination, user agent, and ASN. Review associated DeviceLogonEvents, DeviceProcessEvents, DeviceNetworkEvents, and DeviceFileEvents to determine whether the incident remained cloud-only.

08 · CONTAIN, ERADICATE & VERIFY

Remove access and prove persistence is gone.

Disable the account temporarily, revoke sessions and refresh tokens, reset credentials, review authentication methods, remove malicious rules and forwarding, remove unauthorized delegates or OAuth consent, remediate phishing messages, and notify Finance. Recheck every persistence path and rerun the IOC hunt before restoring access.

Evidence-based root cause: Credential phishing was identified as the initial access mechanism, followed by successful unauthorized authentication and mailbox takeover. The available evidence did not conclusively distinguish credential reuse, MFA approval abuse, token theft, or an adversary-in-the-middle mechanism, so the report does not overstate that detail.