Top Banner
IMSI catcher detection and evolution Luca Melette <[email protected]>
25

IMSI catcher detection and evolution - Simula · B IMSI catcher detection pitfalls (2/3) False positive causes Femto cells behave very similar to IMSI catchers: a. Query IMSI + IMEI

Mar 24, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: IMSI catcher detection and evolution - Simula · B IMSI catcher detection pitfalls (2/3) False positive causes Femto cells behave very similar to IMSI catchers: a. Query IMSI + IMEI

SRLabs Template v12

IMSI catcher detection and evolution

Luca Melette <[email protected]>

Page 2: IMSI catcher detection and evolution - Simula · B IMSI catcher detection pitfalls (2/3) False positive causes Femto cells behave very similar to IMSI catchers: a. Query IMSI + IMEI

Agenda

IMSI catcher tech

IMSI catcher catching

Next-gen IMSI catcher

2

Page 3: IMSI catcher detection and evolution - Simula · B IMSI catcher detection pitfalls (2/3) False positive causes Femto cells behave very similar to IMSI catchers: a. Query IMSI + IMEI

Mobile network attack equipment has become commonplace (1/4)

3

Many vendors and resellers compete on a lively market.

Their main customers are law-enforcement and espionage agencies but also criminals.

Page 4: IMSI catcher detection and evolution - Simula · B IMSI catcher detection pitfalls (2/3) False positive causes Femto cells behave very similar to IMSI catchers: a. Query IMSI + IMEI

4

Intercept equipment has become more affordable, and much smaller.

It fits into small boxes,…

Mobile network attack equipment has become commonplace (2/4)

Page 5: IMSI catcher detection and evolution - Simula · B IMSI catcher detection pitfalls (2/3) False positive causes Femto cells behave very similar to IMSI catchers: a. Query IMSI + IMEI

5

Intercept equipment has become more affordable, and much smaller.

It fits into small boxes,cars, …

Mobile network attack equipment has become commonplace (3/4)

Page 6: IMSI catcher detection and evolution - Simula · B IMSI catcher detection pitfalls (2/3) False positive causes Femto cells behave very similar to IMSI catchers: a. Query IMSI + IMEI

6

Intercept equipment has become more affordable, and much smaller.

It fits into small boxes,cars, or suits.

Mobile network attack equipment has become commonplace (4/4)

Page 7: IMSI catcher detection and evolution - Simula · B IMSI catcher detection pitfalls (2/3) False positive causes Femto cells behave very similar to IMSI catchers: a. Query IMSI + IMEI

Location Update Request“Hello, I would like to connect to you”

IMSI-catchers collect unique IDs

7

Identity Response“Here’s my IMSI”

Identity Response“Here’s my IMEI”

…connects back to home network

Identity Request“Would you please tell me your IMSI?”

Identity Request“Would you please tell me your IMEI?”

Location Update Reject“I don’t want you here. Good bye!”

…stores IMSI & IMEI & timestamp

Location-tracking IMSI catcher

Page 8: IMSI catcher detection and evolution - Simula · B IMSI catcher detection pitfalls (2/3) False positive causes Femto cells behave very similar to IMSI catchers: a. Query IMSI + IMEI

Detection is accomplished by monitoring location updates

8

The LU was rejected?The same network

accepted you before? IMSI was requested

before ciphering?Authentication is

None: score = 2.0GSM: score = 0.5UMTS: score = 0.0

IMEI was requested?Multiply score by 3.0

Cell broadcast based:

Single LAC occurrence? LAC out of place?This ARFCN was recently

announcing itself with a different ID?

This ARFCN not announced by neighboring cells?

Cell parameters out of average for this network?

+

Transaction based: Cell broadcast based:

Location-tracking IMSI catcher

Page 9: IMSI catcher detection and evolution - Simula · B IMSI catcher detection pitfalls (2/3) False positive causes Femto cells behave very similar to IMSI catchers: a. Query IMSI + IMEI

CM Service Request“I would like to make a transaction”

Most intercepting fake base stations do not use encryption

9

Call Setup“I would like to call +49 177…”

Disconnect“Thanks, I’m done.”

CM Service accept“OK”

Call Proceeding“Here’s your line.”

Call Connect“Your call was answered.”

Intercepting IMSI catcher

Page 10: IMSI catcher detection and evolution - Simula · B IMSI catcher detection pitfalls (2/3) False positive causes Femto cells behave very similar to IMSI catchers: a. Query IMSI + IMEI

Encryption downgrade and extreme cell settings are not common in real networks

10

Transaction based:

Encryption weaker than observed before?

Operator normally uses encryption for this transaction type and now absent?

Channel allocated but no transaction?

Cell broadcast based:

Cell has no neighbours?This ARFCN was recently

announcing itself with a different ID?

LAC not announced by neighbours?

