Заголовок 7 sins of atm - nullcon · 7 sins of atm protection against logical attacks...

45
Заголовок ptsecurity.com 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert

Upload: others

Post on 24-Aug-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

Заголовок

ptsecurity.com

7 sins of ATM protection against logical attacks

Timur Yunusov

Senior expert

Page 2: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

Заголовокwhoami

• Positive Technologies (from 2009)

• Application security researcher (from 2009)

• Banking systems security senior expert (from 2012)

• Big fan of #nullcon

• Always in search/research ;)

Page 3: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

Заголовокwhoami

• Positive Technologies (from 2009)

• Application security researcher (from 2009)

• Banking systems security senior expert (from 2012)

• Big fan of #nullcon

• Always in search/research ;)10+ ATMs for the last year

Page 4: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокATM security assessment

Page 5: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

Заголовок7 sins

• Kiosk bypass techniques

• Privilege escalation techniques

• Application control software bypass

• Network physical layer

• Device management

• Booting process

• Logical vulnerabilities

• OS / Software vulns /

Kiosk mode bypass

• Network attacks

• Hardware attacksHardware

Network

OS

Page 6: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокBlackbox

Blackbox is

dead

Page 7: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокBlackbox

Blackbox is

dead

Page 8: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокBlackbox

Blackbox is (almost)

dead (for researchers)

Have strong crypto btw

dispenser and OS?

BB is not possible

BB is possible

Yes

Page 9: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокKiosk mode bypass

Kiosk mode bypass

Windows XP/7

Page 10: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокKiosk mode bypass

•Safe mode

•Hotkeys

•Windows Plug&Play

•Race condition

Page 11: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокSafe mode

•F8 + Safe mode with command line

•DS restore mode

•AC/DC fun

Page 12: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокHotkeys

•Win+R

Page 13: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокHotkeys

•Win+R

•Alt+Tab

•Alt+F4

•Alt+Shift+ESC

•F1-F12

•Shift x5 (Windows 7 only)

•Win+(etc)

http://www.techrepublic.com/blog/windows-and-office/the-complete-list-of-windows-logo-keyboard-shortcuts/

Page 14: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокAlwaysOnTop

This ATM is Out Of Service, Sorry for inconvenience

Page 15: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокAlwaysOnTop

• Disabling mouse icon

• AlwaysOnTop

This ATM is Out Of Service, Sorry for inconvenience

Page 16: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокP&P

Page 17: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокP&P

Page 18: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокP&P video/screenshot

Page 19: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокEnd of the story

Page 20: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокPrivilege escalation techniques

• How exactly we extract money?

Page 21: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокPrivilege escalation techniques

•FS restrictions

•Local Security Policy restrictions

Page 22: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокPrivilege escalation techniques

•Arbitrary command execute - XFS API

•Command execute - priv escalation

•Write files/registry - modify sec configs

Page 23: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокPrivilege escalation techniques

•Arbitrary command execute - XFS API

•Command execute - priv escalation

•Write files/registry - modify sec configs

•Read files - ***

Page 24: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокApp control software bypass

Story so far…

• https://evi1cg.me/archives/AppLocker_Bypass_Techniques.html

• https://cansecwest.com/slides/2016/CSW2016_Freingruber_Bypassing_Application_Whitelisting.pdf

Page 25: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокSecurity software bypass

• McAfee Solidcore - https://www.ptsecurity.com/ww-en/about/news/131496/

• MS Applocker - http://www.blackhillsinfosec.com/?p=5257 – State of Art!

• etc (6 total different products) – stay tuned!

• 0days (5 total, in process of fixing): network, local, logical

• Misconfiguration

• Whitelist Memory Execution: IE, rundll32, powershell, java, etc

Page 26: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокSecurity software bypass

Page 27: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокNetwork

+ Firewall

VPN

TLS

MAC

• OS services

• Software services (Solidcore, UPDD, etc)

• Processing

• Track2

• Processing

• Track2

• Processing

Page 28: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокNetwork vulns

• VPN disabling• Logical vulns part

• TLS disabling

• MAC disabling• Files/registry manipulations

Page 29: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокNetwork/Hardware layer

•3G industrial modem• Long story short

http://blog.ptsecurity.com/2015/12/critical-vulnerabilities-in-3g4g-modems.html

•Security measures• VPN channel

• Private APN

•Result•ATM network infection

• Processing access

Page 30: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокNetwork/Hardware layer

•Access to *:80

•Auth bypass

•Physical access

•Proper VPN protocols(((

Page 31: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокDevice mgmt

How to do all hacking stuff

much easier?

Page 32: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокDevice mgmt

•Keyboard/mouse

•Teensy

•Network card• fw bypass

• plug&play

•USB drive• local access to Exe file content

• plug&play

•MS13-081

Page 33: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокBooting process

The easiest way is…

Page 34: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокBooting process

•BIOS pwd

•Network load

•Safe mode

•Physical access

•OS access• Same passwords story

•Bootkit• Software skimming

Page 35: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокLogical vulns

How it happened?

Page 36: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокLogical vulns

•Security tools runs from regedit/autorun• Shift x5

• Win+U

•Security race condition • Hash(loooooooong file)

• exploit.exe at the same time

•Ctrl+C

Page 37: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокLogical vulns

Page 38: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокLogical vulns

• VPN disabling

Page 39: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокLogical vulns

• FS access is strictly prohibited

Page 40: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокLogical vulns

• FTP is strictly prohibited!

Page 41: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокSummary

Windows 7 SP1 ATM Windows XP SP3 ATM

Kiosk bypass Hotkeys/Safe mode KeyboardDisabler bypass

App control bypass 0day/Trusted soft Untrusted booting

Privilege escalation 0day/MS15-051 Untrusted booting

VPN/TLS disabling Misconfiguration/FS Untrusted booting

Social Engineering Misconfiguration/FS -

Untrusted boot BIOS accessing from OS No password

Network attacks MAC/TLS/VPN/App service MAC/TLS/VPN/OS services

Page 42: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокHow all that happens?

•Security through obscurity is not an option!• You should know your landscape and your threat model

• Use compliance management tools instead of paper

• In case of impossibility of fixing vulns, use

mitigation measures like SIEM

Page 43: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокGreetz

• Anon guy ;-)

• Positive Technologies researchers teams:

• ICS/SCADA

• Reverse Engineering

• Banking security

Page 44: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

ЗаголовокContacts

http://uk.linkedin.com/in/tyunusov

[email protected]

a66at

Page 45: Заголовок 7 sins of ATM - NULLCON · 7 sins of ATM protection against logical attacks Timur Yunusov Senior expert. Заголовокwhoami •Positive Technologies (from

Заголовок

Thank You!

ptsecurity.com