Defeating Virtual Keyboards and Phishing Banks
An anonymous reader writes "Noam Rathaus writes on the SecuriTeam Blogs how most Image Click-Me virtual keyboards schemes used by banks to fight phishing trojan horses can be easily broken, even (and especially) when encryption is used. He then discusses how screenshots of the pointer location are over-kill, and describes how to kick these security measures out of the way." From the article: "Instead of sending the remote image and waiting for the key-stroke information to be sent back to the server (the technique which the screenshots for pointer location on-click described above was used) some banks send the PIN number in cleartext, while others encrypt them, one such example is cajamurcia. Even when the encryption is used, banks tend to implement it badly making it easy to recover the PIN number from the encrypted form. I investigated a bit more on how cajamurcia handles such PIN strokes (with virtual keyboards) and I noticed something strange, they take the timestamp of their server (cajamurcia) and send it to you - this already posses a security problem - and this timestamp is then used to encrypt the PIN number you entered"
the whole idea is dum, you are trying to make a compromised host somehow "Safe" by obscuring what is going on. if they wanted to be really safe they would use a trusted device and allow the computer to simply be one more untrust part of the cloud between that device and the bank. a USB "smart card" could do the trick just fine. for added security have a pin pad on the smart card itself.
Snowden and Manning are heroes.
You only need a virtual keyboard to avoid the security threat posed by keyloggers.
... I don't run Windows.
Keyloggers that do exist in the wild are all keyloggers for Windows.
I would be very annoyed if my bank decided on a virtual keyboard approach to security and put me at risk to this potential exploit when I have my own reliable method of avoiding keyloggers
Its a bit overkill, but I'm wondering if it could be broken short of a screen cap?
What if the user was presented with a randomized "number pad" image and the user was asked to input their pin on their number pad but using the layout presented on the screen. The packet might contain: 6689 as the pin, but in reality it would be translated on the server side to 3327 using the image they were served at the time of page creation. Its unsophisticated, but I'm sure someone here could turn it into a beautiful interface of some sort, using some kind of crazy method to hide the image from any kind of snooping software.
For institutions that are responsible for vast quantities of peoples money, some of the security policies they implement are really quite strange. For example, the bank I use, even before they brought in the annoying virtual keyboard, had a six character alpha-numeric limit on there passwords. Very bizarre considering that you enter in your customer id which is a ten character string.
Although, on the plus side it has made me extra paranoid about all online transactions. So now any site where I am involved in a finacial transaction has different passwords and anything that gets cached is cleared out of my system as soon as I am done.
A game has objectives and is competitive, anything else is just play
So the article is saying that people with trojans on their computers are fucked? Is anyone surprised by this? The point of virtual keyboards is not to defend against trojans, it's to defend against keyloggers. They may defend against trojans that try to steal your account information with a keylogger, but I think it's safe to say that no matter what security technology your bank is using, if you've got a trojan on your computer you're going to be fucked.
I'd say just go visit the bank in person, it's probably right down the street, but of course it's not open. I don't care what type of bank it is, it's not open right now. Why? Because you're home and not at work, probably cuz it's a weekend. If banks really wanted to improve security, they'd actually be open at usefull times so you wouldn't have to rely on web services. But I guess that's all you can expect from a business where the less customers stop in, the more money they save (in staffing etc). I have another great idea too. On the applications for web banking services, they could have an area where it says "I hereby swear that I am not a complete dumbass when it comes to passwords. It is not a. my last name, b. something I tell everyone, or c. on a sticky note on my monitor." That would get rid of at least half of the major security problems.
Google's Super Secret Search Algorithm: SELECT @search_results FROM internet WHERE @search_results = 'good'
The phisher justs sends an email with a link to a fake bank web site, complete with fake virtual keyboard. The duped user tries to log in while the phisher records their account and password. No need for decryption or screen captures.
It seems to me that having a 4-digit numeric password on a bank *website* is a pretty fatal flaw in the first place! Given a relatively large botnet and enough legit account numbers (much easier to come by than passwords), let's say 3 tries per account number, how long till you find someone with '1234', '4321', or '1337' ?
Luckily, both my bank websites are protected by 8+ chr alphanumeric passwords. I would *not* stay with a bank that wanted me to use my card's PIN to log on with.
The Royal Bank was down last week- they said it was "software problems" me thinks they were hacked of DDOS'ed.
This is no surprise at all. Keyloggers will be a thing of the past soon enough for the major hackers.
More scary is the fact that adding a simple network device will allow a virus to log all Internet traffic. Look at HTTPLook (a small app used to sniff HTTP traffic). It comes with a small HTTPS module that intercepts HTTP traffic transmitted via HTTPS.
Using such a device will also help cut down on the amount of data hackers can get -- HTTP traffic is useless to them. Why do they care you went to Google and searched for "hot gay wrestlers"? They don't. HTTPS, on the other hand, will set off alarm bells -- if a server is worried enough about security that it pays for certificates, the data must be worth something, right?
The solution is that logging into secure systems needs to require a physical presence. An older system I maintained a few years ago for the Mortgage industry used a username, password, and a key from a small business card in their wallet. Each month users received a new card, and each card had about 50 numbers on it. The system knew which numbers each user had and only allowed each number to be used once. Logging in with a wrong number would flag your account, repeated attempts would lock it. Yes, it increased support load when someone lost their card (the cards were unmarked so if someone found it, the numbers are useless), but it was fairly secure and generally a lower cost alternative to biometrics (and much more portable).
This combines the "something you know" authentication scheme (username, password) and the "something you have" scheme (password card). The third type is "something you are" -- biometrics.
(Failure point: person gets kidnapped. If a user gets kidnapped, security is the least of the worries until they are recovered. Failure point: if the database with the numbers is compromised, the system is no longer secure. If the database is compromised, they no longer need to log in, and no secret numbers will stop them.)
If your pc is infected with a trojan, or other malicious software, its feasible to capture the screen with each keystroke while connecting to a bank website and forward that data to a server somewhere at a later time... key logging doesn't have to be only key logging, it could be logging keystrokes and relevant screen data at the same time.
The ONLY way to outsmart software that wants your data is to not load that software on your machine. I find that I feel much safer booting a life CD (DSL or Puppy or pick your flavor) and running to the banking website with a freshly installed OS... no chances for virii or malware etc.
That is certainly easier than actually going to the bank... and I know that its safe.
It at least makes me feel a bit safer.
Support NYCountryLawyer RIAA vs People
Now if you'll excuse me, I have to enter my Personal Identification Number Number into the Automatic Teller Machine Machine.
I'd rather use an ATM by touching my mobile "phone" to it to pair it with my Bluetooth (and exchange keys), then use the phone to control my session. I'd prefer my phone client to generate onetime passwords consumed by the ATM to giving anyone my PIN.
With that protocol, I'd feel safe even using those random ATMs at delis and various "impulse purchases", where today they get my PIN and can launch a replay attack any time they want.
--
make install -not war
That's a remarkably elegant system which (depending on how you establish the password) pretty much defeats any kind of screen scraping technology.
It seems even better than the banks that mail out one-time password cards.
If we could convince a bank to actually send out cds with their certificates and a certificate for each user then it'd be almost infallable.
Until of course the phisher sets up a page that says "For verification purposes we'll now ask you to type your password once a month..."
sigh
Unless you're an expert crypto protocol developer and you're not going to deploy it to the field until it's had several years of peer review.
That business with the timestamp? Offhand I'd say the bank was trying to do the right thing by preventing replay attacks. But using a timestamp? I'm having trouble keeping up with just the obvious attacks against that, let alone the attacks that a seasoned crypto developer would find.
If you ever need to do what the bank tried to do, find something already written and battle tested, make sure its assumptions and security properties line up with what you need(*), and use that instead of repeating the last fifty years of protocol design mistakes.
(*) Then you'll find that they assume trusted endpoints, which is something worth reflecting on.
HSBC in Australia and SE Asia (and, it seems, with a bit of Googling, elsewhere in the world) issue with online banking accounts a device that sits on your keyring that generates a 6 digit number when the button on it is pressed, and displays that on a small screen. The number is different every time.
When you log in or do any transaction, you are required to enter this number (along with any other credentials which are appropriate). The bank records the serial number of the dongle they gave you, and I would assume that there is some secret mathematical algorithm that allows them, knowing the serial number and the time, to calculate what number your device will display.
If you make 3 mistakes in a row with the 6 digit code, your internet banking account is automatically locked down, and you have to contact them to unlock it.
Now, that's a very simple trick and I can't see how a hacker / phisher would get around it. Sure they can sniff the code when I log in, but 30 seconds later it will be useless. Short of mugging me for the device on my keys (after having phished my regular login/password), they can't get in to my account. Even if I leave a session logged in and walk away, and someone else sits down at the terminal, they can look at my balance and transaction history, but can't make any transactions.
Having used the device for a year I have to say it is remarkably convenient, and it seems immune to most of the attacks described here, and doesn't have the convenience drawbacks of one-time PIN cards. Why is HSBC still the only bank doing this?
More info on the device: http://om.hsbc.com.au/osd/
"Why are you watching the washing machine?"
"I love entertainment, as long as it's clean"
Have a split PIN system - half in your head, and a random second half texted to your phone, which is valid for 5 minutes after it is texted. Voila. And the bonus? Everyone owns one of these "what you have" devices (in the UK at least).
Get your own free personal location tracker
Must they refer to Personal Identification Number numbers?
If the banks did care they would form an international alliance to track down the cash flow and put quick end to it.
Except they already have two internal alliance groups in place called MasterCard and Visa. If both of them changed their merchant agreements so that any connection to phishing or domain fraud would result in losing the merchant account, you would bet ever domain registration company and hosting company in the would be checking things a whole lot closer. Even network solutions wouldn't last more than 3 months if they couldn't take credit card payments.
There is a simple solution to the problem and the infrastructure already exists. I know this because I used to work directly or indirectly with both card schemes.
(if your from a bank reading this, get in touch with me and I can provide details on how you can push this, just follow the links or google for my name and you will find links to contact me)
This solution would be OS and browser independant and would not be subject to any issues such as SMS's not getting through to a cellphone.
/trojan/whatever from changing the details of the transaction ($ amount or destination account).
Basicly, each customer is given a device that looks a bit like a small calculator, make it "solar" powered (in reality those panels will work just fine powered by any sufficiantly bright light source) so it never looses juce.
It would have a 0-9 keypad and other buttons. Each device would contain a unique number that is also securely stored on the banks computers.
When you want to log in, the bank generates a random number and displays it along with a form field for username/user ID/whatever, a form field for password and one for a hash. The user types in the random number into their calculator thing which is then hashed with the number stored inside it and the result displayed. The hash algorithim has to be chosen such that there is no one number that when hashed with any unknown stored number can produce either the stored number or something that you can get back the stored number from. (this prevents the hacker from feeding a chosen "random" number to the user and getting the stored number that way).
Once you do that, the displayed hash along with username and password are typed into the form. The hash is compared with the same calculation done by the banks computer and if the username, password and hash match up, you are logged in.
When you want to do a transfer to someone not on your "approved payees" list or add someone to the "approved payees" list, you have to enter the account number and/or dollar amount and/or another random number into the calculator thing which spits out another hash that has to be typed in. This prevents the phisher
Unlike some other proposals (USB smart cards, mobile phones), it is 100% OS and browser independant and requires no drivers.
Institutions that use them as passwords ought to be liable for the resultant misuse, and I guess many of them have pretty much decided the liability is cheaper than implementing the proper use.
It occurs to me that, with money this loose, basing the economy on money makes less and less sense.
Probably, the best solution is to return to making everyone grow their own food, and giving up trying to manage value through banks and financial regulation.
And this story breaks the evening after I notice that a large bank that I shall not name, but instead refer to "Bank of America", changes their SiteKey/Login page so that it now loads Javascript from a domain other than bankofamerica.com : "liveperson.net".
I only noticed this because my "NoScript" Firefox extension started showing the "Script partially allowed" message.
Now, I'm no expert, but I do know that Javascript has a bit of a spotty history when it comes to security. Having looked into liverperson.net it appears to be legit ; but in any case, I did not allow it access.
But my question is this : why on earth do BofA think it makes sense to link off-site during the login process ? Surely this is completely nuts ?
I don't get why banks are trying to do money stuff with a domestic grade operating system.
I would expect to collect a CD ROM in person from the Bank. Then I would do my internet banking by booting my machine from the Bank's CD ROM, connecting to my bank account with a client program that was on the CD and runs on the bare metal.
RSA has had this type of product available for quite sometime now.
It will integrate into Cisco VPN solutions, things that support RADIUS, and I am pretty sure they have some SDK's to integrate it with pretty much anything you are trying to do..
http://en.wikipedia.org/wiki/Securid
http://www.rsasecurity.com/node.asp?id=1156
Cheers!
Q: Does on-line bank fraud cost the consumer or the bank?
A: In general, The Bank if you can prove it is not your fault. Otherwise, you, the consumer.
If it was costing the banks millions of dollars each year (which it is if we believe the press), then a bank should be willing to spend $5 per on-line user to issue each and every one of them with an OTP should they not? Well, my bank in Aus (HSBC) thinks so. I do a lot of online banking, and I don't mind doing it from a public terminal, because I have an electronic OTP, and each six-digit number is good for one login attempt, one payment or one transfer only. And that's the beauty of an OTP. You can't predict the next number, and the number just used has been used for ever.
Now I do understand that there must be some algorithm to match the number off my pad and what the on-line system is expecting, but I have my doubts as to whether or not that could be broken by a man-in-the-middle or a key logger attack.
Dan. -- So what if it's spelt wrong, nobody's perfect