macOS File Activity Β· Deleted File Recovery

Mac File Activity & Deleted File Forensics

Independent forensic reconstruction of file creation, modification, access, and deletion on Mac systems. FSEvents journals, Spotlight metadata, .DS_Store, quarantine, and APFS local snapshots recover activity even after Trash empty and user attempts to remove evidence.

← Canonical HubThis page is part of the Mac Forensics cluster. Return to the hub for the full artifact index and cross-cluster context.

Quick Answer. Mac File Activity Forensics combines FSEvents journals (/.fseventsd/) recording every filesystem change per volume, Spotlight metadata (.Spotlight-V100/) with kMDItem attributes, per-folder .DS_Store caches, Trash metadata (~/.Trash/.DS_Store and /.Trashes/<uid>/), Quarantine and WhereFroms extended attributes, and APFS local snapshots that preserve prior file states. Together these establish what existed, what changed, when, and where files came from β€” even after deletion.

FSEvents β€” the macOS filesystem change journal

/.fseventsd/ stores compressed gzip records of every change to a volume: created, removed, renamed, modified, and inode metadata updates. Each record carries an event ID (monotonic 64-bit), a path relative to the volume, and a flags bitmask (ItemCreated, ItemRemoved, ItemRenamed, ItemModified, ItemInodeMetaMod, ItemIsFile, ItemIsDir, ItemXattrMod).

FSEvents survives Trash empty and file overwrite because it records the path β€” not the file. In exfiltration matters, FSEvents on the source volume plus FSEvents on the external volume (see USB Forensics) together prove the copy occurred.

Spotlight metadata (kMDItem attributes)

Spotlight populates rich metadata for every indexed file, readable with mdls:

  • kMDItemFSCreationDate, kMDItemFSContentChangeDate, kMDItemLastUsedDate
  • kMDItemWhereFroms β€” the URL(s) the file was downloaded from
  • kMDItemDownloadedDate β€” when the file arrived from network
  • kMDItemAuthors, kMDItemContentCreator, kMDItemContentType
  • kMDItemUseCount, kMDItemUsedDates β€” how often the file was opened

These attributes are also stored as extended attributes on the file itself (com.apple.metadata:kMDItemWhereFroms), which survive movement to other Mac volumes.

Trash and deletion evidence

ArtifactLocationWhat it establishes
Per-user Trash~/.Trash/Files pending permanent delete, with original path in extended attribute
Per-volume Trash/Volumes//.Trashes//Trash on external / secondary volumes
.DS_Store in Trash~/.Trash/.DS_StoreOrdered list including previously deleted items
FSEvents ItemRemoved/.fseventsd/Path deleted, event ID, timestamp
APFS local snapshotstmutil listlocalsnapshots /Prior file state β€” the deleted file itself, not just its record
Time MachineExternal / network backup volumeFull file recovery up to backup horizon

Quarantine and provenance

Files downloaded from the network receive the com.apple.quarantine extended attribute containing the download UUID, agent name, event date, and originating URL. The system-wide quarantine database at ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV2 is a SQLite file with a row per download recording origin URL, referrer URL, sender name, and timestamp. Together with kMDItemWhereFroms, this artifact answers “where did this file come from and when.”

APFS snapshots β€” the deleted-file goldmine

APFS creates automatic local snapshots roughly hourly (retained ~24 hours) and on Time Machine backup events. Snapshots are copy-on-write β€” files “deleted” from the live volume remain intact within the snapshot until the snapshot itself is deleted. tmutil listlocalsnapshots / enumerates them; we mount each snapshot read-only during acquisition and preserve every recoverable version of the relevant files. Where users have run tmutil deletelocalsnapshots, the underlying blocks remain in APFS free space until overwritten β€” carving is often successful.

How Elite Digital Forensics helps

Elite Digital Forensics is an independent, defense-aligned Mac forensics practice. We are retained by attorneys, in-house counsel, and, where appropriate, individuals and businesses directly. Every engagement begins with a scoped acquisition plan, hash-verified evidence, and a written report suitable for attorney review, negotiation, or court. When retained through counsel, our work product is protected. See the Mac Forensics hub for the full analytical framework we bring to every matter.

Related Mac forensics pages

Frequently asked questions

Can you recover a file after empty Trash on APFS?

Frequently yes, via APFS local snapshots (up to ~24 hours) and Time Machine backups. Beyond that, carving from unallocated APFS space can recover files if the blocks were not overwritten.

Does FSEvents record who deleted the file?

FSEvents records the event and path, not the user. We attribute the action by correlating with KnowledgeC.db /app/inFocus at the same timestamp (which app was frontmost) and Unified Log entries from Finder or Terminal.

What about SecureErase / srm?

srm was deprecated on APFS because SSD wear-leveling makes secure delete unreliable. On APFS, the appropriate defense is FileVault; and evidence of an attempt to secure-erase itself leaves shell history and Unified Log entries.

Ready to move on your mac file activity & deleted file matter?

Tell us about the Mac, the accounts, and the timeframe. We will tell you what is recoverable, what is not, and what it will cost.

Request Confidential Consultation Call (833) 292-3733

Primary sources and references

  1. Apple: File System Events. developer.apple.com
  2. Apple: Extended attributes (xattr). ss64.com
  3. Apple: About APFS. support.apple.com

This content is for educational and informational purposes only and does not constitute legal advice. Elite Digital Forensics provides independent digital forensic services and expert witness testimony; we do not provide legal representation. Every case is fact-specific; outcomes depend on the evidence, jurisdiction, and counsel. Retain qualified legal counsel for advice about your matter.

#MacForensics #FSEvents #APFS #DeletedFiles #DFIR #EliteDigitalForensics

Assistant Icon Elite Digital Forensics Assistant
πŸ‘‹ Live Chat Now!
Free Virtual Consultation 24/7
Chat Now!

By submitting this form, you consent to be contacted by email, text, or phone. Your information is kept secure and confidential. Reply Stop to opt out at anytime.Β 

IMPORTANT: Please remember to check your spam or junk folder