Skip to content

SIM Card Forensics

A SIM or USIM card stores a structured file system containing subscriber identity, contact records, SMS messages, and network location history. Forensic examination of these cards can establish a device's network identity, recover deleted messages, and place a subscriber within a cell network at a specific time.

By Reviewed by Subhrant Jha

Last updated:

A SIM card is a small smart card that stores subscriber identity and network-related data in a structured file system defined by standards from ETSI and 3GPP.

When a forensic examiner reads a SIM card, they can recover the International Mobile Subscriber Identity (IMSI) that uniquely identifies the account on the network, contact entries stored as Abbreviated Dialling Numbers (ADN), short message service records including deleted SMS, and the Location Information file (LOCI) that records the last network location area where the card registered.

This data can link a physical card to a specific subscriber account, reconstruct communication history, and place the card within a cell network zone at a known time.

SIM cards operate independently of the handset operating system. A SIM can be removed from one phone and placed in another without altering its stored data. This means the card carries a forensic record that is separate from the device: evidence on the SIM may survive a factory reset of the handset, and evidence from a SIM recovered at a scene can be examined even when the original handset is missing.

Forensic tools communicate with the card over the ISO 7816 electrical interface using Application Protocol Data Units (APDUs), the same command protocol the card uses during normal network registration.

Modern cards are physically UICC (Universal Integrated Circuit Card) hardware that host multiple card applications. A UICC may run both a SIM application (for 2G GSM compatibility) and a USIM application (for 3G and 4G networks), each with its own file system and Elementary Files.

Forensic acquisition must address both application environments. The USIM extends the SIM file structure with additional files for LTE location data (EPSLOCI), IP multimedia services, and expanded phonebook entries. Understanding which file paths to target, and what each file contains, is the core technical skill in SIM card forensics.

MF 3F00 (Master File root)All applications branch from here. EF_ICCID (2FE2) at MF level identifies the physical card.DF_GSM (7F20)DF_TELECOM (7F10)ADF_USIMEF_IMSI (6F07) - 15-digitsubscriber identityEF_SMS (6F3C) - SMS records,deleted recoverableEF_LOCI (6F7E) - Last 2G/3Glocation area (LAI)EF_ADN (6F3A) - Contactnames and numbersEF_LND (6F44) - Last numbersdialledEF_MSISDN (6F40) -Subscriber phone numberEF_EPSLOCI (6FE3) - Last LTElocation area (TAI)Dedicated File (directory)Location evidenceRecoverable deleted dataCommunication or identity data
The SIM file system organises all forensically recoverable data under three dedicated files: DF_GSM for subscriber identity and 2G location, DF_TELECOM for contact and call history, and ADF_USIM for 4G location and extended data. Each Elementary File (EF) has a fixed file identifier that forensic APDU commands target directly.

By the end of this topic you will be able to:

  • Identify the key Elementary Files on a SIM and USIM and state what forensically relevant data each contains.
  • Explain how forensic SIM readers communicate with a card using APDU commands without altering the card contents.
  • Describe how deleted SMS records can be recovered from EF_SMS and explain why recovery is not always possible.
  • Interpret LOCI and EPSLOCI data to determine the last registered network location area of a subscriber.
  • Explain the legal frameworks governing SIM card examination in India, the United States, the United Kingdom, and the European Union.
Key terms
IMSI
International Mobile Subscriber Identity. A 15-digit number stored in EF_IMSI on the SIM that uniquely identifies the subscriber account on the mobile network. The first three digits are the Mobile Country Code, the next two or three are the Mobile Network Code, and the remainder is the subscriber number within that network.
ICCID
Integrated Circuit Card Identifier. The serial number of the physical SIM card itself, stored in EF_ICCID. It identifies the card as a piece of hardware, independent of the subscriber account loaded onto it. Forensically useful for linking a physical card to a subscriber record held by the network operator.
EF_SMS
Elementary File for Short Message Service. A fixed-size record file on the SIM that stores SMS messages. Each record has a status byte (read, unread, sent, or free) and a message body. Records marked free after deletion often retain the original message content until the slot is overwritten.
LOCI
Location Information file (EF_LOCI on SIM, EF_LOCI and EF_EPSLOCI on USIM). Stores the Location Area Identity (LAI) last received from the network during a location update procedure. The LAI contains Mobile Country Code, Mobile Network Code, and Location Area Code, mapping the card to a geographic zone served by a group of base stations.
APDU
Application Protocol Data Unit. The command and response message format used to communicate with a smart card over the ISO 7816 interface. Forensic SIM readers issue read-only APDUs (SELECT to navigate the file system, READ RECORD or READ BINARY to retrieve file content) without issuing write commands that would alter the card.
UICC
Universal Integrated Circuit Card. The physical hardware platform for modern SIM cards. A UICC can host multiple card applications simultaneously: a SIM application for 2G compatibility, a USIM application for 3G and 4G, and others. Forensic acquisition must select and read each application's file system separately.

