How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack...

60
How to build Big Brother With blackjack and h--kers Yunusov Timur, Senior expert, Head of dept

Transcript of How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack...

Page 1: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother With blackjack and h--kers

Yunusov Timur, Senior expert, Head of dept

Page 2: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

Page 3: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

When/Who/Where/Andwhy???

•   2014-2015

Page 4: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

When/Who/Where/Andwhy???

•   2014-2015•   «rootviaSMS»SCADAStrangeLoveh@ps://youtu.be/T9AFFIVpCa8

•   Russiaandthewholeworld

Page 5: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

When/Who/Where/Andwhy???

•   2014-2015•   «rootviaSMS»SCADAStrangeLoveh@ps://youtu.be/T9AFFIVpCa8

•   Russiaandthewholeworld•   Causenobodycares(((

Page 6: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

Boringnumbers

Page 7: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

Boringnumbers

•   >10(8diff)3G/4Gmodems/routers•   75%vulnstoRCE/fwmodifica]on•   60%RCEare0days

Page 8: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

Boringnumbers

•   ~60000devices/1M/Telco•   5000devices/1W/SecurityLab•   100%vulnstoRCE/fwmodifica]on

Page 9: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

How?

Page 10: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

How?

+

Page 11: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

How?1.   Iden]fica]on2.   Codeinjec]on3.   Dataintercep]on4.   SIMcloning/GSMA@acks5.   HostInfec]on6.   APT7.   Returnto1.

Page 12: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

Iden]fica]on

Page 13: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

Iden]fica]on•   WHOIS?

Page 14: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

Iden]fica]on<imgsrc="h@p://192.168.0.1/img/1.png"style="height:0;width:0;"onload="set('1')"><imgsrc="h@p://192.168.0.1/img/2.jpg"style="height:0;width:0;"onload="set('2')"><imgsrc="h@p://hostname/img/3.png"style="height:0;width:0;"onload="set('3')"><imgsrc="h@p://127.0.0.1:5000/request"style="height:0;width:0;"onload="set('4')">

Page 15: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

Iden]fica]on•   GeoIP?

Page 16: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

CodeInjec]on•   Publicexploits+oldFW•   Blackbox•   FWAccess+FWRE+IDA•   FWmodifica]on+Arbitraryupload

Page 17: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

CodeInjec]on•   Publicexploits+oldFW

Page 18: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

CodeInjec]on•   Blackbox

•   ?ac]on=ping||shutdown–r0||•   ?date=;pingblahblah.com;

Page 19: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

CodeInjec]on•   Blackbox

Page 20: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

CodeInjec]on•   FWAccess+FWRE+IDA•   Gree]ngs:

•   KirillNesterov,•   DmitrySklyarov

Page 21: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

CodeInjec]on•   FWmodifica]on+Arbitraryupload

Page 22: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

CodeInjec]on•   FWmodifica]on+Arbitraryupload

•   Integritya@acks

Page 23: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

CodeInjec]on•   FWmodifica]on+Arbitraryupload

•   Integritya@acks•   Remoteupload(CSRF/XSS)

Page 24: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

CodeInjec]on•   FWmodifica]on+Arbitraryupload

•   Integritya@acks•   Remoteupload(CSRF/XSS)•   Localupload(diagmode)

Page 25: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

CodeInjec]on•   FWmodifica]on+Arbitraryupload

•   Integritya@acks

Page 26: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

FWIntegrityControl•   FWencryptedviaRC4•   RSADigitalSignature+SHA1

Page 27: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

FWIntegrityControl

Page 28: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

FWIntegrityControl•   FWencryptedviaRC4

Page 29: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

FWIntegrityControl•   FWencryptedviaRC4

•   Constantkeystream FAIL•   Part1XORPart2 FAIL•   FW1XORFW2 FAIL•   Lotofplaintext(CDROM) FAIL

Page 30: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

FWIntegrityControl•   FWencryptedviaRC4 FAIL

