Mobile operators vs. Hackers: new security measures for new - - PowerPoint PPT Presentation

mobile operators vs hackers
SMART_READER_LITE
LIVE PREVIEW

Mobile operators vs. Hackers: new security measures for new - - PowerPoint PPT Presentation

Sergey Puzankov Mobile operators vs. Hackers: new security measures for new bypassing techniques ptsecurity.com SS7 in the 20 th century SCP STP STP SSP SCP STP STP PSTN SSP SSP SS7 Signaling System #7, a set of telephony protocols


slide-1
SLIDE 1

Sergey Puzankov

Mobile operators vs. Hackers: new security measures for new bypassing techniques

ptsecurity.com

slide-2
SLIDE 2

SS7 in the 20th century

PSTN

STP STP STP STP SSP SCP SSP SSP SCP

SS7 – Signaling System #7, a set of telephony protocols, which is used to set up and tear down telephone calls, send and receive SMS, provide subscriber mobility, and other service

slide-3
SLIDE 3

SS7 nowadays

SIGTRAN – Signaling Transport, an extension of the SS7 protocol family that uses IP as a transport

slide-4
SLIDE 4

Why SS7 is not secure

SIGTRAN SIGTRAN SS7 SIGTRAN IWF/DEA Diameter LTE STP STP STP

slide-5
SLIDE 5

Mass media highlights the SS7 security problem

slide-6
SLIDE 6

Governments and global organizations' concern on SS7 security

slide-7
SLIDE 7

Mobile operators and SS7 security

SMS Home Routing Security monitoring Security assessment SS7 firewall Security configuration

slide-8
SLIDE 8

Research and publications

2014 – Signaling System 7 (SS7) security report 2014 – Vulnerabilities of mobile Internet (GPRS) 2016 – Primary security threats for SS7 cellular networks 2017 – Next-generation networks, next-level cybersecurity problems (Diameter vulnerabilities) 2017 – Threats to packet core security of 4G network 2018 – SS7 vulnerabilities and attack exposure report

slide-9
SLIDE 9

Network vulnerability statistics: SMS Home Routing

67%

  • f installed SMS Home

Routing systems have been bypassed Possibility of exploitation of some threats in networks with SMS Home Routing installed is greater than in networks without protection

slide-10
SLIDE 10

Network vulnerability statistics: SS7 firewall

Penetration level of SS7 firewalls on mobile networks: 2015 — 0% 2016 — 7% 2017 — 33% Filtering system alone cannot protect the network thoroughly

slide-11
SLIDE 11

Basic nodes and identifiers

HLR — Home Location Register MSC/VLR — Mobile Switching Center alongside with Visited Location Register SMS-C — SMS Center MSISDN — Mobile Subscriber Integrated Services Digital Number IMSI — International Mobile Subscriber Identity STP — Signaling Transfer Point GT — Global Title, address of a core node element

slide-12
SLIDE 12

SS7 messages for IMSI retrieving SendRoutingInfo SendIMSI SendRoutingInfoForLCS SendRoutingInfoForSM Should be blocked on the border May be blocked on the HLR – SMS Home Routing as a protection tool

slide-13
SLIDE 13

SMS Home Routing bypass No. 1

slide-14
SLIDE 14

SMS Delivery with no SMS Home Routing in place

STP MSC

  • 1. SRI4SM Request
  • MSISDN
  • 1. SRI4SM Request
  • MSISDN
  • 2. SRI4SM Response
  • IMSI
  • MSC Address
  • 2. SRI4SM Response
  • IMSI
  • MSC Address
  • 3. MT-SMS
  • IMSI
  • SMS Text
  • 3. MT-SMS
  • IMSI
  • SMS Text

SRI4SM — SendRoutingInfoForSM HLR SMS-C

slide-15
SLIDE 15

SRI4SM abuse by a malefactor

STP MSC

  • 1. SRI4SM Request
  • MSISDN
  • 1. SRI4SM Request
  • MSISDN
  • 2. SRI4SM Response
  • IMSI
  • MSC Address
  • 2. SRI4SM Response
  • IMSI
  • MSC Address

HLR

slide-16
SLIDE 16

SMS Router

SMS Home Routing

STP HLR MSC

  • 1. SRI4SM Request
  • MSISDN
  • 1. SRI4SM Request
  • MSISDN
  • 3. MT-SMS
  • Fake IMSI
  • SMS Text
  • 3. MT-SMS
  • Fake IMSI
  • SMS Text
  • 4. SRI4SM Request
  • MSISDN
  • 6. MT-SMS
  • Real IMSI
  • SMS Text

SMS-C

  • 5. SRI4SM Response
  • Real IMSI
  • MSC Address
  • 2. SRI4SM Response
  • Fake IMSI
  • SMS-R Address
  • 2. SRI4SM Response
  • Fake IMSI
  • SMS-R Address
