Tuesday, November 24, 2026
No menu items!
Google search engine
HomeCheat SheetsmacOS Forensic Artifact Cheatsheet: Because Apple Users Think They're Immune

macOS Forensic Artifact Cheatsheet: Because Apple Users Think They’re Immune

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 disk0 and disk1 -- 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

  1. Target Disk Mode -- connect Mac via Thunderbolt, appears as external drive (Intel Macs only)
  2. Recovery Mode (Command + R) -- access Startup Security Utility
  3. MacQuisition boot -- hold Option at boot, select MacQuisition USB
  4. DMA (Direct Memory Access) -- Thunderbolt-based, blocked by T2 by default
  5. 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:

    • ~/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

    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

    Acquisition Workflow Quick Reference

    Remote/Live Triage

    1. Collect unified logs (/private/var/db/diagnostics/ + uuidtext/)
    2. Collect KnowledgeC.db
    3. Collect FSEvents (.fseventsd/)
    4. Collect quarantine database
    5. Collect browser history and downloads
    6. Full Disk Image

      1. Image disk0 and disk1 with MacQuisition or Recon Imager
      2. Parse APFS snapshots for deleted files
      3. Build filesystem timeline
      4. Analyse user artifacts (Recent Items, Trash, KnowledgeC)
      5. Check extended attributes for download origins
      6. Parse unified logs for authentication and process events

      7. What's Next

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments