SimProbe

IMSI structure: MCC, MNC and two- or three-digit MNCs

The MNC length cannot be derived from the IMSI alone. Split an IMSI into MCC, MNC and MSIN, find where the MNC length is recorded, and read raw EF_IMSI.

  • IDNTEQ
  • Classic SIM
  • IMSI
  • ITU-T E.212
  • EF_IMSI
  • MVNO

An IMSI identifies a subscriber to the network and contains up to 15 digits. The MNC can take two or three of them, and the IMSI itself does not say which.

IMSI structure (ITU-T E.212 / 3GPP TS 23.003)

An IMSI contains a 3-digit MCC (mobile country code), a 2- or 3-digit MNC (mobile network code) and the MSIN (the remaining subscriber digits).

It’s stored in EF_IMSI (6F07) inside ADF_USIM.

Why MNC length is ambiguous

You cannot tell from the IMSI alone whether the MNC is 2 or 3 digits. Most of the world uses 2 digits; parts of North America (MCC 302, 310–316) and a handful of others use 3. The authoritative length is recorded on the card in EF_AD (administrative data), and mandated for certain MCCs.

The IMSI parser shows both splits and marks the likelier one, so you can compare the result with EF_AD or the operator’s configuration.

MVNOs: IMSI MNC ≠ retail brand

For most MVNOs the IMSI MNC identifies the host network that owns the numbering, not the retail brand on the SIM (a full MVNO can hold its own MNC). The decoded operator can therefore differ from the brand on the SIM.

Reading EF_IMSI (parity + nibble-swap)

Raw EF_IMSI is a length byte, then the digits as swapped-nibble BCD whose first nibble is a parity/type indicator (odd/even). Paste the raw bytes and the parser reports the length byte, the parity, and the reconstructed IMSI before decoding MCC/MNC/MSIN.

Related

The tool this article refers to, and the related consulting service.