the future of cardless fraud - black hat the future of cardless fraud tim yunusov senior expert,...

49
ApplePwn The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

Upload: vuongkhuong

Post on 30-May-2018

222 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

ApplePwnThe futureof cardless fraud

Tim YunusovSenior expert,

Head of banking security

ptsecurity.com

Page 2: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

whoami

• Application security researcher (from 2009)

• Senior expert in banking security (from 2012)

• Online banking, Mobile banking, Core banking applications

• Dozens of ATM Security analyses

• PayPass, payWave

• Always in search and research ;)

Page 3: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

whoami

• Application security researcher (from 2009)

• Senior expert in banking security (from 2012)

• Online banking, Mobile banking, Core banking applications

• Dozens of ATM Security analyses

• PayPass, payWave

• Apple Pay, Samsung Pay, Android Pay

• Always in search and research ;)

Page 4: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

whoiam NOT

• Apple security researcher

• Reverse engineer

• JB developer

Page 5: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

Why am I here?

“Most secure technology”

Page 6: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

Why am I here?

https://www.slideshare.net/0xroot/demystifying-apple-pie-touchid

Page 7: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

Why am I here?

Page 8: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

Samsung Pay

https://www.blackhat.com/docs/us-16/materials/us-16-Mendoza-

Samsung-Pay-Tokenized-Numbers-Flaws-And-Issues.pdf

Page 9: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

Samsung Pay

https://www.blackhat.com/docs/us-16/materials/us-16-Mendoza-

Samsung-Pay-Tokenized-Numbers-Flaws-And-Issues.pdf

Page 10: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

Apple Pay security measures

Tokenization Secure Element https://github.com/beatty/

applepay_crypto_demo

Page 11: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

That's why JB is actuallynot a good idea

• http://2015.ruxcon.

org.au/assets/201

5/slides/YummyYu

mmyFruitSalad_R

uxcon2015_PeterF

illmore.pdf

• Jailbreak +

SSLKillSwitch

Page 12: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

That's why JB is actuallynot a good idea

Page 13: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

That's why JB is actuallynot a good idea

Page 14: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

That's why JB is actuallynot a good idea

???? ???? ???? ????

??/??

???

Page 15: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

That's why JB is actuallynot a good idea

Page 16: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

That's why JB is actuallynot a good idea

Page 17: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

That's why JB is actuallynot a good idea

Page 18: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

That's why JB is actuallynot a good idea

Page 19: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

That's why JB is actuallynot a good idea

Page 20: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

That's why JB is actuallynot a good idea

Page 21: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

That's why JB is actuallynot a good idea

Page 22: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

That's why JB is actuallynot a good idea

• Jailbreak + SSLKillSwitch

• Proxy interception

Page 23: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

That's why JB is actuallynot a good idea

FIX THIS SHIT

Page 24: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

That's why JB is actuallynot a good idea

Page 25: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

That's why JB is actuallynot a good idea

Page 26: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

That's why JB is actuallynot a good idea

({

"extensiveLatitude": "+55.79",

"extensiveLongitude": "+37.71",

"termsID": "3bbae480-3006-4574-8e4f-28c230a12936",

"cardSecurityCode": "5*2",

"test": “11\/21","test2": “********0347",

"deviceName": “my iPhone"

})

Page 27: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

That's why JB is actuallynot a good idea

XXXX XX?? ???? YYYY

??/??

ZZZ

Page 28: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

That's why JB is actuallynot a good idea

• L – Luhn (https://en.wikipedia.org/wiki/Luhn_algorithm)

• BB – Bruteforce (99*(2 BIN))

XXXX XX?? ?BBL YYYY

??/??

ZZZ

Page 29: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

2FA/OTP

• Apple ID in SMS

• Card should not be added twice

• Application layer encryption

Page 30: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

2FA/OTP

• Apple ID in SMS NO

• Card should not be added twice NO

• Application layer encryption NO

Page 31: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

Resume

• CVV + XXXX XX-- ---- XXXX in SSL traffic (need SSLKillSwitch)

• Need 6 digits (2 BF/3 stolen/1 calculated || 16 stolen)

• Expiry date: stolen || obtained from responses (iTunes)

• 2FA OTP in SSL traffic

• No Touch ID for wiping

• Could be added in 2 phones (SMS could be the same,depends on a bank)

Page 32: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

Resume

• CVV + XXXX XX-- ---- XXXX in SSL traffic (need SSLKillSwitch)

• Need 6 digits (2 BF/3 stolen/1 calculated || 16 stolen)

• Expiry date: stolen || obtained from responses (iTunes)

• 2FA OTP in SSL traffic

• No Touch ID for wiping

• Could be added in 2 phones (SMS could be the same,depends on a bank)

=>Add the customer’s card to another Apple device if phone was jailbroken

Page 33: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

Apple Pay in web JS / App

• Started from iOS 10

• No need for JB

to intercept website/app part

https://www.ptsecurity.com/upload/corporate/ww-en/analytics/Online-Banking-Vulnerabilities-2016-eng.pdf

https://developer.apple.com/apple-pay/get-started/

Page 34: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

Apple Pay in web JS / App

Page 35: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

Apple Pay in web JS / App

Page 36: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

Apple Pay in web JS / App

That’s true ;)

Page 37: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

Apple Pay in web JS / App

Page 38: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

Apple Pay in web JS / App

https://www.slideshare.net/0xroot/demystifying-apple-pie-touchid

Page 39: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

Race condition

Page 40: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

Apple Pay in web JS / App

Page 41: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

Apple Pay in web JS / App

Page 42: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

Replay attacks

Page 43: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

Resume

• Customer pays $1.00 once for A delivered to A

• Hacker pays $10.00 twice/** for B delivered to B

• Same merchant

• Amount tampering

• Currency tampering

• Race Condition and Replay attacks

Page 44: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

Resume

Page 45: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

Resume

• ApplePay is still more secure than other techs

• ApplePay is well-protected even on JB devices

• All info is sent encrypted

• Responsibility is on the customer/merchant/bank/PGW

• Transaction integrity

Page 46: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

Resume

• No JB!

• No public Wi-Fi

• Be aware

• SMS info + chargebacks

Page 47: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

Further

• Apple Watch (https://twitter.com/mbazaliy "Pwning Apple Watch")

• macOS (and now with Touch ID)

• Merchant’s credentials

Page 48: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

Contacts

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

[email protected]

a66at

Page 49: The future of cardless fraud - Black Hat The future of cardless fraud Tim Yunusov Senior expert, Head of banking security ptsecurity.com

Thank You!

ptsecurity.com

blog.ptsecurity.com facebook.com/PositiveTechnologies Twitter.com/ptsecurity_uk