Skip to content

Device Backup Forensics

Device backups created by iOS and Android systems often preserve data that has been deleted from the live device, making them a primary acquisition target when the handset itself is inaccessible or encrypted. This topic covers backup structures, encryption schemes, manifest databases, and the tools used to extract forensic value from both local and cloud-stored backups.

Last updated:

Share

Device backup forensics is the discipline of extracting, parsing, and interpreting the backup archives that iOS and Android devices create for data preservation. A backup captures the logical state of an app's data, messages, contacts, location history, and settings at a fixed point in time. When a device is locked with an unknown passcode, damaged, or remotely wiped after an incident, the most recent backup may be the only available copy of that data. Crucially, backups can hold content that the user deleted from the live device after the backup was made, giving investigators access to artefacts that a logical acquisition of the handset would miss entirely.

iOS stores local backups in a proprietary flat-file format managed by a SQLite manifest database, while cloud backups are distributed across Apple's servers under the same encryption architecture. Android uses the ADB backup format for local copies and vendor-specific cloud solutions such as Google One backup. Both platforms apply encryption by default in modern versions, and the encryption model determines whether forensic access is feasible without a known password. Understanding backup structure is therefore not just a parsing exercise: it is an encryption and key-recovery problem before it is a data-recovery problem.

The legal framework for backup acquisition differs from device seizure in important ways. In the United States, compelling a cloud provider to disclose backup content is governed by the Electronic Communications Privacy Act (ECPA) and the CLOUD Act. In the European Union, providers respond to mutual legal assistance requests under GDPR-compatible procedures. In India, backup data held by a foreign provider falls under the Information Technology Act 2000 and, for evidential admissibility, the Bharatiya Sakshya Adhiniyam 2023. Domestic backups found on a seized computer require only the authority to examine the computer itself, which is typically broader than cloud-access authority.

By the end of this topic you will be able to:

  • Describe the flat-file structure of an iTunes local backup and explain how Manifest.db maps hashed filenames to their original app paths.
  • Explain how iTunes backup encryption works and identify the conditions under which brute-force recovery is and is not feasible.
  • Identify the forensic differences between iCloud backups and iTunes local backups, including what data each type omits.
  • Describe the ADB backup format, parse its header, and identify which app data categories may be silently excluded.
  • Explain why a backup may contain data absent from the live device and how this affects the forensic acquisition strategy.
