taking over telecom networks...nodeb rnc msc/vlr ol o mvn o ipx mvn o intern et other data network...

27
Taking Over Telecom Networks Hardik Mehta (@hardw00t) Loay Abdelrazek (@sigploit) 1 Taking Over Telecom Networks - Hardik Mehta (@hardw00t) and Loay Abdelrazek (@sigploit)

Upload: others

Post on 04-Feb-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Taking Over Telecom Networks...NodeB RNC MSC/VLR OL O MVN O IPX MVN O Intern et Other Data Network Access Network Core Network OLT FTT H 3G 4G CD N Streaming Server Content DRM Transcoder

Taking Over Telecom Networks

Hardik Mehta (@hardw00t)

Loay Abdelrazek (@sigploit)

1Taking Over Telecom Networks - Hardik Mehta (@hardw00t) and Loay Abdelrazek (@sigploit)

Page 2: Taking Over Telecom Networks...NodeB RNC MSC/VLR OL O MVN O IPX MVN O Intern et Other Data Network Access Network Core Network OLT FTT H 3G 4G CD N Streaming Server Content DRM Transcoder

Press Release: some highlights

2Taking Over Telecom Networks - Hardik Mehta (@hardw00t) and Loay Abdelrazek (@sigploit)

Page 3: Taking Over Telecom Networks...NodeB RNC MSC/VLR OL O MVN O IPX MVN O Intern et Other Data Network Access Network Core Network OLT FTT H 3G 4G CD N Streaming Server Content DRM Transcoder

Glossary

3Taking Over Telecom Networks - Hardik Mehta (@hardw00t) and Loay Abdelrazek (@sigploit)

Acronyms Definition

Operator Telecom service providerSubscriber A user using he services of the telecom operator

SS7 Signalling System 7 is a signalling protocolMME Mobility Management Entity (MME) is responsible for initiating paging and

authentication of the mobile device in LTE networksSGW Serving Gateway (SGW) is responsible for creating and maintaining

subscriber’s data traffic in LTE networksHLR Home Location Register (HLR) is the main database containing subscriber

informationMSC Mobile Switching Centre (MSC) is a telephone exchange which makes

connection between mobile users within the networkCRBT Caller Ring Back Tone (CRBT) solution is part of value added services which

enables subscriber to opt for a personalised ring back toneIMSI International Mobile Subscriber Identity (IMSI) is an internationally

standardized unique number to identify a mobile subscriber

Page 4: Taking Over Telecom Networks...NodeB RNC MSC/VLR OL O MVN O IPX MVN O Intern et Other Data Network Access Network Core Network OLT FTT H 3G 4G CD N Streaming Server Content DRM Transcoder

Architecture Illustration

4Taking Over Telecom Networks - Hardik Mehta (@hardw00t) and Loay Abdelrazek (@sigploit)

Page 5: Taking Over Telecom Networks...NodeB RNC MSC/VLR OL O MVN O IPX MVN O Intern et Other Data Network Access Network Core Network OLT FTT H 3G 4G CD N Streaming Server Content DRM Transcoder

5

Architecture Illustration

ENodeBSGW

MME

PGW

HSS

IMS

GRX

Internet

PCRF Other

Data Network

SGSN

GGSN

HLRNodeB RNC

MSC/VLR

OLO

MVNO

IPX

MVNO

Internet

Other Data Network

Access Network Core Network

OLTFTTH

3G

4G

CDN

Streaming Server

ContentDRM

TranscoderSBC

CRBT

Taking Over Telecom Networks - Hardik Mehta (@hardw00t) and Loay Abdelrazek (@sigploit)

Page 6: Taking Over Telecom Networks...NodeB RNC MSC/VLR OL O MVN O IPX MVN O Intern et Other Data Network Access Network Core Network OLT FTT H 3G 4G CD N Streaming Server Content DRM Transcoder

Possible Entry Points

6Taking Over Telecom Networks - Hardik Mehta (@hardw00t) and Loay Abdelrazek (@sigploit)

Page 7: Taking Over Telecom Networks...NodeB RNC MSC/VLR OL O MVN O IPX MVN O Intern et Other Data Network Access Network Core Network OLT FTT H 3G 4G CD N Streaming Server Content DRM Transcoder

7

Possible Entry Points

ENodeBSGW

MME

PGW

HSS

IMS

GRX

Internet

PCRF Other