slide-17
SLIDE 17

SMS Router

SMS Home Routing against malefactors

STP HLR MSC

  • 1. SRI4SM Request
  • MSISDN
  • 1. SRI4SM Request
  • MSISDN
  • 2. SRI4SM Response
  • Fake IMSI
  • SMS-R Address
  • 2. SRI4SM Response
  • Fake IMSI
  • SMS-R Address
slide-18
SLIDE 18

Numbering plans

Country Code Network Destination Code Mobile Country Code Mobile Network Code

E.164 MSISDN and GT 33 854 1231237 E.212 IMSI 208 80 4564567894 E.214 Mobile GT 33 854 4564567894

Operator HLR Rule of GT Translation

slide-19
SLIDE 19

STP routing table

STP Routing Table … Numbering Plan = E.214 … OpCode = SRI4SM …

STP

SS7 Message

HLR 1 HLR 2 SMS Router

slide-20
SLIDE 20

STP routing table

STP Routing Table … Numbering Plan = E.214 … OpCode = SRI4SM …

STP

SS7 Message

HLR 1 HLR 2 SMS Router

E.214 Global Title Translation Table MCC + MNC + 00xxxxxxxx MCC + MNC + 20xxxxxxxx

slide-21
SLIDE 21

STP routing table

STP Routing Table … Numbering Plan = E.214 … OpCode = SRI4SM …

STP

SS7 Message

HLR 1 HLR 2 SMS Router

E.214 Global Title Translation Table MCC + MNC + 00xxxxxxxx MCC + MNC + 20xxxxxxxx

slide-22
SLIDE 22

STP routing table

STP Routing Table … Numbering Plan = E.214 … OpCode = SRI4SM …

STP

SS7 Message

HLR 1 HLR 2 SMS Router

E.214 Global Title Translation Table MCC + MNC + 00xxxxxxxx MCC + MNC + 20xxxxxxxx

slide-23
SLIDE 23

SendRoutingInfoForSM message Called Party Address = MSISDN

slide-24
SLIDE 24

SMS Home Routing bypass attack

STP Routing Table … Numbering Plan = E.214 … OpCode = SRI4SM …

STP

HLR 1 HLR 2 SMS Router

E.214 Global Title Translation Table MCC + MNC + 00xxxxxxxx MCC + MNC + 20xxxxxxxx

  • 1. SRI4SM Request
  • E.214 / Random IMSI
  • MSISDN
  • 2. SRI4SM Request
  • E.214 / Random IMSI
  • MSISDN
  • 3. SRI4SM Response
  • IMSI
  • MSC address

The malefactor needs to guess any IMSI from a HLR serving the target subscriber SMS Router is aside

slide-25
SLIDE 25

SMS Home Routing bypass No. 2

slide-26
SLIDE 26

SMS Home Routing definition

HLR SMS Router

  • 1. SRI4SM Request: MSISDN

STP

slide-27
SLIDE 27

SMS Home Routing definition

HLR SMS Router

  • 1. SRI4SM Request: MSISDN
  • 1. SRI4SM Request: MSISDN

STP

slide-28
SLIDE 28

SMS Home Routing definition

HLR SMS Router

  • 1. SRI4SM Request: MSISDN
  • 2. SRI4SM Request: MSISDN

STP

  • 3. SRI4SM Response: Fake IMSI, SMS-R address
slide-29
SLIDE 29

SMS Home Routing definition

HLR SMS Router

  • 1. SRI4SM Request: MSISDN
  • 2. SRI4SM Request: MSISDN

STP

  • 3. SRI4SM Response: Fake IMSI, SMS-R address

Different IMSIs mean SMS Home Routing procedure is involved

slide-30
SLIDE 30

TCAP Protocol

TCAP Message Type Transaction IDs Dialogue Portion Component Portion Begin, Continue, End, Abort Source and/or Designation IDs Application Context Name (ACN) ACN Version Operation Code Payload Application Context Name corresponds to a respective Operation Code

TCAP – Transaction Capabilities Application Part

slide-31
SLIDE 31

Application Context Name

slide-32
SLIDE 32

Application Context Name change

slide-33
SLIDE 33

SMS Home Routing bypass with malformed ACN

HLR

  • 1. SRI4SM Request: MSISDN

Malformed ACN

  • 1. SRI4SM Request: MSISDN

Malformed ACN

STP SMS Router

Malformed ACN

slide-34
SLIDE 34

SMS Home Routing bypass with malformed ACN

HLR

  • 1. SRI4SM Request: MSISDN

Malformed ACN

  • 1. SRI4SM Request: MSISDN

Malformed ACN

