Bruce Schneier | |||||||||||
Schneier on SecurityA blog covering security and security technology. « European Terrorism Law and Music Downloaders | Main | Giving the U.S. Military the Power to Conduct Domestic Surveillance » November 28, 2005Safecracking with Thermal ImagingPosted on November 28, 2005 at 11:37 AM • 31 Comments To receive these entries once a month by e-mail, sign up for the Crypto-Gram Newsletter. Stephen • November 28, 2005 11:56 AM Of course, I can just use a $.50 glass rod to punch in my combination to make your $5000 investment in an IR camera worthless. I have my doubts as to the length of time the digits would remain readable as, in the "proof" thermogram, the first digit has almost faded in only a minute. Vicki • November 28, 2005 12:02 PM Of course this can be defeated, as Stephen says--but only if the legitimate users of the keypad are aware of the issue, and remember to take care. As the linked article says, this is something to take into account in security planning. For example, if you want users to use a 50-cent glass rod to enter their combinations, it's a good idea to provide one at the point of entry. If it's "just use your housekeys," people won't, because it's simpler not to and because that doesn't provide any sense of urgency. antibozo • November 28, 2005 12:14 PM This is a well-known attack, and is the reason advanced keypads (with display keycaps) scramble the layout each time they are used. But everyone already knows this. Frosty • November 28, 2005 12:25 PM Neat trick if you have $5000 laying around. Now how about one of those $150 remote-sensing thermometers, where the digital display shows the surface temperature of wherever the laser-dot is resting. Easily available at Fry's or other electronics stores. The idea is not to use them as an imaging device, but as a distant temperature-sensitive "finger", which the attacker moves from button to button in a manual scan. The absolute accuracy doesn't need to be that good, as long as the precision and minimum resolvable temp-difference is decent, say 0.1 F. And even if you don't get all the digits, or the correct sequence, you've still turned it into a much smaller problem than 10-to-the-(number-of-digits). Jason • November 28, 2005 12:28 PM I suspect the scrambling is meant to fight wear marks and fingerprint patterns as well. For the thermal imaging issue directly, I can think of two comparatively simple solutions: change the materials used in the keys, or warm them. Mike Sherwood • November 28, 2005 12:31 PM I wouldn't really consider this safe cracking. It requires physical access to the safe within a few minutes of legitimate access. Are there a lot of cases where safes are installed in public view where this attack could be applied? I can't think of any cases I've seen where this is true. It's an interesting use of technology to demonstrate a vulnerability, but I doubt this would constitute a serious threat. Aze. • November 28, 2005 12:38 PM This attack is more interested for coded doors in public places than safes. Does keypad scrambling always happen at the moment the next person starts typing or can I get a visual image before they arrive and a thermal one after they leave? Isn't resting fingers on random keys before, during and after typing the simplest/cheapest countermeasure? Anonymous • November 28, 2005 12:41 PM I do think this is a serious threat. especially on atm's in combination with other techniques ( dust on the keypad, hidden camera, magnetic strip snooping ). It's all part of the enumeration phase. Ben • November 28, 2005 12:43 PM Not every bank employee is supposed to have the combination to the vault. And I know I've seen keypads next to "secure" doors in public areas of airports. So you can talk all you want about cases in which it doesn't work. But it is easy to see plenty where it would be a viable attack. antibozo • November 28, 2005 12:50 PM Of course there's a suitable attack for any access control system. My point is that this attack is so well known that there is equipment mass marketed to defeat it. The author's presentation is nicely done and pretty to look at, but he appears to be totally unaware that you can just buy a scrambling keypad to defeat his attack. This attack is so well known that I'm pretty sure I've seen it on prime time television (Alias, perhaps). Note that scrambling keypads are less convenient to use, and make codes harder to recall because they eliminate the visual/geometric mnemonic aspect of traditional keypads, so apart from cost, the inconvenience may account for the relative unuse of scrambling keypads. Sam Fisher • November 28, 2005 1:02 PM Funnily enough, the computer game "Splinter Cell" involved this trick. Ari Heikkinen • November 28, 2005 1:10 PM Well, I thought this was one of the standard "side channel" attacks when it comes to keypads among all the others everyone's seen on macgyver and the like on TV. Kerub • November 28, 2005 1:22 PM stop to integrated keyb. we should all be using personal/portable representative (such as crypto PDA). Unixronin • November 28, 2005 1:35 PM I'll bet this attack could be defeated by the following trivial method: 1. Enter the combination. xtu • November 28, 2005 1:54 PM The way I read this, the author seems to be rather aware this is not something others have never thought of, and he seems to mention countermeasures. Matter of fact is that this can be easily attempted in many public places, and this does not seem to be taken seriously in most cases (say, airports, bank branches). Also, weren't scrambling keypads developed to make it harder to analyze fingerprints or key wear patterns, and this had nothing to do with thermal imaging as such? greg • November 28, 2005 1:55 PM What about a old fassion dial lock (Sorry, I don't the proper name). Most safes i have seen use the electronic bit to start the time delay to release dail lock. Then you put in the dail lock combination. antibozo • November 28, 2005 2:01 PM "weren't scrambling keypads developed to make it harder to analyze fingerprints or key wear patterns" They were developed to make it harder to analyze any physical residue of access. This includes not only thermal imaging but any form of marking, e.g surreptitious fluorescent dye as shown in the film "National Treasure". Timmy303 • November 28, 2005 3:09 PM This tactic is actually an established part of Tom Clancy's Splinter Cell video game. David • November 28, 2005 3:46 PM How about doing the opposite. Get invisble ink on the person who is going to open the safe. Volia. Sorry, but this is move stuff (National Treasure ring a bell?), not real safe cracking. David • November 28, 2005 3:49 PM Forgot to mention: What happens if you use the same number twice? Ooops.. there goes the whole scheme. Anonymous • November 28, 2005 4:09 PM My local Albertsons has a public safe like this. The same four keys are always worn down... James • November 28, 2005 5:01 PM Way more tech than you need. I used to work in a building that had a keypad at one of the side doors. The pad was covered with a plastic layer for weather proofing. There was obvious excess wear on four of the keys. Needless to say, it didn't take very many tries to find the combo. If the pad were new, however, the wear would have been less apparent. So, I'd have had to smear a smooth layer of grease over it, wait for someone to use it, and look for tracks. Roy Owens • November 28, 2005 6:14 PM Now we know why pencils have erasers. A stickpen would work as well (and abrade less). Tim Vail • November 28, 2005 7:13 PM Eh...what about someone like me who likes to "type" the keys. It might be marginally less effective since all the middle 3 keys would be warmed up due to my fingers resting on it like it was a home row. Roger • November 28, 2005 7:23 PM A few comments: A possible target mentioned by Zalewski is an ATM keypad. However I would imagine that this is greatly complicated by the subsequent entry of other numeric keys when requesting a withdrawal or transfer. It might be worth noting that this is more of a threat to ATMs when only requesting, say, account balances or other actions which do not require subsequent entry of numerals. (On the other hand, plain old shoulder surfing is a far more serious threat to most users of ATMs.) * "This is a well known attack". * "You can buy scrambling keypads which are designed to defeat this sort of attack". I think using a thermographic camera instead of a tracing agent raises the risk considerably. It doesn't require prior access to the keypad, but can be done within the 10 second PIN entry window (provided the intruder re-enters within ~10 minutes of the alarm arming). Additionally, it gives the sequence of presses, so if there are no duplicate digits you get the complete PIN in one go, and it doesn't even require close access to the keypad, (Zalewski says as much as 10 metres away), so you may be able to analyse an ambiguous result before even entering the controlled area. In any scenario where it is worthwhile spending a couple of hundred bucks to hire a thermographic camera, this attack almost completely defeats domestic and light commercial burglar alarm controllers. (One obvious countermeasure in this case is to require the monitoring company to do a callback anytime the alarm is disarmed within 15 minutes of being set. Many monitoring companies already offer a callback service to check unusual disarmings. However this may not help if the intruder is able to check the keypad from a distance without triggering the alarm, then later return to enter the PIN.) * "Neat trick if you have $5000 laying around." Note that because these devices are somewhat expensive, and most users only require them somewhat infrequently, they are available for hire (generally on a weekly basis), and there is also a significant second hand market. I don't know what prices are like for rental because they all seem to want you to speak to their sales droids to find out 8^P. However reasonable rental prices are often somewhere around 2 ~ 5% of purchase price per week, call it $100 ~ $250 per week as a guesstimate. Anyway if you do try this out with the remote thermometer, I'm sure we'd be very grateful if you would post your results. * "Sorry, but this is move stuff (National Treasure ring a bell?), not real safe cracking." Finally, it occurred to me to brainstorm a few types of keypads (not necessarily numeric) that might be subject to this attack, and a few countermeasures. Keypads: Countermeasures useful against many attacks: Countermeasures useful against several attacks: Countermeasures specific to thermal imaging: B-Con • November 28, 2005 8:44 PM "Funnily enough, the computer game "Splinter Cell" involved this trick." You have to hand it to them, they did a good job with it, although the head does fade a tad fast.
That was the first thing that sprang to mind for me, as far as practical attacks. Simply getting in line behind the only person at an outdoor, secluded ATM (yes, they exist), and using the thermal-imaging system, or even just remote thermometer, to get the password, then stalking the guy who just finished his transaction, waiting for an opertune moment to grab his/her card. "I wouldn't really consider this safe cracking. It requires physical access to the safe within a few minutes of legitimate access. Are there a lot of cases where safes are installed in public view where this attack could be applied? I can't think of any cases I've seen where this is true." You're assuming that the attack is coming from the outside. What about in a buisisness where one (or more) employees are responcible for handling safe contents. Another employee working along side them could simply wait for the first employee to do what they need to, then jump in and get a quick heat reading from the keypad once the first guy has left. Me personally: I plan to touch all the keys on the pad, then rapidly enter my PIN, taking care to create a PIN that reuses at least one number and is at least 6 digits long. (My current one is 12, but they tell me that this isn't a good idea because not all locations have machines that can handle the full 12 digits. Bah.) Terry Karney • November 29, 2005 2:37 PM My ATM uses hard plastic keys, and a touch screen. Assuming a four digit code (which is what my bank wants, though I made them let me have a five digit code, which means I can't withdraw money from out of country, which isn't a big deal to me, as it means no one else can if they steal my wallet) I wonder how much information (since the keys are also fairly flat) is still available after I finish my transaction ritual, which has me at the screen for about three minutes after I enter my code. TK Karsten W. Rohrbach • November 30, 2005 11:00 AM When you got a 4 digit code, it would make sense to embed it in a longer code, say 8 digits and require its exact position in that code via a display mounted directly to the keypad unit. So your PIN is "1234" and the teller machine asks you to enter "472****1", the next time it will ask you for "****2956" and so on. Shouldn't be too hard to implement and would eliminate "over the shoulder" spying on entered PIN numbers. You can limit a one line numeric display in several very good ways in terms of angle of view and such. The Thermographer • December 1, 2005 1:55 PM The "Anti-Hack" for this is to manufacture the keys out of polished aluminum (Emissivity Owen • December 16, 2005 11:23 AM Ok, so thermal and wear examinations don't work on scrambling keypads. What about the multitude of devices out there that already that have cheap keypad locks? For example, Ford uses a 10-digit keypad with a 4-digit key entry system on many of its vehicles. While breaking into a car might not pay as much as safe cracking, it is much more likely to happen and you don't need to target a specific instance since these devices are becoming quite common. The Ford keypads make the situation worse by having key surfaces that quickly show wear. While ATMs and safes are obvious points of attack, I guess I'm more concerned about the poor implementations of this type of lock that are vulnerable to a quick examination that requires no extra equipment.
Post a comment
Powered by Movable Type. Photo at top by Geoffrey Stone.
Schneier.com is a personal website. Opinions expressed are not necessarily those of BT. |
|
Comments