Back to Mobile Forensics

Mobile Phone Forensics

iOS Mobile Forensics: A Complete Guide

A teaching guide to iPhone and macOS forensic workflows: first response, BFU and AFU states, iOS security, acquisition methods, tools, artifact paths, deleted data, timelines and reporting. It includes an interactive checklist, an acquisition advisor, an artifact finder and a Cocoa time converter.
10 parts4 interactive tools15 copyable code blocks

Legal and ethical note. Only examine devices, accounts, backups or extracted artifacts you own or have explicit written authorisation to inspect. Preserve originals, document every action, and follow your local laws and institutional policy.

1

Isolate

Prevent remote wipe while preserving the current power and unlock state.

2

Understand State

BFU vs AFU determines which encryption classes may be accessible.

3

Acquire Carefully

Select backup, cloud, AFC, agent, or full file system methods based on authority and device support.

4

Correlate

Build timelines from messages, photos, locations, notifications, and app artifacts.

On this page (14 sections)
  1. 1First Response
  2. 2Checklist (interactive)
  3. 3Security Architecture
  4. 4Device Compatibility
  5. 5Acquisition Methods
  6. 6Acquisition advisor
  7. 7Software Tools
  8. 8Key Databases
  9. 9Artifact path finder
  10. 10Deleted Data Recovery
  11. 11Timeline Building
  12. 12Cocoa time converter
  13. 13Reporting
  14. 14Quick Reference

Part 1

Before You Touch the Device: First Response Procedures

The first few minutes matter because power state, network state, and unlock state can decide what data remains accessible.

Scene documentation

  • Photograph the device in its found position before handling it.
  • Note whether the screen is on or off, and record the visible battery level if available.
  • Record physical condition, connected accessories, SIM presence, and whether it is charging.
  • Document the environment, including Faraday bags, signal blockers, laptops, chargers, or nearby paired devices.
  • Record the exact seizure time and date in UTC, plus local time zone context.

Network isolation is critical

A remote wipe through Find My iPhone or device management can destroy evidence quickly. Isolate the device as early as possible while preserving its current power and unlock state.

  • If the screen is accessible, enable Airplane Mode, then manually disable Wi-Fi and Bluetooth because newer iOS versions may leave them active.
  • If available, place the device in a tested Faraday bag that blocks cellular, Wi-Fi, Bluetooth, and GPS signals.
  • Keep the device powered and charging when possible, especially if it may already be in After First Unlock state.
  • Do not use signal jamming unless it is lawful in your jurisdiction and approved by your organisation.

BFU vs AFU

Before First Unlock and After First Unlock are central concepts in iOS forensics. If an iPhone has rebooted and the passcode has not been entered, many encryption keys are unavailable.

StateFull nameMeaningData accessible
BFUBefore First UnlockDevice rebooted and passcode not entered since bootVery limited data
AFUAfter First UnlockPasscode entered at least once since last bootMuch more data with suitable tools

Power warning

Keeping a phone powered does not guarantee AFU preservation. Supported iPhones can restart after prolonged inactivity; validate preservation methods for the installed OS. Avoid powering off an iPhone with an unknown passcode unless absolutely necessary. After reboot, iOS requires the passcode before Face ID or Touch ID works, and the device returns to BFU state.

Interactive first-response checklist

Ticks are saved in this browser only.

0/12
Document
Isolate
Preserve
Custody

Part 2

iOS Security Architecture

iOS forensic decisions depend on hardware-backed encryption, the Secure Enclave, file protection classes, and the passcode state.

Secure Enclave Processor

The Secure Enclave is a dedicated coprocessor present in modern iPhones. It manages cryptographic operations, protects biometric matching, enforces passcode attempt controls, and keeps critical device keys isolated from normal software.

UID and GID keys

  • The UID key is unique to each device and is burned into silicon. It never leaves the hardware and is part of the user data encryption chain.
  • The GID key is shared by devices with the same chip family and is used for firmware-related operations, not ordinary user data access.

iOS data protection classes

ClassNameWhen accessibleCommon use
AComplete ProtectionOnly when unlockedMost sensitive app data
BProtected Unless OpenUnlocked or already openMail attachments and downloads
CProtected Until First AuthAfter first unlock since bootMuch of the user data set
DNo ProtectionAlwaysInternal operating system files

