Mobile Forensics
Smartphones carry the densest evidence per gigabyte of any device most organizations own: messages, call records, location history, application databases, photographs with embedded metadata, authentication factors and credentials for everything else. Mobile forensics is the practice of extracting that evidence without altering it, understanding what each extraction level can and cannot recover, and handling devices whose encryption and lock state change the entire plan within hours of seizure. The technical work is inseparable from lawful authority â a perfect extraction obtained outside scope is still a failed investigation.
Where the evidence actually lives
Mobile data is split across four places, and knowing the split tells you which extraction you need. Cloud-synced data is reachable with credentials or provider cooperation and often survives device loss. Application containers hold each app's database, cache and documents in its own sandbox. System stores hold contacts, call logs, Wi-Fi history, installed application records and account data. And the device's own logs â location services, knowledge-c, usage statistics â record behavior rather than content.
| Evidence category | Typical location | Survives device wipe? | Common extraction target |
|---|---|---|---|
| Messages and calls | App databases, system providers | Partially, cloud backup | Logical extraction |
| Location history | System knowledge stores | No, without backup | File-system extraction |
| Photographs and video | Media store with EXIF | Cloud copy often exists | Logical extraction |
| Credentials and tokens | Keychain or keystore | No | File-system or physical |
| Deleted rows and WAL fragments | Database free pages | No | Physical extraction |
| Application cache and temp files | Sandboxed containers | No | File-system extraction |
The first investigative decision is therefore not "which tool" but "which categories of evidence matter and which of them are synced elsewhere," because the cheapest path to messages is frequently the account, not the handset.
Extraction levels and what they cost
Extraction depth trades reversibility and legality against completeness. Manual extraction uses the device interactively and captures only what a user could see. Logical extraction pulls a backup-style copy through the operating system's own interfaces: readable application data, media and databases, but no unallocated space. File-system extraction reaches further into the sandbox, recovering more application containers, caches and protected stores, sometimes with device unlocking assistance. Physical extraction reads the storage directly â chip-off or in-circuit methods in the hardest cases â and is the only level that exposes deleted data in unallocated space.
| Level | Method | Recovers deleted data | Risk to device | Typical authorization |
|---|---|---|---|---|
| Manual | On-device interaction | Minimal | Low | Consent or warrant |
| Logical | Backup interfaces, ADB | No | Low | Warrant or corporate policy |
| File system | Advanced unlock or jailbreak assisted | Limited | Medium, may alter state | Warrant, documented |
| Physical | Chip-off, ISP, UFED hardware | Yes | High, potentially destructive | Warrant, last resort |
The right choice is the shallowest level that answers the investigative questions. Destructive physical extraction belongs to cases where deleted content is the case, and every step deeper should be recorded with its justification.
Android extraction paths
Android's openness cuts both ways: ADB access, forensic images of removable storage, and application data readable when a device is rooted or an exploit-assisted extraction is used. The classic backup flow still recovers a large share of what investigators need, provided the device is unlocked and backup transport is available.
#!/usr/bin/env bash
# Logical and file-system collection from an unlocked Android device.
set -euo pipefail
CASE=case204-android
mkdir -p "$CASE"
# 1) Device identity and state â record before anything else.
adb shell getprop > "$CASE/properties.txt"
adb shell dumpsys battery > "$CASE/battery.txt"
adb shell dumpsys window | grep -E 'mDreamingLockscreen' > "$CASE/lockstate.txt"
# 2) Logical backup (requires an unlocked device and user confirmation).
adb backup -apk -shared -all -obb -f "$CASE/device.ab"
java -jar abe.jar unpack "$CASE/device.ab" "$CASE/device.tar"
tar -xf "$CASE/device.tar" -C "$CASE"
# 3) Application containers that the backup flow skips.
for pkg in $(adb shell pm list packages -3 | sed 's/package://' | tr -d '\r'); do
adb shell run-as "$pkg" tar c . 2>/dev/null > "$CASE/apps-$pkg.tar" || true
done
# 4) Databases of interest, plus their write-ahead logs for deleted rows.
adb shell "find /data/data -name '*.db' -o -name '*.db-wal'" > "$CASE/dbpaths.txt"
# 5) Media and downloads with timestamps intact.
adb pull /sdcard/DCIM "$CASE/dcim"
adb pull /sdcard/Download "$CASE/download"
sha256sum "$CASE"/*.ab "$CASE"/*.tar | tee "$CASE/HASHES.txt"
Two details matter for defensibility: record lock state at collection, because it changes what the extraction could reach, and hash before further processing so the working copies can be tied back to the acquisition.
iOS extraction paths
iOS evidence concentrates in encrypted local backups, the keychain, and, when a device is unlocked and paired, the file system itself. Apple's hardware-backed protection classifies data by whether it is available before first unlock, after first unlock, or only while unlocked â a distinction that determines what a tool can recover from a device seized in different states.
#!/usr/bin/env bash
# iPhone backup-based collection on an examiner workstation.
set -euo pipefail
CASE=case204-ios
MAC_BACKUP="$HOME/Library/Application Support/MobileSync/Backup"
WIN_BACKUP="$APPDATA/Apple Computer/MobileSync/Backup"
mkdir -p "$CASE"
# 1) Locate existing backups and record their manifest and lock state.
find "${MAC_BACKUP:-$WIN_BACKUP}" -maxdepth 2 -name Manifest.db -print \
| tee "$CASE/backups.txt"
# 2) Copy, never work in place, then verify the copy.
LATEST=$(ls -td "${MAC_BACKUP:-$WIN_BACKUP}"/*/ | head -1)
rsync -a "$LATEST" "$CASE/backup"
cd "$CASE/backup" && sha256sum Manifest.db Status.plist Info.plist > "$CASE/HASHES.txt"
# 3) Extract structured records from the most valuable domains.
sqlite3 "$CASE/backup/Manifest.db" \
"SELECT fileID, relativePath FROM Files WHERE relativePath LIKE '%sms%';" \
> "$CASE/sms-files.txt"
# 4) Keychain material, when the device is unlocked and paired.
python3 keychain_dumper.py --output "$CASE/keychain.json"
Backup-only investigations still recover messages, contacts, call history, photographs, Safari history and extensive application data. What they miss is exactly what a paired or physical extraction adds: location stores, knowledge-c records, some health data, and the fragments of deleted content.
Recovering deleted content
Deletion on mobile platforms is layered. Rows removed from an SQLite database remain in free pages and in write-ahead log files until the database is rewritten; files deleted from the media store may persist in unallocated blocks; and cloud copies frequently outlive the local deletion. This is where file-system and physical extractions earn their cost, and why WAL files and journal files should be preserved alongside their parent databases.
| Recovery target | Where to look | Notes |
|---|---|---|
| Deleted messages | Database free pages, WAL journal | Preserve DB, WAL and SHM together |
| Removed media | Unallocated space, cloud trash | Check provider-side retention |
| Location history | Knowledge and caches stores | Often absent from backups |
| Credentials | Keychain, keystore, autofill DB | Usually requires unlocked state |
| Application traces | Sandboxed caches and logs | Varies wildly by vendor |
Tools such as Magnet AXIOM, Cellebrite UFED and open-source projects each cover different slices; the examiner's job is knowing which slice the case needs rather than running a full extraction and hoping the report surfaces something useful.
â ī¸Encryption clock is running
Modern devices make time a first-class evidentiary factor. Data protection keys may be evicted after a device reboots or remains locked long enough, after which previously recoverable content becomes unavailable. Record acquisition times, reboot history and lock state, and treat a device that has just been seized as a perishable source.
Handling a device in the field
Collection discipline starts the moment a device is touched: isolate it from networks to prevent remote wipe, keep it charged, avoid unnecessary interaction, and document every action with operator, time and method. Faraday bags and airplane mode both have caveats â a device removed from a bag reconnects and may sync or delete, so decide the network policy deliberately rather than by habit.
Authority and privacy travel with the evidence. Confirm the scope covers the device and the account, be aware that personal data belonging to third parties may be captured incidentally, and record chain of custody for the handset, the extraction files and every derived working copy. On corporate devices, confirm what policy employees were actually told, because a consent question answered wrongly contaminates everything downstream.
Common Mistakes
Reaching for physical extraction by default
Fix: Choose the shallowest level that answers the case questions and justify anything deeper.
Ignoring cloud and account sources
Fix: Check synced data first; it is often faster, cheaper and equally probative.
Working directly on a device backup
Fix: Copy first, hash the copy, and leave the original untouched.
Analyzing a database without its WAL files
Fix: Preserve and process write-ahead logs, or most deleted rows stay invisible.
Forgetting that lock state and reboots change recovery odds
Fix: Record device state and times at seizure and treat the handset as perishable.
Best Practices
- Record device identity, lock state and network state before collection.
- Match extraction depth to the evidence the case actually requires.
- Hash acquisitions before any parsing or analysis begins.
- Preserve container databases together with their journals and logs.
- Document authority, scope and every custody transfer for device and files.
Key Takeaways
- Extraction depth trades completeness against risk; shallowest sufficient is the rule.
- Cloud-synced data frequently reaches the same evidence faster than the handset does.
- iOS protection classes mean a device's lock and reboot state decide what is recoverable.
- Deleted mobile data usually survives in WAL files and unallocated blocks, not in the live database.
- Network isolation and charge management are evidentiary controls, not conveniences.
- Chain of custody applies to the handset and to every derived copy.