Data Network

SGSN

GGSN

HLRNodeB RNC

MSC/VLR

OLO

MVNO

IPX

MVNO

Internet

Other Data Network

Access Network Core Network

OLTFTTH

3G

4G

CDN

Streaming Server

ContentDRM

TranscoderSBC

CRBT

Taking Over Telecom Networks - Hardik Mehta (@hardw00t) and Loay Abdelrazek (@sigploit)

Page 8: Taking Over Telecom Networks...NodeB RNC MSC/VLR OL O MVN O IPX MVN O Intern et Other Data Network Access Network Core Network OLT FTT H 3G 4G CD N Streaming Server Content DRM Transcoder

Attack Vectors

8Taking Over Telecom Networks - Hardik Mehta (@hardw00t) and Loay Abdelrazek (@sigploit)

Page 9: Taking Over Telecom Networks...NodeB RNC MSC/VLR OL O MVN O IPX MVN O Intern et Other Data Network Access Network Core Network OLT FTT H 3G 4G CD N Streaming Server Content DRM Transcoder

9

Attack VectorsMobile Stations (3G/ 4G):

• Enumeration and exploitation of internal core network nodes• Sending crafted SIP messages to perform tasks like, Caller ID spoofing• Identifying nodes running signaling stacks (e.g. SIGTRAN stack) and sending malicious

signaling traffic using SigPloit

Taking Over Telecom Networks - Hardik Mehta (@hardw00t) and Loay Abdelrazek (@sigploit)

ENodeB4G

SGW

MME

PGW

Evolve Packet Core

EPDGPCRF

I CSCF

P CSCF

HSSIMS

S- CSCF

Datacenter

Network Operations

Corporate Network

Page 10: Taking Over Telecom Networks...NodeB RNC MSC/VLR OL O MVN O IPX MVN O Intern et Other Data Network Access Network Core Network OLT FTT H 3G 4G CD N Streaming Server Content DRM Transcoder

10

Attack Vectors

Taking Over Telecom Networks - Hardik Mehta (@hardw00t) and Loay Abdelrazek (@sigploit)

Fiber to The Home (FTTH):• Enumeration and exploitation of internal core network nodes• VLAN hoping possible between VoIP, ITPV and Data• Using VoIP, Crafted SIP messages can be sent to perform SIP attacks like DoS• Using IPTV, Send crafted IGMP messages to subscribe unbilled channels

OLTFTTH

CDN

Streaming Server

ContentDRM

TranscoderSBC

SGW

MME

PGW

Evolve Packet Core

EPDGPCRF

I CSCF

P CSCF

HSSIMS

S- CSCF

Datacenter

Network Operations

Corporate Network

Page 11: Taking Over Telecom Networks...NodeB RNC MSC/VLR OL O MVN O IPX MVN O Intern et Other Data Network Access Network Core Network OLT FTT H 3G 4G CD N Streaming Server Content DRM Transcoder

11

Attack Vectors

Taking Over Telecom Networks - Hardik Mehta (@hardw00t) and Loay Abdelrazek (@sigploit)

Internet:• Compromise web applications deployed in DMZ• Exploitation of internal network components possible if there is lack of segregation between

DMZ and core network• Possible to connect with network nodes (e.g. PGW/GGSN or SGSN) exposed on the public

domain• Sending crafted SIP messages to SBCs exposed on the public domain

SGW

MME

PGW

Evolve Packet Core

EPDGPCRF

I CSCF

P CSCF

HSSIMS

S- CSCF

Datacenter

Network Operations

Corporate Network

Internet

Page 12: Taking Over Telecom Networks...NodeB RNC MSC/VLR OL O MVN O IPX MVN O Intern et Other Data Network Access Network Core Network OLT FTT H 3G 4G CD N Streaming Server Content DRM Transcoder

12

Attack Vectors

Taking Over Telecom Networks - Hardik Mehta (@hardw00t) and Loay Abdelrazek (@sigploit)

Roaming interfaces:• Using SS7, perform HLR lookup to get subscriber information like, IMSI and serving MSC• Using GTP, identify active tunnel session and hijack the session• Using SS7/ Diameter, perform attacks leading to fraud like over-billing• Using SS7/ Diameter, perform interception attacks like, SMS and Call

Reference: SS7 Locate Track Manipulate - Tobias Engel

