Lin Huan - UE Security
Lin Huan - UE Security
Lin Huan - UE Security
LMS600x/700x
100KHz ~ 3.8GHz
4
Video Demo: GPS Spoofing
Fake GSM Base Station in China
• Resulting in a wide range of hazards
– Send spam SMS
– Phishing fraud
When Bike-sharing Meets Fake BS
• For IoT devices
– Lose network
connection
– Data link hijack
Most Fake BS Based on OpenBTS
• OpenBTS Project
– Developed since 2009
– First software based cellular base station
– Had some real deployments
St. Pierre and Miquelon is a self-
governing territorial overseas
collective of France (COM) situated
near Newfoundland, Canada.
An entrepreneur,GlobalTel, applied
for wireless spectrum and deployed
seven base stations, now actively
serving a population of 6,000.
GSM Terminal Side: OsmocomBB
• OsmocomBB
– GSM sniffer: OsmocomBB
+ C118
– GSM man-in-the-middle
attack: OsmocomBB +
C118 + OpenBSC
Redirection Attack
• In IT/Internet area
– Not every vulnerability needs to be fixed
– Once exploitation appears, and widely known,
the patch will be applied immediatly
• In mobile communication
– Network side
• Operators: update network equipment needs
long tim
• Vendors: Some old hardware cannot be updated.
– Terminal side
• Cellphone firmware is rarely updated
• It’s difficult to patch IoT devices.
Programmable, Configurable and Patchable
3. AS Security Mode
Encoding Integrity Ciphering Algorithm
Command (EEAX, EIAX)
X000X000 EIA0 EEA0 NULL
X001X001 128-EIA1 128-EEA1 SNOW3G
Security algorithms are X010X010 128-EIA2 128-EEA2 AES
selected by the provider X011X011 128-EIA3 128-EEA3 ZUC
Security Procedure
UE HSS
eNodeB MME
K K
Attach Request
(IMSI)
Attach Accept
Attach Complete
Network Configuration Issues
• Visibility of the back-end from UE
• Visibility of other UEs
• GTP over GTP?
• Ability to attack MME (signalling)
Network Implementation Flaws
• Robustness of stacks (eg SCTP)
– Fuzzing
– Sequence number generation
• Management interfaces
– Web UI
– SSH consoles
– Proprietary protocols
Key Protocols
S1AP Protocol
• By default no authentication to the service
• Contains eNodeB data and UE Signalling
• UE Signalling can make use of encryption
and integrity checking
• If no UE encryption is used, attacks against
connected handsets become possible
40
Key Protocols
S1AP and Signalling
S1AP NAS
NAS
UE eNB MME
Key Protocols
S1AP and Signalling
Compromised Spoofed
UE eNB
MME
UE eNB
Key Protocols
S1AP and Signalling
S1 Setup
S1 Setup Response
Attach Request
eNB MME
Authentication Request
Authentication Response
Security Mode
Key Protocols
GTP Protocol
• Gateway can handle multiple
encapsulations
• It uses UDP so easy to have fun with
• The gateway needs to enforce a number of
controls that stop attacks
Key Protocols
GTP and User Data
GTP IP
IP IP
11/09/2012 32
Key Protocols
GTP and User Data
GTP IP GTP
IP GTP IP GTP
11/09/2012 34
Testing Setup (Phase 1)
• EPC: Gigabyte Brix i7-5500, 16G RAM
• eNodeB/RRU:
– UP Board + USRP B210/B200mini
– ThinkPad T440s + bladeRF/LimeSDR
• UE: Samsung, iPhone, OnePlus, ZTE, etc.
Resource list
Thank you!
Xiaodong Zou
Wechat: 70772177
Twitter: @xdzou
Email: [email protected]