Digital Forensic Tools
Home / Workflows / First look at an iPhone
Case workflow

What is on this iPhone? A first look

An extraction from an iPhone holds thousands of files, and most of them are small databases. This workflow shows how to parse one with iLEAPP, read the report, and confirm important records in the raw database.

This workflow was written from the tools' documentation and published references. It has not yet been checked step by step on the practice data. If a step does not match what you see, please report it.

What you will be able to answer

  • What kind of extraction you have and what it can contain
  • Which device, accounts and apps the report shows
  • What messages, calls and web pages the phone recorded
  • Where the phone says it was, and when
  • How to check a report entry in the raw database
  • How to read Apple timestamps correctly

What you need

  • An extraction folder, archive or backup, or the practice data described in the practice section
  • iLEAPP, which runs on Windows, macOS or Linux, and DB Browser for SQLite
  • The backup password, if the backup is encrypted
  • Free disk space of at least three times the size of the extraction

Steps

  1. 1

    Know which kind of extraction you have

    A full file system extraction copies the files from the phone's storage, so it can hold the most data. A backup made with Finder or iTunes holds only what iOS puts into a backup. Apple states that an encrypted backup can include more than an unencrypted one: saved passwords, Wi-Fi settings, website history, health data and call history. The libimobiledevice tool idevicebackup2 can make a backup (see its help). Check your tool's report to see what you really have.

    An encrypted backup cannot be used without its password. Write down who supplied the password and how.

  2. 2

    Record the source and make a working copy

    Hash the extraction file or the files in the folder, and write the values down with the date, the tool used for the extraction and the phone's model and iOS version. Work on a copy. Keep the original extraction unchanged, in the way your lab requires.

  3. 3

    Run iLEAPP

    iLEAPP needs Python 3.11 or later, or you can use a packaged build. It reads an iOS extraction and writes an HTML report. Start it with its window (run ileapp with no arguments) or from the command line. Input types: fs for a folder of extracted files, tar, zip or gz for an archive, and itunes for a Finder or iTunes backup. Create the output folder first. For an encrypted backup, add the --itunes_password option.

    ileapp -t tar -i /path/to/extraction.tar -o /path/to/output/

    On Windows the program may be called ileapp.exe. Pick the input type that matches your data. iLEAPP can also read disk images with -t raw.

    ToolsiLEAPP
  4. 4

    Read the report in a sensible order

    Open the HTML report in a browser. Start with the device information and the accounts, so that you know whose phone it appears to be. Then look at the installed apps, then messages, call history and Safari history. After that, look at the location items and the photo metadata. Section names change between iLEAPP versions, so use the menu and search box. Write down every item you want to confirm in the raw database, with its source file path.

    ToolsiLEAPP
  5. 5

    Confirm key records in the raw database

    Open a copy of the original database in DB Browser for SQLite, in read-only mode if the program offers it. In a full file system extraction, text messages are in sms.db. The message table holds the text and the date, and the handle table holds the phone number or email address of the other side. Compare a few rows with the report. If a text column is empty, the message may be edited or unsent (iOS 16 and later), so look at the attributedBody column too.

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

    In a backup, files have scrambled names, so ask iLEAPP or your tool which file is which. With iOS 16 and later also look at the chat_recoverable_message_join table for messages the user deleted recently.

  6. 6

    Convert Apple timestamps

    Many Apple databases count time from 1 January 2001 UTC (Mac absolute time). Older values are seconds, a 9-digit number. Newer ones, such as the date column in sms.db from iOS 11 on, are nanoseconds, an 18 or 19-digit number. A value of 0 also occurs, so do not convert it. For nanoseconds, divide by 1000000000 and add 978307200, the seconds between 1970 and 2001. Check against a message whose time you know.

    SELECT ROWID, datetime(date/1000000000 + 978307200, 'unixepoch') AS utc_time, is_from_me, text FROM message ORDER BY date LIMIT 20;
  7. 7

    Look at property list (plist) files

    A plist is a settings file in XML text or binary form. Many iOS settings, device details and app preferences are plists, and iLEAPP reads many of them for you. If an item is missing from the report, find the plist in the extraction and open it with a plist viewer. On a Mac the plutil -p command prints one. Note the file path and the key you read.

  8. 8

    Try other iOS tools for a second view

    Mobile Verification Toolkit (MVT) checks backups and file systems for traces of known spyware. APOLLO combines several Apple activity databases into one timeline. mac_apt can also process iOS data. Use them to test what iLEAPP showed, not to take their output on trust.

  9. 9

    Cross-check and write it down

    Confirm each important fact from two places, for example the iLEAPP report and the raw database, or two different tools. In your notes, record the tool names and versions, the iOS version, the source file or database path for each fact, the hash of the extraction, and the time zone you used.

