Category: Cheat Sheets
Tags: macos, apple-forensics, apfs, unified-logging, artifact-analysis
macOS has a reputation for being secure, private, and generally above the sort of forensic scrutiny reserved for its Windows counterpart. This reputation is approximately 40% deserved and 60% marketing. macOS logs extensively, tracks user activity in multiple databases, and maintains file system event histories that would make a Windows forensic analyst feel right at home -- once they get past the entirely different file system, logging architecture, and Apple's increasingly aggressive security protections that seem designed to make forensic examiners' lives specifically harder.
This cheatsheet covers the key macOS forensic artifacts, from APFS and T2 chip considerations through to the unified logging system and user activity databases.
macOS Version Reference
| Version | Name | Year | Key Forensic Impact |
|---|---|---|---|
| 10.13 | High Sierra | 2017 | APFS default on SSDs, CoreAnalytics introduced |
| 10.14 | Mojave | 2018 | Full Disk Access required for forensic tools |
| 10.15 | Catalina | 2019 | Read-only system volume, split boot volumes |
| 11.x | Big Sur | 2020 | Signed System Volume, Apple Silicon (M1) |
| 12.x | Monterey | 2021 | Rapid Security Response |
| 13.x | Ventura | 2022 | Lockdown Mode |
| 14.x | Sonoma | 2023 | Enhanced privacy controls |
Each version adds more security protections. Each security protection makes acquisition harder. The trend is clear.
APFS (Apple File System)
Key Concepts
| Feature | Forensic Significance |
|---|---|
| Copy-on-Write | Modified blocks are written to new locations -- old data may persist |
| Snapshots | Point-in-time copies may contain deleted files |
| Clones | File copies that share storage blocks until modified |
| Encryption | Native full-disk encryption (FileVault 2) integrated at filesystem level |
| Pooled Storage | Multiple volumes share a container -- free space is shared |
APFS Structure
Physical Disk
-> APFS Container (pool)
-> Volume 1 (System - read-only on 10.15+)
-> Volume 2 (Data - user files and applications)
-> Volume 3 (Recovery)
-> Volume 4 (Preboot)
Imaging Considerations
- Image both
disk0anddisk1-- different physical stores - FileVault 2 (FV2): Applying the password during imaging does NOT create a decrypted image. The decryption key must be passed to the analysis tool separately
- SSD block sizes differ from HDD -- affects unallocated space analysis
- Use MacQuisition or Recon Imager for acquisition
- APFS snapshots can contain files the user (or attacker) deleted -- always check
T2 Chip and Apple Silicon
Impact on Forensics
| Consideration | Impact |
|---|---|
| Hardware encryption | SSD data encrypted by T2 at hardware level -- raw imaging is useless |
| Acquisition method | Must image through the T2 chip (logical+ acquisition) |
| Unallocated space | Generally not available due to hardware encryption |
| Boot security | Must have valid credentials to change boot parameters |
| Secure Enclave | Biometric data and keys never leave the chip |
T2 is present in: iMac Pro, Mac Mini 2018+, MacBook Air 2018+, MacBook Pro 2018+.
Apple Silicon (M1/M2/M3) integrates equivalent functionality on-chip.
Acquisition Methods
- Target Disk Mode -- connect Mac via Thunderbolt, appears as external drive (Intel Macs only)
- Recovery Mode (Command + R) -- access Startup Security Utility
- MacQuisition boot -- hold Option at boot, select MacQuisition USB
- DMA (Direct Memory Access) -- Thunderbolt-based, blocked by T2 by default
~/Library/Safari/Downloads.plist-- download history~/Library/Safari/TopSites.plist-- frequently visited~/Library/Safari/LastSession.plist-- tabs from last session~/Library/Caches/com.apple.Safari/-- cached web content- Collect unified logs (
/private/var/db/diagnostics/+uuidtext/) - Collect KnowledgeC.db
- Collect FSEvents (
.fseventsd/) - Collect quarantine database
- Collect browser history and downloads
- Image disk0 and disk1 with MacQuisition or Recon Imager
- Parse APFS snapshots for deleted files
- Build filesystem timeline
- Analyse user artifacts (Recent Items, Trash, KnowledgeC)
- Check extended attributes for download origins
- Parse unified logs for authentication and process events
- Windows Forensic Artifact Cheatsheet -- the Windows equivalent
- Incident Response 102: Evidence Preservation -- proper evidence handling
- Windows Forensics 101: The Registry -- for cross-platform investigations
- Malware Analysis 101: Workflow -- analysing suspicious binaries found during investigation
Startup Security Settings
| Setting | What It Allows |
|---|---|
| Full Security | Only current, trusted macOS can boot |
| Medium Security | Previously trusted macOS versions allowed |
| No Security | Any OS can boot (required for some forensic tools) |
Unified Logging (10.12+)
Replaced the traditional syslog with a structured, compressed logging system. More data, but harder to work with.
Log Locations
/private/var/db/uuidtext/ # UUID text strings
/private/var/db/diagnostics/ # Trace files (.tracev3)
Extraction and Analysis
# Create a log archive for offline analysis
mkdir EvidenceLogs.logarchive
cp -r /private/var/db/uuidtext EvidenceLogs.logarchive/
cp -r /private/var/db/diagnostics EvidenceLogs.logarchive/
# Export logs on a 10.12+ analysis system
log show EvidenceLogs.logarchive
# Filter by time range
log show --start "2024-01-15 08:00:00" --end "2024-01-15 18:00:00"
# Filter by process
log show --predicate 'process == "loginwindow"'
# Filter by security subsystem
log show --predicate 'subsystem == "com.apple.securityd"'
# Filter for SSH activity
log show --predicate 'process == "sshd"' --info
Tool for non-Mac analysis: Yogesh Khatri's UnifiedLogReader parses .tracev3 files on Windows and Linux.
Program Execution Artifacts
| Artifact | Location | What It Records |
|---|---|---|
| CoreAnalytics | /Library/Logs/DiagnosticReports/ |
Programs run, foreground vs background, uptime per app (10.13+) |
| KnowledgeC.db | /private/var/db/CoreDuet/Knowledge/ and ~/Library/Application Support/Knowledge/ |
Apps open, device power state, usage duration |
| Spotlight | /.Spotlight-V100/ |
Indexed metadata for all files -- searchable |
| Launch Services | ~/Library/Preferences/com.apple.LaunchServices.plist |
Default app associations, recently used apps |
CoreAnalytics is the closest macOS equivalent to Windows Prefetch -- it proves what ran and roughly when, but with less granularity.
File System Events (.fseventsd)
The nearest equivalent to the Windows USN Journal. Tracks file system changes for Spotlight indexing and Time Machine.
| Detail | Description |
|---|---|
| Location | /.fseventsd/ on any volume macOS can write to |
| What it tracks | File creates, deletes, renames, modifications, permission changes |
| Coverage | HFS+, APFS, FAT32, ExFAT volumes |
| Retention | Varies -- typically days to weeks depending on activity |
Tools: FSEventsParser, macOS FSEvents Parser
Note: Some malware reads .fseventsd to maintain awareness of file system changes. Its presence is not always benign.
Download and Quarantine Tracking
Quarantine Events Database
| Detail | Description |
|---|---|
| Location | ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV2 |
| What it records | Every file downloaded via browser, email, or messaging app |
| Fields | Timestamp, source URL, downloading application, file path |
Extended Attributes
| Attribute | What It Reveals |
|---|---|
com.apple.quarantine |
File was downloaded -- marks it for Gatekeeper check |
com.apple.metadata:kMDItemWhereFroms |
The actual download URL -- invaluable for attribution |
com.apple.FinderInfo |
File type, Finder labels |
com.apple.rootless |
Protected by System Integrity Protection |
# Check quarantine attribute on a file
xattr -l suspicious_file.app
# Read download source URL
mdls -name kMDItemWhereFroms suspicious_file.app
Dot-Underscore Files
When macOS files are copied to non-APFS/HFS+ volumes (USB drives, network shares), extended attributes are stored in ._ companion files using AppleDouble format. These retain original timestamps and metadata even when the main file doesn't.
Inside ZIP files created on macOS, extended attributes live in the __MACOSX/ folder. The modification date of __MACOSX/ equals the ZIP file creation date.
User Activity Artifacts
| Artifact | Location | What It Shows |
|---|---|---|
| Recent Items | ~/Library/Application Support/com.apple.sharedfilelist/ |
Recently opened files and applications |
| Trash | ~/.Trash/ |
Deleted files with .DS_Store metadata |
| Screenshots | ~/Desktop/ (default) |
Named Screenshot YYYY-MM-DD at HH.MM.SS |
| Saved Application State | ~/Library/Saved Application State/ |
Window positions and open documents per app |
| Login Items | ~/Library/Application Support/com.apple.backgroundtaskmanagementagent/ |
Apps configured to launch at login |
| Keychain | ~/Library/Keychains/ |
Saved passwords, certificates, keys (encrypted) |
Browser Artifacts
| Browser | History Location | Notes |
|---|---|---|
| Safari | ~/Library/Safari/History.db |
SQLite database |
| Chrome | ~/Library/Application Support/Google/Chrome/Default/History |
SQLite database |
| Firefox | ~/Library/Application Support/Firefox/Profiles/*/places.sqlite |
SQLite database |
Safari also stores:
Boot and System Artifacts
| Artifact | Location | What It Reveals |
|---|---|---|
| Install History | /var/db/receipts/ |
Installed packages with timestamps |
| System Preferences | /Library/Preferences/ |
System-wide configuration |
| CrashReporter | ~/Library/Logs/DiagnosticReports/ |
Application crash logs with stack traces |
| Audit Logs | /var/audit/ |
BSM audit trail (if enabled) |
| EFI Partition | Boot log | Internet Recovery usage, boot device history |




