Sem 7

Acquisition and Handling

Deck: Acquisition and Handling. Mobile device components (casing, screen, ports, SIM/eSIM, SD card, logic board), NAND and RAM with dumpsys, Android FDE and FBE (CE and DE), BFU vs AFU, secure boot, FRP, locked bootloaders, TEE, forensic image types and file storage formats.

This deck covers what an examiner must know about the phone hardware and its security before acquiring data. The theme: device state (unlocked, AFU, BFU) decides what you can extract.

Mobile Device ComponentsSearch on YouTube

CasingSearch on YouTube

  • Knowledge of the casing is essential in case of chip-off.
  • Apple controls both hardware and software for its devices (non-removable casing).
  • Android devices come from many manufacturers, so they are more likely to have removable casings.

Display ScreenSearch on YouTube

  • If the device cannot keep power or cannot power on, the battery may need replacing. That needs the display screen removed.
  • If the screen is faulty it must be replaced. Most forensic tools (Magnet AXIOM, Magnet GRAYKEY, Magnet VERAKEY, Cellebrite) need the examiner to respond to on-screen prompts during extraction.

Data Ports and Power Supply PortsSearch on YouTube

  • Identify which cables (USB Type A, Type B, micro USB, Type C) are needed for data extraction, or to keep the device powered after seizure.
  • If the device is on, keep it charged so it does not shut down. This maximises the data that can be recovered.

SIM vs eSIMSearch on YouTube

A SIM stores the phone number, security keys, and on older cards sometimes text messages and contacts. What it holds depends on the device, network provider and the SIM itself.

Data stored on SIMDetailsNotes
ICCID (Integrated Circuit Card Identifier)Unique serial number of the SIMIdentifies the SIM card itself
IMSI (International Mobile Subscriber Identity)Identifies the subscriber on the networkTied to the network account
Phone number (MSISDN)Stored on some SIMs, not alwaysSometimes managed by the network, not on the SIM
Authentication keys (Ki)Used with IMSI for network authenticationHighly sensitive; used in cloning
SMS messagesStored on older SIMs (about 20 to 30 texts)Modern phones store SMS in device memory
ContactsName/number pairs (about 250)Modern devices store in phone memory or cloud
Service-related dataOperator-specific apps, preferred network listsFor example SIM Toolkit applications
Location infoLast known Location Area Identity (LAI)Used by the network for routing

eSIM cards are digital SIMs bought online from network providers. They cannot be physically removed; they must be detached from the device in software.

  • One device can have more than one phone number. Newer iPhones support up to eight eSIMs, but only two phone numbers at a time.
  • Both SIM and eSIM contain an ICCID. The network provider uses it to identify each user and which network and country code they belong to.
  • Do not confuse ICCID with IMEI (International Mobile Equipment Identifier). IMEI identifies the device, not the SIM.
  • ICCID is usually 18 to 22 digits long. IMEI is around 15 digits.
ICCIDIMEI
IdentifiesSIM card / subscriber's networkHandset (device)
Length18 to 22 digitsAbout 15 digits

SIM and BiometricsSearch on YouTube

Why are SIM cards linked to biometric functions on some devices? In some mobile banking, government ID and biometric verification flows, a secure operation needs both biometrics and the SIM.

Example flow: the user starts a secure action (mobile payment, SIM-based OTP signing). The TEE asks for biometric authentication. On success, the TEE grants temporary access to the SIM. The SIM runs the cryptographic operation and returns the result.

Forensic consequences of removing the SIM:

  • Some exploits become unavailable. For example, a biometric unlock with Magnet GRAYKEY will not work if the physical SIM was removed before imaging.
  • If the device was seized unlocked or recently unlocked (AFU), biometrics may still bypass the lock screen without the passcode.
  • The SIM's presence (with the correct PIN or registered network) is part of the trust chain for Face Unlock and Fingerprint Unlock.
  • Removing the SIM can force a lock state change, which disables biometric unlock.
  • It can trigger a reboot or require the passcode, so biometric bypass becomes impossible.
  • On many devices biometric unlock is disabled after reboot until a passcode/PIN is entered, or the correct SIM is detected.

Do not remove the SIM to "cut off" the phone. It can disable biometric unlock and push the phone to a passcode-only state. Use Airplane Mode or a Faraday bag instead.