Secure boot chain and passcode limits

  • Every stage of the iOS boot process is cryptographically signed by Apple.
  • Unsigned boot code and arbitrary downgrade workflows are blocked on modern devices.
  • Without the passcode, Class A and Class C data may be unavailable on modern devices.
  • With the passcode and a trusted acquisition path, full file system extraction may be possible on supported devices.

Part 3

iOS Device and Chip Compatibility Matrix

The chip generation tells you whether Checkm8-style workflows are possible and how realistic full file system extraction may be.

Compatibility overview

Hardware exposure does not guarantee extraction support. A known passcode alone does not guarantee full file system access. Validate the exact device model, OS build, acquisition tool version, and lock state against the vendor support matrix.

Device familyChipCheckm8Full file systemBFU extraction
iPhone 5s to 7 families, SE 1st genA7-A10Hardware affectedCheck exact OS, tool version, and device stateProtection-class dependent
iPhone 8 / 8 Plus / XA11Hardware affectedAdditional OS and passcode restrictions applyProtection-class dependent
iPhone XS / XR and laterA12 and laterNot affectedRequires a separately supported acquisition methodDo not assume user data is accessible

Part 4

Acquisition Methods: Least to Most Invasive

Choose the least destructive method that satisfies the evidence need, legal authority, and device state.

Manual acquisition

Manual acquisition means photographing, recording, or screen-capturing visible content. It is useful when the device is unlocked and time is critical, but it is incomplete, slow, and weak for metadata preservation.

iCloud acquisition

If Apple ID credentials or lawful process are available, iCloud can provide messages, photos, contacts, calendars, notes, backups, Safari data, and app data depending on account settings.

  • Useful tools include Cellebrite UFED Cloud Analyzer, Oxygen Forensic Detective, Magnet AXIOM Cloud, and iMazing for limited consumer review.
  • Apple legal process may return iCloud backup contents, iCloud Drive, Photos, Mail, Contacts, Calendars, Bookmarks, and Maps history.
  • Advanced Data Protection greatly reduces what Apple can decrypt because many iCloud categories become end-to-end encrypted.

iTunes and Finder local backups

A local backup can be easier to access than the device and is often the safest teaching workflow. Encrypted backups preserve more data classes than unencrypted backups, but require the backup password.

# Windows local backup location
C:\Users\[username]\AppData\Roaming\Apple Computer\MobileSync\Backup\

# macOS local backup location
~/Library/Application Support/MobileSync/Backup/

# libimobiledevice backup workflow
ideviceinfo
ideviceid -l
idevicebackup2 backup --full /path/to/evidence/backup/
idevicebackup2 list

Backup file structure

iOS backups are stored as a flat directory of hashed filenames. Manifest.db maps those hashed file IDs back to domains and original relative paths.

sqlite3 Manifest.db "SELECT fileID, relativePath FROM Files WHERE relativePath LIKE '%sms%';"

Logical acquisition through AFC

Apple File Conduit exposes media-oriented areas on a trusted paired connection. It is useful for photos and media, but not a full app sandbox or system extraction.

# Mount a trusted device with ifuse
ifuse /mnt/ios_device/

# Review and copy media
ls /mnt/ios_device/
cp -r /mnt/ios_device/DCIM/ /evidence/photos/

Full file system extraction

Full file system extraction is the most valuable acquisition class because it can include app sandboxes, system databases, keychain material, location artifacts, and SQLite databases.

  • Checkm8 applies to A5 through A11 devices because the vulnerability is in bootrom hardware and cannot be patched by iOS updates.
  • Forensic tools that use this class of workflow include Cellebrite UFED, Elcomsoft iOS Forensic Toolkit, Magnet AXIOM, and checkra1n-based approaches.
  • Modern A12+ devices usually require the passcode and a supported agent-based extraction path.
  • GrayKey is a restricted law-enforcement-only platform and should be discussed as context, not as a general student workflow.

Physical acquisition limitations

JTAG and chip-off approaches are rarely useful for modern iPhones. Since iPhone 5s-era hardware, raw NAND contents are protected by hardware-tied encryption keys, so removing the storage chip usually does not produce readable user data.

Acquisition advisor

Answer four questions for a starting plan. It summarises this guide; it is not legal advice.

1. Is the device powered on?

2. Which chip generation?