Low registration timer?High reselect offset?

+

Transaction based: Cell broadcast based:

Intercepting IMSI catcher

Page 11: IMSI catcher detection and evolution - Simula · B IMSI catcher detection pitfalls (2/3) False positive causes Femto cells behave very similar to IMSI catchers: a. Query IMSI + IMEI

Agenda

IMSI catcher tech

IMSI catcher catching

Next-gen IMSI catcher

11

Page 12: IMSI catcher detection and evolution - Simula · B IMSI catcher detection pitfalls (2/3) False positive causes Femto cells behave very similar to IMSI catchers: a. Query IMSI + IMEI

GSMmap data set grows quickly, thanks to community submissions

10

100

1 000

10 000

100 000

2014-03 -06 -09 -12 2015-03 -06

Submissions to GSMmap.org

GSMmap-apkreleased

2G

3G

Snoop-Snitch

2G

3G

4G

50

70

90

110

130

150

2014 2015

Countries covered on GSMmap.org

12

Page 13: IMSI catcher detection and evolution - Simula · B IMSI catcher detection pitfalls (2/3) False positive causes Femto cells behave very similar to IMSI catchers: a. Query IMSI + IMEI

SnoopSnitch catcher detection analyzes a cell’s config and behavior

No proper neighbors Out-of-place location area High cell reselect offset, low registration timer Large number of paging groups

IMSI+IMEI requests during location update Immediate reject after identity request Paging without transaction Orphaned traffic channel

No encryption -or- Downgrade to crackable A5/1 or A5/2 Delayed Cipher Mode Complete

(due to A5/1 cracking time)

SnoopSnitch combines three types of IMSI catcher heuristics

Lack of proper encryption

Suspicious cell configuration

Suspicious cell behavior

A

B

C

SnoopSnitch assigns a score to each heuristic1 and sums scores to form catcher events

1 Metric details: opensource.srlabs.de/projects/snoopsnitch/wiki/IMSI_Catcher_Score13

Page 14: IMSI catcher detection and evolution - Simula · B IMSI catcher detection pitfalls (2/3) False positive causes Femto cells behave very similar to IMSI catchers: a. Query IMSI + IMEI

Majority of IMSI catcher sightings has medium score

14

0%

25%

50%

75%

100%

2,7 3 3,5 4 6 7

IMSI catcher events by score (≥2.7)

Near-certain catcher sightings.Several heuristics triggered (3%)

Some chance of false positives.Certainty threshold revised upwards multiple times as we learned about false positive causes (discussed next)

Page 15: IMSI catcher detection and evolution - Simula · B IMSI catcher detection pitfalls (2/3) False positive causes Femto cells behave very similar to IMSI catchers: a. Query IMSI + IMEI

Many heuristics trigger regularly

15

Config Behavior Encryption

Encryption downgrade [C1] 454

Silent call [T4] 12

Paging w/o transaction [T3] 13

ID requests during LU [C4] 77

Inconsistent neighbors [R1] 60

Low registration timer [T1] 21

High reselect offset [K2] 19

No neighbors [K1] 2

Lonesome LAC [A5] 356

Inconsistent LAC [A2] 9

0

50

100

150

200

250

300

350

400

450

500

A B C

Page 16: IMSI catcher detection and evolution - Simula · B IMSI catcher detection pitfalls (2/3) False positive causes Femto cells behave very similar to IMSI catchers: a. Query IMSI + IMEI

IMSI catcher detection pitfalls (1/3)A

False positive causes

1. Networks often change abruptly; e.g. when entering the subway

2. SnoopSnitch cannot directly read the radio channel (ARFCN) from the baseband. In the few cases its heuristic guesses wrong, an IMSI catcher event is reported

Suspicious cell configuration

No proper neighbors

Lonesome location area

Out-of-place location area

16

Page 17: IMSI catcher detection and evolution - Simula · B IMSI catcher detection pitfalls (2/3) False positive causes Femto cells behave very similar to IMSI catchers: a. Query IMSI + IMEI

IMSI catcher detection pitfalls (2/3)B

False positive causes

Femto cells behave very similar to IMSI catchers:

a. Query IMSI + IMEI (for whitelisting)

b. Reject all but their owner’s phones

c. Implement radio protocols somewhat incomplete

d. Use hardware similar to small IMSI catchers

Suspicious cell behaviour

IMSI + IMEI requests during location update

Immediate reject

17

Page 18: IMSI catcher detection and evolution - Simula · B IMSI catcher detection pitfalls (2/3) False positive causes Femto cells behave very similar to IMSI catchers: a. Query IMSI + IMEI

IMSI catcher detection pitfalls (3/3)C

False positive causes

1. Some networks alternate between ciphers!For example, E-Plus Germany:

2. Can IMSI catchers really not use A5/3 and other strong crypto?We are about to find out!

