Exchange Online Send, SendAs, and SendOnBehalf Abuse in Audit Logs
When an intruder sends internal spear-phishing or fake wire emails from a compromised mailbox or delegated shared mailbox, Purview UAL logs Send (mailbox owner), SendAs (delegated impersonation), or SendOnBehalf. Reviewing Item.Subject, Item.InternetMessageId, and ClientIPAddress proves who sent each message even after the attacker purges Sent Items.
Why This Artifact Matters in M365 Incident Response
Once an attacker lands inside an employee’s M365 session, internal lateral phishing is one of their highest-ROI moves: emails arriving from a real internal colleague (such as HR, Payroll, or Finance) pass every SPF, DKIM, and DMARC check and carry high employee trust.
To hide their tracks, attackers routinely empty Sent Items and Deleted Items immediately after firing off 200 phishing lures. Fortunately, Exchange Online preserves Send, SendAs, and SendOnBehalf records inside Purview UAL independently of Sent Items.
Distinguishing the three Exchange sending events clarifies exactly how the email left the tenant: Send indicates the mailbox owner (or stolen session token belonging to the owner) sent the message directly. SendAs indicates a delegate holding Add-RecipientPermission -AccessRights SendAs impersonated another mailbox (often a shared AP@ or HR@ address) seamlessly. SendOnBehalf indicates delegated sending via GrantSendOnBehalfTo.
Every Send/SendAs/SendOnBehalf record embeds Item.Subject and Item.InternetMessageId inside AuditData—giving you the exact message identifier needed to pull full recipient lists from Exchange Message Trace.
Step-by-Step Attack Reconstruction Timeline
Employees report receiving an internal "2026 Bonus Adjustment PDF" email from `payroll@company.com`, yet the Payroll manager insists her Sent Items folder is empty. Exporting Purview UAL reveals zero Send events from the Payroll manager’s own IP—instead, SendAs events fire from 194.26.135.210 under UserId `helpdesk.intern@company.com`.
Pivoting back 12 hours surfaces `Add-RecipientPermission` granting `helpdesk.intern` SendAs rights over `payroll@company.com`, while `Get-MessageTrace` lists all 142 internal recipients who received the phishing message.
Exchange Send Event Preserved After Sent Items Deletion
{
"CreationTime": "2026-12-01T08:44:12Z",
"Operation": "SendAs",
"RecordType": 2,
"Workload": "Exchange",
"MailboxOwnerUPN": "ap@contoso-demo.invalid",
"UserId": "compromised.user@contoso-demo.invalid",
"ClientIPAddress": "185.220.101.45",
"Item": {
"Subject": "Urgent Updated Remittance Instructions",
"InternetMessageId": "<msg-991@contoso-demo.invalid>"
}
}
Observe the mismatch between MailboxOwnerUPN (ap@contoso-demo.invalid) and UserId (compromised.user@contoso-demo.invalid)—proving compromised.user abused delegated SendAs rights from 185.220.101.45 to spoof Accounts Payable.
Forensic Telemetry Fields & High-Signal Indicators
| Telemetry Field / Pattern | Meaning in M365 / Entra | High-Signal Threat Indicator |
|---|---|---|
Operation = Send | Mailbox owner (or stolen owner token) sent mail | Verify ClientIPAddress & SessionId against baseline |
Operation = SendAs | Delegate sent identically as another mailbox | Check prior Add-RecipientPermission -AccessRights SendAs |
Operation = SendOnBehalf | Delegate sent "on behalf of" mailbox owner | Inspect GrantSendOnBehalfTo mailbox setting |
MailboxOwnerUPN vs. UserId | Target mailbox vs. actual sending identity | Mismatch proves delegated or admin impersonation |
Item.InternetMessageId | Unique RFC 5322 Message-ID header | Pass to Get-MessageTrace to recover full recipient list |
Item.Subject | Email subject line even after Sent purge | Confirms lure topic (wire, invoice, SharePoint link) |
Recover All Recipients of Attacker-Sent Messages & Audit SendAs Rights
Connect-ExchangeOnline
# 1. Recover recipients from Exchange Message Trace (10d live):
Get-MessageTrace -SenderAddress "ap@domain.com" -StartDate (Get-Date).AddDays(-7) -EndDate (Get-Date) |
Where-Object { $_.Subject -like "*Remittance*" } | Select-Object Received, RecipientAddress, Subject, Status
# 2. List all non-self SendAs grants across tenant:
Get-RecipientPermission -ResultSize Unlimited | Where-Object { $_.Trustee -ne "NT AUTHORITY\SELF" -and $_.AccessRights -contains "SendAs" }
Sample Message Trace Recipient Discovery
Received RecipientAddress Subject Status
-------- ---------------- ------- ------
12/01/2026 08:44:15 controller@vendor-partner.com Urgent Updated Remittance Instructions Delivered
12/01/2026 08:44:16 ap.lead@vendor-partner.com Urgent Updated Remittance Instructions Delivered
Send vs. SendAs vs. SendOnBehalf Forensic Differences
| Audit Operation | How Recipient Sees From Header | Permission Enabling It |
|---|---|---|
| Send | From: Victim <victim@company.com> | Mailbox Owner session / stolen cookie |
| SendAs | From: Shared <ap@company.com> (no indication of delegate) | Add-RecipientPermission -AccessRights SendAs |
| SendOnBehalf | From: Attacker on behalf of Victim | Set-Mailbox -GrantSendOnBehalfTo |
Step-by-Step Triage, Containment & Verification
- Filter Purview UAL logs in AuditVane for Send, SendAs, and SendOnBehalf during the attacker’s active session window.
- Check MailboxOwnerUPN vs. UserId inside AuditVane’s Event Inspector to spot delegate impersonation.
- Extract Item.Subject and Item.InternetMessageId from every malicious send event.
- Query Get-MessageTrace (or Start-HistoricalSearch beyond 10 days) to capture every internal and external recipient address.
- Run Defender / Exchange Threat Explorer or Search-Mailbox / ComplianceSearch -Purge to claw back internal phishing emails from coworkers’ inboxes.
- Audit Get-RecipientPermission and Remove-RecipientPermission to strip unauthorized SendAs delegations.
How to Verify Containment Completed Cleanly
- Complete list of phishing and BEC recipients extracted from Message Trace.
- Malicious internal phishing emails purged from employee inboxes.
- Unauthorized SendAs and GrantSendOnBehalfTo permissions removed.
Analyst Blind Spots, Licensing Quirks & False Positives
Older mailboxes occasionally lack Send inside their AuditOwner or AuditDelegate configuration—verify `Get-Mailbox | Select AuditOwner, AuditDelegate` if Send events appear mysteriously absent while Message Trace shows outbound mail.
Remember that Get-MessageTrace returns at most 10 days immediately; messages sent 11–90 days ago require Start-HistoricalSearch (Extended Message Trace CSV).
Frequently Asked Questions
If the attacker deletes Sent Items and empties Trash, is the Send log lost?
No! Purview Send/SendAs/SendOnBehalf logs and Exchange Message Trace remain intact regardless of Sent Items deletion.
How do attackers abuse SendAs on shared mailboxes?
With Exchange Admin or compromised mailbox ownership, they grant Add-RecipientPermission -AccessRights SendAs to a secondary compromised account so resetting the shared mailbox doesn’t stop them.
Can AuditVane display Item.Subject for Send events?
Yes—click any Send/SendAs row in AuditVane to view flattened AuditData.Item.Subject and InternetMessageId.
What is the difference between Message Trace and UAL Send events?
UAL Send shows the user ClientIP and UserId who submitted the mail; Message Trace shows the complete recipient delivery outcome.