Chapter 12 · Reading 2 of 3
macOS unified logs and user records
CHFI domains 3, 4, 5, 6
The designer, D. Lee, works on a MacBook Pro with Apple silicon. The laptop’s internal storage is encrypted, so the academy collects it live with the designer present, signed in, using a logical collection of user and system artifacts. The question for the Mac is narrow: when did it send final_artwork.zip to the build server, and under which user?
The unified log
Since macOS 10.12, most system and application logging goes to the unified log, stored in compressed binary .tracev3 files under /private/var/db/diagnostics/, with format strings kept in /private/var/db/uuidtext/. Both are needed to render the messages. The log command reads it. log show displays entries with filters, and log collect gathers everything into a .logarchive bundle that can be examined on another Mac. Entries age out according to storage limits and per-subsystem rules, so collect it promptly.
log show --archive dlee-mbp.logarchive \ --predicate 'process == "rsync" OR process == "ssh"' \ --start "2026-11-06 17:30:00" --end "2026-11-06 18:00:00" --style compact 2026-11-06 12:42:01.551 Df ssh[8812]: … connect to 10.20.2.10 port 22 2026-11-06 12:42:19.903 Df rsync[8810]: … (local time, UTC−5)
- A predicate filters by process, subsystem, message text and more.
- log show prints times in the Mac’s local time zone unless told otherwise. 12:42 EST is 17:42 UTC.
The time-zone trap is common. The same collection viewed on a Mac set to another zone prints different times, which is why the examiner records the zone used for every query or prints in UTC.
Other places a Mac keeps evidence
- Property lists (plists) store settings and history for macOS and many applications, in XML or binary form.
plutilconverts them. Recent items, Finder preferences and application state often live here. - Spotlight indexes file contents and metadata in a
.Spotlight-V100store on each volume. It can retain metadata, such as when a file was last used, for files that have since been deleted.mdlsshows a live file’s Spotlight attributes, includingkMDItemWhereFromsfor downloads. - FSEvents records file-system changes by path in the
.fseventsdfolder on each volume, which can show a file being created, renamed or deleted. - Quarantine events: files downloaded by quarantine-aware applications receive a
com.apple.quarantineextended attribute, and a database,QuarantineEventsV2in the user’s Library, records the downloading application, the source URL and the time. - User records: local accounts are stored as plists under
/private/var/db/dslocal/nodes/Default/users/. Their UID, home folder and creation details tie activity to an account. - APFS snapshots:
tmutil listlocalsnapshots /lists local Time Machine snapshots, which may hold earlier versions of the artwork folder.
Apple’s timestamps
Many Apple databases store Mac absolute time (also called Cocoa or Core Data time): seconds since 1 January 2001 UTC, often with a fractional part. Adding 978,307,200 seconds converts it to Unix time. Older HFS+ volumes count from 1 January 1904. Mixing these up moves an event by years, and examiners check each conversion with a known value.
Parse many artifacts at once, then check
mac_apt (macOS Artifact Parsing Tool), an open-source framework by Yogesh Khatri, processes a full image, a mounted volume or a collected folder and parses dozens of artifacts into a database and spreadsheets: users, Safari history, quarantine events, FSEvents, Spotlight, unified logs, network settings and more. As with any parser, the examiner confirms a sample of its key results against the original artifact. On this Mac, mac_apt’s unified log output agreed with the manual log show query, and its quarantine output agreed with a direct SQLite query of QuarantineEventsV2.
- Quarantine: Safari downloaded the client’s carton specification (QuarantineEventsV2).
- rsync and ssh processes run by user dlee (UID 501) connect to the build server (unified log).
- FSEvents: no change to the local artwork folder after the transfer.
On the exam, the unified log is read with log show and preserved with log collect, Mac absolute time counts from 2001, and Spotlight and FSEvents can describe files that are gone. The next reading, When two systems disagree about a date, reconciles the two machines.
Inspect the three records, then use the evidence to answer the question.
1. Agent
Safari
2. Origin
https://client-portal.example/briefs/carton_spec_v3.pdf
3. Time
LSQuarantineTimeStamp 815679520 (Mac absolute time)
Apply the reading
Why is the macOS unified log best collected promptly, ideally as a logarchive?
Compare your reasoning
Unified log entries expire as storage limits and retention rules are reached, often within days or weeks for many subsystems. Running log collect produces a .logarchive bundle that preserves the entries and the UUID text needed to render their messages.