Professor Franklin
Accessibility settings

Preferences are saved in this browser when storage is available.

Getting Started

Chapter 10 · Reading 2 of 3

Mailboxes, MIME and the Microsoft 365 audit log

CHFI domains 1, 2, 4, 5, 6 · GCFE: Email evidence across clients and services

Corran Textiles agrees to cooperate. Its mail runs on Microsoft 365, and its accounts manager reads mail in Outlook on a desktop, in a browser and on a phone. The fraudulent message was sent from that mailbox, but nobody at Corran remembers sending it. The examiner needs the message itself, its attachment and a record of who signed in to the mailbox and what they did there.

A message is a tree of MIME parts

Email was designed for plain text. MIME (Multipurpose Internet Mail Extensions) lets one message carry several parts of different types. A Content-Type: multipart/mixed header declares a boundary string that separates the parts. Each part has its own headers, such as Content-Type, Content-Transfer-Encoding and Content-Disposition, which names an attachment’s file name.

Figure 1. The structure of the payment-instruction message
multipart/mixedboundary="b1_7Qm…"
multipart/alternativeThe same text in two forms
text/plainBody for plain-text readers
text/htmlBody for HTML readers, with Corran’s logo
application/pdf; name="Remittance_Nov.pdf"Content-Transfer-Encoding: base64

Attachments are usually Base64 encoded. Decoding the part produces the original file, which the examiner saves and hashes. The SHA-256 of Remittance_Nov.pdf becomes an identifier that can be searched for in every mailbox at both companies. The PDF’s own metadata (Chapter 5) shows it was created with an online PDF converter at 15:51 UTC on 17 November, thirteen minutes before the email was sent. Corran’s genuine remittance letters are produced by its accounting system.

Mailbox containers on the desktop

Outlook for Windows stores mail in two kinds of files. A PST (Personal Storage Table) is a self-contained archive, often created by users or by exports. An OST (Offline Storage Table) is a local cache of a server mailbox such as Exchange Online. Both are structured databases that can contain deleted items not yet purged. An OST is tied to its profile, so forensic tools or Outlook-independent parsers are used to read it. MFCMapi, a Microsoft tool, exposes the low-level MAPI properties of messages, including internal timestamps and flags that normal views hide. A local cache is useful but incomplete: the authoritative copy of a Microsoft 365 mailbox is on the service.

Collecting from Microsoft 365

For a cloud mailbox, the examiner collects from the service through Microsoft Purview eDiscovery, which searches mailboxes, places holds and exports items with their metadata. A hold also preserves items the user deletes later. The search finds the fraudulent message in Corran’s accounts mailbox, in the Sent Items folder, with the same Message-ID that Brightwater received.

The Unified Audit Log

The Microsoft 365 Unified Audit Log (UAL) records user and administrator activity across the service: sign-ins, mailbox operations, file access and configuration changes. It is searched in Purview or with the Search-UnifiedAuditLog PowerShell cmdlet. Retention depends on licensing. Microsoft extended the default for Audit (Standard) to 180 days in 2023, and Audit (Premium) keeps many records for a year or longer. Records also take time to appear, so a search right after an event may be incomplete.

Figure 2. Audit records for accounts@corran-textiles.example, UTC
  1. Sign-in succeeded from 203.0.113.77 (hosting provider) after an MFA prompt approval.
  2. New-InboxRule named “.”: messages from brightwater.example moved to RSS Feeds and marked as read.
  3. MailItemsAccessed records show dozens of messages read by the session from 203.0.113.77.
  4. Send: “Updated remittance details for November invoices”, client 203.0.113.77.

Several operations are especially useful in compromise cases. New-InboxRule and Set-InboxRule show rules created to hide replies, often with meaningless names such as a single dot. MailItemsAccessed, available with Audit (Premium), records which messages a session read, which helps determine what the attacker saw. Send records a message sent. Sign-in logs in Microsoft Entra ID add the device, location and multifactor authentication details for each sign-in.

The audit records tie the fraudulent message to a session from an outside address that began the day before, approved through an MFA prompt and immediately set up a rule to hide Brightwater’s replies. That is strong evidence that Corran’s mailbox was taken over, and it gives Brightwater’s bank a timeline for its recovery request.

On the exam, decode and hash attachments, remember that an OST is a cache of a server mailbox while a PST is a standalone archive, and look in the Unified Audit Log for inbox rules, mailbox access and sends. The next reading, Chat, Electron apps and social evidence, examines the Teams chat that seemed to confirm the change.

Inbox rule

Inspect the three records, then use the evidence to answer the question.

1. Operation

New-InboxRule by accounts@corran-textiles.example

2. Client IP

203.0.113.77 (hosting provider, not Corran’s office)

3. Parameters

From contains brightwater.example; move to RSS Feeds; mark as read

Apply the reading

Corran’s Unified Audit Log shows a New-InboxRule operation on the accounts mailbox the day before the fraudulent email. Why does that matter?

Compare your reasoning

Attackers who take over a mailbox often create rules that move or delete replies so the real owner does not notice. A rule created from an unfamiliar address shortly before the fraud supports the hypothesis that Corran’s mailbox was compromised.