2022 APFS Advent Challenge
As an exercise in self-discipline, I’ve decided to get an early start on my 2023 New Year’s resolution of writing more and sharing what research I can with the community. As a sort of Digital Forensics Advent Calendar, I’m going to attempt to publish a daily series of informative blog posts detailing internals of Apple’s APFS file system.
Why APFS?
I’ve chosen the topic of APFS for three main reasons:
-
APFS has been Apple’s file system of choice for all of its devices, including Macs, since 2017, yet most of the resources that are available are somewhat lacking in completeness and correctness. Even Apple’s own Apple File System Reference document contains several errors and glaring omissions.
-
APFS is a fairly unique file system with many interesting design decisions. It’s also complex enough to justify a 24-part blog series.
-
Over the last five years, I’ve written three separate APFS parsing implementations, so it’s a topic that I am well versed in and qualified to discuss.
The Rules
All good challenges needs rules in order to keep us honest. Luckily for me, I’m challenging myself to this task, so I get to set the requirements.
-
I will publish a short blog post
every day between December 1st and 24thevery weekday in December. While I am aware that the Christian season of Advent technically starts on November 27th and ends on Christmas, I am not doing this as a part of any religious observance and most modern Advent calendars start on December 1st anyway. Besides, I only just had this idea and haven’t had time to plan out my topics. -
As long as it’s before the clock strikes midnight on a given day somewhere on the planet Earth, it counts. Since I will have to limit myself to writing after work hours and teaching my night classes, I am not limiting myself to my own timezone. This challenge is supposed to be rewarding, not stressful.
-
For each failed deadline, I will donate $100 to a Ukrainian relief fund. As a result of the unprovoked war of aggression and the continued occupation of Ukraine, the people of Ukraine are suffering loss at a massive scale. The intentional targeting and destruction of Ukrainian civilian infrastructure and power generation capabilities as winter sets in has only increased the suffering of the civilian population. For each day that I do not meet my self imposed deadline of publishing, I will donate additional money towards humanitarian relief for the people of Ukraine. If I do meet my publishing goals (or even if I don’t), and it is within your means, I would ask that you too consider making your own donation this holiday season.
The Posts
- Day 1 - Anatomy of An APFS Object
- Day 2 - Kinds of APFS Objects
- Day 3 - APFS Containers
- Day 4 - NX Superblock Objects
- Day 5 - Checkpoint Maps and Ephemeral Objects
- Day 6 - B-Trees (Part 1)
- Day 7 - B-Trees (Part 2)
- Day 8 - Object Maps
- Day 9 - Volume Superblock Objects
- Day 10 - $100 Donation
- Day 11 - File System Trees
- Day 12 - Inode and Directory Records
- Day 13 - Data Streams
- Day 14 - Sealed Volumes
- Day 15 - Keybags
- Day 16 - Wrapped Keys
- Day 17 - Blazingly Fast Checksums with SIMD
- Day 18 - Decryption
- Day 19 - $100 Donation
- Day 20 - Snapshot Metadata
- Day 21 - Fusion Containers
- Day 22 - Retrospective
Find an issue or technical inaccuracy in this post? Please file an issue so that it may be corrected.