Slashdot Mirror


Subverting PIN Encryption For Bank Cards

An anonymous reader sends in a story at Wired about the increasingly popular methods criminals are using to bypass PIN encryption and rack up millions of dollars in fraudulent withdrawals. Quoting: "According to the payment-card industry ... standards for credit card transaction security, [PINs] are supposed to be encrypted in transit, which should theoretically protect them if someone intercepts the data. The problem, however, is that a PIN must pass through multiple HSMs across multiple bank networks en route to the customer's bank. These HSMs are configured and managed differently, some by contractors not directly related to the bank. At every switching point, the PIN must be decrypted, then re-encrypted with the proper key for the next leg in its journey, which is itself encrypted under a master key that is generally stored in the module or in the module's application programming interface, or API. 'Essentially, the thief tricks the HSM into providing the encryption key,' says Sartin. 'This is possible due to poor configuration of the HSM or vulnerabilities created from having bloated functions on the device.'"

41 of 182 comments (clear)

  1. Wow by Sir_Lewk · · Score: 4, Informative

    Seriously? This is just incredibly stupid.

    What ever happened to accessing the routing information but leaving the data encrypted? SSL really is not that complicated of a concept.

    --
    "linux is just DOS with a UNIX like syntax" -- Galactic Dominator (944134)
    1. Re:Wow by sakdoctor · · Score: 4, Insightful

      SSL was released in 1996

      Banks prefer a conservative approach, using tried and tested 18th century steam punk hardware.

    2. Re:Wow by raddan · · Score: 5, Interesting

      I think part of the problem is that ATM machines have, in the past, not used IP networks, because there was always a need to lay down a line (or a modem) that would connect to the financial network. Many financial networks predate the Internet, and many of them have stricter requirements than typical IP traffic (like QoS), and so, in many cases, you see other kinds of network architectures (like X.25). Given those conditions, strong encryption did not always make sense.

      Now, there's nothing stopping you from using a higher-level protocol like SSL with other network architectures, but ATMs already have their own security mechanisms that predate SSL by a long shot, and the use of SSL, at least culturally, is tied pretty closely with TCP/IP. What surprises me, though, is that the HSMs must decrypt a message at every interchange, and re-encrypt it. I'm sure financial networks were around before asymmetric encryption was widely known or used, but they've had a long time to do this the right way now. The fact that these networks are still vulnerable to MITM attacks is pretty shocking.

      Anyway, I don't know a whole lot about financial networks. Anyone care to fill us in?

    3. Re:Wow by Hatta · · Score: 4, Informative

      Are you really surprised? If someone wants to drain your bank account, they don't even need to break any encryption, all the information they needed is written on your checks. They don't even need to forge a signature.

      If banks were liable for fraud committed with the systems they designed, they'd design more fraud tolerant systems.

      --
      Give me Classic Slashdot or give me death!
    4. Re:Wow by A.+B3ttik · · Score: 3, Interesting

      Banks prefer a conservative approach, using tried and tested 18th century steam punk hardware.

      "I wasn't aware that boiling water could form allegiances."

      But you're right.

      One of the banks I go to still requires filled out deposit slips, ink signatures, and still has a "next business day before 2" in regards to processing your deposits. To that I say, "Come on, this is the digital age!"

      One of the Banks I go to, the one near my college, does EVERYTHING instantaneously. You deposit money, it is now in your checking account. You can go outside to the ATM to withdraw it or go spend it at the supermarket. Pay with a debit card? It instantly deducts it from your account. Pay with the spoof "Credit Card" option? It deducts it that night.

      Many banks are indeed stuck in the bygone era of paper trails and physical filing, when much faster, more convenient digital solutions are available.

    5. Re:Wow by superwiz · · Score: 2, Informative

      Encryption is a two-edged sword. Encrypted data (including pin numbers) are useless until they are decrypted.

      Not true. Unix passwords are never decrypted.

      --
      Any guest worker system is indistinguishable from indentured servitude.
    6. Re:Wow by Thelasko · · Score: 2, Insightful

      The fact that these networks are still vulnerable to MITM attacks is pretty shocking.

      Fortunately, most of these transactions aren't conducted on the public internet. If there is a MITM attack, the "Man" should be easy to find.

      --
      One of our competitors trademarked the term "hypothesis". From now on, we will call them "boneheaded ideas".
    7. Re:Wow by value_added · · Score: 4, Insightful

      One of the banks I go to still requires filled out deposit slips, ink signatures, and still has a "next business day before 2" in regards to processing your deposits. To that I say, "Come on, this is the digital age!"

      You missed the overriding factor offered by the digital age which they use to earn interest on your money while it's on hold. By contrast, Really Important Customers (those with regularly high balances, etc.) rarely have any funds put on hold.

      Compared with PayPal's 5-day period, it sucks a lot less.

    8. Re:Wow by u38cg · · Score: 4, Insightful

      Completely crazy, until you realise that while the money is in their possession for a couple of days they can lend it out on overnight rates. Lucrative business, trading on other people's money.

      --
      [FUCK BETA]
    9. Re:Wow by Dr_Barnowl · · Score: 2, Informative

      To expand on the sibling poster, this isn't true, because there are a number of accepted ways of cryptographically proving that two parties both know the same information, without ever actually revealing what the information is.

      The example the sibling gives of Unix password hashing works as follows ;

        * The user sets their password. A 1-way hash is stored in the password file.
        * Later, the user attempts login. The password he enters is put through the same 1-way hash and compared to the contents of the password file. If it matches, he logs in.

      At no point is the password stored unencrypted, or decrypted from stored information. The most successful way of attacking this particular technique is called the Rainbow table, a precomputed list of all the possible hashes for a given range of values.

      For data that was just 4-digit PIN numbers you'd not even need a table, once you'd deduced the hashing used, but there are various tricks to improve this (see article).

    10. Re:Wow by pha3r0 · · Score: 3, Interesting

      Pretty much. My wife works at a CU doing all there ACH's, wires and such. Some of the stories she tells about running batch scripts to download files and how they have to make sure each day to delete the old files or they will just post all of yesterdays stuff again and my favorite, there bank actually has them use vanilla FTP to transfer check images...

      No wonder the CU's took a billion dollar+ fraud hit this year

    11. Re:Wow by Cbs228 · · Score: 3, Interesting

      Not true. Unix passwords are never decrypted.

      The parent is, of course, referring to one way hashing (crypt, MD5, SHA-1, and the like). Unix passwords were originally stored in the /etc/passwd file for all the world to see—any user could open the file and see everyone's password hashes.

      One-way hashes keep systems secure by virtue of computational complexity: an attacker must blindly try passwords (either by brute force or word list) until he finds the one that produces the correct hash. However, there are many different possible passwords. How many? If users use no more than eight letters or numbers, the total number of possible passwords is the sum from i=0 to 8 of (26+26+10)^i = 2.2192 * 10^14. Even at 10 million checks per second, it would take 256 days to check them all.

      Unfortunately, I've never seen a bank that allows you any more (or less) than four digit PINs, which is only 10^4 = 1000 combinations. This makes one-way hashes less than useless for encrypted PINs: Anyone who knows how to compute the hash and possesses a list of hashed PINs could easily crack PIN numbers very, very quickly.

      --
      At our school, we don't earn a degree when we graduate—we earn pi/180 radians
    12. Re:Wow by ToasterMonkey · · Score: 3, Informative

      It doesn't have to do with routing, it's because each point to point connection uses a symmetric encryption key, shared in advance. That's what this boils down to, using symmetric key encryption, and needing to make several hops to the destination, instead of using PKI where you could easily share all keys with everyone and encrypt once. How else would you move encrypted data through a network with symmetric keys? You can't have every single issuer and acquirer exchanging symmetric keys with each other, it would be unwieldy. HSMs protect the keys at all times, and procedures are built around key management to ensure no one person can have all key components. The system is actually pretty sophisticated, and suggesting it could just be replaced with SSL is laughable. There's a lot more to it, especially the whole issue of how to manage trust if such a system were to go PKI. PKI only works if you're absolutely SURE you have the real public key, and this is not typically a problem when you're physically exchanging symmetric key components with the switches.

  2. Old becomes new by emocomputerjock · · Score: 5, Interesting

    It's long been known that the PCI standards are nowhere near complex or secure enough to be trusted with protecting your data. Heck, they're just getting around to mandating encryption (128 bit, so as not to punish the early adopters of encryption technology). We moved too quickly to offer services without bothering to make sure we had the security in place to protect end users, and the criminal underground moves very quickly to exploit openings.

  3. Solvable by TheCarp · · Score: 4, Informative

    Seems that we have encryption/signing protocols that don't require decryption for all operations... seems we also have public key encryption....

    We already have onion routing... where we have end to end and point to point encryption in layers....

    Seems the bankers should take a look at other technologies and consider some updates in how they handle it.

    -Steve

    --
    "I opened my eyes, and everything went dark again"
    1. Re:Solvable by Qzukk · · Score: 4, Insightful

      Seems the bankers should take a look at other technologies and consider some updates in how they handle it.

      As long as the bankers can force everyone else to pay for the fraud the bankers' incompetence causes, they have absolutely no incentive to get their house in order.

      That said, the problem with the obvious solution is that in order to encrypt card information immediately with the destination bank's public key you'd need to update all of the card swipe machinery and software with either a comprehensive database of keys or some way of securely identifying the correct bank and retrieving that key.

      --
      If I have been able to see further than others, it is because I bought a pair of binoculars.
  4. It ain't that easy by Opportunist · · Score: 5, Insightful

    Have you ever tried to get, say, three competing companies to agree to a standard? Well, now try the same with a few hundred. Also, get international and you might get an idea what the problem could be.

    Here something we dubbed the "St. Florian principle" strikes (from the old German saying "Holy St. Florian, you saint with the water bucket, spare our houses and burn down others"): As long as it only affects our competitors, why should we agree to increase the overall security?

    Besides, even if they could agree that something has to be done, things like that tend to be quite expensive. And banks currently definitly have other problems than losing a few million dollars, they're loosing billions every day.

    --
    We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
    1. Re:It ain't that easy by emocomputerjock · · Score: 2, Interesting

      There's the expense, the lack of technological expertise, the competing standards, and worst of all - the lack of any need for them to institute a set of security standards. Only recently have institutions within the payment card industry been held accountable for lax security. The most notable incident is the infamous TJX hack, in which wireless routers with default passwords and no encryption were exploited to steal thousands of user's data. In order to square things with the end users TJX shelled out millions of dollars and promised to take things more seriously. Escalating security breaches have gotten the vendors to start instituting security standards, but it's far too little too late. They're going to have to rebuild their systems from scratch with security baked in to solve the problem.

    2. Re:It ain't that easy by Opportunist · · Score: 4, Interesting

      I cannot answer that without opening myself to some costy lawsuits. But there is a good reason why banks don't take security more serious.

      Ponder for one moment why it could be beneficial for a bank if money is missing and nobody is really able to find out how much...

      --
      We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
  5. Re:Doesn't a PIN Require the Physical Card? by Anonymous Coward · · Score: 2, Insightful

    Not if you own the ATM, or just have some computer that is hacked into the ATM network pretending to be an ATM.

  6. outdated banking systems by roman_mir · · Score: 4, Interesting

    According to the payment-card industry, or PCI, standards for credit card transaction security, PIN numbers are supposed to be encrypted in transit, which should theoretically protect them if someone intercepts the data. The problem, however, is that a PIN must pass through multiple HSMs (hardware security module) across multiple bank networks en route to the customer's bank. These HSMs are configured and managed differently, some by contractors not directly related to the bank. At every switching point, the PIN must be decrypted, then re-encrypted with the proper key for the next leg in its journey, which is itself encrypted under a master key that is generally stored in the module or in the module's application programming interface, or API.

    "Essentially, the thief tricks the HSM into providing the encryption key," says Sartin. "This is possible due to poor configuration of the HSM or vulnerabilities created from having bloated functions on the device."

    Sartin says HSMs need to be able to serve many types of customers in many countries where processing standards may be different from the U.S. As a result, the devices come with enabled functions that aren't needed and can be exploited by an intruder into working to defeat the device's security measures. Once a thief captures and decrypts one PIN block, it becomes trivial to decrypt others on a network.

    - seems that one part of a problem is the requirement itself to decrypt/re-encrypt PINs in every HSM.

    Other kinds of attacks occur against PINs after they arrive at the card-issuing bank Once encrypted PINs arrive at the HSM at the issuing bank, the HSM communicates with the bank's mainframe system to decrypt the PIN and the customer's 16-digit account number for a brief period to authorize the transaction.

    During that period, the data is briefly held in the system's memory in unencrypted form.

    Sartin says some attackers have created malware that scrapes the memory to capture the data.

    - this is another problem in itself, there shouldn't be a need to decrypt PIN if a correct hash function is used, compare the hash instead, this way PINs don't need to be unencrypted anywhere.

    --

    This shows that some banking systems are outdated when it comes to security. Another problem that is identified is that there are too many ways for thieves to access and install unauthorized software on these systems.

    "Memory scrapers are in as much as a third of all cases we're seeing, or utilities that scrape data from unallocated space," Sartin says. "This is a huge vulnerability."

    He says the stolen data is often stored in a file right on the hacked system.

    "These victims don't see it," Sartin says. "They rely almost purely on anti-virus to detect things that show up on systems that aren't supposed to be there. But they're not looking for a 30-gig file growing on a system."

    - it is not clear what exactly types of systems are mentioned here? If it's the mainframe, where unencoded PINs are compared, then what anti-virus is he talking about? So it's not mainframes, then what, the HMS? Why should a virus be able to cross from a machine that can be affected by a virus to such a device?

    Does anyone here know whether these so called 'HMS' machines are in actuality windows 95 boxes connected to the web or something?

    Seriously though, the banks need to retrofit.

    Also it seems that holding money in a bank is becoming quite troublesome.

    1. Re:outdated banking systems by quietwalker · · Score: 2, Informative

      As someone who works in the FI-tech industry, I can say that HSM's are effectively sealed, low power, dedicated chipsets. Physically, they resemble a small metal box with spots for inputs. They're supposed to be physically difficult to open and muck around with.

      They add about 10-12k USD to the price of an ATM, despite that being nowhere near the unit production cost.

      From someone involved on the technical level, it appears that this is the real scam job, but I'm not the one agreeing to follow certain inter-bank standards, so perhaps I'm a bit out of the loop here.

    2. Re:outdated banking systems by hankwang · · Score: 2, Interesting

      Shouldn't there be extra salt added at some point to the PIN before final hash is created?

      The idea of a salt is that the salt is not very secret, but makes it infeasible to construct a dictionary of hashed keys. You don't need to construct a dictionary of hashes for PIN numbers since they are only 14 bits; trying the hash function for the whole key space with the known salt takes only a fraction of a second. If you want to keep the salt secret, then it isn't really a salt anymore but rather a private encryption key and you have to design a way to securely distribute those private keys from all possible bank systems to all the ATMs over the world. There are ways to do that, but you can't really call it a salt anymore.

  7. Re:Why I Hate Debit Cards by Anonymous Coward · · Score: 5, Funny

    Personally I insist on paying in cold, hard, gold. I'll also only accept payment in gold, silver, or a promissory note signed personally by a gentleman in good standing. I know some people who insist on bartering for goods and services, but they really should come into the 19th century as we have!

  8. Bad HSM by deKernel · · Score: 3, Insightful

    If at any one point, there is an HSM that allows the keys to be brought out of the HSM, then that HSM should NOT be used.

    Plus if the "hacker" has that level of access to the transaction network meaning talk to the HSM directly, you are hosed to be honest.

  9. Curious by neokushan · · Score: 5, Interesting

    Strangely enough, about 2 weeks ago I got a call from my bank saying they had noticed some "odd" transactions on my debit card (which is a chip and pin deal).
    Very small amounts of money, somewhere between £1.40 and £1.70 had been transferred from my account to various accounts in America, via this card. The strange thing was that this was a brand new card, I had to get my old card replaced just after christmas as an unfortunate wallet incident had cracked the old one in half.
    Between January and March, I had bought nearly nothing with the card, certainly nothing out of the ordinary and until now, I was slightly perplexed as to how my card could have been compromised.
    I'm glad my bank were on the ball, I've only lost somewhere around £4, which is lucky considering I had a few hundred pounds in my account at the time.

    --
    +1 IDisagreeSoHeMustBeATrollOrAnAstroturferOrAShill
    1. Re:Curious by Anonymous Coward · · Score: 3, Insightful

      So your bank somehow compromised your account, aren't refunding the money stolen, and you're grateful?

  10. Re:So this is what my $2.00 buys me? by emocomputerjock · · Score: 5, Funny

    That's not "free money", that's a Chief Scamming Officer's bonus.

  11. Re:Why I Hate Debit Cards by jDeepbeep · · Score: 2, Informative

    More importantly I can tell the CC company to bugger off where as the bank is not going to put cash back into my account.

    My account was compromised a few months back, by fraudulent use of a bank/debit/check card of mine. Interestingly enough, the bank (once made aware (less than 8 hours later) that a string of fraudulent purchases had been made) did provide a credit back to my account for each one that cleared, and then personally took up issue with the individual corporations' fraud departments (Yahoo Personals, Samsclub.com, etc etc). Process-wise, I did have to sign an affadavit for each individual instance and throw them back in the mail.

    --
    Reply to That ||
  12. Re:So this is what my $2.00 buys me? by Anonymous Coward · · Score: 5, Informative

    That's not free money. ATM's cost in upwards of $30k (for a Diebold Opteva) - then there is circuit cost, depreciation, loading money in the machines (that doesn't earn interest in the financial institution's overnight account), supplies, maintenance, etc. Unless you're in a high traffic or tourist area, making a couple $100 in PROFIT after all expenses on an ATM is good.

    Mostly they lose money. It's a cost-center.

    Speaking (as AC) as someone who has 12+ years experience in financial institution back-office operations and data processing.

  13. Re:Doesn't a PIN Require the Physical Card? by rackserverdeals · · Score: 2, Funny

    Obvious things like 1-2-3-4 are not allowed.

    That's the combination to my luggage!

    And that's my computer account password too! That's surprisin #@&%*! NO CARRIER

    That's my slashdot password.

    --
    Dual Opteron < $600
  14. Re:Doesn't a PIN Require the Physical Card? by rackserverdeals · · Score: 5, Funny

    Obvious things like 1-2-3-4 are not allowed.

    That's the combination to my luggage!

    And that's my computer account password too! That's surprisin #@&%*! NO CARRIER

    That's my slashdot password.

    Wow. He wasn't joking.

    --
    Dual Opteron < $600
  15. Re:So this is what my $2.00 buys me? by Anonymous Coward · · Score: 2, Interesting

    That's not free money. ATM's cost in upwards of $30k (for a Diebold Opteva) - then there is circuit cost, depreciation, loading money in the machines (that doesn't earn interest in the financial institution's overnight account), supplies, maintenance, etc. Unless you're in a high traffic or tourist area, making a couple $100 in PROFIT after all expenses on an ATM is good.

    Mostly they lose money. It's a cost-center.

    As a retail bank, if you don't allow your customers to deposit & withdraw money, you won't have much of a business.

    The alternative is paying for a bank teller's salary & training, which is probably more than $30k annually. ATMs are much cheaper than the alternative.

  16. Not in my experience by FadedTimes · · Score: 4, Informative

    I work for a Electronic Payments/ATM/Point of Sale/Card Issuer company. If the PIN is in the clear after being decrypted at the bank/card issuer then that is the bank/card issuers issue and not the payment industries fault. The bank/card issuer needs to look at their software vendor who is not secure, as the PIn should never be in the clear. If the HSM device is giving up the key, then that HSM vendor is not secure. How is the hacker getting access to even itneract with the HSM device. These are usually held in a secure environment network and physical access. If the HSM device is not in a secure area then some one has to be responsible for over looking this. These HSM devices are set to self destruct if tampered with. The article calls for a radical change to the payment industry, but all these issues can be resolved with regulation and I belive these rules are already in place. The PCI auditors should be catching these items.

  17. Don't enter your PIN by Authoritative+Douche · · Score: 5, Interesting

    I never use the Debit Option when using my bank card in a transaction. I always choose credit for two reasons: A) When you use credit, the store pays the transaction fee, if any. I don't know if it's true anymore but last I checked, using a debit card and entering a PIN resulted in a small fee charged to the customer for the transaction. B) The purchase and fraud protections granted by Visa (even on check cards) are reduced or even disappear when you use the Debit option and enter your PIN. If you don't transmit the PIN, you don't need to worry about a MITM decrypting it.

  18. Re:So this is what my $2.00 buys me? by FooAtWFU · · Score: 2, Informative

    It's a "convenience charge" that they can charge you because you didn't feel like going through the effort of getting a bank that doesn't charge the stupid fees. (A number of banks do that, mostly the smaller ones and online ones. Charles Schwab and E*Trade's banking units, for instance, will refund ATM withdrawal fees at ANY atm.)

    --
    The World Wide Web is dying. Soon, we shall have only the Internet.
  19. Re:So this is what my $2.00 buys me? by Dr_Barnowl · · Score: 3, Interesting

    Most of the UK banks no longer charge for ATM services.

    Some of them started charging for using competitors ATMs, but the resulting hoohah quickly stopped that.

    One of the few upsides to my current bank is that I can literally use any ATM in the UK to get cash, and as long as it's a bank ATM, for no charge.

    About the only ATMs that charge for transactions in the UK now are the non-bank ones that crop up in convenience stores and motorway service stations.

  20. Bank deposit latency by Jay+L · · Score: 2, Interesting

    One of the banks I go to still requires filled out deposit slips, ink signatures, and still has a "next business day before 2" in regards to processing your deposits.

    I recently saw a presentation from a Rhode Island bank. They were going to allow their business customers to install on-site check scanners, the same kind you see in the banks. One of the touted features was that these scanned deposits would be credited instantly, instead of on the next business day.

    In exchange for saving them manual labor (their tellers currently have to scan the checks), they would charge you only $75/month for having the scanner! And just think of the extra interest from that day of deposit. They genuinely believed that this was a financial technology revolution, on par with the ATM.

    (I did the math; assuming 5% APR, which nobody gets anymore, you'd have to be doing about $550,000 in daily deposits to make back the $75/month.)

    1. Re:Bank deposit latency by Anonymous Coward · · Score: 4, Interesting

      Apparently they forgot to mention another benefit of this system: fraud prevention. We scan any check over a certain amount (I don't know how much, I didn't write the policy). If it's a bad check, we know right away, before the merchandise walks out the door.

    2. Re:Bank deposit latency by dwye · · Score: 2, Informative

      > (I did the math; assuming 5% APR, which nobody gets anymore,
      > you'd have to be doing about $550,000 in daily deposits to
      > make back the $75/month.)

      You forget not having to pay for someone to securely schlep the checks to the bank, once or more a day. At minimum wage, and a 20-30 minute round trip each day, it would become a bit more economical.

      But, yes, this sounds like the bank is drinking its own kool-aid, on the scanner rate, unless they are supplying a very nice scanner.

    3. Re:Bank deposit latency by Jay+L · · Score: 2, Insightful

      At minimum wage, and a 20-30 minute round trip each day

      They made the exact same point at the presentation - playing up how that 20 minutes "turns into an hour", because of course there's a 10-minute line at the bank, and they stop for coffee on the way back, and what business can afford an hour of lost productivity each day?

      Maybe it's because my only retail job was working in a mall, but I assumed that most businesses did what we did - they used a nearby bank, and people swung by the night depository on their way home. Total time: three minutes, including deceleration and activating the hazard flashers.