Page 31: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

FWIntegrityControl•   RSADigitalSignature+SHA1

•   AR:!<arch>:•   FW•   pkginfo:<7742526>•   Sign=RSA(SHA1(FW[0..7742526]))

Page 32: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

FWIntegrityControl•   RSADigitalSignature+SHA1

Page 33: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

FWIntegrityControl•   RSADigitalSignature+SHA1

•   ar--adddata.tar.gz•   ar-v

•   data.tar.gz•   sign•   pkginfo•   data.tar.gz

Page 34: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

FWIntegrityControl•   RSADigitalSignature+SHA1 FAIL

•   ar--adddata.tar.gz•   ar-v

•   data.tar.gz•   sign•   pkginfo•   data.tar.gz

Page 35: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

FWupload/CSRF

h@p://blog.kotowicz.net/2011/04/how-to-upload-arbitrary-file-contents.html

Page 36: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

FWupload/XSS•   HUAWEIPSIRT436642(2015-05-29)

h@p://www1.huawei.com/en/security/psirt/security-bulle]ns/security-no]ces/archive/hw-436642.htm

Page 37: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

Dataintercep]on•   CellID•   WiFi•   SMS•   HTTP•   SSL

Page 38: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

Dataintercep]on•   CellID

•   h@p://opencellid.org/+XSS

Page 39: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

Dataintercep]on•   WiFi

Page 40: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

Dataintercep]on•   SMS

Page 41: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

Dataintercep]on•   HTTP

•   ARP-spoofing•   DNS-spoofing

Page 42: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

Dataintercep]on•   SSL

•   HostRCE

Page 43: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

SIMCloning•   FakeBTS+BinarySMS•   GEO(!)•   IMSI

h@ps://media.blackhat.com/us-13/us-13-Nohl-Roo]ng-SIM-cards-Slides.pdf

Page 44: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

SIMCloning•   UseTheForce

Page 45: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

SIMCloning•   Diagmode

Page 46: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

SIMCloning•   SendATcommands

•   AT+CMGF=0

Page 47: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

GSMA@acks•   Huawei:Remote(!)osmocommforbeggars•   VxWorksonbasebandhi6920

―LoadedbyLinux―Packedonflash―dmesg=>loadvxworksok,entey0x50d10000―Cshell •OScommunica]on •Buil]ndebuger―Nearlyallnamesofobjects/func]ons―POSIX+documenta]on

Page 48: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

HostInfec]on•   BadUSB•   Fakediagnos]ctools/CDROM•   HTMLInjec]on+0day•   Evenrealdiagnos]ctools=))

Page 49: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

HostInfec]on•   BadUSB

•   Androidgadgetdriver(supported_func]onspatching)

•   HIDGadgetonboard!•   Lotsofboringstuff

Page 50: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

HostInfec]on•   DriveByDownload•   CDROM

Page 51: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

HostInfec]on•   HTMLInjec]on+0day

Page 52: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

HostInfec]on•   Kudosto@cyberpunkych•   Lotsofotherstuffatyota.hlsec.ru•   Butnobodycares(((

Page 53: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

APT

Page 54: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

APT

Page 55: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

APT•   Subscribersa@acksSubscribers

•   LISTEN0.0.0.0:80•   Firewalls

Page 56: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

Boringnumbers

Page 57: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

Funnumbers

•   RemoteCodeExecu]onviaWEB:5dev•   ArbitraryFWmodifica]on(rem/loc):6dev•   CSRF:5dev•   XSS:4dev

Page 58: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

DEMO

Page 59: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

How to build Big Brother

Kudos

•   @cyberpunkych•   D.Sklyarov•   K.Nesterov•   Al.Osipov•   @SCADASL

Page 60: How to build Big Brother With blackjack and h--kers€¦ · How to build Big Brother With blackjack and h--kers With 3G modems and hackers Yunusov Timur, Senior expert, Head of dept

Stay secure! Questions?