Introduction To SIM Cards
Introduction To SIM Cards
Introduction To SIM Cards
SIM Cards
20 September 2007 1
Contents
20 September 2007 2
Overview of GSM Networks
20 September 2007 3
What is GSM?
Groupe Global
Spéciale System for
Mobile Mobile communication
20 September 2007 4
Key Features of GSM
GSM properties:
n Open standard
n Provision of roaming
n SIM
n Digital (ISDN compatible)
n TDMA (Time Division Multiple Access)
20 September 2007 5
Network Elements
MS
MS
Network
MS
20 September 2007 6
Network Elements
Network
BSS BSS BSS
BSS Core
20 September 2007 7
Network Elements
BTS
BSC
Core
BTS
20 September 2007 8
Network Elements
Abbreviations:
20 September 2007 9
Network Elements
GMSC
OMC Gateway to
•PLMN roaming
•PSTN
•others
BSC MSC VLR
BSC
20 September 2007 10
SIM in GSM Networks
20 September 2007 11
What is a SIM?
Subscriber
Identity
Module
20 September 2007 12
What is a SIM?
l Identify a user
l Authenticate a user
l Data storage
l Marketing tool
l Portable
20 September 2007 13
What is in a SIM?
Hardware:
•CPU
•I/O devices
•ROM
•RAM
•EEPROM
ROM : EEPROM:
20 September 2007 14
Architecture of standard SIM
Architecture of first Generation SIM
APDU Dispatch
GSM 11.11
Subscriber Identity Module –Mobile Equipment
(SIM-ME) Interface
20 September 2007 15
SIM in GSM networks
Ø Input file
Ø Output file
Ø Transport Key (Optional)
Ø SIM Card (with network profile)
Ø Algorithm Type
20 September 2007 16
SIM in GSM networks
Network Side
(Stores
ICCID, IMSI, HLR AUC (Stores IMSI, KI values)
PINs)
Card Vendor
3. Perso data
Data Gen
20 September 2007 17
Input file format
* HEADER DESCRIPTION
***************************************
Customer: TELCO
Quantity: 4500
Quantity
Type: PLUG IN
Profile:
Batch:
5.0
00045
Transport Key Index
*
Transport_key: 001
*
Address1: TELCO
Address2: COUNTRY
***************************************
* INPUT VARIABLES
***************************************
var_in_list: Start IMSI
IMSI: 238993210070000
Ser_nb: 894502300000070000
***************************************
* OUTPUT VARIABLES
Start ICCID
***************************************
var_out:PIN/PUK/PIN2/PUK2/Code_ADM/KI
20 September 2007 18
Output file format
* HEADER DESCRIPTION
***************************************
Customer: TELCO
Quantity: 4500
Type: PLUG IN
Profile: 5.0
Batch: 00045
*
Transport_key: 001
*
Address1: TELCO
Address2: COUNTRY
***************************************
* INPUT VARIABLES
***************************************
var_in_list:
IMSI: 238993210070000
Subscriber data
Ser_nb: 894502300000070000
***************************************
* OUTPUT VARIABLES
***************************************
var_out:PIN/PUK/PIN2/PUK2/Code_ADM/KI
894502300000070000 238993210070000 1234 12345678 0000 12345678 88888888
12345678901234567890123456789012
20 September 2007 19
How transport key is used?
6. . Ki is
3. Transport key value
decrypted in
AUC
Transport 5. Encypted Ki in Transport
keys 4. Use Transport key to
encrypt Ki in output file output file keys
AUC
20 September 2007 20
GSM Authentication Process
Network
MS RAND
SRES
20 September 2007 21
GSM Authentication Process
RAND
IMSI
Ki RAND
Ki RAND
A3
A8 A3
SRES’
SRES Comparison
Kc
20 September 2007 22
Confidentiality in GSM
A5Kc[Data] A5Kc[Data]
20 September 2007 23
Comp 128 algorithm
20 September 2007 24
Security in GSM
20 September 2007 25
Introduction to GSM 11.11
20 September 2007 26
GSM Specifications
ØDefined by ETSI
20 September 2007 27
GSM Specifications
20 September 2007 28
GSM 11.11 Basic SIM Specifications
File System
Power Up
Procedure
20 September 2007 29
Types of Files
Master File
(Base Directory)
20 September 2007 31
SIM File System
ICCID
EF_KEY_EXT EF_CHV1 EF_CHV2
0011 0000 0100
PIN1 PIN2
DF_GSM
7F20
EF_KEY_INT EF_PLMNSEL
0001 6F30
DF_TELECOM
7F10
20 September 2007 32
SIM Data
Format of ICCID
Primary account number
19 visible characters (maximum)
8 9
Luhn
check
digit
T0102740-92/d01
Country code: Recommendation E.164 [2]
(variable, 1 to 3 digits)
.
Charge card numbering system
20 September 2007 33
ICCID -format
ICCID is the SIM cards unique identification number and is coded in accordance to
ITU-T recommendation E.118 (18).
Format : 89 66 15 XTH YYYYYYYYY C
Number of digits ICCID : 19 digits including check digit
89 : Telecom Application Code
66 : Mobile country Code (eg. Thailand)
18 : Mobile Network Code (eg. DTAC)
X : Card Manufacture Code
T : Type of card (ID-1=1 and Plug-in=2)
H : HLR ID (HLR1=0,HLR2=1,HLR3=2)
YYYYYYYYY: Sequential Number
C : Luhn key computed from the 18 previous digits (1 nibble)
Example : 89661 51100 00000 001 -7
20 September 2007 34
Use of ICCID in Graphical Personalisation
8966
1811
0000
0000
01 7
Barcode
20 September 2007 35
SIM Data
Format of IMSI
IMSI
1 2 3 4 5 6 7 8 9 10 11 1 2 13 14 15
20 September 2007 36
IMSI - format
Note : The running number taken from the input file and automatically
incremented from the initial value.
20 September 2007 37
SIM File System, Data and Algo
Ø Important Data
Ø Ki
Ø Unique 16 byte secret key used for authentication
Ø Usually encrypted with transport key
Ø PIN / PUK (Max 8 bytes)
Ø Personal Identification Number (3 tries)
Ø PIN Unblocking Key (10 tries)
Ø Can be fixed or random specified by operators
Ø ADM (Max 8 bytes)
Ø Administrative PIN (5 tries)
Ø Important Algo
Ø A3/A8 (COMP128)
Ø Authentication algorithm
Ø Version 1, 2 and 3
20 September 2007 38
GSM Command Set
Ø Basic GSM 11.11 command set includes
Ø Select MF/DF/EF
Ø Read Binary
Ø Update Binary
Ø Read Record
Ø Update Record
Ø Verify PIN/PUK/ADM
Ø Run GSM Algo
20 September 2007 39
Part 2 : SIM Applications
20 September 2007 40
Anti Cloning &
Authenication Counter
20 September 2007 41
Hacking of Ki
20 September 2007 42
Methods to curb hacking
20 September 2007 43
Authentication Counter
1. SIM Solution
20 September 2007 44
Strong Ki
2. Non SIM Solution
20 September 2007 45
Pattern Recognition
3. SIM Solution
§Dummy Ki
20 September 2007 46
Pattern Recognition
3. SIM Solution
20 September 2007 47
Comparison of Methods
20 September 2007 48
Comparison table
SIM Solution ü û ü
Easy to ü ü ü
Implement
Maintain SIM û ü ü
Life Span
Protection û û ü
against New
Cloning Kits
20 September 2007 49
User Applications
20 September 2007 50
Value-Added Applications
Applications Portfolio
§Eastcompeace Applications
Portfolio may be divided into 2 Info on demand
main categories: Data back up m-Banking
üLocal
üPoint to Point
Prepaid Internet/E-mail
Loyalty
20 September 2007 51
Value-Added Applications
Local Applications
20 September 2007 52
Value-Added Applications
Dual IMSI
§Applications:
üPrivate/Business
üRoaming
§Operator Benefits:
üDifferentiate the product
üIncrease customer satisfaction
üTarget specific subscribers segment
20 September 2007 53
Value-Added Applications
Phonebook Plus
§Operator Benefits:
Differentiate the product
Increase customer satisfaction
20 September 2007 54
Value-Added Applications
Enhanced Phonebook
§USIM:
üEnhanced Phonebook for USIM allows to access all the 3G Phone
Book functionalities (more than 250 entries, second name, additional
number, e-mail, …) even from a 2G handset.
üEnhanced Phonebook makes smoother the 2G migration toward 3G.
§SIM:
üEnhanced Book for SIM makes 3G Phonebook functionalities (more
than 250 entries, second name, additional number, e-mail, …)
available on a 2G SIM card.
Mr. White
§Operator Benefits: principal number
üDifferentiate the product second number
üIncrease customer satisfaction email address
second name
group
20 September 2007 55
Value-Added Applications
Multi-Inbox
§The standard Inbox is duplicated, the user can access by menu two
Inbox, Inbox1 and Inbox2.
§Operator Benefits:
üDifferentiate the product
üIncrease customer satisfaction
20 September 2007 56
Value-Added Applications
Password Manager
§Operator Benefits:
üDifferentiate the product
üIncrease customer satisfaction
üIncrease ARPU
20 September 2007 57
Value-Added Applications
Welcome Note
20 September 2007 58
Value-Added Applications
Point-to-Point Applications
20 September 2007 59
Value-Added Applications
Smart Lock
20 September 2007 60
Value-Added Applications
Group SMS
§Operator Benefits:
üDifferentiate the product
üIncrease customer satisfaction
üIncrease ARPU
20 September 2007 61
Value-Added Applications
My Secret SMS
§Operator Benefits:
üDifferentiate the product
üIncrease customer satisfaction
üIncrease ARPU
20 September 2007 62
Value-Added Applications
Flash SMS
20 September 2007 63
Thank you J
20 September 2007 64