Email and Communication Forensics
What you'll learn: How to extract, recover, and analyze email communications and attachments from various storage formats to trace incident-related correspondence and data exfiltration.
The Digital Paper Trail
Email and messaging apps are where attackers communicate, exfiltrate data, and socially engineer victims. When an incident occurs, reconstructing who said what, when, and what files changed hands becomes critical. Unlike browser history or registry keys, email forensics requires dealing with proprietary storage formats and understanding mail protocols.
Core Storage Formats
PST (Personal Storage Table) files are Outlook's local archive format on Windows. OST (Offline Storage Table) files cache Exchange mailboxes locally. Both contain entire mailbox histories—messages, contacts, calendars, tasks—and can be parsed using forensic tools like libpff libraries or commercial suites.
Webmail (Gmail, Outlook.com) requires acquiring data via legal process, export tools, or memory forensics if the session was active during acquisition. Modern browsers cache webmail in SQLite databases and memory.
Messaging applications (Slack, Teams, WhatsApp) store chat logs locally in app-specific databases or encrypted containers, requiring app-aware parsers.
What to Extract
Focus on:
- Sender/recipient chains to map communication networks
- Timestamps to establish timelines
- Attachments that may contain malware or exfiltrated data
- Headers revealing true origin, routing, and spoofing attempts
- Deleted/draft messages often exposing intent or hidden coordination
Analyze SMTP headers for sender authentication (SPF, DKIM, DMARC) and trace routing hops to identify phishing infrastructure.
Practical Application
After imaging a suspect workstation, you locate a 4GB PST file. Parse it to extract all emails from a suspicious timeframe, hash attachments, search for keywords like "confidential" or domain names linked to threat actors, and correlate timestamps with network logs showing unusual uploads.
Key Takeaway:
Email and messaging forensics recovers critical communications from PST/OST files, webmail caches, and chat apps to trace attacker activity, phishing chains, and data exfiltration through timeline correlation and attachment analysis.