SIM and USIM File System Structure

A SIM card organises its data in a hierarchical file system with three node types. The Master File (MF) is the root, identified by file identifier 3F00. Dedicated Files (DFs) are directories that group related Elementary Files. Elementary Files (EFs) are the leaf nodes that contain actual data.

The GSM and 3GPP standards define which EFs must exist, their file identifiers, and their data format. A forensic examiner navigates this tree by sending SELECT APDUs with the file identifier, then READ commands to retrieve the contents.

The primary dedicated file for GSM data is DF_GSM (7F20) under the MF. The USIM application data lives under a separate Application Dedicated File (ADF_USIM), accessed by selecting the USIM application identifier rather than a file identifier.

Each application file system contains its own set of Elementary Files, and some data, such as the phonebook, may be stored under a separate dedicated file (DF_TELECOM at 7F10) shared across applications. A complete forensic acquisition reads all three regions: DF_GSM, DF_TELECOM, and ADF_USIM.

Scroll horizontally if needed to see the full table.

File / EF identifierNameContentsApplication
EF_ICCID (2FE2)Card serial number20-digit ICCID of the physical cardMF (universal)
EF_IMSI (6F07)Subscriber identity15-digit IMSI numberSIM / USIM
EF_MSISDN (6F40)Phone numberSubscriber MSISDN (the diallable number)SIM / USIM
EF_SMS (6F3C)SMS storeFixed records: status byte + message body (up to 176 bytes each)SIM / USIM
EF_ADN (6F3A)ContactsAbbreviated dialling numbers (name + number)SIM / USIM
EF_LND (6F44)Last numbers dialledRecent outgoing call numbersSIM
EF_LOCI (6F7E)2G/3G locationLAI (MCC + MNC + LAC) + location update statusSIM / USIM
EF_EPSLOCI (6FE3)LTE locationTracking Area Identity (TAI) for 4G/LTE networksUSIM

Not all EFs are populated on every card. A card that has never received an SMS will have EF_SMS present but empty. A card used only on LTE networks may have LOCI data that reflects a 4G location update stored in EPSLOCI rather than the 2G LOCI file. The examiner should read all defined EFs and note which are empty, which are populated, and whether the data is consistent with the card's apparent history.

Forensic Acquisition Methods and Tools

Forensic SIM acquisition uses a hardware reader that provides electrical power and clock signals to the card through the ISO 7816 contact interface. The reader connects to an examination workstation via USB, and the acquisition software sends APDU commands to the card to select and read each file.

The process is non-destructive: read-only APDUs do not alter any file on the card. Most tools generate a SHA-256 or MD5 hash of all acquired data immediately after acquisition, creating a verifiable record that the card contents were not modified during examination.

Common forensic SIM tools include Cellebrite UFED (which includes a dedicated SIM reader), MSAB XRY, Oxygen Forensic Detective, and AccessData's MPE+. Specialised SIM-only tools include the Susteen DataPilot and the open-source pySIM library, which allows scripted APDU interaction for research purposes. Commercial tools typically provide automated file-system traversal, automatic decoding of standard EF formats, and reporting templates. Open-source tools require the examiner to decode raw bytes against the standard manually, but offer full transparency into what commands were sent.

Some files on a SIM, including EF_Ki (the authentication key), are protected by the card operating system and cannot be read via the standard APDU interface regardless of PIN status. EF_Ki is write-only from the perspective of external readers: the card uses it internally for authentication but never exposes its value. Recovering Ki requires destructive chip-level techniques outside normal forensic SIM acquisition.

Recovering SMS Records and Contacts

EF_SMS is a fixed-record file: it contains a set number of records, each 176 bytes, regardless of how many messages are stored. Each record begins with a one-byte status field. Status values defined in 3GPP TS 31.102 include: 01 (MT read), 03 (MT unread), 05 (MO sent), 07 (MO not sent), and 00 (free or deleted).

When a handset deletes an SMS, it writes 00 to the status byte of that record. The 175 bytes of message data in the record body are usually not zeroed; they remain on the card until a new incoming message is assigned to that record slot.