SD Card and Emulated SD CardsSearch on YouTube

  • SD cards can be removed and examined separately. But if device encryption is on, it also applies to the SD card. Examined alone, the card may appear empty. This can indicate that it is encrypted.
  • In that case, examine the SD card inside the device, where it is unencrypted.
  • Emulated SD cards partition the internal storage. They create a designated storage area on the device that acts as an SD card.

Logic BoardSearch on YouTube

  • Connects the other elements: volatile memory, GPU, CPU and cryptographic engines, so they can communicate.
  • Without a working logic board the device cannot power on, cannot access RAM and internal memory, and cannot run even simple instructions such as launching apps.
  • Recognising the logic board helps with advanced acquisition such as JTAG (Joint Test Action Group), where the examiner connects directly to the board to recover data.

Mobile Device MemorySearch on YouTube

A phone has two built-in memory types:

MemoryTypeHolds
Internal storage (NAND)Non-volatile flashPrimary storage: downloaded apps, user data, file system data
RAMVolatileWorks with the SoC. Holds any app, user data or OS in use while powered on, including decryption keys, and process memory
  • iOS process memory can recover snippets of web-related information, SMS or iMessage, and email. It is only available on supported AFU devices or a Full File System extraction.
  • Android has a similar feature called Dumpsys, acquired in a Quick Image. Dumpsys is part of the live data and holds slightly different information from iOS process memory.
  • Dumpsys can contain processor usage of running apps, Wi-Fi information, user information (number of users on the device), and battery status.
  • Process memory or Dumpsys helps Incident Response: running processes reveal extra artifacts and device activity.

Dumpsys Use CasesSearch on YouTube

Use caseRelevant dumpsys serviceWhat you can get
Identify running malicious processesdumpsys activity processes / dumpsys meminfoPID, process name, UID, memory usage, foreground/background state
Network forensicsdumpsys connectivity / dumpsys netstatsActive network interfaces, mobile/Wi-Fi state, last connected SSIDs, data usage per UID
Check app permission misusedumpsys package <packagename>Permissions granted/denied, app ops history
Detect abnormal wake locksdumpsys powerApps/services preventing sleep (common in spyware)
Track suspicious SMS or call activitydumpsys telephony.registryCurrent network state, last dialed/received numbers, cell info
Location forensicsdumpsys locationLast known GPS/network location, active location providers
Analyse device unlock patternsdumpsys trust / dumpsys deviceidleUnlock events, trust agents, doze mode status
Clipboard snooping detectiondumpsys clipboardCurrent clipboard content and history (some versions)
System log eventsdumpsys batterystats / dumpsys alarmApp wake events, scheduled alarms, wakeup triggers
adb shell dumpsys location            # last known location
adb shell dumpsys package com.example.app   # permissions of one app

Understanding EncryptionSearch on YouTube

  • With Android 5, Google tried to enable encryption by default on all devices. Devices with default encryption performed poorly.
  • Google reversed the decision, and Android 5 shipped to most devices without default encryption.
  • Every device shipped with Android 6 or higher has encryption by default.

Android Full-Disk Encryption (FDE)Search on YouTube

  • Implemented in Android 5.0. Based on dm-crypt.
  • A 128/256-bit random key is generated when encryption is enabled.
  • This key encrypts all user data partitions (/data).
  • The master key is itself stored encrypted with a key derived from the user's PIN/password/pattern.
  • If the passcode is not entered, the device does not fully boot. Alarms, SMS/MMS and calls do not work until the passcode is entered.

FDE forensic implications

  • Acquired in BFU (Before First Unlock): /data is inaccessible; only encrypted blocks are visible.
  • Acquired in AFU (After First Unlock): /data is decrypted in memory. Tools such as ADB, Magnet and UFED may get a decrypted file-system-level image.

File Based Encryption (FBE)Search on YouTube

  • Under FDE many system functions were unavailable until the lock code was entered. Android created Direct Boot to fix this.
  • Direct Boot keeps some OS functions available after boot but before the user unlocks the handset.
  • Google Pixel phones introduced FBE in 2016. It is available on many devices running Android 7 or higher.
  • FBE encrypts each individual file and file path, not the whole memory container.
  • Each user has two storage locations:
