BEC & Exchange Forensics · T1070 / Indicator Removal

Investigating SoftDelete and HardDelete Mailbox Tampering Events in M365

Direct Answer (Key Forensic Takeaway)

In Exchange Online logs, SoftDelete moves messages into Recoverable Items\Deletions (or Deleted Items via MoveToDeletedItems), whereas HardDelete (Shift+Delete or Empty Recoverable Items) purges emails into Recoverable Items\Purges. Spikes of HardDelete on Sent Items from unfamiliar IPs reveal attackers erasing outbound phishing evidence—flagged automatically by AuditVane AV-012.

Why This Artifact Matters in M365 Incident Response

When an intruder hijacks an employee mailbox to blast internal phishing links or send fraudulent banking updates to external customers, their very next move is wiping every trace from Sent Items and Deleted Items so the real mailbox owner sees nothing amiss.

Understanding Exchange Online’s multi-tier deletion pipeline—MoveToDeletedItems, SoftDelete, HardDelete, and Recoverable Items\Purges—lets defenders catch anti-forensic cleanup and actually recover the deleted attacker messages before the 14-to-30-day retention window closes.

Exchange Online logs deletion operations under RecordType 2 (single item) or RecordType 3 (ExchangeItemGroup batch deletions). Each record preserves the parent Folder.Path (for instance \Sent Items or \Deleted Items) and an AffectedItems array listing exact Subject lines and InternetMessageIds.

Crucially, HardDelete does NOT destroy emails immediately when SingleItemRecoveryEnabled is True (Microsoft’s modern default) or when Litigation Hold / Purview Retention is active. Instead, HardDeleted items shift into the hidden Recoverable Items\Purges (or DiscoveryHolds) folder, where administrators can inspect and export them.

1. RAW TELEMETRY BEC & Exchange Forensics T1070 / Indicator Removal 2. CLIENT-SIDE PARSE AuditVane Engine SoftDelete HardDelete M365 audit l 0 Bytes Uploaded 3. SOC OUTCOME Scoped Containment IOCs · CSV · KQL
Local browser DFIR workflow for SoftDelete HardDelete M365 audit log (T1070 / Indicator Removal)
AdSense-Ready In-Article Placement

Real-World Incident Walkthrough

A compromised HR manager’s account sends 85 payroll phishing emails at 14:20 UTC, followed at 14:22 UTC by MoveToDeletedItems on \Sent Items and HardDelete on \Deleted Items from 194.26.135.210.

Even though Sent Items and Trash appear completely empty inside Outlook, loading the Purview CSV into AuditVane surfaces AV-012 HardDelete events showing every purged Subject line, and running Get-RecoverableItems -SourceFolder Purges recovers the full HTML body and phishing URL from Exchange’s backend store.

Forensic Telemetry Fields & High-Signal Indicators

Telemetry Field / Pattern Meaning in M365 / Entra High-Signal Threat Indicator
MoveToDeletedItemsStandard Delete key moving mail to TrashNormal day-to-day user behavior unless on Sent Items
SoftDeleteMoved out of Deleted Items into Recoverable Items\DeletionsCheck Folder.Path and ClientIPAddress
HardDeleteShift+Delete or purged from Recoverable ItemsFlagged High by AuditVane AV-012; check Sent Items
AffectedItems[].SubjectSubjects of purged emails preserved in UALReveals phishing lures even after deletion
SingleItemRecoveryEnabledExchange setting preserving Purges 14–30 daysVerify True across all enterprise mailboxes
LitigationHoldEnabledLocks all modified/deleted copies in DiscoveryHoldsPrevents permanent attacker purging

Exchange Online Deletion Stages & Recovery Paths

Audit OperationWhere Email MovesHow Admins Recover It
MoveToDeletedItemsVisible Deleted Items folderRestore directly in Outlook/OWA or Get-RecoverableItems
SoftDeleteHidden Recoverable Items\DeletionsOWA "Recover items deleted from this folder" / Get-RecoverableItems
HardDelete (SingleItemRecovery On)Hidden Recoverable Items\Purges (14–30d)Get-RecoverableItems -SourceFolder Purges / eDiscovery
HardDelete (Hold Active)Hidden DiscoveryHolds (per hold duration)Microsoft Purview eDiscovery Content Search

