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.
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.
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.
- 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.
| File / EF identifier | Name | Contents | Application |
|---|---|---|---|
| EF_ICCID (2FE2) | Card serial number | 20-digit ICCID of the physical card | MF (universal) |
| EF_IMSI (6F07) | Subscriber identity | 15-digit IMSI number | SIM / USIM |
| EF_MSISDN (6F40) | Phone number | Subscriber MSISDN (the diallable number) | SIM / USIM |
| EF_SMS (6F3C) | SMS store | Fixed records: status byte + message body (up to 176 bytes each) | SIM / USIM |
| EF_ADN (6F3A) | Contacts | Abbreviated dialling numbers (name + number) | SIM / USIM |
| EF_LND (6F44) | Last numbers dialled | Recent outgoing call numbers | SIM |
| EF_LOCI (6F7E) | 2G/3G location | LAI (MCC + MNC + LAC) + location update status | SIM / USIM |
| EF_EPSLOCI (6FE3) | LTE location | Tracking Area Identity (TAI) for 4G/LTE networks | USIM |
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.
Legal frameworks and admissibility
SIM card evidence must be acquired under lawful authority and with documented chain of custody to be admissible. The legal basis varies by jurisdiction but the requirements are consistent: the examiner must be authorised to possess and examine the device, the acquisition method must be documented and reproducible, and the integrity of the evidence must be demonstrable through hashing. Courts in most jurisdictions accept forensic tool output from named commercial tools when the examiner can explain the tool's function and confirm the hash values match.
In India, digital evidence from SIM cards is admitted under the Bharatiya Sakshya Adhiniyam 2023 (BSA), which replaced the Indian Evidence Act 1872. Section 63 of the BSA addresses electronic records and requires a certificate from the person responsible for the device attesting to its proper functioning. Searches and seizures involving SIM cards are conducted under the Bharatiya Nagarik Suraksha Sanhita 2023 (BNSS), which replaced the CrPC. The Digital Personal Data Protection Act 2023 is relevant when examination involves personal data beyond the scope of the investigation.
In the United States, SIM examination is governed by the Fourth Amendment's warrant requirement for digital evidence, reinforced by Riley v. California (2014), which held that police must obtain a warrant to search the digital contents of a mobile phone incident to arrest. A SIM card is part of the phone's digital contents. In the United Kingdom, the Police and Criminal Evidence Act 1984 (PACE) and the Investigatory Powers Act 2016 govern examination of devices and compelled disclosure from operators. In the European Union, member state implementations of the European Investigation Order framework apply for cross-border cases.
Documentation requirements are the same across jurisdictions: the examiner records the make and model of the SIM reader, the software version, the date and time of acquisition, the ICCID and IMSI of the card, the hash values of the acquired data, and any errors or anomalies encountered during acquisition. This record forms part of the chain of custody and supports the examiner's testimony if the acquisition method is challenged.
Which Elementary File on a SIM card would an examiner read to determine the unique identity of the subscriber account on the network?
Key Takeaways
- A SIM or USIM card stores subscriber identity (IMSI, ICCID), communication history (EF_SMS, EF_ADN, EF_LND), and network location history (LOCI, EPSLOCI) in a standardised hierarchical file system that forensic tools read via read-only APDU commands over the ISO 7816 interface.
- Deleted SMS records are recoverable when the status byte has been set to 00 but the message body in the same record slot has not yet been overwritten by a new message. The 3GPP PDU format encodes the message text, timestamps, and participant numbers within those 175 bytes.
- EF_LOCI (for 2G and 3G) and EF_EPSLOCI (for LTE) store the Location Area Identity or Tracking Area Identity from the most recent network registration. These files record only the last location update, not a history, and require the operator's cell site database to map to a geographic area.
- The authentication key Ki cannot be read through any standard APDU interface; the card operating system enforces this regardless of PIN status. SIM cloning requires physical chip-level access to extract Ki, and a cloned card with incorrect Ki will fail network authentication.
- Admissibility requires documented lawful authority, a named and versioned acquisition tool, hash verification of the acquired data, and a chain-of-custody record. India's Bharatiya Sakshya Adhiniyam 2023, the US Fourth Amendment warrant requirement from Riley v. California, the UK's PACE, and EU member state frameworks all require these conditions.
What data is stored on a SIM card that is relevant to a forensic investigation?
What is the difference between a SIM card and a USIM card?
How do forensic tools read a SIM card without altering its contents?
What does LOCI data prove in a criminal investigation?
Can deleted SMS messages be recovered from a SIM card?
Test yourself on Mobile and Network Forensics with free, timed mocks.
Practice Mobile and Network Forensics questionsSpotted an error in this page? Report a correction or read our editorial standards.