3. Is the passcode known and lawfully available?

Your plan appears here once every question is answered.

Part 5

Software Tools

Students should understand both commercial forensic suites and free research tools, because each category teaches different parts of the workflow.

Commercial tools

ToolStrengthsTypical use
Cellebrite UFEDLarge device support, logical, file system, physical, and cloud workflowsLaw enforcement and enterprise mobile forensics
Magnet AXIOMTimeline, cloud, app parsing, media categorisation, and broad artifact reviewInvestigations that need strong analysis and reporting
Oxygen Forensic DetectiveCloud extraction, social app parsing, SQLite and timeline toolsCases involving app-heavy or international artifacts
Elcomsoft iOS Forensic ToolkitGranular iOS extraction control, Checkm8 support, keychain-focused workflowsTechnical iOS examinations
Elcomsoft Phone BreakeriCloud access and encrypted backup decryption workflowsBackup and cloud-focused examinations

Open source and free tools

ToolPurpose
libimobiledeviceCommunicate with iOS devices, gather device info, create backups, capture screenshots, and stream syslog
checkra1nCheckm8-based jailbreak for supported iPhone 5s through X configurations; check OS and A11 restrictions
iLEAPPParse iOS logs, events, plists, app usage, Wi-Fi, notifications, health data, and location artifacts
APOLLOAnalyse Apple pattern-of-life databases and build activity timelines
AutopsyFree digital forensics platform with backup support and search/timeline features
DB Browser for SQLiteManually inspect SQLite databases and export query results
Bulk ExtractorCarve emails, URLs, phone numbers, and other patterns from images or files

Useful commands

# Install libimobiledevice on Ubuntu
sudo apt install libimobiledevice-utils

# Install on macOS
brew install libimobiledevice

# Common utilities
ideviceinfo
ideviceid -l
idevicebackup2 backup --full /path/to/backup/
idevicescreenshot screenshot.png
idevicesyslog

# iLEAPP
pip install ileapp
python ileapp.py -t fs -i /path/to/extracted_fs/ -o /path/to/output/

# APOLLO
git clone https://github.com/mac4n6/APOLLO
python apollo.py -o /output/ -m modules/ /path/to/extracted_db_files/

Part 6

Key iOS Databases and Artifact Locations

Once you have a backup or file system extraction, these paths are common starting points for communication, location, activity, account, and app review.

Communications

# SMS and iMessage
/private/var/mobile/Library/SMS/sms.db
# Tables: message, chat, handle, attachment

# Call history
/private/var/mobile/Library/CallHistoryDB/CallHistory.storedata
# Table: ZCALLRECORD

# Voicemail
/private/var/mobile/Library/Voicemail/voicemail.db

SMS query example

SELECT
  datetime(message.date/1000000000 + strftime('%s','2001-01-01'), 'unixepoch') AS date,
  handle.id AS contact,
  message.text,
  message.is_from_me
FROM message
JOIN handle ON message.handle_id = handle.rowid
ORDER BY message.date;

Location data

# Significant locations and routined data
/private/var/mobile/Library/Caches/com.apple.routined/Cache.sqlite
/private/var/mobile/Library/Caches/com.apple.routined/Local.sqlite

# Maps search history
/private/var/mobile/Library/Maps/GeoHistory.mapsdata

# Location services usage by app
/private/var/mobile/Library/LocationD/clients.plist

Device activity and media

# App usage and screen time
/private/var/mobile/Library/Application Support/com.apple.remotemanagementd/RMAdminStore-Local.sqlite

# Spotlight searches
/private/var/mobile/Library/Spotlight/com.apple.Spotlight.index/

# Notifications
/private/var/mobile/Library/UserNotifications/[UUID]/store.sqlite3

# Photos metadata
/private/var/mobile/Media/PhotoData/Photos.sqlite

Accounts, credentials, and Wi-Fi

# Keychain, requires supported extraction and key access
/private/var/Keychains/keychain-2.db

# Apple ID accounts
/private/var/mobile/Library/Accounts/Accounts3.sqlite

# Known Wi-Fi networks
/private/var/preferences/com.apple.wifi.known-networks.plist

Third-party app examples

# WhatsApp
/private/var/mobile/Containers/Shared/AppGroup/[UUID]/ChatStorage.sqlite