Where the evidence is stored

sms.db/private/var/mobile/Library/SMS/ in a full file system extraction
Text messages and iMessages, with dates, the other party and attachments
iLEAPP HTML reportThe output folder you chose
A readable summary of many artifacts, with links to the source files
Device and account informationProperty list and database files, shown in the report
Device name, iOS version and the accounts signed in on the phone
Installed apps listSystem databases, shown in the report
Which apps were on the phone, and where their data lives
Call historyCall history database, shown in the report
Calls with time and length. In a backup, only an encrypted one holds it, per Apple
Safari historySafari databases, shown in the report
Web pages visited and when
Photos database and photo metadataPhotos library files, shown in the report
Photo records with dates and, in some cases, locations

Check your result

  • Open the same message in the iLEAPP report and in sms.db and compare the text, the other party and the converted time.
  • Run a second tool on the same extraction, such as mac_apt, and compare the device name, iOS version and a few messages.
  • Check the device information (iOS version and model) in the report against the notes made when the extraction was taken.

Common mistakes

  • Running iLEAPP with the wrong input type, for example fs on a tar file, and then deciding the extraction is empty.
  • Forgetting that an encrypted backup needs its password, or trying passwords on a real case without authority.
  • Reading Apple timestamps as Unix time. The dates come out in 1970 or in the year 2000s by mistake.
  • Treating an empty report section as proof that the data does not exist. The parser may not support that iOS version, or the extraction may be a backup.
  • Opening the only copy of a database in an editor and changing it. Always work on a copy.

Write it up

A short, careful way to state this kind of finding in a report. Change the details to match your own results.

The extraction [file name] (SHA-256 [hash]) was parsed with iLEAPP [version]. It shows an [device model] running iOS [version] with the account [account name]. [Number] messages with [contact] between [first date] and [last date] ([time zone]) were confirmed in sms.db. The data does not show who used the phone.

What this does not prove

  • An encrypted backup needs its password. Without it you cannot read the backup.
  • Deleted data is often not recoverable from an iPhone. A database may keep some deleted records for a short time, but you cannot count on it.
  • Data kept only in iCloud is not on the phone. A phone extraction does not include it.
  • Tools lag behind new iOS versions. A new version can change a database. For example, in iOS 16 and later an edited message has an empty text column and its text sits in other columns, so a simple query can miss it. Always check the raw database.
  • A message or a call shows an account and a device. It does not show who typed or said it.
  • A backup holds less than a full file system extraction, so an empty report section does not prove that the data never existed.
  • Timestamps can be shown in different time zones by different tools. Always write down which one you used.

Practise on public data

Digital Corpora: iOS 13 images from Joshua Hickman

by Joshua Hickman, hosted by Digital Corpora

Digital Corpora hosts two public iOS 13 images made for testing and training, one at iOS 13.3.1 and one at iOS 13.4.1. The author's blog post says they come from an iPhone SE that was jailbroken with checkra1n before extraction. Each image comes as a zip with a raw extraction in a .tar file, an encrypted iTunes backup (the password is in the documentation), Sysdiagnose logs and documentation. The first image lists 33 apps with test data, for example Signal, Telegram, Snapchat and WhatsApp. The author publishes the SHA-256 value of each zip: for the iOS 13.3.1 Extraction.zip it is f194e8bbfb950a5a31d5308e8131a14ec602f12d6a3d9f2841d15f47d34b2643. File sizes are not stated, so expect a large download. No answer sheet is published.

Your task. Download the iOS 13.3.1 extraction and check its SHA-256 value against the author's blog post. Unzip it, run iLEAPP on the .tar file, open the report, and note the device name and iOS version. Find the messages in the report and confirm two of them in sms.db with DB Browser for SQLite, including the converted date. Then check one more app, for example WhatsApp, in the report.

Read the documentation that comes with the data set first. The author says that tar files made before 20 April 2020 were fixed, so download again if yours is older. He says the tar can be unpacked with tar -xpf on macOS or Linux, and that unpacking on Windows may fail because of file names and symlinks, so give the .tar to iLEAPP directly there. The author's blog post is at https://thebinaryhick.blog/2020/04/16/ios-13-images-images-now-available/

Where to go next

Sources and further reading

A study guide written in our own words. It is not a legal or laboratory procedure. Follow your own lab's approved method on real cases. Last reviewed 24 Nov 2026.