Skip to content
Tutorials Center
My learning

Topics

Lesson 23 of 36 ยท Mobile and Cloud Forensics

Mobile Forensics Fundamentals

Learn how phones are examined: logical, file system and physical acquisition, encryption and lock screens, key artifacts on Android and iOS, and how to preserve a device.

A smartphone holds messages, photos, location history, app data, contacts and a record of daily life. That makes it one of the richest sources of evidence, and one of the most sensitive. Mobile forensics is the discipline of acquiring and analyzing data from phones and tablets in a way that preserves it and respects the law. It differs from computer forensics because phones are encrypted by default, change state when powered, and are designed to resist access.

This lesson explains the concepts and workflow. Commercial acquisition tools cannot run in a browser, so tool output is shown as read-only illustration. You will not be taught to bypass a lock on a device you do not own: examining a phone requires legal authority (consent, a warrant or an employer policy covering the device).

Why phones are different

  • Encryption at rest. Modern Android and iOS devices encrypt user data with keys tied to the hardware and the passcode. Without the unlock secret, a copy of the storage is just noise.
  • Always connected. A powered phone can receive a remote wipe command or new messages that overwrite evidence.
  • Fast change. Apps rewrite databases constantly, and automatic cleanup removes old data.
  • Diversity. Hundreds of models and OS versions with different security features, so techniques are device-specific.

Acquisition types

Type What you get Typical limits
Manual (screen capture) What you see Slow, incomplete, last resort
Logical Data the OS gives through backup or sync interfaces: contacts, messages, call logs, some app data Misses deleted data and many app files
File system A copy of accessible files and folders, including app databases and caches Needs an unlocked device or privileged access
Physical A bit-for-bit image of storage Often impossible on encrypted modern devices; even when possible the data is encrypted
Cloud Data from the account (backups, photos, synced messages) Needs lawful access to the provider; see cloud forensics
flowchart LR
  A["Device seized"] --> B["Isolate from network"]
  B --> C["Document state, photos, IDs"]
  C --> D["Acquire: logical / file system"]
  D --> E["Hash and verify"]
  E --> F["Analyze a copy"]

Isolation first, then documentation, then the least intrusive acquisition that works.

First response at the scene

  1. Do not power the device off or on unless instructed: a running phone may hold keys in memory that are lost on reboot, while a charging, connected phone may receive a wipe command.
  2. Isolate from networks. A Faraday bag or container blocks radio signals. Airplane mode alone may be insufficient or alter data; follow your lab policy and note what you did.
  3. Photograph the screen, the lock state and the physical condition. Record make, model, IMEI and the time.
  4. Keep it charged if the policy allows, so it does not shut down and re-lock.
  5. Label, bag and log the item with the chain of custody (evidence manifests show the same discipline for files).

Key artifacts

Source Android example iOS example
Contacts and calls contacts2.db, call log provider AddressBook, CallHistory databases
Messages mmssms.db, app databases (WhatsApp, Signal) sms.db, app containers
Location Google Maps timeline, app caches, Wi-Fi history Significant locations, Cache.sqlite entries
Photos DCIM with EXIF (GPS, time, camera) Photos library plus metadata
Browser Chrome History, cookies Safari history databases
Installed apps and usage Package manager data, usage stats App list, KnowledgeC / Biome records

Most are SQLite databases (see analyzing app databases). Timestamps use different epochs, which is why careful conversion matters.

Timestamps and epochs

Phones store time in several formats. Converting them correctly is a classic source of mistakes.

Python Convert mobile timestamp formats

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

All four land on the same instant, 12 November 2023 14:03 UTC in this sample, once the right epoch is applied. If your converted dates are decades off, the epoch is wrong.

Detecting file types by signature

Photos and attachments may lack extensions. A file's first bytes (its magic number) identify the real type.

Python Identify files by magic bytes

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

notes.txt is really a PNG, a mismatch worth noting in a report.

Phones contain private information about many third parties (every contact and chat partner). Examine only what the authority covers, record the scope, and keep unrelated data confidential. See legal frameworks and ethics.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Which acquisition type copies accessible files and folders, including app databases?

    File system acquisition captures the file tree; logical only gets what OS interfaces expose.
  2. 2. Why isolate a seized phone from the network?

    Remote wipe commands and incoming messages can destroy or alter evidence.
  3. 3. Apple Cocoa timestamps count seconds from which date?

    Cocoa/Core Data time starts at 2001-01-01 UTC.
  4. 4. A file named notes.txt starts with the bytes 89 50 4E 47. What is it?

    89 50 4E 47 is the PNG signature, so the extension is misleading.

Summary

  • Phones are encrypted, connected and constantly changing, so first response matters.
  • Acquisition ranges from manual and logical to file system, physical and cloud.
  • Isolate, document, then acquire with the least intrusive method that works.
  • Most artifacts are SQLite databases with varied timestamp epochs.
  • Always work within legal authority and limit exposure of third-party data.

Next: Analyzing App Databases with SQLite