# Telegram
/private/var/mobile/Containers/Data/Application/[UUID]/Documents/

# Signal, SQLCipher encrypted and requires key extraction
/private/var/mobile/Containers/Data/Application/[UUID]/Documents/database/signal.sqlite

# Snapchat
/private/var/mobile/Containers/Data/Application/[UUID]/Library/Caches/

# Chrome
/private/var/mobile/Containers/Data/Application/[UUID]/Documents/ChromeProfile/History

Artifact path finder

23 common locations from this guide. Search by name, path or note.

23 of 23 shown

  • SMS and iMessage Communications

    /private/var/mobile/Library/SMS/sms.db

    Tables message, chat, handle, attachment. Dates in Cocoa nanoseconds on iOS 11+.

  • Call history Communications

    /private/var/mobile/Library/CallHistoryDB/CallHistory.storedata

    Table ZCALLRECORD.

  • Voicemail Communications

    /private/var/mobile/Library/Voicemail/voicemail.db

    Voicemail metadata; audio files alongside.

  • Significant locations (cache) Location

    /private/var/mobile/Library/Caches/com.apple.routined/Cache.sqlite

    routined location cache.

  • Significant locations (local) Location

    /private/var/mobile/Library/Caches/com.apple.routined/Local.sqlite

    Visits and learned places.

  • Maps history Location

    /private/var/mobile/Library/Maps/GeoHistory.mapsdata

    Searches and directions.

  • Location clients Location

    /private/var/mobile/Library/LocationD/clients.plist

    Which apps used location services.

  • Screen Time / app usage Activity

    /private/var/mobile/Library/Application Support/com.apple.remotemanagementd/RMAdminStore-Local.sqlite

    Screen Time usage records.

  • Spotlight index Activity

    /private/var/mobile/Library/Spotlight/com.apple.Spotlight.index/

    Indexed content and searches.

  • Notifications Activity

    /private/var/mobile/Library/UserNotifications/[UUID]/store.sqlite3

    Delivered notifications per app.

  • Photos metadata Media

    /private/var/mobile/Media/PhotoData/Photos.sqlite

    Assets, albums, EXIF-derived fields, deleted items.

  • Camera roll files Media

    /private/var/mobile/Media/DCIM/

    Original photos and videos (also exposed over AFC).

  • Keychain Accounts

    /private/var/Keychains/keychain-2.db

    Needs supported extraction and key access.

  • Apple ID and accounts Accounts

    /private/var/mobile/Library/Accounts/Accounts3.sqlite

    Configured accounts.

  • Known Wi-Fi networks Network

    /private/var/preferences/com.apple.wifi.known-networks.plist

    SSIDs with join timestamps.

  • WhatsApp Third-party apps

    /private/var/mobile/Containers/Shared/AppGroup/[UUID]/ChatStorage.sqlite

    Messages and media references.

  • Telegram Third-party apps

    /private/var/mobile/Containers/Data/Application/[UUID]/Documents/

    App data folder.

  • Signal Third-party apps

    /private/var/mobile/Containers/Data/Application/[UUID]/Documents/database/signal.sqlite

    SQLCipher-encrypted; needs key from the keychain.

  • Snapchat cache Third-party apps

    /private/var/mobile/Containers/Data/Application/[UUID]/Library/Caches/

    Cached content.

  • Chrome history Third-party apps

    /private/var/mobile/Containers/Data/Application/[UUID]/Documents/ChromeProfile/History

    Chromium History database.

  • Backup manifest Backups

    Manifest.db (in the backup folder)

    Maps hashed backup file names to domains and paths.

  • Windows backup folder Backups

    C:\Users\[username]\AppData\Roaming\Apple Computer\MobileSync\Backup\

    Finder/iTunes backups on Windows.

  • macOS backup folder Backups

    ~/Library/Application Support/MobileSync/Backup/

    Finder backups on macOS.

Part 7

Recovering Deleted Data

Deleted data recovery depends on SQLite free pages, WAL files, APFS copy-on-write behaviour, snapshots, and whether data blocks have been overwritten.

How deletion often behaves on iOS

  • SQLite rows may remain in free pages until overwritten.
  • SQLite WAL files can preserve recent changes and deleted records.
  • APFS copy-on-write behaviour may leave older data versions in unallocated areas or snapshots.
  • Recovery depth depends heavily on acquisition type and encryption state.

