Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS...

37
. . . Femtocells : Inexpensive devices to test UMTS security Kévin Redon, Ravishankar Borgaonkar Technische Universität Berlin, SecT kredon/[email protected] Hackito Ergo Sum 2011, 8 April 2011

Transcript of Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS...

Page 1: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

.

.. ..

.

.

Femtocells : Inexpensive devices to testUMTS security

Kévin Redon, Ravishankar Borgaonkar

Technische Universität Berlin, SecTkredon/[email protected]

Hackito Ergo Sum 2011, 8 April 2011

Page 2: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securitysingularity big bang cyberspace

telephony

telegraph invented in the early 1800sidea of a "speaking telegraph" emerges in 1844patent for "voice through a telegraphic circuit" filedin 1876application : speaking instantaneously over longdistances

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 2 / 37

Page 3: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securitysingularity big bang cyberspace

0G/1G

need for business people to be reachable at anytime, anywhere0G - 1950 : not so handy. proprietary attempts1G - 1980 : similar to 2G, but with analog voice(like in PSTN)

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 3 / 37

Page 4: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securitysingularity big bang cyberspace

2G : Global System for Mobile Communications (GSM)

mobile standard developed in France in 1991(Groupe Spécial Mobile)very popular, unexpected by the telcosnow used world wide

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 4 / 37

Page 5: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securitysingularity big bang cyberspace

2G : GSM now broken

infrastructure elements now available to the publicIMSI catching possible (no network authentication)sniffing possible (A5/1 encryption algorithm broken)MitM possible (A5/2 encryption algorithm broken)

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 5 / 37

Page 6: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securitysingularity big bang cyberspace

2G+ : data over mobile

2G : "Internet" access with WAP2.5G : GPRS. Packet Switching capability2.75G : EDGE. Faster, but still too slow

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 6 / 37

Page 7: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securitysingularity big bang cyberspace

3G : Universal Mobile Telecommunications System (UMTS)

appeared in 2002voice and data communicationthe phone becomes a network devicerequired and supported by smartphones

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 7 / 37

Page 8: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securitysingularity big bang cyberspace

3G+ : usable Internet

3.5G : HSDPA, faster download3.75G : HSUPA, faster upload3.9G : LTE/WiMAX attempts

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 8 / 37

Page 9: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securityUMTS architecture Home Node B (HNB) HNB Subsystem (HNS)

UMTS architecture (complex)

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 9 / 37

Page 10: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securityUMTS architecture Home Node B (HNB) HNB Subsystem (HNS)

UMTS architecture (simplified)

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 10 / 37

Page 11: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securityUMTS architecture Home Node B (HNB) HNB Subsystem (HNS)

cells

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 11 / 37

Page 12: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securityUMTS architecture Home Node B (HNB) HNB Subsystem (HNS)

technology

What is a femtocell :it's an access point (sometimes called FAP)it connects the mobile phone to the 3G/UMTSnetworkcompatible with every UMTS capable mobile phonesmall cell, with a coverage of less than 20mlow power deviceeasy to install, you only have provide power andInternet accesstechnical name : Home Node B (HNB)

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 12 / 37

Page 13: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securityUMTS architecture Home Node B (HNB) HNB Subsystem (HNS)

user advantages

advantages provided to the users :can be installed at home to provide coverage (if notavailable)provides high bandwidth (not shared with thepublic)can provide location based services (kids arrived athome)

but nothing Wifi can not provide for free, except youdon't have to configure the phone.

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 13 / 37

Page 14: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securityUMTS architecture Home Node B (HNB) HNB Subsystem (HNS)

operator advantages

advantages for the operator :extended coverage, near to the userstraffic offloads from their public infrastructurecheap hardware, that the user even has to buyno installation costno maintenance costnew revenue possibilitiesIP connectivity

conclusion : femtocells are a great opportunity for theoperators.

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 14 / 37

Page 15: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securityUMTS architecture Home Node B (HNB) HNB Subsystem (HNS)

HNB in UMTS network

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 15 / 37

Page 16: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securityUMTS architecture Home Node B (HNB) HNB Subsystem (HNS)

HNB Subsystem

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 16 / 37

Page 17: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securityordering location verification blind dating recovery to failure customizing

requirements

How to get a femtocell :choose a country from the 12 which deploy themget an address and IP from this country, becauseusage in only allowed within the countryselect an operator from the 18 which offer themget a mobile phone subscription from this operator,required to get the femtocell servicegently ask for a femtocellget it for free, one time payment, or monthly feeenjoy ☺

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 17 / 37

Page 18: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securityordering location verification blind dating recovery to failure customizingpurpose

operators have to verify where the femtocell is, forseveral reasons:

prevent you to avoid roaming costs in foreigncountriesUMTS uses the 2.1 GHz freq. band, a licensedspectrum band. The operators own the radiolicenses for the femtocell only for their countrylocation of the users is required for lawfulinterception

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 18 / 37

Page 19: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securityordering location verification blind dating recovery to failure customizing

techniques

How to find were the femtocell is located :IP : geoIP, even knowing the ISP is enoughGNSS : Global Navigation Satellite System (oftenGPS)macrocell : cells periodically send country, network,and location information (MCC, MNC, LAC)

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 19 / 37

Page 20: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securityordering location verification blind dating recovery to failure customizing

attacks

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 20 / 37

Page 21: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securityordering location verification blind dating recovery to failure customizing

final solution

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 21 / 37

Page 22: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securityordering location verification blind dating recovery to failure customizing

under the hood

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 22 / 37

Page 23: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securityordering location verification blind dating recovery to failure customizing

first approach

sniffing :only DHCP and NTP, then everything goes overIPsecprobing ports (nmap) :only port 80 is open (linux has been detected, butthe source code is not available)web interface available :protected access, no documentation, even thecustomer service was unawareserial port :found on PCB, but login prompt is disabled

First impression : the device is secure. ☹But the first impression is not the last impression. ☺

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 23 / 37

Page 24: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securityordering location verification blind dating recovery to failure customizing

recovery mode and purpose

remember :keep femtocells cheapno maintenance costno local support

if something does not work right, do a factory reset.for that, the recovery procedure has been created.

this is a critical point

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 24 / 37

Page 25: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securityordering location verification blind dating recovery to failure customizing

process overview

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 25 / 37

Page 26: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securityordering location verification blind dating recovery to failure customizing

flaws and exploits

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 26 / 37

Page 27: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securityordering location verification blind dating recovery to failure customizing

reconfigure

the parameter list contains some interesting values :the login prompt or the serial port can be enabled(the root password is the same then in the recoveryimage, stored in md5)it includes the public key used to verify thesignaturesit's possible to clone femtocells (except the SIM)

[General]pcbid=P04S...imei=357539...mac=00:1B:67:...hwflag=2serial=P04S...

[BootSigning]pubkey=EE:17:C5:F2:...

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 27 / 37

Page 28: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securityordering location verification blind dating recovery to failure customizing

reflashthe firmware list contains all needed informations :

the URLs, encryption keys and signatures are inthereyou can use the previously obtained images, andmodify themyou can provide the modified imagesnow it's possible to install anything

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 28 / 37

Page 29: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securityauthentication & encryption en garde the end

testing 3G security features

femtocells can be used to check various classmarkssupported by mobiles

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 29 / 37

Page 30: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securityauthentication & encryption en garde the end

authentication tuples

information in the authentication tuples (RAND, XRES,IK, CK, AUTN) :

collect RAND and AUTNcheck randomness of RANDU. Meyer and S. Wetzel, A man-in-the-middle attackon UMTS, in Proceeding of The ACM Workshop onWireless Security (WiSe 2004), October 2004

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 30 / 37

Page 31: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securityauthentication & encryption en garde the end

encryption

calls are encrypted ...... up to the antennathen communication is clear textlike everything else is telecommunication network

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 31 / 37

Page 32: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securityauthentication & encryption en garde the end

phone capabilities

encryption over-the-air can even be turned offhelps to identify which phone indicating it (just afew)

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 32 / 37

Page 33: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securityauthentication & encryption en garde the end

the beginning of a story

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 33 / 37

Page 34: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securityauthentication & encryption en garde the end

episode 1

femtocells is an effective technology in terms ofoffloading the traffic and of new business casesbut ... the operators need to start thinking aboutsecurityfollow the specifications closely, secure the deviceand networkssome serious threats (ongoing work) :

test core networkbuild a MitMtest 3G phones

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 34 / 37

Page 35: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securityauthentication & encryption en garde the end

episode 2

4G (LTE Advanced) is comingall IP infrastructurevery closely connected elementsthe network needs to be compatible with oldtechnologyHeNB (evolved) are also on the way ☺

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 35 / 37

Page 36: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securityauthentication & encryption en garde the end

thanks

Thanks to :Nico Golde, TU BerlinCollin Mulliner, TU BerlinProf. Jean-Pierre Seifert, TU BerlinBenjamin Michéle, TU Berlin

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 36 / 37

Page 37: Femtocells : Inexpensive devices to test UMTS securityFemtocells : Inexpensive devices to test UMTS security Author: Kévin Redon, Ravishankar Borgaonkar Created Date: 4/8/2011 12:37:58

✆ mobile telecommunication ⚛ femtocells ☠ owning it ⚔ analyzing 3G securityauthentication & encryption en garde the end

questions

Merci

Questions ?

R. Borgaonkar, K. Redon HNB.secured?(UMTS) 37 / 37