STP

  • 2. SRI4SM Response: IMSI, MSC
  • 2. SRI4SM Response: IMSI, MSC

SMS Router

SMS Router is aside

slide-35
SLIDE 35

SMS Home Routing bypass with malformed ACN

HLR SMS Router

  • 1. SRI4SM Request: MSISDN

Malformed ACN

STP

  • 2. SRI4SM Response: IMSI, MSC

Equal IMSIs means the SMS Home Routing solution is absent

  • r not involved
  • 1. SRI4SM Request: MSISDN

Malformed ACN

  • 2. SRI4SM Response: IMSI, MSC
slide-36
SLIDE 36

SS7 firewall bypass

slide-37
SLIDE 37

SS7 firewall typical deployment scheme

HLR STP

  • 1. SS7 message
  • 3. SS7 message

SS7 firewall

  • 2. SS7

message

slide-38
SLIDE 38

SS7 firewall typical deployment scheme

HLR STP

  • 1. SRI Request: MSISDN

SS7 firewall

  • 2. SRI Request: MSISDN

The message is blocked

SRI – SendRoutingInfo

slide-39
SLIDE 39

Application Context Name change

slide-40
SLIDE 40

SS7 firewall bypass with malformed ACN

HLR STP

1. SRI Request: MSISDN Malformed ACN

SS7 firewall

  • 2. SRI Request: MSISDN

Malformed ACN

Malformed ACN

slide-41
SLIDE 41

SS7 firewall bypass with malformed ACN

HLR STP

1. SRI Request: MSISDN Malformed ACN

  • 2. SRI Request: MSISDN

Malformed ACN

  • 3. SRI Response: IMSI, …
  • 3. SRI Response: IMSI, …

SS7 firewall is aside

SS7 firewall

slide-42
SLIDE 42

Positioning enhancement

slide-43
SLIDE 43

Positioning attack idea

slide-44
SLIDE 44

Positioning attack idea

slide-45
SLIDE 45

Positioning attack idea

slide-46
SLIDE 46

How we discovered

slide-47
SLIDE 47

How we discovered

slide-48
SLIDE 48

Recreating the position refinement attack

MSC/VLR

slide-49
SLIDE 49

Recreating the position refinement attack

CID 0DFB

ProvideSubscriberInfo CID: 0DFB

1

MSC/VLR

slide-50
SLIDE 50

Recreating the position refinement attack

CID 0DFB

ProvideSubscriberInfo CID: 0DFB UnstructuredSS-Notify

1 2

MSC/VLR

slide-51
SLIDE 51

Recreating the position refinement attack

CID 0DFB

ProvideSubscriberInfo CID: 0DFB UnstructuredSS-Notify

1 2

MSC/VLR

3

Paging

slide-52
SLIDE 52

Recreating the position refinement attack

CID 0DFB

ProvideSubscriberInfo CID: 0DFB UnstructuredSS-Notify

1 2

MSC/VLR

3

Paging

slide-53
SLIDE 53

Recreating the position refinement attack

CID 0191 CID 0DFB

ProvideSubscriberInfo CID: 0DFB UnstructuredSS-Notify

1 2

MSC/VLR

3

Paging Paging Response

slide-54
SLIDE 54

Recreating the position refinement attack

CID 0191 CID 0DFB

ProvideSubscriberInfo CID: 0DFB UnstructuredSS-Notify

1 2

MSC/VLR

3

Paging Paging Response

. . .

returnError

slide-55
SLIDE 55

Recreating the position refinement attack

CID 0191 CID 0DFB

ProvideSubscriberInfo CID: 0DFB UnstructuredSS-Notify

1 2

returnError

MSC/VLR

3

Paging Paging Response

. . .

returnError

slide-56
SLIDE 56

Recreating the position refinement attack

ProvideSubscriberInfo CID: 0DFB UnstructuredSS-Notify

1 2 3 4

Paging ProvideSubscriberInfo CID: 0191 returnError Paging Response

. . .

MSC/VLR

CID 0DFB CID 0191

returnError

slide-57
SLIDE 57

On the map

slide-58
SLIDE 58

Main problems in SS7 security

SS7 architecture flaws

Configuration mistakes

Software bugs

slide-59
SLIDE 59

Things to remember

  • 1. Deploying security tool does not mean the network

is secure. About 67% of SMS Home Routing solutions in tested networks were bypassed.

  • 2. Test the network. Penetration testing is a good

practice to discover a lot of vulnerabilities. Discover and close existing vulnerabilities before hackers find and exploit them.

  • 3. Know the perimeter. The continuous security

monitoring allows a mobile operator to know which vulnerabilities are exploited and they are able to protect the network.

slide-60
SLIDE 60

Thank you!

ptsecurity.com

Sergey Puzankov spuzankov@ptsecurity.com