Mobile forensics
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.
What it solves and why it is different
Section titled “What it solves and why it is different”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.
Extraction types
Section titled “Extraction types”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 |
Acquisition in practice
Section titled “Acquisition in practice”- 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.
- Document: photos of the screen, model, OS version, IMEI and lock state in the chain of custody.
- Extract from least to most invasive, and hash every extraction.
- Cloud: iCloud and Google keep backups and data that are not on the device; access requires credentials or legal authorization.
# iOS: local backup (libimobiledevice), enabling encryption firstidevicebackup2 -i encryption on # prompts for the backup passwordidevicebackup2 backup --full ./ios_backup
# Android: diagnostic reportadb bugreport ./bugreport.zipSpyware detection with MVT
Section titled “Spyware detection with MVT”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:
mvt-ios download-iocs # public STIX2 indicatorsmvt-ios decrypt-backup -p 'password' -d ./decrypted ./ios_backup/<UDID>mvt-ios check-backup --iocs indicators.stix2 -o ./results ./decryptedmvt-ios check-sysdiagnose -o ./results sysdiagnose.tar.gzmvt-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.zipcheck-adbis gone: the built-in help marks it as removed. On Android the recommended path is collecting with AndroidQF and analyzing withcheck-androidqf.- The current version includes
check-intrusion-logsfor Android Intrusion Logging records. - MVT writes JSON per module plus a
*_detected.jsonfile 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.
Key artifacts
Section titled “Key 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.
Legal aspects
Section titled “Legal aspects”- 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.
Anti-forensics
Section titled “Anti-forensics”- 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.
Real-world cases
Section titled “Real-world cases”- 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.
Checklist
Section titled “Checklist”- 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
References
Section titled “References”- MVT: https://docs.mvt.re/ and https://github.com/mvt-project/mvt
- AndroidQF: https://github.com/mvt-project/androidqf
- iLEAPP and ALEAPP: https://github.com/abrignoni/iLEAPP and https://github.com/abrignoni/ALEAPP
- libimobiledevice: https://libimobiledevice.org/
- Amnesty International, Forensic Methodology Report: How to catch NSO Group’s Pegasus: https://www.amnesty.org/en/latest/research/2021/07/forensic-methodology-report-how-to-catch-nso-groups-pegasus/
- Citizen Lab, FORCEDENTRY: https://citizenlab.ca/2021/09/forcedentry-nso-group-imessage-zero-click-exploit-captured-in-the-wild/
- NIST SP 800-101 Rev. 1, Guidelines on Mobile Device Forensics: https://csrc.nist.gov/pubs/sp/800/101/r1/final