How to build Big Brother

57
How to build Big Brother Tim Yunusov @a66at

Transcript of How to build Big Brother

Page 1: How to build Big Brother

How to build Big Brother

Tim Yunusov@a66at

Page 2: How to build Big Brother

How to build Big Brother

With blackjack and h kersWith 3G modems and hackers

Tim Yunusov@a66at

Page 3: How to build Big Brother

About me

Tim YunusovSenior Expert, Application SecurityPositive Technologies

https://uk.linkedin.com/in/[email protected]@a66at

Page 4: How to build Big Brother

When/Who/Where/And why???

2014-2015

Page 5: How to build Big Brother

When/Who/Where/And why???

2014-2015«root via SMS» SCADAStrangeLove https://youtu.be/T9AFFIVpCa8Russia and the whole world

Page 6: How to build Big Brother

When/Who/Where/And why???

2014-2015«root via SMS» SCADA Strange Love https://youtu.be/T9AFFIVpCa8Russia and the whole worldCause nobody cares(((

Page 7: How to build Big Brother

Boring stats

Тимур Юнусов1
img
Page 8: How to build Big Brother

Boring stats

>10 (8 diff) 3G/4G modems/routers75% vulns to RCE/fw modification60% RCE are 0days

Page 9: How to build Big Brother

Boring stats

~60 000 devices/1M/Telco5000 devices/1W/SecurityLab100% vulns to RCE/fw modification

Page 10: How to build Big Brother

How

Page 11: How to build Big Brother

How

IdentificationCode injectionData interceptionSIM cloning / GSM AttacksHost InfectionAPT

Page 12: How to build Big Brother

Identification

WHOISFingerprintingPublic Databases

Page 13: How to build Big Brother

Fingerprinting

<img src="http://192.168.0.1/img/1.png" style="height:0;width:0;" onload="set('1')">

<img src="http://192.168.0.1/img/2.jpg" style="height:0;width:0;" onload="set('2')">

<img src="http://hostname/img/3.png" style="height:0;width:0;" onload="set('3')">

<img src="http://127.0.0.1:5000/request" style="height:0;width:0;" onload="set('4')">

Page 14: How to build Big Brother

Fingerprintingmini_httpd/1.19 19dec2003 /html/index.html

Page 15: How to build Big Brother

How

IdentificationCode injectionData interceptionSIM cloning / GSM AttacksHost InfectionAPT

Page 16: How to build Big Brother

Code Injection

Public exploits + old FWBlackboxFW Access + FW RE + IDAFW modification + Arbitrary upload

Page 17: How to build Big Brother

Code Injection

Page 18: How to build Big Brother

Code Injection

?action=ping || shutdown –r 0 ||?date=;ping%20blahblah.com;%20

Page 19: How to build Big Brother

Code Injection

?action=ping || shutdown –r 0 ||?date=;ping%20blahblah.com;%20

Page 20: How to build Big Brother

Code Injection

FW Access + FW RE + WEB DISASSMGreetings:

• Kirill Nesterov • Dmitry Sklyarov

Page 21: How to build Big Brother

Code Injection

FW Access + FW RE + #USETHEFORCE

Page 22: How to build Big Brother

Code Injection

FW modification + Arbitrary upload• Integrity attacks• Remote uploading (CSRF/XSS)• Local upload (diag mode)

Page 23: How to build Big Brother

Code Injection

Integrity attacks• FW encrypted via RC4• RSA digital signature + SHA1

Page 24: How to build Big Brother

Code Injection

Integrity attacks

Page 25: How to build Big Brother

Code Injection

FW encrypted via RC4

• Constant keystreamFAIL

• Part1 XOR Part2FAIL

• FW1 XOR FW2FAIL

• Lot of plaintext (CDROM) FAIL

Page 26: How to build Big Brother

Code Injection

FW encrypted via RC4FAIL

• Constant keystreamFAIL

• Part1 XOR Part2FAIL

• FW1 XOR FW2FAIL

• Lot of plaintext (CDROM) FAIL

Page 27: How to build Big Brother

Code Injection

RSA Digital Signature +SHA1

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

Page 28: How to build Big Brother

Code Injection

RSA Digital Signature +SHA1

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

Page 29: How to build Big Brother

Code Injection

RSA Digital Signature +SHA1

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

Page 30: How to build Big Brother

Code Injection

RSA Digital Signature +SHA1

ar --add data.tar.gzar -v

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

Page 31: How to build Big Brother

Code Injection

RSA Digital Signature +SHA1 FAIL

ar --add data.tar.gzar -v

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

Page 32: How to build Big Brother

Code Injection

FW uploading via CSRF

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

Page 33: How to build Big Brother

Code Injection

FW uploading via XSS

HUAWEI PSIRT 436642 (2015-05-29)http://www1.huawei.com/en/security/

psirt/security-bulletins/security-notices/archive/hw-436642.htm

Page 34: How to build Big Brother

How

IdentificationCode injectionData interceptionSIM cloning / GSM AttacksHost InfectionAPT

Page 35: How to build Big Brother

Data Interception

Cell IDWiFiSMSHTTPSSL

Page 36: How to build Big Brother

Data Interception

Cell ID + http://opencellid.org/• RCE • XSS

Page 37: How to build Big Brother

Data Interception

Wi-Fi

Page 38: How to build Big Brother

Data Interception

SMS

Page 39: How to build Big Brother

Data Interception

HTTP• ARP spoofing• DNS spoofing

Page 40: How to build Big Brother

Data Interception

SSL• Host RCE

Page 41: How to build Big Brother

How

IdentificationCode injectionData interceptionSIM cloning / GSM AttacksHost InfectionAPT

Page 42: How to build Big Brother

GEO(!) + IMSI =• Fake BTS + Binary SMS• OSMO + Radio dump + Kraken

https://media.blackhat.com/us-13/us-13-nohl-rooting-sim-cards-slides.pdf

SIM Cloning + GSM attacks

Page 43: How to build Big Brother

#USETHEFORCE

SIM Cloning + GSM attacks

Page 44: How to build Big Brother

Diag Mode

SIM Cloning + GSM attacks

Page 45: How to build Big Brother

Send AT commands

AT+CMGF=0

SIM Cloning + GSM attacks

Page 46: How to build Big Brother

How

IdentificationCode injectionData interceptionSIM cloning / GSM AttacksHost InfectionAPT

Page 47: How to build Big Brother

Host Infection

BadUSBFake diagnostic tools/CDROMHTML Injection + 0dayEven real diagnostic tools =))

Page 48: How to build Big Brother

Host Infection

Drive By DownloadCD-ROM

Page 49: How to build Big Brother

Host Infection

HTML Injection + 0day

Page 50: How to build Big Brother

Host Infection

Kudos to @cyberpunkychLots of other stuff at http://yota.hlsec.ru

Page 51: How to build Big Brother

How

IdentificationCode injectionData interceptionSIM cloning / GSM AttacksHost InfectionAPT

Page 52: How to build Big Brother

APT

Ident

RCE

Data

GSM

Host

APT

Page 53: How to build Big Brother

APT

Subscribers attacks subscribers• LISTEN 0.0.0.0:80• Firewalls

Page 54: How to build Big Brother

How

IdentificationCode injectionData interceptionSIM cloning / GSM AttacksHost InfectionAPT

Page 55: How to build Big Brother

Resume

Page 56: How to build Big Brother

KUDOS

@cyberpunkych@GIFTSUNGIVEN@SCADASLD. SklyarovK. Nesterov

Page 57: How to build Big Brother

Write me ;-)

Tim Yunusovhttps://uk.linkedin.com/in/[email protected]@a66at