MESSAGING SECURITY DEEP CORE

Messaging Logging, Auditing and Forensics Deep Core

The old security book's advice to enable logging is still one of its strongest lessons.

Messaging Security Deep Core | Chapter 7 of 9

Chapter purpose

Build enough retained evidence to answer who connected, what message moved, what permission changed and when.

Historical source context: The supplied Exchange security guide explicitly recommends Windows event auditing, Exchange diagnostics, SMTP protocol logging and HTTP logging for exposed services. The original examples and product screens are not copied as current instructions. The chapter preserves the underlying operational lesson and rewrites it for current Windows Server, Exchange Server and Microsoft 365 practice.

Learning objectives

  • Separate SMTP protocol logs, message tracking and mailbox/admin audit evidence.
  • Use UTC/timestamps consistently.
  • Retain logs off the affected system where appropriate.
  • Build a cross-system incident timeline.

Why this matters in a real company

Without logs, a security incident becomes guesswork. Evidence is what separates 'maybe' from an actionable finding.

Messaging evidence from protocol activity to forensic timeline
Protocol logsconnection detailTracking/auditmessage + actionsCentral timelinetime alignedIncident findingscope + cause Design the boundary, then prove both the allowed and denied behavior.

7.1 Different logs answer different questions

EvidenceQuestion
SMTP protocol logWhat did this remote SMTP peer say/do?
Message trackingWhere did this message travel inside Exchange?
Web/proxy logWhich client/IP requested this endpoint?
Mailbox/admin auditWho changed or accessed what, where supported?
Windows event logWhat happened to the OS/service/authentication layer?

7.2 Time alignment is non-negotiable

Central investigation requires timestamps that can be compared across Exchange, Active Directory, firewalls and identity providers. Know whether each log is UTC or local time.

Record the user's reported local time and convert carefully.

7.3 Preserve before remediation

Disabling an account may be urgent, but wiping logs, rebooting unnecessarily or deleting suspicious messages can destroy evidence. Take snapshots/exports appropriate to the incident before cleanup where practical.

Follow organizational privacy and legal requirements.

7.4 Build a minimal incident timeline

  1. Reported event/time.
  2. Sign-in/access evidence.
  3. Message tracking.
  4. SMTP/web protocol evidence.
  5. Permission/config changes.
  6. Containment action.
  7. Recovery/verification.

7.5 Retention should match investigation needs

Short retention may save disk but make recurring incidents impossible to reconstruct. Measure log volume and retain enough history for the business/security requirement.

WORKED BUSINESS SCENARIO

Threatening message sent from a real employee mailbox

The employee denies sending it. The message is genuine and internal.

Decision: Investigate mailbox access, sign-ins, delegates, Send As permissions and message trace rather than assuming spoofing.

What to prove: Construct a timeline tying the send event to account/delegate/session evidence or showing the gap that remains.

PRACTICAL WORK

Hands-on lab

Take fictional timestamps from firewall, SMTP, message tracking and sign-in logs. Normalize them into one UTC incident timeline.

Troubleshooting exercise

  1. Message tracking exists but no web log. The send may have come from another client/protocol.
  2. Web login appears legitimate but Send As delegate exists. Review mailbox permissions.
  3. Logs rolled over. Treat retention as a control failure and fix it.

Field checklist

  • Log sources inventoried.
  • Time format known.
  • Retention adequate.
  • Central collection used where appropriate.
  • Admin/delegation changes auditable.
  • Incident export process documented.

Chapter summary

Forensics is the disciplined assembly of evidence from several layers. Logging is useful only if it is enabled, retained, time-aligned and understood before the incident.

Current technical references

The supplied historical books are used as curriculum and operational context. Current implementation details are checked against current Microsoft documentation.