HardDelete AffectedItems AuditData Sample

{
  "CreationTime": "2026-12-02T14:22:08Z",
  "Operation": "HardDelete",
  "RecordType": 3,
  "Workload": "Exchange",
  "UserId": "hr.lead@contoso-demo.invalid",
  "ClientIPAddress": "194.26.135.210",
  "Folder": { "Path": "\\Sent Items" },
  "AffectedItems": [
    { "Subject": "FW: Updated Payroll Direct Deposit Form", "InternetMessageId": "<phish-102@contoso-demo.invalid>" }
  ]
}

RecordType 3 (ExchangeItemGroup) groups batch deletion events together while still recording Folder.Path (\Sent Items) and every AffectedItems Subject and InternetMessageId.

Inspect Retention Window & Recover Purged Attacker Emails

Connect-ExchangeOnline
Get-Mailbox -Identity "hr.lead@domain.com" | Format-List SingleItemRecoveryEnabled, RetainDeletedItemsFor, LitigationHoldEnabled
# Recover purged items within 14-30 day window:
Get-RecoverableItems -Identity "hr.lead@domain.com" -SourceFolder Purges -FilterStartTime (Get-Date).AddDays(-7) |
  Select-Object Subject, LastModifiedTime, SourceFolder

Sample Purged Item Recovery Output

Subject                                 LastModifiedTime     SourceFolder
-------                                 ----------------     ------------
FW: Updated Payroll Direct Deposit Form 12/02/2026 14:22:08  Purges

Step-by-Step Triage, Containment & Verification

  1. Drop Purview UAL logs into AuditVane and click AV-012 findings to review HardDelete operations.
  2. Check Folder.Path and ClientIPAddress on HardDelete events—prioritize deletions hitting \Sent Items from attacker IPs.
  3. Extract AffectedItems subjects and InternetMessageIds from AuditVane’s Event Inspector.
  4. Run Get-RecoverableItems -SourceFolder Purges (or Purview Content Search if on hold) immediately before the 14-day default expiration passes.
  5. Set RetainDeletedItemsFor to 30 and SingleItemRecoveryEnabled to $true across sensitive mailboxes.
  6. Consider enabling temporary Litigation Hold during active forensic investigations to freeze mailbox state.

How to Verify Containment Completed Cleanly

  • Purged outbound phishing emails recovered from Purges or DiscoveryHolds.
  • SingleItemRecoveryEnabled confirmed True with RetainDeletedItemsFor raised to 30 days.
  • Recipients of purged messages contacted or messages purged internally.

Analyst Blind Spots, Licensing Quirks & False Positives

Watch the clock: by default Exchange Online sets RetainDeletedItemsFor to just 14 days unless explicitly increased to 30 days—meaning HardDeleted emails without Litigation Hold permanently vanish after two weeks.

Users clearing spam from Junk Email using "Empty Folder" also emit SoftDelete/HardDelete events; always confirm Folder.Path (\Sent Items vs. \Junk Email) and ClientIP before escalating.

Frequently Asked Questions

Can an attacker permanently bypass Litigation Hold using HardDelete?

No. When Litigation Hold or a Purview Retention Policy covers the mailbox, Exchange copies every HardDeleted item into DiscoveryHolds transparently.

Why does HardDelete emit RecordType 3 instead of 2?

Exchange logs batch item moves and deletions affecting multiple messages together under RecordType 3 (ExchangeItemGroup).

Does AuditVane show the subjects of purged emails?

Yes! Whenever AffectedItems is present in AuditData, AuditVane flattens and renders all subjects inside the Event Inspector.

How long do HardDeleted items survive by default?

14 days with SingleItemRecoveryEnabled=True, expandable up to 30 days via Set-Mailbox -RetainDeletedItemsFor 30.

Related Forensics Guides