Page 13: Taking Over Telecom Networks...NodeB RNC MSC/VLR OL O MVN O IPX MVN O Intern et Other Data Network Access Network Core Network OLT FTT H 3G 4G CD N Streaming Server Content DRM Transcoder

Attack VectorsPassive IMSI Sniffing using RTL-SDR and OsmocomBB phone

Taking Over Telecom Networks - Hardik Mehta (@hardw00t) and Loay Abdelrazek (@sigploit) 13

Page 14: Taking Over Telecom Networks...NodeB RNC MSC/VLR OL O MVN O IPX MVN O Intern et Other Data Network Access Network Core Network OLT FTT H 3G 4G CD N Streaming Server Content DRM Transcoder

14

Attack Vectors

Taking Over Telecom Networks - Hardik Mehta (@hardw00t) and Loay Abdelrazek (@sigploit)

Passive IMSI Sniffing using RTL-SDR and OsmocomBB phone

Page 15: Taking Over Telecom Networks...NodeB RNC MSC/VLR OL O MVN O IPX MVN O Intern et Other Data Network Access Network Core Network OLT FTT H 3G 4G CD N Streaming Server Content DRM Transcoder

15

Attack Vectors

Roaming in Pakistan

https://github.com/SigPloiter/HLR-Lookups

Taking Over Telecom Networks - Hardik Mehta (@hardw00t) and Loay Abdelrazek (@sigploit)

Page 16: Taking Over Telecom Networks...NodeB RNC MSC/VLR OL O MVN O IPX MVN O Intern et Other Data Network Access Network Core Network OLT FTT H 3G 4G CD N Streaming Server Content DRM Transcoder

16

Attack Vectors

DNS Lookups for exposed LTE nodes “3gppnetwork.org”

epc.mnc<MNC>.mcc<MCC>.3gppnetwork.org

Example Realm Format

Taking Over Telecom Networks - Hardik Mehta (@hardw00t) and Loay Abdelrazek (@sigploit)

Page 17: Taking Over Telecom Networks...NodeB RNC MSC/VLR OL O MVN O IPX MVN O Intern et Other Data Network Access Network Core Network OLT FTT H 3G 4G CD N Streaming Server Content DRM Transcoder

Attack Scenario

Taking Over Telecom Networks - Hardik Mehta (@hardw00t) and Loay Abdelrazek (@sigploit) 17

Page 18: Taking Over Telecom Networks...NodeB RNC MSC/VLR OL O MVN O IPX MVN O Intern et Other Data Network Access Network Core Network OLT FTT H 3G 4G CD N Streaming Server Content DRM Transcoder

18

Attack Scenario‐ Internal network enumeration

resulted in identification of node part of VAS networks, CRBT

‐ Caller Ring Back Tone (CRBT), is connecting with HLR ,MSC and IN charging nodes and it enables customers to subscribe for personalized audio, in place of regular tone

‐ Due to lack of basic security controls, it was possible to gain root access of the node from subscriber network segment

Taking Over Telecom Networks - Hardik Mehta (@hardw00t) and Loay Abdelrazek (@sigploit)

ENodeBSGW

MME

PGW

HSSPCR

F

SGSN

GGSN

HLRNodeB RNC

MSC/VLR3G

4G

CRBT

Page 19: Taking Over Telecom Networks...NodeB RNC MSC/VLR OL O MVN O IPX MVN O Intern et Other Data Network Access Network Core Network OLT FTT H 3G 4G CD N Streaming Server Content DRM Transcoder

19

Attack Scenario ‐ The compromised node is connected to the

core.‐ It is then possible to use the node to initiate

other core related attacks (i.e using protocol vulnerabilities like SS7, Diameter of GTP).

‐ Using a global title scanner, we can gather more info about the SS7 core.

https://github.com/SigPloiter/GTScanTaking Over Telecom Networks - Hardik Mehta (@hardw00t) and Loay Abdelrazek (@sigploit)

Page 20: Taking Over Telecom Networks...NodeB RNC MSC/VLR OL O MVN O IPX MVN O Intern et Other Data Network Access Network Core Network OLT FTT H 3G 4G CD N Streaming Server Content DRM Transcoder

Attack Scenario ‐ HLR(s) are identified.‐ Query the HLR(s) to retrieve the IMSI.‐ Bypassing SMS Home Routing if implemented.‐ IMSI is the key to any mobile operation.

Attacker MSC HLR