Lack of proper encryption

No encryption -or-

Downgrade to A5/1

A5/3 /3 /1 /3 /3 /1 /3

18

Page 19: IMSI catcher detection and evolution - Simula · B IMSI catcher detection pitfalls (2/3) False positive causes Femto cells behave very similar to IMSI catchers: a. Query IMSI + IMEI

SnoopSnitch provides access to radio traces for further research

Live export of 2G, 3G, 4G traces

19

Page 20: IMSI catcher detection and evolution - Simula · B IMSI catcher detection pitfalls (2/3) False positive causes Femto cells behave very similar to IMSI catchers: a. Query IMSI + IMEI

Agenda

IMSI catcher tech

IMSI catcher catching

Next-gen IMSI catcher

20

Page 21: IMSI catcher detection and evolution - Simula · B IMSI catcher detection pitfalls (2/3) False positive causes Femto cells behave very similar to IMSI catchers: a. Query IMSI + IMEI

Tunneling protocol GTP is highly exposed on the Internet

21

Page 22: IMSI catcher detection and evolution - Simula · B IMSI catcher detection pitfalls (2/3) False positive causes Femto cells behave very similar to IMSI catchers: a. Query IMSI + IMEI

A small but significant number of exposed GTP endpoints are SGSNs

580

SGSN or MME

GTP v1 or v2; no SGSN/MME

responses

826

No meaniful responses supported

302k

Only GTP data (2152), no control

(2123)

271k

GTP endpoints

574,228 Brazil 267

Tim 267

China 153

China Mobile 76

Guangdong Mobile 65

Shanghai Mobile 12

Korea 58

SK Telecom 54

Korea Telecom 4

Colombia 47

Colombia Móvil 47

USA 10

NewCore Wireless 8

Union Cell 1

Globecomm 1

Angola, Congo, Central African Republic, Ivory Coast, Cape Verde, Gambia, Guinea, Guam, India, Kuwait, Laos, Madagascar, Mexico, Malaysia, Romania, Rwanda, Sierra Leone, Chad, Tanzania, Vietnam

+

22

Many more SGSN/MME are reachable from an operator’s customer IP segment

+

Page 23: IMSI catcher detection and evolution - Simula · B IMSI catcher detection pitfalls (2/3) False positive causes Femto cells behave very similar to IMSI catchers: a. Query IMSI + IMEI

Exposed SGSNs talk to anybody on the Internet, and disclose keys

root@scan:~# ./sgsn_probe.sh 211.234.233.0/24 220.103.193.0/24

Target list: 508 host(s)Starting GTP Echo scan on port 2123... done.Starting GTP Echo scan on port 2152... done.Got 190 responses Sending SGSN probe payload... done. Got 54 responsesSaving to sgsn_ok.iplist

root@scan:~# ./get_context.sh 450050417xxxxxx sgsn_ok.iplist

Starting tshark on eth1Sending SGSN context request to 54 host(s)Response filtering (gtp.cause == 128)Verbose context dump:

Ciphering key CK: baf49a66103709848f823a20d9xxxxxxIntegrity key IK: 15d743e469e2e2ef64e63bf8d4xxxxxxPDP type: IPv4 (33)PDP address length: 4PDP address: 10.63.150.161 (10.63.150.161)GGSN address length: 4GGSN Address for control plane: 172.28.29.116 (172.28.29.116)GGSN 2 address length: 4GGSN 2 address: 172.28.29.116 (172.28.29.116)APN length: 37APN: web.sktelecom.com.mnc005.mcc450.gprs

SGSNs disclose current encryption key on the Internet!

23

Page 24: IMSI catcher detection and evolution - Simula · B IMSI catcher detection pitfalls (2/3) False positive causes Femto cells behave very similar to IMSI catchers: a. Query IMSI + IMEI

Next generation IMSI catcher: Fully-encrypting voice+data, and much harder to detect

24

Offer encrypted voice and data service

Catch IMSIRequest auth/encryption keys over GRX or SS7

Passes mutual auth 2G Voice: A5/3 2G Data: GEA/3 3G: UEA/1 & UIA/1

NanoBTS or any other small cell

GRX: SGSNContextReq SS7: SendAuthInfo or SendIdentification

Usually possible over GRX or SS7 connection

Also possible over the Internet? (next chapter)

Demoed at CCC amp

Page 25: IMSI catcher detection and evolution - Simula · B IMSI catcher detection pitfalls (2/3) False positive causes Femto cells behave very similar to IMSI catchers: a. Query IMSI + IMEI

Take aways.

Questions?

IMSI catchers are currently detectable heuristically

Next generation may evade some detection heuristics by enabling authentication and encryption for voice and data

Run SnoopSnitch to find catchers yourself

Luca Melette <[email protected]>

25