StorageProtected byDecrypted whenExamples
Device Encrypted (DE)Device-level keyAfter boot, before credentials are enteredPhone calls, SMS for OTPs, alarms, Find My Device
Credential Encrypted (CE)User's credentialsOnly after full boot and the lock code is enteredMost user data: WhatsApp, photos, app databases

DE = Device = Day one (available right after boot). CE = Credential = needs the Code.

  • Several folders are duplicated with a _ce or _de suffix. The suffix shows at which point of startup and authentication the area is decrypted.
  • Examiners can extract data from _de areas without the passcode.

FBE forensic implications

  • At boot (BFU): only DE data is available. This is very limited: system logs, alarms, notifications, some messages.
  • After unlock (AFU): DE and CE data are both accessible.
  • In BFU the investigator may get only partial data. In AFU richer acquisition is possible, but it still needs privilege escalation/root or vendor exploits (GrayKey, Cellebrite, Magnet AXIOM).
  • Reboots hurt investigations more. A reboot returns the device to BFU, and much CE data becomes inaccessible without the PIN.
FDEFBE
IntroducedAndroid 5.0Pixel 2016, Android 7+
Unit encryptedWhole /data partition (dm-crypt)Each file and file path
Before unlockPhone does not fully boot (no alarms, calls, SMS)Direct Boot: DE storage works
Key128/256-bit master key, wrapped by key from PIN/password/patternPer-file FEK, wrapped by keys from PIN + TEE secret
BFU acquisitionOnly encrypted blocksOnly DE data
AFU acquisitionDecrypted /dataDE + CE data

FDE vs FBE with CE/DE and BFU/AFU is asked in almost every paper (mid sem 2025, end sem 2025, mid sem 2026). Learn the table above.

Why Chip-off No Longer WorksSearch on YouTube

Both iOS and Android now use file-based encryption. Files are decrypted only after certain conditions are met during boot. So chip-off is no longer viable. Why:

  • Each file is encrypted with its own File Encryption Key (FEK).
  • FEKs are protected by higher-level keys derived from the user's PIN/password and a hardware-bound secret stored in the TEE.
  • The hardware secret never leaves the TEE and is not stored in NAND. A chip read off the board has only ciphertext.

In older versions, Android fragmentation allowed exploits giving direct memory access through EDL (Emergency Download Mode) or similar built-in modes. Since FBE in Android 7, these are less useful.

Security Features that Block Physical ImagingSearch on YouTube

Secure boot, FRP locks, locked bootloaders and tamper-resistant chips all reduce the examiner's ability to get physical memory images.

Secure BootSearch on YouTube

  • What it does: verifies the integrity and authenticity of the bootloader and OS using cryptographic signatures.
  • Impact on forensics: prevents booting into custom recovery or forensic tools (for example custom recovery images for memory acquisition). Any unauthorised change to boot components halts the boot, so examiners cannot load memory acquisition tools.

Factory Reset Protection (FRP)Search on YouTube

  • Prevents unauthorised access after a factory reset unless the original Google account credentials are used.
  • Designed to stop a stolen or lost phone from being wiped and reused without the owner's permission.

Locked BootloadersSearch on YouTube

  • What it does: stops unauthorised firmware, custom ROMs or recovery tools from being flashed.
  • Impact on forensics: blocks custom kernels or acquisition tools (such as TWRP or custom ADB images) needed for physical extraction. Unlocking the bootloader often wipes user data, which destroys the evidence.
  • Rooting is harder: rooting needs a bootloader unlock, which wipes the device.
  • If the phone is already unlocked and has a custom recovery (TWRP), flashing Magisk through recovery does not wipe data. So you can root without data loss only if the bootloader is already unlocked.

How to Check if the Bootloader is UnlockedSearch on YouTube

Reboot into fastboot/bootloader mode (common keys: Power + Volume Down, varies by OEM), connect over USB and run:

fastboot oem device-info
# or
fastboot getvar unlocked
fastboot getvar all

Typical output:

(bootloader) Device unlocked: true     <- bootloader unlocked
(bootloader) Device unlocked: false    <- bootloader locked

From a running device, use the ADB shell:

