D1 - Fabrice Marie - Robbing Banks - Easier Done Than Said
D1 - Fabrice Marie - Robbing Banks - Easier Done Than Said
D1 - Fabrice Marie - Robbing Banks - Easier Done Than Said
FMARMS
Fabrice A. Marie – 方政信
fabrice.marie@fma-rms.com April 2007
FMARMS
HackInTheBox
Table of Contents
April 2007
Dubai
❖ Introduction
❖ ATM Attacks
❖ Network Attacks
❖ Conclusion
Robbing Banks:
Easier Done 2
Than Said
FMARMS
HackInTheBox
Introduction
April 2007
Dubai
Robbing Banks:
✦ Rant about some old technologies
Easier Done 3
Than Said
FMARMS
HackInTheBox
April 2007
Dubai
Bank Robberies
By Any Mean
❖ Why banks?
✦ They have money to steal... lots of it!
❖ What’s new?
✦ The variety of means to attack
Robbing Banks:
Easier Done 4
Than Said
FMARMS
HackInTheBox
April 2007
Dubai
Bank Robberies
By Any Mean (cont’d)
❖ Physical bank robberies
✦ Either rob the bank coffers or the fund transfer truck
๏ Dangerous
‣ you could get shot
Robbing Banks:
Easier Done 5
Than Said
FMARMS
HackInTheBox
April 2007
Dubai
Bank Robberies
By Any Mean (cont’d)
❖ ATM Attacks
✦ Attack the bank-side ATM processor
✦ Card duplication
❖ Network Attacks
✦ Hack into the bank’s network
✦ more...
Robbing Banks:
Easier Done 7
Than Said
FMARMS
HackInTheBox
April 2007
Dubai
Bank Robberies
By Any Mean (cont’d)
❖ Banks used to have a simple closed environment
✦ As payment services grew, banks had to open-up
๏ ATM
๏ Credit Card, international networks (VISA, MasterCard, Plus, Cyrus,
Maestro, etc...)
๏ SWIFT
๏ Intra-country bank debit network (e.g.: NETS/ATM5 in Singapore,
CB in France, JETCO/UnionPay in HK)
๏ Phone banking
๏ Centralised cheques processing
๏ Internet Banking
๏ Mobile Banking
Robbing Banks:
Easier Done 9
Than Said
FMARMS
HackInTheBox
April 2007
Dubai
Bank Robberies
By Any Mean (cont’d)
Internet
Banking
Firewall
Phone telecom
Banking Phone banking Host
server
ATM
X.25 network
Other banks
ATM
Mobile banking Processor
POTS WiFi
Robbing Banks: vsat connection
dial-up
Easier Done 10 connection
Than Said
FMARMS
HackInTheBox
ATM Attacks
April 2007
Dubai
ATM
MiniBank
Fabrice A. Marie
A/C: 913275-033-023 Host
ATM
ATM
Processor
POTS WiFi
vsat dial-up connection
connection
Robbing Banks:
Easier Done 11
Than Said
FMARMS
HackInTheBox
ATM Attacks
April 2007
Dubai
(cont’d)
❖ An ATM performs money transactions for a client
✦ Uses a unique ATM card and the user’s PIN for authentication
๏ Some banks use an invalid CRC so some advanced card reader fail
๏ However, cheap card readers will read the card, and copy it with
the very same CRC error
Robbing Banks:
Easier Done 12
Than Said
FMARMS
HackInTheBox
April 2007
Dubai
ATM Attacks
Card Duplication
❖ A lot of ATM frauds recently in the APAC region
✦ Probably other regions as well
Robbing Banks:
Easier Done 13
Than Said
FMARMS
HackInTheBox
April 2007
Dubai
ATM Attacks
Card Duplication (cont’d)
❖ Most banks protect their ATM against this kind of attacks
✦ Camera can record the face of the fraudster who installs the
equipment
✦ ...
Robbing Banks:
Easier Done 14
Than Said
FMARMS
HackInTheBox
April 2007
Dubai
ATM Attacks
“Network” Attacks
❖ ATMs have to be connected to the bank in real-time to
perform the transactions
✦ Verify balance
✦ Location
Robbing Banks:
Easier Done 21
Than Said
FMARMS
HackInTheBox
April 2007
Dubai
ATM Attacks
“Network” Attacks (cont’d)
Real Life Example 1:
Robbing Banks:
Easier Done 24
Than Said
FMARMS
HackInTheBox
April 2007
Dubai
ATM Attacks
“Standalone” Attack
Real Life Example 4:
Robbing Banks:
Easier Done 25
Than Said
FMARMS
HackInTheBox
April 2007
Dubai
ATM Attacks
Solution (short)
❖ Solution is technologically simple
❖ But costly
✦ Need to update all EFTPOS in the operating country
❖ Problem:
✦ Security of ATM is as weak as its weakest link
๏ If card works overseas, then the card has to accept lower standards
so it can be used there
Robbing Banks:
Easier Done 26
Than Said
FMARMS
HackInTheBox
April 2007
Dubai
ATM Attacks
Solution (long)
❖ Use smart-card technology + strong encryption
✦ Latest revisions are unbreakable so far
๏ Impossible to copy
๏ Impossible to operate without the card / brute-force
✦ Secure the ATM Processor OS like you would do with any other
machine
Robbing Banks:
Easier Done 27
Than Said
FMARMS
HackInTheBox
April 2007
Dubai
ATM Attacks
Solution (long) (cont’d)
❖ Use 2-factor authentication for big transactions
✦ 2nd factor can be a hardware token, sms, private question etc...
Robbing Banks:
Easier Done 28
Than Said
FMARMS
HackInTheBox
Network Attacks
April 2007
Dubai
Internet
Firewall
X.25 network
Other banks
Mobile banking
Robbing Banks:
Easier Done 32
Than Said
FMARMS
HackInTheBox
Network Attacks
April 2007
Dubai
(cont’d)
❖ Are complex
❖ Anything goes
✦ Penetrate into the DMZ, and plant a sniffer
Network Attacks
April 2007
Dubai
(cont’d)
❖ DMZ attacks are very unlikely
✦ virtually the best protected place in the bank
✦ Social engineering
Robbing Banks:
๏ Even better, malware/virus detectors will not detect it
Easier Done 34
Than Said
‣ because it’s carefully custom made
FMARMS
HackInTheBox
Network Attacks
April 2007
Dubai
(cont’d)
❖ While banks network are secure...
Robbing Banks:
Easier Done 35
Than Said
FMARMS
HackInTheBox
April 2007
Dubai
Network Attacks
Solution
❖ Secure your bank network like you secure your DMZ
✦ Mobile banking
✦ Reward program
✦ Stock investment
Robbing Banks:
Easier Done 37
Than Said
FMARMS
HackInTheBox
(cont’d)
❖ Bank Applications attacks are generally simple
✦ If not simple, then the network equivalent attack would be worse!
❖ You have control over your network, but not over your
application
✦ Network uses standard components
Robbing Banks:
✦ Application is a monolithic peace of software
Easier Done 38
Than Said
FMARMS
HackInTheBox
(cont’d)
❖ Requirements for attack?
✦ Become a customer of your bank
❖ Tools?
✦ Various interactive web proxies
๏ Burp
๏ WebScarab All free and easy
๏ Paros, etc... to download
✦ Decompilers for .Net & Java
Robbing Banks:
✦ Decoders and encoders
Easier Done 39
Than Said
FMARMS
HackInTheBox
(cont’d)
❖ Basic Concept:
✦ Fill in the form
✦ Intercept the request
✦ Modify the request without limitation
❖ Sometimes attacks are hard
✦ Lots of things to modify
✦ 6th sense / previous knowledge helps
✦ Complex interlinked data structures makes it harder
๏ The developer gets lucky sometimes
❖ Hard means a dedicated knowledgeable attacker will
still manage, albeit in a longer time!!!
(cont’d)
Logic Flaws
❖ “Using an existing functionality in an unauthorized or
malicious manner in order to get what we want”
❖ Attackers want money so...
❖ Impact:
✦ ... they’ll help the attacker rob the bank
✦ ... or the bank customers
✦ Loss of confidentiality
✦ Usually outright frauds in general
(cont’d)
❖ Frauds we commonly find on internet banking
applications:
✦ read other customer’s bill payments
✦ read other customer’s personal information
๏ very useful as the base for more advanced attacks
‣ identity theft
✦ stealing money using various transfer functionalities
✦ direct bank transfers among others
✦ buy shares at a discounted price
✦ avoid transaction fees
✦ various payment gateway systems replay attacks
✦ destruction of transaction records
✦ modification of other customer personal details
Robbing Banks:
๏ very useful as the base for more advanced attacks
Easier Done
Than Said
42 ‣ user impersonation
FMARMS
HackInTheBox
(cont’d)
Robbing Banks:
Easier Done 43
Than Said
FMARMS
HackInTheBox
(cont’d)
❖ Application Security Testing CANNOT be automated
✦ Automated tools will only find generic attacks
✦ Automated tools will not know about logic flaws
๏ and logic flaws are the most dangerous ones
✦ Automated tools may assist an experienced pen-tester
✦ but will never replace a professional
Robbing Banks:
Easier Done 44
Than Said
FMARMS
HackInTheBox
(cont’d)
Service Oriented Architecture
❖ Buzz word for a central WebServices server
❖ Which is another buzz word...
✦ Basically a central, insecure, SOAP server
๏ transfer money
๏ instead of approving a credit
Robbing Banks:
Easier Done 46
Than Said
FMARMS
HackInTheBox
April 2007
Dubai
Value Added Partner
Services’ Attack (cont’d)
❖ Partners have to have access to the bank
✦ or firewall ACL
✦ or firewall ACL
Robbing Banks:
Easier Done 47
Than Said
FMARMS
HackInTheBox
April 2007
Dubai
Value Added Partner
Services’ Attack (cont’d)
❖ However partners have less stringent security rules
Robbing Banks:
Easier Done 48
Than Said
FMARMS
HackInTheBox
April 2007
Dubai
Value Added Partner
Services’ Attack (cont’d)
❖ Visa is already forcing their partners to secure-up
✦ good, but is it enough?
Robbing Banks:
Easier Done 49
Than Said
FMARMS
HackInTheBox
Robbing Banks:
Easier Done 50
Than Said
FMARMS
HackInTheBox
(cont’d)
❖ Banks run a LOT of applications for internal use only
✦ Credit management applications
✦ Investment applications
✦ Payroll applications
(cont’d)
❖ By getting a few relevant usernames / passwords
✦ using very basic sniffing techniques
Pre-Conclusion
April 2007
Dubai
Robbing Banks:
Easier Done 53
Than Said
FMARMS
HackInTheBox
Conclusion
April 2007
Dubai
Links
April 2007
Dubai
✦ Available here:
๏ http://www.packetstormsecurity.org/hitb05/BT-Fabrice-Marie-
Hacking-Internet-Banking-Applications.pdf
✦ Available here:
๏ http://conference.hitb.org/hitbsecconf2006kl/materials/DAY%
201%20-%20Fabrice%20Marie%20-%20AIPS.pdf
Robbing Banks:
Easier Done 55
Than Said
QUESTIONS ?
FMARMS
Fabrice A. Marie – 方政信
fabrice.marie@fma-rms.com April 2007