Documente Academic
Documente Profesional
Documente Cultură
Who we are
Old-school network geeks, working as security researchers for Germany based ERNW GmbH
Independent Deep technical knowledge Structured (assessment) approach Business reasonable recommendations We understand corporate
Introductory notes
In contrast to our last years talks we dont have demos to show today.
This doesnt mean that we did not perform practical stuff ;-)
Being responsible researchers we wont give details of innocent parties in the Internet either. Still the main message of this presentation is, as in most of our talks, to provide some view on theory & reality ;-)
ERNW GmbH | Breslauer Str. 28 | D-69124 Heidelberg | www.ernw.de
Agenda
Fundamentals Attacks from within mobile telco network Attacks from Internet
Conclusions
Fundamentals
Standards, Architecture, Protocols
{dmende, erey}@ernw.de
Standards
In mobile telco world everything standardized by 3GPP 3GPP: collaboration between groups of telco standard orgs
Which type of documents do you think these guys produce? ;-)
bulky ;-)
2G/3G
UTRAN Node B RNC Node B OAM HLR BTS BSC BTS GERAN
P C U
AuC SMSC
SGSN
RAN: Radio Access Network UTRAN: UMTS RAN GERAN: GSM Enhanced RAN PCU: Paket Control Unit
RNC: Radio Network Controller BTS: Base Transceiver Station BSC: Base Station Controller HLR: Home Location Register
MSC: Mobile Switching Center VLR: Visitor Location Register GMSC: Gateway MSC GSN: GPRS Support Node
Source: 3GPP AuC: Authentication Center OAM: Operation Administration & Maintenance SMSC: Short Message Service Center S/GGSN: Serving/Gateway GSN
4G
Terminals Radio Access Network / eUTRAN Core Network IP Service Networks
eNB
MME
SAE-GW
Internet
AAA
Authentication
DIAMETER
Others
L2TP, DSMIPv6 etc. Lots of areas for future research ;-)
SCTP - Overview
SCTP
Stream Control Transmission Protocol Specified by IETF, maintained IETF Transport Area (TSVWG) WG
Specs:
RFC 3286 (Introduction) RFC 2960 (2000) RFC 3309 RFC 4960 (2007) RFC 5062
10
SCTP Comparison
Protocol State required at each endpoint Reliable data transfer Congest control and avoidance Message boundary conservation Path MTU discovery and message fragmentation Message bundling Multi-homed hosts support Multi-stream support Unordered data delivery Security cookie against SYN flood attack Built-in heartbeat (reachibility check) SCTP Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes TCP Yes Yes Yes No Yes Yes No No No No No UDP No No No Yes No No No No No No No
11
12
SCTP Timeline
RFC 2960 (2000): initial spec RFC 4960 (2007): major rewrite RFC 5062 (2007) Security Attacks Found Against the Stream Control Transmission Protocol (SCTP) and Current Countermeasures So, over time SCTP has changed a bit
13
Practical Problems
Philippe Langlois SCTPscan didnt work either. Daniel wrote quick+dirty simple SCTP port scanner.
ERNW GmbH | Breslauer Str. 28 | D-69124 Heidelberg | www.ernw.de
14
15
Unpack, unpack!
17
In mobile communication
Mobile Backhaul Carries data from the RAN to the management network and back.
18
Mobile Backhaul
19
Backhaul networks in 4G
4G specific requirements laid out by 3GPP Includes
eNodeB MME SGW
MME
eNB
SAE-GW
Internet
AAA
Represents
The transport network between eNodeB and MME The transport network between eNodeB and SGW
20
21
4G aggregates dumb BTS and BSC/RNC functions on one device eNB not dumb anymore.
22
Eavesdropping
Will get you some key material
but what would you need this for? Pretty much everything is unencrypt. here anyway.
Thats why 3GPP insists on using IPsec gateways. Subsequent question: do (which) operators implement this? In standard bodies $SOME_BIG_COUNTRY (hint: in Asia) strongly opposed this recommendation.
23
24
25
Some results
Standard attack approach did not yield anything
At least nothing interesting UDP Echo service was open on some devices and might be exploitable for mutual amplification attack between those (with spoofed source IP)
Still, this is a bit, well lame ;-)
Using our own SCTP scan tool gave some open ports
Some of those obscure signaling protocols.
ERNW GmbH | Breslauer Str. 28 | D-69124 Heidelberg | www.ernw.de
26
Scanning
nmap scan report for 10.40.68.2 [] PROTOCOL STATE 1 open 2 open|filtered 4 open|filtered 6 open 17 open 41 open|filtered 45 open|filtered 132 open|filtered Port Port Port Port 36410 36411 36412 36413
closed on 10.40.68.2: [Errno 111] Connection refused closed on 10.40.68.2: [Errno 111] Connection refused open on 10.40.68.2 closed on 10.40.68.2: [Errno 111] Connection refused
ERNW GmbH | Breslauer Str. 28 | D-69124 Heidelberg | www.ernw.de
27
Fuzzing $SOME_SIGNALING_PROT
Started fuzzer All of a sudden fuzzing script got slower
System sent SCTP ABORT messages instead of valid responses Obviously sth has happened ;-)
Probably daemon had crashed
28
Postmortem
First (!) field of packet payload responsible for major crash.
29
More attacks
Theoretical at this point
But we will continue testing, either with own equipment or in that lab.
It seems some authentication info is sometimes cached. We assume some signaling protocols can be DoSed on the function level once we get the circumstances right. There are some new self organizing mechanisms one might be able to interfere with. Yes, vagueness abounds on this slide...
ERNW GmbH | Breslauer Str. 28 | D-69124 Heidelberg | www.ernw.de
30
31
GTP
GPRS Tunneling Protocol
Specified by 3GPP
IP-based protocol initially used to carry GPRS within GSM and UMTS networks.
Plays major role in 4G networks as well.
Three variants
GTP-C used for control plane (signaling) GTP-U used for user data GTP used for charging data
ERNW GmbH | Breslauer Str. 28 | D-69124 Heidelberg | www.ernw.de
32
GTP
GTP-C
Control section of the GTP standard In 3G used for signaling between SGSN and GGSN Activates and deactivates GTP sessions
GTP-U
Used for data transport between the RAN and the core network Can tunnel packets in several formats: IPv4, IPv6, PPP etc.
GTP
Used in 3G for transmitting charging data from the CDF (Charging Data Function) to the CGF (Charging Gateway Function).
ERNW GmbH | Breslauer Str. 28 | D-69124 Heidelberg | www.ernw.de
33
GTP in 4G
34
TEID
Tunnel Endpoint Identifier Do I need to explain that it serves to identify endpoints of tunnels? ;-)
For each (user) data session.
35
TEID
Apparently some discussion about it being random
For obvious (?) security reasons. Although we were not able to find spec prescribing this.
What we observed
0x00005c35 0x00005c4d 0x00005c65 0x00005c7d 0x00005c95 [ ] Does this look random to you ?
36
Potentially DoS of user sessions doable. In case of switched TEIDs mixing sessions possible?
Remember TEID is the only separating element of user sessions.
37
The script (gtp-scan) will be released after ShmooCon. Pls check www.insinuator.net for updates...
38
39
Some statistics
Version 1 Version 2 AfriNIC APNIC ARIN LACNIC RIPE UP 31 131 29 14 97 302 26 90 51 18 435 620 Complete 57 221 80 32 532 922 % 6.182213 23.96963 8.67679 3.470716 57.70065
Portscan
21 22 23 80
0 0 1 0
43 39 31 49
43 39 32 49
40
whois
organisation: org-name: org-type: country: address: address: address:
GH
Accra
41
whois
organisation: org-name: org-type: country: address: address: xy_org (Cote d'Ivoire) CI
42
whois
status: owner: ownerid: responsible: address: address: Asuncin (Paraguay) country: PY
43
whois
Organisation: org-name: org-type: Country: Address: Address: address:
Cairo
This box had FTP and SSH open. Hold up your signs and guess the password ;-) For the correct answer Ill spend a beer, or two. For some reason its currently unavailable...
ERNW GmbH | Breslauer Str. 28 | D-69124 Heidelberg | www.ernw.de
44
Conclusions
We expect to see a number of attacks in 3G and 4G mobile telco networks in the next years, for some reasons
Walled (telco) gardens are vanishing. At the same time terminals get more and more powerful. In the future its all IP in those networks. Theres a complex (IP based) protocol landscape. And potentially ppl_outside_telcos are able to understand these prots. As there are apparently people understanding Siemens PCS 7...
Theory
reality
45
Credits
To Daniel for his thorough protocol understanding and coding skills. ShmooCon 2011 misses you! [I know hes watching the livestream ;-)] To Simon for his helping hands. To our students Hendrik and Kai for digging restlessly through standards, preparing slides, etc. THANK YOU!
46
Shameless Announcements
TROOPERS11
March 28th April 1st 2011 Heidelberg You wont be alone. Several US speakers and attendees are on site ;) Enjoy German beer. What?!
47
Questions?
48
49
Top-class audience
The whole ERNW Team is on-site and is looking forward to meet you in Heidelberg.
50
Learn more at www.troopers.de, follow us on Twitter @WEareTROOPERS ERNW GmbH | Breslauer Str. 28 | D-69124 Heidelberg | www.ernw.de 51 and meet with experts from around the world at TROOPERS11 in Heidelberg, Germany.