SIM cards store network-specific information used to authenticate and identify subscribers on the network. The most important of these are the ICCID, IMSI,
authentication key (Ki), local area identity (LAI) and operator-specific emergency number. The SIM also stores other
carrier-specific data such as the SMSC (
Short Message service center) number, service provider name (SPN), service dialing numbers (SDN), advice-of-charge parameters and value-added service (VAS) applications. (Refer to GSM 11.11.) SIM cards can come in various data capacities, from to at least . Its layout is based on
ISO/IEC 7812. According to E.118, the number can be up to 19 digits long, including a single check digit calculated using the
Luhn algorithm. However, the GSM Phase 1 defined the ICCID length as an opaque data field, 10 octets (20 digits) in length, whose structure is specific to a
mobile network operator. The number is composed of three subparts: • Issuer identification number (IIN) • Check digit • Individual account identification Their format is as follows.
Issuer identification number (IIN) • Maximum of seven digits: • Major industry identifier (MII), 2 fixed digits,
89 for telecommunication purposes. •
Country code, 2 or 3 digits, as defined by
ITU-T recommendation
E.164. •
NANP countries, apart from Canada, use
01, i.e. prepending a zero to their common calling code +1 •
Canada uses
302 •
Russia uses
701, i.e. appending 01 to its calling code +7 •
Kazakhstan uses
997, even though it shares the calling code +7 with Russia • Issuer identifier, 1–4 digits. • Often identical to the
Mobile country code (MCC). ITU-T also publishes complete lists: as of August 2023, the list issued on 1 December 2018 was current, having all issuer identifier numbers before 1 December 2018.
International mobile subscriber identity (IMSI) SIM cards are identified on their individual operator networks by a unique
international mobile subscriber identity (IMSI).
Mobile network operators connect mobile phone calls and communicate with their market SIM cards using their IMSIs. The format is: • The first three digits represent the
Mobile country code (MCC). • The next two or three digits represent the
Mobile network code (MNC). Three-digit MNC codes are allowed by E.212 but are mainly used in the United States and Canada. One MCC can have both 2 digit and 3 digit MNCs, an example is 350 007. • The next digits represent the
Mobile identification number (MSIN). • Normally there are 10 digits, but can be fewer in the case of a 3-digit MNC or if national regulations indicate that the total length of the IMSI should be less than 15 digits. • Digits are different from country to country.
Authentication key (Ki) The Ki is a 128-bit value used in authenticating the SIMs on a
GSM mobile network (for USIM network, the K is still needed but other parameters are also needed). Each SIM holds a unique Ki assigned to it by the operator during the personalisation process. The Ki is also stored in a database (termed
authentication center or AuC) on the carrier's network. The SIM card is designed to prevent someone from getting the Ki by using the
smart-card interface. Instead, the SIM card provides a function,
Run GSM Algorithm, that the phone uses to pass data to the SIM card to be signed with the Ki. This, by design, makes using the SIM card mandatory unless the Ki can be extracted from the SIM card, or the carrier is willing to reveal the Ki. In practice, the GSM cryptographic algorithm for computing a signed response (SRES_1/SRES_2: see steps 3 and 4, below) from the Ki has certain vulnerabilities that can allow the extraction of the Ki from a SIM card and the making of a
duplicate SIM card. Authentication process: • When the mobile equipment starts up, it obtains the international mobile subscriber identity (IMSI) from the SIM card, and passes this to the mobile operator, requesting access and authentication. The mobile equipment may have to pass a PIN to the SIM card before the SIM card reveals this information. • The operator network searches its database for the incoming IMSI and its associated Ki. • The operator network then generates a random number (RAND, which is a
nonce) and signs it with the Ki associated with the IMSI (and stored on the SIM card), computing another number, that is split into the Signed Response 1 (SRES_1, 32 bits) and the encryption key Kc (64 bits). • The operator network then sends the RAND to the mobile equipment, which passes it to the SIM card. The SIM card signs it with its Ki, producing Signed Response 2 (SRES_2) and Kc, which it gives to the mobile equipment. The mobile equipment passes SRES_2 on to the operator network. • The operator network then compares its computed SRES_1 with the computed SRES_2 that the mobile equipment returned. If the two numbers match, the SIM is authenticated and the mobile equipment is granted access to the operator's network. Kc is used to encrypt all further communications between the mobile equipment and the operator.
Location area identity The SIM stores network state information, which is received from the
location area identity (LAI). Operator networks are divided into location areas, each having a unique LAI number. When the device changes locations, it stores the new LAI to the SIM and sends it back to the operator network with its new location. If the device is power cycled, it takes data off the SIM, and searches for the prior LAI.
SMS messages and contacts Most SIM cards store a number of
SMS messages and phone book contacts. It stores the contacts in simple "name and number" pairs. Entries that contain multiple phone numbers and additional phone numbers are usually not stored on the SIM card. When a user tries to copy such entries to a SIM, the handset's software breaks them into multiple entries, discarding information that is not a phone number. The number of contacts and messages stored depends on the SIM; early models stored as few as five messages and 20 contacts, while modern SIM cards can usually store over 250 contacts. == Formats ==