Skip to content
Pwnversity
DFIR-MOVILadvanced · 8 min · upd. 2026-11

Mobile forensics

MVTiOSAndroid

Mobile forensics extracts and analyzes evidence from smartphones and tablets: messages, calls, location, apps, photos and the system’s internal records. It serves two very different purposes: the classic investigation (what the device’s user did) and compromise detection (whether the device carries spyware), which is the one that matters most in incident response for journalists, executives or sensitive staff.

A phone cannot be cloned like a disk. Storage is encrypted with keys tied to the hardware and the passcode, the system blocks low-level access, and every OS version changes what can be extracted. In practice, the analyst works with what the system itself allows out (backups, diagnostic reports) or with commercial tools that exploit vulnerabilities to get more.

On top of that, the device is still alive: it receives messages, syncs with the cloud and can be wiped remotely. Isolating it comes first.

flowchart LR
    L["Logical / backup<br/>iTunes-Finder, Android backup"] --> F["Full file system<br/>agent or vulnerability"]
    F --> P["Physical<br/>(almost impossible with<br/>file-based encryption)"]
    L -.- D["Diagnostics<br/>sysdiagnose · bugreport"]
    style P stroke-dasharray: 5 5
Type What you get How
Logical / backup Data from apps that allow backup, messages, contacts, history, photos; on iOS, more data if the backup is encrypted (keychain, health, full Safari history) Finder/iTunes or idevicebackup2 (libimobiledevice) on iOS; AndroidQF and Android backup, very limited on recent versions
Diagnostics System logs, processes, crashes, network usage sysdiagnose on iOS; adb bugreport on Android
Full file system Everything decrypted and reachable: every app’s databases, internal logs Commercial tools (Cellebrite, Magnet GrayKey and similar) using agents or vulnerabilities, depending on model and version
Physical Bit-for-bit dump With today’s file-based encryption, rarely useful
  1. Isolate: airplane mode or a Faraday bag to prevent remote wipe and new incoming data. If it is unlocked, keep it that way (disable auto-lock) and document the state.
  2. Document: photos of the screen, model, OS version, IMEI and lock state in the chain of custody.
  3. Extract from least to most invasive, and hash every extraction.
  4. Cloud: iCloud and Google keep backups and data that are not on the device; access requires credentials or legal authorization.
Ventana de terminal
# iOS: local backup (libimobiledevice), enabling encryption first
idevicebackup2 -i encryption on # prompts for the backup password
idevicebackup2 backup --full ./ios_backup
# Android: diagnostic report
adb bugreport ./bugreport.zip

MVT (Mobile Verification Toolkit), published by Amnesty International’s Security Lab, compares evidence against public spyware indicators (Pegasus, Predator and others). Commands from version 2026.11.2:

Ventana de terminal
mvt-ios download-iocs # public STIX2 indicators
mvt-ios decrypt-backup -p 'password' -d ./decrypted ./ios_backup/<UDID>
mvt-ios check-backup --iocs indicators.stix2 -o ./results ./decrypted
mvt-ios check-sysdiagnose -o ./results sysdiagnose.tar.gz
mvt-ios check-fs -o ./results ./fs_dump # if a full extraction exists
mvt-android check-androidqf -o ./results ./androidqf/
mvt-android check-bugreport -o ./results bugreport.zip
  • check-adb is gone: the built-in help marks it as removed. On Android the recommended path is collecting with AndroidQF and analyzing with check-androidqf.
  • The current version includes check-intrusion-logs for Android Intrusion Logging records.
  • MVT writes JSON per module plus a *_detected.json file with matches. No matches does not mean clean: only that known indicators do not appear.

For general analysis (not just spyware), iLEAPP and ALEAPP process iOS and Android extractions and produce HTML reports covering dozens of artifacts.

Platform Artifact What it holds
iOS sms.db iMessage and SMS, with attachments
iOS DataUsage.sqlite, netusage.sqlite Network usage per process; process names that match no app are suspicious
iOS Biome and KnowledgeC App usage, screen state, device activity (KnowledgeC is losing ground to Biome in recent versions)
iOS Safari history Visited URLs, including redirects used in one-click attacks
iOS Shutdown.log (in sysdiagnose) Processes that delayed shutdown; it has been used to detect spyware
Android mmssms.db, contacts2.db Messages and contacts
Android usagestats App usage with timestamps
Android Package list and permissions Apps installed outside the store, accessibility or device admin rights granted
Both Messaging databases (WhatsApp ChatStorage.sqlite on iOS, msgstore.db on Android) Conversations, often encrypted with keys from the device itself
Both Photos (EXIF) and location Coordinates, time and device

More context on each system’s structure in iOS security and mobile storage.

  • Accessing a person’s device requires informed consent or a court order; on corporate devices, the accepted use policy and employment law set the limits.
  • Extracted personal data is subject to the GDPR: minimize what is analyzed and keep only what is needed.
  • Giving the affected person the report and an explanation of the findings is part of the job, especially in spyware cases.
  • Remote wipe (Find My iPhone, Find My Device) as soon as the device is back online.
  • Self-deleting spyware that removes itself when it detects analysis or after losing contact with its server; the traces left in system logs are what MVT indicators look for.
  • Zero-click attacks that leave no file or user action, only indirect traces in processes and network usage.
  • Messaging apps with disappearing messages and encryption that limit what can be recovered.
  • Factory reset: with current encryption, it wipes virtually everything.
  • Pegasus Project (July 2021): Amnesty International’s Security Lab published its forensic methodology along with MVT after analyzing devices of journalists and activists. Among Pegasus traces it described suspicious process names in iOS network usage databases and redirects in Safari history. Lesson: modern spyware leaves few traces, and the ones left are in internal system databases that only an encrypted backup or a sysdiagnose contains.
  • FORCEDENTRY (Citizen Lab, September 2021): Citizen Lab found a zero-click iMessage exploit (CVE-2021-30860) on an activist’s iPhone, which Apple patched days later. Lesson: forensic evidence from a single device can expose a vulnerability affecting millions.
  • Authorization or consent documented
  • Device isolated from the network, lock state documented and photographed
  • Encrypted backup (iOS) or AndroidQF and bugreport (Android)
  • sysdiagnose (iOS) when hunting for spyware
  • Every extraction hashed and logged in the chain of custody
  • MVT with up-to-date indicators; iLEAPP/ALEAPP for general analysis
  • Messaging, location, installed apps, permissions and network usage reviewed
  • Cloud data assessed (with authorization)
  • Findings merged into the timeline