Safari History Database Tags Can Reveal Users’ Browsing Themes in Forensic Investigations
Safari History.db stores Wikidata-linked topic tags that can reveal browsing themes in macOS investigations.
Safari’s History.db, at ~/Library/Safari/History.db, can attach automatically generated topic tags to visited pages through the history_tags and history_items_to_tags tables. Tag identifiers typically start with “Q” and map to Wikidata concepts; not every page is tagged, and the behavior has been observed since at least 2021. Investigators must convert Cocoa timestamps by adding 978307200 seconds, and labels can mislead—for example “APT” may mean the Advanced Package Tool (Q230724) rather than an intrusion. Residual tags can remain after related history records are deleted, and mac_apt now parses them.
- History.db maps history_tags to visited URLs through history_items_to_tags.
- Tag identifiers beginning with Q correspond to Wikidata entities, not keywords.
- Timestamps use the Mac epoch and need 978307200 added for Unix time.
- Orphaned tags with a zero item count can survive history deletion.
- The mac_apt framework now parses Safari tags for triage and disk images.
- Vendors
- Apple
- Products
- SafariHistory.dbmac_apt
- Organizations
- Swift Forensics
From the original article
3 min read at gbhackers.com
Safari’s History database contains a lesser-known tagging artifact that can help investigators infer a user’s browsing themes. While this feature is not definitive evidence of intent, when correlated with URLs, visit times, cache data, downloads, and network telemetry, it can provide useful context for macOS forensic timelines. Safari History Tags and Browsing Themes Safari’s History.
By Divya · gbhackers.com
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.