iOS artifacts · Lesson 1 of 7
iOS file system layout and app containers
10 min read
Every iOS artifact in this module lives at a specific path, and most of those paths contain a random identifier that tells you nothing about which app owns the folder. Before you can read a message database or a usage log, you need to know where iOS keeps system data and app data, how the sandbox divides each app into separate containers, and how to map those identifiers back to app names. You also need to recognize the same files when they arrive in a different shape, as hashed entries in a computer backup. This lesson gives you that map. Later lessons in this module assume you can find a file and name its owner without help from a tool. Where Apple documents nothing, this module cites published research and the notes of iLEAPP, a free open-source parser (lesson 4.7) whose modules record the test images and versions each was checked against, as they stood on 26 November 2026. For the artifacts of this module, that testing reaches iOS 26, and only a few notes cite a test on iOS 27, so confirm version-dependent statements on the version you examine.
Two volumes: system and data
An iPhone's flash storage holds an APFS container with several volumes. Two matter in almost every examination.
- The system volume is mounted at / and holds the operating system: frameworks under /System/Library and Apple's built-in apps under /Applications. On iOS 15 and later it is a signed system volume, sealed cryptographically by Apple. It contains almost no user data, and its files are identical on every device running the same build.
- The data volume is mounted at /private/var (/var is a link to it). It holds everything that changes: user files, app containers, databases, logs and settings. This is where the evidence is, and it is what a full file system extraction captures in detail.
Lesson 1.2 explained that the data volume is protected by Data Protection classes. A full file system extraction of an AFU device can read class C and class D files; class A files may be missing or unreadable even in a good extraction. When a database you expect is absent, consider its protection class before concluding it never existed.
Where things live on the data volume
| Path | What it holds |
|---|---|
| /private/var/mobile | Home folder of the user "mobile", under which almost all user data is stored |
| /private/var/mobile/Library | Databases and settings of Apple apps and services (Messages, Phone, Contacts, Safari, CoreDuet, Biome) |
| /private/var/mobile/Media | The camera roll (DCIM) and the Photos library database (PhotoData), covered in lesson 6.2 |
| /private/var/mobile/Containers | Data containers and shared group containers of apps |
| /private/var/containers | App bundle containers, system group containers and some system data containers |
| /private/var/db | System databases and logs, including unified logs (diagnostics, uuidtext) and system-level Biome streams |
| /private/var/installd | Installation logs (MobileInstallation) that record app installs, updates and removals |
| /private/var/Keychains | The keychain database, keychain-2.db |
| /private/var/root, /private/var/wireless, /private/var/preferences | Data of the root user, cellular and baseband components, and system-wide preferences |
Extraction tools may prefix these paths with a folder of their own or drop the /private prefix. Report the path as it exists on the device.
The user's home and Apple's own apps
Many of Apple's built-in apps predate the modern sandbox, and their data still sits directly under /private/var/mobile/Library rather than in a container. You will use these locations throughout this module:
- Library/SMS/sms.db: Messages (lesson 4.3)
- Library/CallHistoryDB/CallHistory.storedata: call history (lesson 4.3)
- Library/AddressBook/AddressBook.sqlitedb: contacts (lesson 4.3)
- Library/CoreDuet/Knowledge/knowledgeC.db and Library/Biome: pattern-of-life data (lesson 4.4)
- Library/Safari/History.db: Safari history (lesson 4.7)
- Library/FrontBoard/applicationState.db: the app registry discussed below
Other Apple apps behave like third-party apps. Notes, for example, keeps its database in a shared group container. Never assume an Apple app lives in Library; check.
App containers
Every app installed from the App Store, and many of Apple's apps, is split across several containers. Each container is a folder named with a randomly generated UUID (a 128-bit universally unique identifier, which some tools call a GUID, written as 32 hexadecimal digits in five groups, for example 8F3B2C1A-4D5E-4F60-9A7B-1C2D3E4F5A6B). The sandbox allows an app to read and write only its own containers, plus any group containers it is entitled to share.
Bundle containers
The bundle container, under /private/var/containers/Bundle/Application/<UUID>, holds the app as installed: a folder named <AppName>.app with the executable, resources and the app's Info.plist. App Store apps also have iTunesMetadata.plist and BundleMetadata.plist beside the .app folder, which record purchase and installation details. The bundle is signed and read-only. It tells you which app and which version was installed, but it holds no user data.
Data containers
The data container, under /private/var/mobile/Containers/Data/Application/<UUID>, is the app's private home. It has a standard layout:
- Documents: files the app wants to keep and, usually, back up.
- Library: Preferences (the app's settings, normally Library/Preferences/<bundle ID>.plist), Application Support (databases), Caches and Cookies.
- tmp: temporary files that iOS may delete at any time.
- SystemData: data that system services keep on the app's behalf.
Group containers and plug-in containers
Apps from the same developer, and an app and its extensions (share extensions, widgets, notification service extensions), can share data through an app group. Each group gets a container under /private/var/mobile/Containers/Shared/AppGroup/<UUID>. The folder name is again a random UUID; the group identifier, such as group.com.apple.notes, is recorded in the container's metadata plist (see Mapping UUIDs to apps). Many messaging apps keep their main database here so that their extensions can read it. WhatsApp's ChatStorage.sqlite, for example, is in its group container, not its data container (Module 5 covers it).
App extensions have their own data containers under /private/var/mobile/Containers/Data/PluginKitPlugin/<UUID>. System services have containers under /private/var/containers/Shared/SystemGroup/<UUID> and /private/var/containers/Data/System/<UUID>; PowerLog, for example, lives in a system group container (lesson 4.6).
| Container | Path | Typical evidence |
|---|---|---|
| Bundle | /private/var/containers/Bundle/Application/<UUID> | App identity and version |
| Data | /private/var/mobile/Containers/Data/Application/<UUID> | Private databases, preferences, caches |
| App group | /private/var/mobile/Containers/Shared/AppGroup/<UUID> | Shared databases, often the main message store |
| Plug-in | /private/var/mobile/Containers/Data/PluginKitPlugin/<UUID> | Extension data |
| System group | /private/var/containers/Shared/SystemGroup/<UUID> | System service data such as PowerLog |
Mapping UUIDs to apps
A UUID folder name carries no information about its owner, and the same app gets different UUIDs on different devices. Two sources provide a mapping, and they should agree.
The container metadata plist
The root of each container holds a hidden property list named .com.apple.mobile_container_manager.metadata.plist, written by the container manager. Its key MCMMetadataIdentifier holds the bundle ID for an app container (for example net.whatsapp.WhatsApp) or the group identifier for a group container (for example group.net.whatsapp.WhatsApp.shared). Reading this file in every container under Data/Application, Shared/AppGroup and Data/PluginKitPlugin gives you a complete table of UUID to identifier. iLEAPP does this in its AppGroup and PluginKit listing artifact; when an AppGroup container has no readable metadata plist, it falls back to the name of the group's preferences file in Library/Preferences.
applicationState.db
The FrontBoard registry, /private/var/mobile/Library/FrontBoard/applicationState.db, is a SQLite database that records the state of every installed app. It stores key-value pairs in three tables: application_identifier_tab (the bundle IDs), key_tab (the key names) and kvs (the values, linked to both). For each app, the value of the key compatibilityInfo is a binary property list (archived with NSKeyedArchiver, lesson 4.2) that contains bundleIdentifier, bundlePath (the bundle container) and sandboxPath (the data container). One query plus one decoding step gives you the bundle and data UUIDs of every app in a single table.
A practical workflow:
- Build the UUID-to-identifier table from the metadata plists.
- Build the bundle-to-data mapping from applicationState.db.
- Compare them. A data container with no entry in applicationState.db may belong to an app that was removed while its data remained, or to an extension. A missing compatibilityInfo value does not prove an app was never installed.
- For install and removal history, read the MobileInstallation logs under /private/var/installd/Library/Logs/MobileInstallation.
The same files in a backup: domains and Manifest.db
A logical acquisition (lesson 2.3) produces a computer backup (made by Finder, the Apple Devices app, iTunes or libimobiledevice), not a file tree. Lesson 2.3 describes the backup folder; this section maps it back to the paths above. The Files table of Manifest.db has one row per backed-up item, with the columns fileID, domain, relativePath, flags and file. The domain says which part of the file system the item came from, and relativePath gives its path inside that domain. In an encrypted backup, Manifest.db and the stored files are encrypted; decrypt the backup with its password first.
| Domain | Corresponds to |
|---|---|
| HomeDomain | /private/var/mobile (for example Library/SMS/sms.db) |
| CameraRollDomain | The camera roll and Photos library under /private/var/mobile/Media (DCIM, PhotoData) |
| MediaDomain | Other media under /private/var/mobile: folders under Media, and Messages attachments, whose relativePath is Library/SMS/Attachments/... |
| AppDomain-<bundle ID> | The app's data container |
| AppDomainGroup-<group ID> | The app group container |
| AppDomainPlugin-<bundle ID> | An extension's container |
| KeychainDomain, WirelessDomain, SystemPreferencesDomain, RootDomain | Keychain, wireless, system preferences and root user data |
A domain is not always one folder: HomeDomain, CameraRollDomain and MediaDomain all have /private/var/mobile as their root and differ in which relative paths they hold. Choosing the wrong one of the three gives a wrong fileID, and the file seems to be missing.
The backup stores each file under its fileID, the SHA-1 hash of the domain, a hyphen and the relative path (lesson 2.3 works through the structure). SHA-1 of HomeDomain-Library/SMS/sms.db is 3d0d7e5fb2ce288813306e4d4636395e047a3d28, so the Messages database is in the subfolder 3d under that name. Computing one known fileID by hand validates a tool that rebuilds the tree.
A backup does not contain everything. Developers can exclude files, caches are usually skipped, and many pattern-of-life databases (lessons 4.4 to 4.6) are generally not included. Record which acquisition type each finding came from.
Practical points
- UUIDs are not stable. Reinstalling an app gives it new containers, and restoring a device to new hardware can change them too. The bundle UUID and the data UUID of one app are unrelated values. Always map UUIDs per extraction; never reuse a mapping from another device or another date.
- Copy the companions. SQLite databases come with -wal and -shm files (lesson 3.2). A database copied without its write-ahead log can be missing the most recent records.
- Leftovers are evidence. A group container can survive after its app is deleted if another app in the group remains. Its contents, and the metadata plist that names it, can show that an app was present.
Applying this to the Corvane case
In the full file system extraction of Lena's iPhone 14, reading the metadata plists shows that one AppGroup UUID belongs to group.net.whatsapp.WhatsApp.shared and contains ChatStorage.sqlite with its -wal file, and that one Data/Application UUID belongs to net.whatsapp.WhatsApp. applicationState.db confirms the bundle and data containers for the same bundle ID. The examiner records the three UUIDs, the identifiers and the source of each mapping in the notes, so that another examiner can find the same files. The backup found on Lena's work laptop, made before Day 1, is checked the same way: the WhatsApp group container appears there as AppDomainGroup-group.net.whatsapp.WhatsApp.shared.
Exam focus: Know the difference between bundle, data and group containers, their paths, and which kind of data each holds. Be able to map a UUID to an app with the container metadata plist (MCMMetadataIdentifier) and applicationState.db, and explain how Manifest.db, domains and SHA-1 fileIDs locate a file in a backup.
Practice questions
Check your understanding. These questions do not count towards the exam.
Sign in to save your progress and continue where you left off. It is free. Sign in