Duarte Monteiro C-days 2018
Chantam house rule
education purposes only
$whoami
Masters in Information Security @ FCUP
INTRO
GSM - "The wake up call"
What is this talk about?
Objective: Awareness
Probably to much information for 45 min talk. + Plus I' not an GSM Expert --- just a curious guy
GSM - "The wake up call"
GSM ARCHITECTURE AND PROTOCOL
WHAT IS?
GSM - "The wake up call"
WHAT IS?
GSM - "The wake up call"
WHAT IS?
GSM - "The wake up call"
Functional Elements
Base Station Subsystem
Network SubSystem
Operation Subsystem
Databases
Home Location Register (HLR)
Visitor Location Register (VLR)
Authentication Center (AuC)
Equipment Registry Identity (EIR)
WHAT IS?
GSM - "The wake up call"
Scope
Um Interface
Abis Interface
WHAT IS?
GSM - "The wake up call"
super-high-level
WHAT IS?
GSM - "The wake up call"
@Anacom
WHAT IS?
GSM - "The wake up call"
WHAT IS?
GSM - "The wake up call"
WHAT IS?
GSM - "The wake up call"
Layer 1
WHAT IS?
GSM - "The wake up call"
Geographical Hierarchy
Physical
Logical
WHAT IS?
GSM - "The wake up call"
Protocol Stack
GSM - "The wake up call"
Motivation and Introduction
WHY?
GSM - "The wake up call"
8.0.0 Version - 1999
From: European Telecomunication Standards Institute (ETSI)
WHY?
GSM - "The wake up call"
Failover
WHY?
GSM - "The wake up call"
Meaning: anyone can take look :)
WHY?
GSM - "The wake up call"
It's literally everywhere.
GSM - "The wake up call"
WHAT ARE THE MAIN CONCERNS AND THREATS
SECURITY PRINCIPLES
GSM - "The wake up call"
SECURITY PRINCIPLES
GSM - "The wake up call"
AUTHENTICATION
CONFIDENTIALITY
ENCRYPTION
...they don't care about availability
SECURITY PRINCIPLES
GSM - "The wake up call"
1. Subscriber Identity Confidentiality
Who are you?
IMSI - International Mobile Subscriber Identity
TMSI - Temporary Mobile Subscriber Identity
Random 8 Digits
IMSI | ||
---|---|---|
MCC | MNC | MSIN |
3 Digits | 2/3 Digits | MSIN |
SECURITY PRINCIPLES
GSM - "The wake up call"
2. Subscriber Identity Authentication
IMSI
is shared by the SIM and Operator
SECURITY PRINCIPLES
GSM - "The wake up call"
2. Subscriber Identity Authentication
A3/A8 Algorithms are used to start the process
SECURITY PRINCIPLES
GSM - "The wake up call"
2. Subscriber Identity Authentication
Authentication Triplets are generated: SRES, KC and RAND
SECURITY PRINCIPLES
GSM - "The wake up call"
2. Subscriber Identity Authentication
RAND is sent to the subscriber via the Um Interface
SECURITY PRINCIPLES
GSM - "The wake up call"
2. Subscriber Identity Authentication
SRES' is sent over the radio and NSS will check if it's match.
SECURITY PRINCIPLES
GSM - "The wake up call"
3. User data confidentiality on Physical Systems
GSM Symmetric Encryption Algorithms:
Remember, encryption is optional.
SECURITY PRINCIPLES
GSM - "The wake up call"
3. User data confidentiality on Physical Systems
GSM - "The wake up call"
ATTACK SURFACE AND ATTACKS
road down the memory lane
WHY?
GSM - "The wake up call"
SIMs use COMP128 algorithm to generate the Kc/SRES based on the Ki + RAND (A8 Algorithm)
COMP128v1 -> Leaked and exploited
COMP128v2 -> Safe
COMP128v3 -> Safe
DONT TRUST SECURITY BY OBSCURITY
WHY?
GSM - "The wake up call"
Silent SMS (Aka Type-0 SMS) - allows to undermine the subscriber location
WHY?
GSM - "The wake up call"
WHY?
GSM - "The wake up call"
WHY?
GSM - "The wake up call"
WHY?
GSM - "The wake up call"
IMSI Catcher - Devices capable of simulating an BTS or sniffing GSM traffic (active or passive)
WHY?
GSM - "The wake up call"
WHY?
GSM - "The wake up call"
Femtocell - Operator devices that are corrupted for malicious activities.
GSM - "The wake up call"
PROOF-OF-CONCEPT AND TOOLS
WHY?
GSM - "The wake up call"
WHY?
GSM - "The wake up call"
WHY?
GSM - "The wake up call"
WHY?
GSM - "The wake up call"
WHY?
GSM - "The wake up call"
WHY?
GSM - "The wake up call"
No access to the Operator network, meaning - The victim will only be able to send data but receive network failure.
WHY?
GSM - "The wake up call"
WHY?
GSM - "The wake up call"
Country Assessment
SRLabs - GSMMAP
WHY?
GSM - "The wake up call"
1. Environment RECON
WHY?
GSM - "The wake up call"
2. Environment RECON (2)
WHY?
GSM - "The wake up call"
3. Environment Details (GSEC)
WHY?
GSM - "The wake up call"
4. Target + Identification
> Tracking + Dumping
WHY?
GSM - "The wake up call"
4. Get Keystream
WHY?
GSM - "The wake up call"
4. Load Rainbow Tables + Kraken
WHY?
GSM - "The wake up call"
6. Get Kc and crack comms!
WHY?
GSM - "The wake up call"
Q&A
Thank you.
...are you ready to answer the phone?