WAL and file carving commands

# Check for SQLite companion files
ls -la /path/to/sms.db*
# sms.db
# sms.db-wal
# sms.db-shm

# Carve common media from an image
foremost -i ios_filesystem.dmg -o /output/ -t jpg,png,mov,mp4,pdf

# APFS local snapshots on a mounted volume
tmutil listlocalsnapshotdates

Part 8

Building a Timeline

Timeline work correlates file system times, SQLite timestamps, photos, notifications, location artifacts, app logs, and iCloud sync events.

Common iOS timestamp sources

  • File system MAC times: modified, accessed, and changed timestamps.
  • SQLite timestamps, often stored as Cocoa time: seconds since 2001-01-01.
  • EXIF timestamps and GPS metadata from photos and videos.
  • Plist timestamps, notification timestamps, and app-specific time formats.
  • Cloud sync timestamps and location history records.

Convert Cocoa timestamps

import datetime

def cocoa_to_datetime(cocoa_timestamp):
    cocoa_epoch = datetime.datetime(2001, 1, 1)
    return cocoa_epoch + datetime.timedelta(seconds=cocoa_timestamp)

print(cocoa_to_datetime(715000000))

Timeline tools

# Plaso / log2timeline for iOS backup artifacts
log2timeline.py --parsers ios_backup ios_timeline.plaso /path/to/backup/

# Export to CSV
psort.py -o l2tcsv -w timeline.csv ios_timeline.plaso

Cocoa (Mac absolute) time converter

Seconds or nanoseconds since 2001-01-01 00:00:00 UTC, used across iOS SQLite databases.

Unit
Interpreted as
seconds since 2001-01-01 UTC
UTC
2023-08-29 11:06:40 UTC
Your local time
Tuesday, August 29, 2023 at 11:06:40 AM UTC
Unix epoch seconds
1693307200

SQL equivalent: datetime(date/1000000000 + 978307200, 'unixepoch') for nanoseconds, or datetime(date + 978307200, 'unixepoch') for seconds.

Part 9

Reporting and Chain of Custody

A forensic report should be reproducible. Hash evidence, document tools and versions, and separate findings from speculation.

Hashing for integrity

# Hash the extracted image
md5sum ios_filesystem.dmg > ios_filesystem.md5
sha256sum ios_filesystem.dmg > ios_filesystem.sha256

# Verify later
sha256sum -c ios_filesystem.sha256

Chain of custody records

  • Who seized the device, when, and where.
  • Device state at seizure: powered on/off, locked/unlocked, battery percentage, and network state.
  • Every tool used, including version number and validation notes.
  • Every command run, with timestamp and operator.
  • Who had custody at each point and how the device was stored.
  • Hash values of acquired images, backups, exports, and key evidence files.

Professional report structure

  • Executive summary with a non-technical overview of findings.
  • Examiner qualifications and role.
  • Evidence received, including device description, serial, IMEI where lawful, and condition.
  • Tools used, methodology, and limitations.
  • Findings with screenshots, artifact paths, timestamps, and interpretation.
  • Timeline reconstruction and factual conclusions.
  • Appendices containing raw data, hashes, exported tables, and tool logs.

Part 10

Quick reference summary

Decision tree

Device found -> Is it on?
  NO -> Do not power on if passcode is unknown
        -> Use Checkm8 only if A11 or older and legally authorised
        -> Chip-off will usually remain encrypted

  YES -> Is it unlocked or in AFU state?
    YES -> Preserve power and network isolation
          -> Use trusted forensic acquisition workflow

    NO -> Is it A11 or older?
      YES -> Consider Checkm8-supported forensic extraction
      NO  -> Passcode, iCloud, existing backups, legal process, or restricted LE tools may be needed

Certification paths

CertificationBodyFocus
CCMECellebriteCellebrite tool proficiency
CFCEIACISGeneral digital forensics
CCEISFCECertified Computer Examiner
GCFEGIACEnterprise forensics
EnCEOpenTextEnCase platform
MCFEMSABMobile forensics

Staying current

iOS forensics changes with every hardware generation, iOS release and security patch. Keep tools updated, validate methods on test devices, follow forensic research communities, and study work from researchers such as Sarah Edwards, Alexis Brignoni and Lesley Carhart.