adb shell getprop ro.boot.flash.locked          # 1 = locked, 0 = unlocked
adb shell getprop ro.boot.verifiedbootstate
  • Many devices show a "Bootloader Unlocked" warning at boot (yellow/orange screen).
  • Example, Pixel: "The bootloader is unlocked and software integrity cannot be guaranteed."

Tamper-Resistant Chips, Secure Enclave, TEESearch on YouTube

  • TEE (Trusted Execution Environment) / Secure Enclave: stores sensitive keys and enforces hardware-backed security policies.
  • Memory encryption keys are stored in the TEE or Secure Enclave and are not accessible by physical means.
  • Even if RAM is dumped, the key material is inaccessible, so the data stays unreadable.
  • No more direct RAM access: modern Android does not allow full access to /dev/mem or physical RAM without root.
MechanismWhat it doesWhy it blocks acquisition
Secure BootVerifies signatures of bootloader and OSCannot boot custom recovery or forensic images
FRPNeeds original Google credentials after resetReset device cannot be reused or accessed
Locked bootloaderBlocks flashing unsigned imagesTWRP/custom kernels cannot load; unlocking wipes data
TEE / Secure EnclaveHolds keys in hardwareChip-off or RAM dumps give no keys

Summary of Acquisition, Handling and EncryptionSearch on YouTube

The deck's own summary list:

  • Investigator preparation
  • Device handling considerations by first responders
  • Effect of hashes: PC vs mobile forensics
  • FDE vs FBE: CE and DE
  • TEE and Secure Enclave
  • Actively unlocked, AFU and BFU states
  • Consequences of rebooting or removing the SIM
  • Effect of secure boot, bootloader state and rooting the device
StateMeaningWhat you can get
Actively unlockedScreen unlocked, in useMost data; keep it awake
AFUUnlocked at least once since boot, now lockedCE keys in memory; rich extraction with tools/exploits
BFURebooted, passcode not entered yetOnly DE data (FBE) or encrypted blocks (FDE)

Types of Forensic ImagesSearch on YouTube

The deck's figure groups image types as nested boxes:

LevelTechniques
PhysicalChip-off, ISP / JTAG, Direct imaging
Logical (full file system)File System Extraction
Targeted (Quick)Agent extractions, Log captures, Backups, MTP
  • With file-based encryption, physical images are not acquired nearly as often.
  • Examiners now target a true "logical" image: a full file system image of all active files on the device.
  • A full file system needs elevated permissions or root. Often an exploit must be found and used.
  • Developers keep patching these exploits. This creates a constant "cat and mouse" game between analysts and devices.

File Storage Types in MobileSearch on YouTube

  • SQLite databases are the common storage container: SMS/MMS records, web history, contacts, call logs and third-party app data.
  • iOS also uses plist (property list) files, mostly for preference data across the file system. There are XML-encoded plists (human readable) and binary plists (compact and efficient, not easily readable).
  • Android uses XML or JSON files instead of plists. Both are human-readable text and can hold a lot of preference data.

Deleted Data in ImagesSearch on YouTube

  • A full file system image does not always recover deleted files, only deleted records (metadata).
  • SQLite databases can return deleted records, but only if the parsing tool knows how the data is structured and what to look for.
  • Deleted pictures or videos are unlikely to be recovered from a file system image alone.
  • In targeted or "quick" images, most tools query only active information in the database. Deleted information may still be on the device but not in the returned image.

Logical vs Full File System in AXIOMSearch on YouTube

  • A Logical Image in AXIOM Process is a true logical extraction: it obtains all available files and folders.
  • Full or logical extraction is only available when the device has privileged access (rooted or jailbroken).
  • For a PIN-locked Android or iOS device, Magnet GRAYKEY or Magnet VERAKEY can deploy advanced tactics to acquire various levels of data, including a Full File System extraction.
  • Full File System extractions hold far more: location data, third-party app data, and user activity including health data.