Key terms
Manifest.db
The SQLite database at the root of every iTunes local backup. It maps each backed-up file to its SHA-1 hash filename, recording the domain, relative path, file flags, and modification time. Forensic tools use it to reconstruct the logical directory tree from the flat backup store.
Backup keybag
A data structure in iOS encrypted backups that holds the per-class encryption keys used to protect individual files. The keybag itself is wrapped by a key derived from the backup password using PBKDF2. Without the correct password, the keybag cannot be unwrapped and file content remains encrypted.
Domain (iOS backup)
A prefix in the iOS backup manifest that identifies the origin of each backed-up file. Common domains include HomeDomain (the device home directory), AppDomain-[bundle ID] (a specific app's sandbox), and MediaDomain (the media library). The domain and relative path together reconstruct the original file location.
ADB backup
An Android Debug Bridge backup produced by the adb backup command. The output is a TAR archive prefixed by a small plaintext header specifying version, compression, and encryption status. Each entry in the archive corresponds to an app's data directory or external storage content.
allowBackup flag
An Android manifest attribute (android:allowBackup) that controls whether an app's data is included in ADB backups. When set to false the app's data directory is silently excluded from any adb backup output, a common privacy control that also reduces forensic yield.
CLOUD Act
The US Clarifying Lawful Overseas Use of Data Act (2018), which requires US-based providers to disclose stored data held abroad in response to a valid US legal order, and which allows bilateral executive agreements with other nations for reciprocal access. Governs much of the international legal process for obtaining cloud backup content.

iTunes local backup structure

When a user backs up an iPhone or iPad to a Mac or Windows computer via iTunes (or Finder on macOS Catalina and later), the backup lands in a fixed directory: on macOS at ~/Library/Application Support/MobileSync/Backup/, and on Windows at %APPDATA%\Apple Computer\MobileSync\Backup\. Each device gets a subfolder named after its UDID (Unique Device Identifier), a 40-character hex string. Inside that folder the structure is always the same.

Every backed-up file is stored with a filename that is the SHA-1 hash of its domain and relative path concatenated, for example the hash of HomeDomain-Library/SMS/sms.db. The file is placed in a two-level directory: the first two characters of the hash name the subdirectory, and the full 40-character hash is the filename. So the SMS database might live at bd/bd192c...40chars. This flat layout means the backup folder contains no human-readable filenames. Without Manifest.db, the data is present but uninterpretable.

Manifest.db contains two main tables. The Files table maps each file's fileID (the SHA-1 hash), domain, relativePath, flags, and file metadata stored as a binary plist in the file column. The Properties table holds device metadata. From Files, a forensic tool can reconstruct the full path for every backed-up file and extract it to a logical directory tree. The root folder also contains Info.plist (device identifiers, last backup date, iOS version), Status.plist (backup state and date), and Manifest.plist (backup settings and device encryption flag).

iOS backup encryption

Apple's backup encryption is optional for local iTunes backups and is always enabled for iCloud backups. When local encryption is enabled, each file is encrypted with a unique 256-bit AES key. Those per-file keys are wrapped by class keys, which are in turn protected by the backup keybag. The keybag is encrypted using a key derived from the user-chosen backup password via PBKDF2-SHA256. In iOS 10.2 Apple increased the iteration count to around 10 million, making brute-force attacks on modern backups very slow even on GPU hardware.

The backup password is completely separate from the device passcode. A six-digit passcode does not help recover a long backup password, and vice versa. This is a common source of confusion in investigations where the device has been unlocked using a court order or a biometric but the backup remains encrypted under an unknown password. Commercial tools such as Elcomsoft Phone Breaker, Passware Kit Mobile, and open-source options such as iphone-backup-decrypt target the PBKDF2 derivation step. Against short or common passwords, recovery is feasible. Against a random twelve-character password on a post-iOS-10.2 device, GPU brute force is not practical.

PropertyUnencrypted local backupEncrypted local backupiCloud backup
Password requiredNoneBackup password (separate from device passcode)Apple ID credentials + legal process
Health and Keychain dataNot includedIncludedIncluded (partial)
Brute-force feasibleN/AYes for short passwords; no for long onesN/A (cloud API access)
Stored onExaminer's computerExaminer's computerApple servers (jurisdiction-dependent)
Default stateOff (user must enable)Off (user must enable)On when iCloud Backup is turned on

iCloud backup content and acquisition

iCloud Backup is enabled by default on iOS devices and backs up automatically over Wi-Fi when the device is plugged in and locked. The backup covers SMS and iMessage databases, call history, app data (for apps that opt in), device settings, Health data, and voicemail. It excludes data already stored in iCloud: photos if iCloud Photos is enabled, files if iCloud Drive is enabled, and third-party app data if the app's iCloud sync is active. This exclusion logic means that examining only the iCloud backup can miss large volumes of content that requires separate iCloud Drive or iCloud Photos requests.

Apple retains up to three backup snapshots per device. When a new backup completes, the oldest is deleted. For an active device that backs up daily, investigators may have access to content from three days ago, three days before that, and three days before that, each snapshot potentially containing data deleted in the intervening periods. The retention window is device-specific and depends on backup frequency.

Investigative access to iCloud backups follows two paths. The first is legal process: a preservation request to Apple (using Apple's law enforcement portal) followed by a content request under the applicable legal authority. Apple's Legal Process Guidelines state that iCloud backup content is provided to law enforcement with a valid search warrant. The second path is direct acquisition using credentials: if the Apple ID username and password (or a valid authentication token) are known, tools such as Elcomsoft Phone Breaker can download the backup directly, bypassing legal process but raising admissibility questions if the credentials were not lawfully obtained.

Apple introduced end-to-end encryption for iCloud backups as an opt-in feature called Advanced Data Protection, released in December 2022. When this is enabled, Apple cannot decrypt the backup even in response to a legal order. Only the account holder, using a device enrolled in the account, holds the decryption keys. As of 2024 this option is available in most markets, and its uptake among privacy-conscious users means investigators must determine whether Advanced Data Protection is enabled before assuming a legal request to Apple will yield plaintext content.

Android backup formats

Android does not have a single backup format equivalent to iTunes. The platform provides two main mechanisms: ADB backup for local extraction over USB, and Google One Backup (formerly Android Backup Service) for cloud storage. Manufacturers including Samsung and Huawei also implement proprietary backup solutions that have their own formats and forensic tools.

An ADB backup is produced by issuing adb backup -apk -shared -all -f backup.ab from a computer connected to the device. The device must have USB debugging enabled, and the user must confirm the backup on the device screen. The output file begins with a plaintext header: the string ANDROID BACKUP, a version number (typically 5), a flag for whether the data is compressed (1 or 0), and a flag for encryption type (none, AES-256). The remainder is a deflate-compressed TAR archive. Each TAR entry corresponds to a file in an app's sandbox or on external storage, with the path structured as apps/[package name]/[subdir]/[filename]. The archive can be extracted with standard tools after decompression.

Forensic yield from ADB backups varies significantly by app. Applications that set android:allowBackup="false" in their AndroidManifest.xml are excluded entirely. Historically, high-value targets including WhatsApp, Signal, and many banking apps have used this flag. Signal's exclusion is intentional privacy design. WhatsApp uses its own proprietary backup mechanism (to Google Drive or local storage) rather than ADB. Investigators must therefore combine ADB backup analysis with direct acquisition of the Google Drive backup and manual extraction from the device's external storage directory.

Forensic artefacts recoverable from backups

The forensic value of a backup extends well beyond a simple copy of the live device state. Backups often contain deleted records that survive in SQLite databases as rows where the deletion flag is set but the data has not yet been overwritten, app caches that may not exist in the same form on the current live device, and snapshots of settings at an earlier point in the investigation timeline. The deleted data recovery on mobile devices topic covers SQLite WAL recovery in detail; the same techniques apply directly to the database files extracted from a backup.

Key artefact categories in iOS backups include: the SMS database (HomeDomain-Library/SMS/sms.db), which holds SMS, MMS, and iMessage threads with sender, receiver, timestamps, read status, and attachment references; the call history database (HomeDomain-Library/CallHistoryDB/CallHistory.storedata); Safari browsing history and bookmarks; Photos metadata in the PhotoData domain; Health data in the AppDomain-com.apple.Health domain (encrypted backups only); and third-party app databases in their respective AppDomain directories. The voicemail database and audio files are also included in local backups, which is often overlooked.

In Android ADB backups, the equivalent artefacts are the telephony provider database (com.android.providers.telephony), contacts provider database (com.android.providers.contacts), call log provider (com.android.providers.contacts for call history), and app-specific databases for installed applications that permit backup. WhatsApp stores its message database in a proprietary format at /sdcard/WhatsApp/Databases/; that directory is captured in the -shared flag of adb backup and in Google Drive backup separately. Telegram similarly stores a local database that can be extracted from the app's data directory if the device is not encrypted or if a physical acquisition is combined with the backup.

Backups also preserve app installation records, which is relevant when an app has been uninstalled before the device was seized. An old backup may show the app was installed, when it was installed, and what data it contained at the time. This is one reason investigators routinely request all available backup history rather than only the most recent snapshot.

Tools and workflow for backup examination

Commercial forensic platforms handle iTunes and iCloud backup parsing as a built-in workflow. Cellebrite UFED Physical Analyzer imports an iTunes backup folder and produces a parsed report of messages, calls, contacts, and app data. Oxygen Forensic Detective and MSAB XRY have equivalent capabilities. These tools automate manifest parsing, file extraction, and SQLite analysis, but examiners should understand the underlying structure so they can verify tool output and recover data the tools miss.

For manual examination of iTunes backups, the open-source iphone-backup-decrypt library (Python) decrypts encrypted backups using the known password and produces a plaintext copy with the original directory structure restored. The iBackupBot (macOS/Windows) and BackupTrans tools provide graphical interfaces for browsing unencrypted backups. For deeper SQLite work, the DB Browser for SQLite or the command-line sqlite3 tool can query the manifest and artefact databases directly. Autopsy has an iTunes Backup module that integrates backup parsing into a wider case file.

For Android ADB backups, the ab-to-tar.py script or the Android Backup Extractor (Java, open source) converts the .ab file to a standard TAR, which can then be extracted with any archive tool. Autopsy's Android Analyzer module ingests the extracted file system. The Android backup files for individual apps are SQLite databases, SharedPreference XML files, and binary files, all of which can be examined with standard forensic and database tools after extraction. See also the call logs, SMS and messaging app artefacts topic for guidance on parsing specific app databases once they are extracted.

Check your understanding
Question 1 of 4· 0 answered

An examiner recovers an iTunes backup folder from a suspect's computer. The folder contains subfolders named with two-character hex strings (00, 01, 1a, etc.) and files with 40-character hex filenames. What file should the examiner parse first to make sense of this structure?

Key Takeaways

  • iTunes local backups store all files under SHA-1 hash filenames in a flat two-level directory; Manifest.db is the SQLite database that maps those hashes back to original app domains and paths, and it must be parsed before any other analysis.
  • iOS backup encryption uses a per-file key hierarchy protected by a backup keybag derived from a user-set backup password via PBKDF2; the backup password is separate from both the device passcode and the Apple ID, and post-iOS-10.2 PBKDF2 parameters make brute force on long passwords impractical.
  • iCloud backups exclude data already stored in iCloud (Photos, Drive), retain up to three snapshots, and require legal process to Apple under the applicable national authority; Apple's Advanced Data Protection option (opt-in, 2022) prevents Apple from decrypting the backup even with a valid legal order.
  • Android ADB backups are deflate-compressed TAR archives; apps that set android:allowBackup=false are silently excluded, so high-value targets including WhatsApp require separate extraction from the device, external storage, or the Google One cloud backup.
  • A backup captures device state at a fixed point in time, meaning it may contain messages, app data, and installed-app records that the user subsequently deleted from the live device, making backup examination a primary method for recovering deleted content without physical acquisition.
What is the Manifest.db file in an iTunes backup and why does it matter forensically?
Manifest.db is an SQLite database at the root of every iTunes (local) backup. It maps each backed-up file to a 40-character SHA-1 hash filename stored in a flat two-level directory tree. Without Manifest.db an examiner cannot identify which hashed file corresponds to which app or system path. It also records the domain (for example, AppDomain-com.apple.MobileSMS), the relative path inside the app sandbox, and file flags. Forensic tools parse Manifest.db first to reconstruct the logical directory structure before extracting artefacts.
How does iTunes backup encryption work and can it be bypassed?
When backup encryption is enabled, every file in the backup is encrypted with a per-file key, and those keys are wrapped by a hierarchy rooted in the backup password. The password is hashed using PBKDF2 with a high iteration count. There is no bypass through the device passcode: the backup password is separate. Brute-force attacks using tools such as Elcomsoft Phone Breaker or Hashcat are the primary recovery method. Apple introduced stronger PBKDF2 parameters in iOS 10.2, making attacks on long passwords impractical. If the password is unknown and brute force fails, the backup contents remain inaccessible.
What data in an iCloud backup is not available in a local iTunes backup?
iCloud backups exclude data that Apple considers already stored in iCloud, including iCloud Photos (the full-resolution library), iCloud Drive files, iCloud Mail, and third-party app data already synced to iCloud. Paradoxically this means a local iTunes backup often contains more app data than an iCloud backup. However, iCloud backups include Health data, call history, and some message attachments that may not be present in an older local backup. Investigators should request both types when legally available.
What forensic data can Android ADB backups contain?
An ADB backup produced with adb backup -apk -shared -all captures installed APK files, app-specific data directories (databases, shared preferences, files, cache), and external storage content. It is stored as a deflate-compressed TAR archive preceded by a small header. Forensic value includes SQLite databases for SMS, contacts, call logs, and third-party apps. However, many apps set android:allowBackup=false in their manifest, so their data is silently omitted. ADB backups also exclude device encryption keys, call interception data, and root-partition content.
Why do backups sometimes contain data no longer present on the live device?
Backups capture a snapshot at the moment they were created. If the user deleted messages, photos, or app data after the last backup was made, those items remain in the backup but are absent from the live device. Incremental backup systems such as iCloud may also retain previous snapshots for a limited period, each of which may contain data deleted before the next snapshot was taken. This makes backups a primary source for recovering deleted content without performing a physical acquisition of the device itself.

Test yourself on Mobile and Network Forensics with free, timed mocks.

Practice Mobile and Network Forensics questions

Found this useful? Pass it along.

Share

Spotted an error in this page? Report a correction or read our editorial standards.

Your journey to becoming a forensic professional starts here.

Practice with mock tests, learn from structured notes, and get your questions answered by a global forensic community, all in one place.