Forensic tools recover deleted SMS records by reading all EF_SMS records regardless of status byte, and flagging those with status 00 that contain non-zero data in the message body.

The recovered bytes can be decoded using the SMS PDU format defined in 3GPP TS 23.040: the PDU encodes the service centre address, the originating or destination number, the timestamp, and the message text in either GSM 7-bit encoding or UCS-2 Unicode. Many commercial tools decode PDUs automatically. Examiners working with raw output need to parse the PDU fields manually or use a PDU decoder utility.

Contact entries in EF_ADN follow a similar record structure. Each ADN record stores an alphanumeric name (up to 10 characters in the basic format, more in the extended phonebook) and a phone number in BCD-encoded format. Deleted contact records also retain their data until overwritten. EF_LND stores the last numbers dialled in the same format as ADN, typically with a smaller record count. LND recovery follows the same method as ADN: read all records, decode non-empty free-status entries.

Location Data: LOCI and EPSLOCI

EF_LOCI stores the Location Area Identity (LAI) that the network last sent to the SIM during a location update procedure. A location update occurs whenever the handset moves into a new Location Area, registers on the network after being powered on, or completes a periodic registration timer.

The LAI is a 5-byte structure: 2 bytes for the Mobile Country Code and Mobile Network Code combined (in BCD format), and 2 bytes for the Location Area Code. EF_LOCI also contains a byte indicating the location update status (updated, not updated, or PLMN not allowed).

EF_EPSLOCI is the LTE equivalent, used when the USIM registers on a 4G network. It stores the Tracking Area Identity (TAI) rather than an LAI. The TAI has the same MCC and MNC components but uses a Tracking Area Code instead of a Location Area Code.

Tracking Areas on LTE networks are typically smaller than 2G Location Areas, meaning EPSLOCI data can provide tighter geographic resolution than LOCI. Both files store only the most recent location update: they are not logs. A card that has registered on the network thousands of times still holds only the single most recent LAI or TAI.

Interpreting LOCI data requires mapping the Location Area Code to a geographic area using the network operator's internal cell site database. Operators in most jurisdictions are required to retain and disclose this data in response to lawful process. In India, the Information Technology Act 2000 and the Telecommunications Act 2023 provide the legal basis for compelling operators to provide location records.

In the United States, cell site location information requires a warrant under the Supreme Court's ruling in Carpenter v. United States (2018). The UK's Investigatory Powers Act 2016 and the EU's national implementations of Directive 2002/58/EC govern operator disclosure in their respective jurisdictions.

The forensic value of LOCI is not the location of the device at the time of an offence: LOCI only records the last update, which may have occurred well before or after the relevant event. Its value is placing the card in a network zone at some point before the next location update, and confirming the card was active on a network, which contradicts claims that the device was switched off or the SIM was removed.

Authentication Parameters and Ki

The SIM's primary cryptographic function is authenticating the subscriber to the network. The card stores a secret authentication key (Ki) in a protected EF. During authentication, the network sends a random challenge (RAND) to the handset, which passes it to the SIM.

The SIM uses Ki and RAND to compute a Signed Response (SRES) using the A3 algorithm, and returns SRES to the network. The network performs the same computation independently; if the values match, authentication succeeds. The SIM also computes a session encryption key (Kc) using the A8 algorithm.

Ki is never readable via the APDU interface. The card operating system enforces this: SELECT and READ commands against EF_Ki return a security status error. Recovering Ki requires physical chip-level analysis, which is destructive and outside the scope of standard forensic SIM examination. The forensic implication is that a cloned SIM, one that shares the same IMSI but has a different Ki, will fail network authentication unless the attacker also obtained Ki through other means.

The USIM extends authentication for 3G and 4G networks using the AKA (Authentication and Key Agreement) protocol, which adds mutual authentication: the USIM also verifies the network's identity before completing the exchange.

The relevant EFs for 3G and 4G authentication are in ADF_USIM and include EF_KEYS and EF_KEYSPS, which store the current session keys. These files can be read after successful PIN authentication and reveal the active Kc and CK/IK session keys, which are relevant in cases involving real-time interception claims.

Check Your Understanding

Question 1 of 4· 0 answered
Which Elementary File on a SIM card would an examiner read to determine the unique identity of the subscriber account on the network?

Test yourself on Mobile and Network Forensics with free, timed mocks.

Practice Mobile and Network Forensics questions

Found this useful? Pass it along.