Data available from an iOS Full File SystemData available from an Android Full File SystemData available from a Quick Image
KnowledgeC databaseThird-party application data and installed applicationsDevice date and time UTC
Third-party applicationsApplication and accounts informationDevice properties incl. SIM and time zone
File system eventsWi-Fi and Bluetooth profilesUsage statistics (app usage and movement)
Internet URL historyAndroid KeyStore (if applicable)Wi-Fi statistics
Network usageAndroid usage historyCopy of the SMS/MMS database
Application and account dataInternet URL history and web search historyCopy of the call log database
Screen Time appCalendar entries (Android/Google)Copy of the address book database
UsageApplication history and screenshotsMedia
Location metadataLocation metadata
NotesNotes
SMS/MMSSMS/MMS
Call logs and voicemailCall logs and voicemail
ContactsContacts
Multimedia filesEmail
+ Apple E-Mail, Apple Health, Apple's Significant LocationsMultimedia files

Lab Assignment 2 (Magnet AXIOM) works on a Quick Image and an iTunes-style backup. The quick image structure (ADB backup, agent data, live data, sdcard) is covered in L04, and the artifacts in L05.

Quick self-testSearch on YouTube

Differentiate ICCID and IMEI.

ICCID identifies the SIM card and is used by the network provider to identify the user, network and country code; it is 18 to 22 digits. IMEI identifies the device (handset) and is about 15 digits.

Name four items stored on a SIM card.

Any four: ICCID, IMSI, phone number (MSISDN, not always), authentication key Ki, SMS (about 20 to 30 on older SIMs), contacts (about 250), service data such as SIM Toolkit apps, last Location Area Identity (LAI).

What are the forensic consequences of removing the SIM from a seized phone?

The SIM is part of the trust chain for biometric unlock. Removing it can force a lock state change that disables biometrics, or trigger a reboot or passcode prompt. Exploits such as GrayKey's biometric unlock become unavailable.

An SD card examined on its own looks empty. Why, and what should you do?

Device encryption also applies to the SD card, so outside the device it may appear empty. Examine the card inside the device, where it is unencrypted.

What is Dumpsys and give two forensic uses.

Dumpsys is Android live data acquired in a Quick Image. Examples: dumpsys activity processes to find malicious running processes; dumpsys location for last known location; dumpsys power to detect spyware wake locks.

Compare FDE and FBE.

FDE (Android 5.0, dm-crypt) encrypts all of /data with one 128/256-bit master key wrapped by a key from the PIN; the phone does not fully boot until the passcode is entered. FBE (Android 7+, Pixel 2016) encrypts each file; Direct Boot gives DE storage before unlock and CE storage after the lock code is entered.

What data is available in BFU and AFU state on an FBE device?

BFU: only DE data (system logs, alarms, notifications, some messages). AFU: DE and CE data. A reboot sends the device back to BFU.

Why is chip-off no longer viable on modern phones?

Each file is encrypted with its own FEK. FEKs are wrapped by keys derived from the user's PIN and a hardware secret stored in the TEE. That secret never leaves the TEE and is not in NAND, so the chip holds only ciphertext.

How do secure boot and a locked bootloader hinder acquisition?

Secure boot verifies signatures, so custom recovery or forensic images will not boot. A locked bootloader blocks flashing TWRP or custom kernels, and unlocking it usually wipes user data.

How can you check whether the bootloader is unlocked?

In fastboot: fastboot oem device-info or fastboot getvar unlocked (Device unlocked: true/false). Over ADB: getprop ro.boot.flash.locked (1 locked, 0 unlocked) and getprop ro.boot.verifiedbootstate. Many phones also show an orange/yellow warning at boot.

  • Hardware matters: casing for chip-off, a working screen for tool prompts, the right cable and power to keep the phone on.
  • SIM holds ICCID (18 to 22 digits), IMSI, Ki, LAI; IMEI (about 15 digits) identifies the device. Removing the SIM can disable biometric unlock.
  • NAND is non-volatile primary storage; RAM is volatile and holds decryption keys. Android live data comes from dumpsys.
  • FDE (Android 5, dm-crypt, whole /data) vs FBE (Android 7+, per-file, Direct Boot, DE before unlock, CE after unlock).
  • BFU gives only DE data; AFU gives DE + CE. Reboots push the device back to BFU.
  • Secure boot, FRP, locked bootloaders and the TEE block physical imaging; unlocking the bootloader wipes data.
  • Image types: physical (chip-off, JTAG/ISP), logical full file system (needs root/exploit), targeted quick (agent, logs, backups, MTP).
  • Data lives in SQLite, plists (iOS: XML or binary) and XML/JSON (Android); deleted records may be recoverable, deleted files rarely.