SendRoutingInfoForSM Req.(MSISDN)

SendRoutingInfoForSM Resp.(IMSI, VMSC GT)

https://github.com/SigPloiter/SigPloitTaking Over Telecom Networks - Hardik Mehta (@hardw00t) and Loay Abdelrazek (@sigploit) 20

Page 21: Taking Over Telecom Networks...NodeB RNC MSC/VLR OL O MVN O IPX MVN O Intern et Other Data Network Access Network Core Network OLT FTT H 3G 4G CD N Streaming Server Content DRM Transcoder

21

Attack Scenario

Parameter ImpactIMSI Impersonation

Data overbilling

Authentication Vector Retrieval

MSC GT Subscriber profile Manipulation

Interception

Tracking

DoS

Taking Over Telecom Networks - Hardik Mehta (@hardw00t) and Loay Abdelrazek (@sigploit)

Identification of IMSI and MSC GT can help attackers perform various further attacks

Page 22: Taking Over Telecom Networks...NodeB RNC MSC/VLR OL O MVN O IPX MVN O Intern et Other Data Network Access Network Core Network OLT FTT H 3G 4G CD N Streaming Server Content DRM Transcoder

Attack Scenario ‐ Internet at the expense of

others.‐ Works for EPC and UMTS

packet core.‐ Using GTPv1 or GTPv2.‐ Hijack the data connection of a

subscriber using his retrieved IMSI.

Reference: Positive Technologies EPC Research 2018

Taking Over Telecom Networks - Hardik Mehta (@hardw00t) and Loay Abdelrazek (@sigploit) 22

Page 23: Taking Over Telecom Networks...NodeB RNC MSC/VLR OL O MVN O IPX MVN O Intern et Other Data Network Access Network Core Network OLT FTT H 3G 4G CD N Streaming Server Content DRM Transcoder

Attack Scenario

Taking Over Telecom Networks - Hardik Mehta (@hardw00t) and Loay Abdelrazek (@sigploit) 23

Page 24: Taking Over Telecom Networks...NodeB RNC MSC/VLR OL O MVN O IPX MVN O Intern et Other Data Network Access Network Core Network OLT FTT H 3G 4G CD N Streaming Server Content DRM Transcoder

Attack Demonstration

Taking Over Telecom Networks - Hardik Mehta (@hardw00t) and Loay Abdelrazek (@sigploit) 24

Page 25: Taking Over Telecom Networks...NodeB RNC MSC/VLR OL O MVN O IPX MVN O Intern et Other Data Network Access Network Core Network OLT FTT H 3G 4G CD N Streaming Server Content DRM Transcoder

Best Practices

Taking Over Telecom Networks - Hardik Mehta (@hardw00t) and Loay Abdelrazek (@sigploit) 25

Page 26: Taking Over Telecom Networks...NodeB RNC MSC/VLR OL O MVN O IPX MVN O Intern et Other Data Network Access Network Core Network OLT FTT H 3G 4G CD N Streaming Server Content DRM Transcoder

Best Practices to Reduce Attack Exposure• Implement network traffic segregation.• Bind services to correct network interfaces.• Limit the reachability of internal nodes from UEs.• Limit the reachability of network nodes from Internet by configuring correctly routing protocols• Deploy secure configuration of network nodes

• Secure configuration of all network services;• Disabling of insecure and unneeded network services;• Changing of default passwords;• Hardening;• Configuration and enabling of authentication and access control; Logging of all access attempts and other security-relevant events;• Configuration of the network node to not disclose unnecessary information;• Continuous deployment of the latest security patches.• Security testing and regular vulnerability scanning;

• Implement traffic filtering policies at the boundaries.• Basic IP Filtering;• Signaling FW;

• Monitor network traffic to discover anomalies.• Deploy a Security Signaling Monitoring (Intrusion Detection System / IDS).• Effective Threat modelling.

Taking Over Telecom Networks - Hardik Mehta (@hardw00t) and Loay Abdelrazek (@sigploit) 26

Page 27: Taking Over Telecom Networks...NodeB RNC MSC/VLR OL O MVN O IPX MVN O Intern et Other Data Network Access Network Core Network OLT FTT H 3G 4G CD N Streaming Server Content DRM Transcoder

Q&A

Thank You

27Taking Over Telecom Networks - Hardik Mehta (@hardw00t) and Loay Abdelrazek (@sigploit)