The American Pronunciation Guide Presents ''How to Pronounce Brian Glancy'' BRIAN GLANCY My name is Brian Glancy. I've presented here at DEF CON several years now on different topics, ranging from PDA security now to PC encryption, hacking NTFS, NTFS sauce, usually really real-world demonstrations. I'll start with an agenda and an explanation. This year, the real point of my talk was the HP 5455 biometric IPAC, which some of you may have seen, played with, worked with, done stuff with, all that good stuff. I was waiting in line with Bated Breath to buy one the first day they were released, bought one, and it turns out that they have some security issues related with them. So really, the whole topic of my talk originally was to be around the flaw with the IPAC. So I'm going to start with the HP 5455. But along the way, and some of you may have seen stuff about this. There's been stuff on the Internet about it, lots of chats on the HP website. A lot of people don't seem to understand that they paid extra money to get a biometric fingerprint reader, so when all of a sudden it doesn't work, they don't get upset, which seems strange to me. I was kind of upset that the security on it wasn't as good as it should have been. But some people aren't as worried about it as others. They just say, you know, reset the device when it doesn't work, or restore from backup, things like that. But the long and short of the story is there is a problem with the 5455, but it's weirdly reproducible. It occurs now and then. You never can really tell. We haven't been able to track yet what makes it occur. So reproducing that for demonstration was a little bit of a not able thing to do. So we ended up, I ended up making it a lot more general, showing you a lot more tools that are available to you in both Pocket, for the Pocket PC and for the Palm, and general issues. Different things that you can do to bypass the security on Palms and Pocket PCs. And give you a little bit of a primer on Pocket PCs and, you know, I don't know. I don't know how much, where everybody is. So just to set everybody's expectations, there's not going to be any rocket science announcement of some new exploit that's just unbelievable. I'm going to give you a really good base on, you know, what you can do in Pocket PC, what you can do in Palm, what the security works like, how everything is laid out, and basically, you know, the lay of the land so you can really get around and hit the ground running and play with these things. But you're not going to see anything, it's just mind-blowing. If you know this stuff and you've done it before, remember this is a one-on-one track, so don't throw tomatoes at the end, alright? So with that, let's start with Pocket PC. Well, your main connectivity point for Pocket PC, besides the regular network traffic that you're exposed to with the new iPacks, you know, there's things on the market now like Tri-Radio. iPacks that are beginning to hit the market. Smartphones, things of that sort that have connectivity both through 802.11, through things like GPRS, and also connectivity through Bluetooth, which means that you have to deal with one single device with multiple different access points and multiple different security points and all different sorts of vulnerabilities. And the other problem that you have is that you're dealing with it on a platform that's not built with security even generally in mind. No ideas about things like user authority levels or who should be editing the registry or who can replace the kernel on my device. No concept like that. It's just a one-size-fits-all type of platform. So there's a lot of different issues related to that. So to cover that a little bit, let me start with what the tools are to start playing with different things on the Pocket PC. First thing is registry editors. I put up a link here, and my presentation has been submitted and updated so you can download updated stuff off the DEF CON website. So you don't have to bother scraping down all these URLs and things if you don't want to. You can download them. But this location that I've got on the screen here, Pocket PC DeveloperNet, has got a listing of all the different freeware and commercial registry editors. You can edit the registry, it turns out, on a Pocket PC both locally, so you can turn the device on, run a registry editor on there, even though it doesn't have something like regedit built into it that just comes with the operating system. You can download another tool and just edit the registry wherever you want. And the registry, we're going to go into it a whole bunch, but the registry is basically the whole shebang on the Pocket PC. It holds passwords. It holds connectivity issues. It holds whether you prompt for a password or not. So basically the fact that you can just do whatever you want with the registry leads to problems itself. Other things in your toolkit. Redback. Some of you may have looked at this. Redback is a tool from AtStake. That actually does discovering of undiscoverable Bluetooth devices. So if you look at Bluetooth, it's got some rudimentary security things on there. And one of the things it has is this idea of setting your device, whether it's visible or not visible, or whether other people can connect to it or not connect to it. What this does is it allows you to brute force find devices that are listed as non-discoverable, even if people aren't sharing them, and just be able to look at them and take a look at them. Snort and Air Snort. Everybody's probably familiar with this. The reason that I put this up here is that ActiveSync, which is the way that we get all of our information back and forth to the Pocket PC, runs over regular TCP IP. So if somebody chooses to do something silly like ActiveSync over the Internet, which I recommend none of you do, but you know it's available, so if it's available a user's going to choose it, right? Somebody's going to play with that and try it out. So given that ability, whether it's 802.11 or whether you're doing it over a wired connection over Ethernet, sniffing yields big results like plain text passwords for the device and all of the connectivity information for the device can all be garnished from the regular snort rules. Now, some of the URLs look really bad on this. I apologize for that. Let's start off by looking at the registry. Well, as I said, the registry can be edited both remotely and locally on the device. Now, the interesting thing about this is that everything, it's not like Windows that we're used to where our wind blows, or whatever you want to call it, which gives you a separate location to store your usernames and passwords. All of that information is stored directly inside the registry. So that makes it interestingly editable and changeable and do interesting things. The system password for the device is actually stored actually in the registry. In a hash that is non-published, which is always an interesting thing. You know you're in trouble with crypto when somebody says that they're not going to tell you what they used to protect it. So Microsoft doesn't disclose what the hash used is. Nobody's cracked it yet, but that's yet. If anybody out there wants to crack it, I'd love to help. And the registry yields a lot of interesting values. This is a screenshot. Just a simple registry editor. This is just a freeware one for your pocket PC. So you can get a look at what it works like. Now, don't be surprised at all. The layout of this is standard Microsoft. HKEY local machine, HKEY current user, HKEY classes root. Everything is just the way that you would expect it. And you can see that some of the things that you get in this, this is an interesting one. This is off an IPAC 5455. This is actually where it tells it to invoke the biometric authentication. So let's say you did something like mailed somebody a worm. And you put into the program overwrite the value in the redirect with blank. Their authentication wouldn't launch. And there's no authentication. There's no extra security or protection on this. You would just be able to blow it right out. And the guy might say, well, what happened to my fingerprint thing? But he'd never know the better. All different sorts of information is in here also, like the timeout also. So you can turn the timeout way up and be able to say it takes nine hours before the password screen is prompted if you turn the device off. All those good things. So maybe the screen would still come up, but it would take a heck of a long time. And that would give you different opportunities. Some of the related values in this look familiar, huh? Looks very much like Windows. HT local machine. COM drivers. COM setting up the communication ports, how you're going to communicate. Whether you're going to use WEP or not if you're talking about 802.11. Drivers, what drivers you're going to use. What parts of the hardware you're going to use. What buffer you're going to use or not use. There was a really interesting presentation yesterday at Black Hat where Josh from MobileGuard showed an exploit where you actually could send a full reset and wipe of the device remotely. Where you could just pop it down through a buffer overrun and be able to full wipe out the device with the user knowing nothing going on. Just wipes it out. Other things that are in here. The actual shell commands are in here. So you could change out what kernel you're going to launch. You could change out what control panel you're going to launch. Everything is entirely modular so you can switch it out in the registry. Which is nice if you want to customize your IPAC and make it run like all different sorts of wild ways. But it's a real detriment to security because you could of course replace that with anything you want. So another interesting part about this is the best place to get more information about this is from Microsoft. They seem to be happy that their devices got very little security and that you can change anything out you want. One example is this that I have on the screen. There's actually a sample application that you can download and compile and run which when run on the device actually replaces all the registry entries and deletes the password screen and replaces it with a doodle screen when you start it up. So they just gave you an example. Microsoft wrote their own worm I suppose you could say. Which gives you the ability to get rid of that nasty little password screen that's so annoying anyway, right? Some of the different attacks against Pocket PC. ActiveSync cradle. Interesting thing about ActiveSync is those of you with Pocket PCs have definitely noticed the system password which is basically all the security you have offered to you on these devices. But the interesting thing about ActiveSync is it's only unidirectional. So if you're actually trying to social engineer information from somebody or get information from somebody or if you're actually worried about somebody getting information from you the bad part about all this is that ActiveSync though it will give you a password prompt if you try to sync a protected device with a desktop it won't give you a prompt if you try to sync an unauthorized device with a desktop. So you could just bring a Pocket PC in slap it down in the cradle and take down somebody's all of their email all of their contacts all of their calendar all of that good stuff just by putting it in the cradle. I guess it's a feature. One of the other parts of the implications of ActiveSync running via TCP IP is of course that ActiveSync is susceptible to DOS. Some of you may have seen different things on the internet recently regarding this. This is actually a link to one of the advisories that came out. It says if you send malformed packets at a Pocket PC device it will actually crash ActiveSync and do all sorts of nasty things and all sorts of good stuff. So the interesting thing about this is if you have an IPAC with 802.11 enabled it doesn't distinguish between the interfaces. So you don't have to invade the cradle or something like that. If somebody's got 802.11 you can just send them packets to 5679 over the wireless and there goes their device. Another interesting thing about Pocket PCs are of course removable media which is really nice and convenient because you can put stuff on it and move it back and forth from your PC to your Pocket PC and you can do all sorts of good stuff. But of course it's horrible because of the fact that you can't protect it in any way. Anybody can come up and take your SD card out and take the data off of it and copy it. They won't even know that they copied it. There's no auditing. There's no listing. There's none of that stuff. You just put it in, copy it down and you're done. And nobody will even know that nobody's the wiser. So here's a little part of the original presentation. Pretty picture, isn't it? So the new HP 5455 uses a biometric fingerprint reader. Kind of weirdly. I don't know if any of you have seen these. But they're kind of funky looking. They've got a cool little... I could plug mine in. I actually have my VGA adapter on. It's got a nice fingerprint reader on it and stuff like that so you can scan your fingerprint in and it'll do multiple fingers and all that good stuff. But of course the problem is that you don't have a biometric fingerprint reader also on your laptop usually. And even if you do, it's not smart enough to understand to coordinate the biometric fingerprints. So you have to use a fingerprint plus another factor and it sometimes forgets this other factor. The way that this actually looks, and this is actually... You can follow the thread of what's going on here. And if any of you have a 5455 and you see this problem, you can drop me an email because I'm trying desperately to figure out exactly how to reproduce this error. What'll happen is spontaneously, every once in a while, when you turn the device on, it'll forget that it's supposed to prompt you for a password and it'll prompt you for a PIN. It runs home to mama. It forgets that it's a biometric device and it says, well, I'm supposed to prompt for something right now but I don't know what this biometric thing is so I better prompt for a PIN but you don't have a PIN set. So you have no way to log into your device. You basically have to do a reset and re-get into your device kind of backwards there. And then the other problem is when these miraculous things occur that it figures out, it forgets what it's doing and it goes into this PIN state, it also forgets that it has an ActiveSync password. So all of a sudden, you can just do whatever you want remotely to the device through ActiveSync, push down registry edits, change the kernel, do whatever you want without having any authorization, any security at all. It's just all gone. All gone. All of a sudden. So if you're interested in this sort of thing and you can track the progress, we'll get it figured out. It's got to have something with memory leaks or something like that, amount of time that you're running the device. We've been trying a lot of different pieces here trying to figure out what does it. Of course, it's got the same removable media security problem. It does nothing about removable media even though you're spending $200 extra to get a biometric fingerprint reader. It doesn't do any encryption. It doesn't do any protection of anything else on the device just as a password replacement. So it's kind of cool to show your friends the cool little picture of the fingerprint reading and all that stuff. And it does a little cool picture on the screen, but it doesn't really do you anything. So I would suggest that you don't waste the extra $200. Let's skip to Palm. Well, Palm's got... It's actually even a little worse than Pocket PC if that's possible. Or maybe you can put them both at the bottom of the scale. It's interesting. There's lots of different vulnerabilities for Palm. These are just two popular ones. One is NotSync, which some of you may have played with, which allows you to compromise the password set on a Palm without anything. Just drop it in the cradle, compromise the password, and you're in. You can get whatever you want. You can log in to the device. You can sync it. You can erase it. You can do whatever you want. So basically the password becomes entirely irrelevant. The other interesting thing is PDD, of course, which some of you may have played with also. Here, actually, let me skip screens because you'll see pictures of some of these things. PDD was recently purchased by a company called Paragon, Paradigm, Parabon, Paraben, one of those, all those different things, to put into a product called PDA Seizure. Which is a forensic tool for PDAs that is supposed to let you get the information off any PDA if you had a seizure for corporate purposes. The interesting thing about it is, of course, it's a free download to try it. So you could download it for free, try it, and get whatever you wanted to get off a device if you wanted to compromise your device. It's actually a nice piece of software. It's not bad. Another interesting thing for Palm is that you might have heard people, you know, I had a person come to me the other day. I told him I was doing this presentation. And he said, Well, on my Palm, I protect all of my data. I have it all set to hidden so you can't read my memos or my credit cards. I keep everything in there. I keep all my credit cards, my bank accounts, everything. But it's hidden. It's secure. Nobody can beat it. Well, the end of this thing is there's a lot of freeware tools out there that are file managers or editors for Palm. Just run any editor, and you end up with the ability to see all the files that are on the device. You end up with the ability to change, edit, do whatever you want. No auditing, no access control, nothing like that. You know, just get whatever you want. Not saying, PDD, I haven't talked about it. I said it was bought by Paraben, but I didn't tell you what it does. It takes an entire image of the Palm device and dumps it to a disk file. So you can take a Palm, drop it into a cradle, image the sucker, give it back to the guy, and you actually have his Palm, but he doesn't even know it. So you have all of the information off there, but he has the Palm back, so you've been able to have all the information. Yeah? Pocket PC or Palm are different answers. And mostly the answer is pretty much, it pretty much does go away. There's not a lot of residual. As far as low-level chip stuff, if you can recover, I've heard tale of, you know, people telling me from DOD or other places that, you know, you can recover stuff off the low-level memory image on the chip and things like this. I've never seen it personally. I wouldn't be too worried about it if you delete it, basically. And I wouldn't do a, I wouldn't be worried about either, like, five times overwrite, like you do with a hard disk, you know, where you do zeros, zeros, zeros. I wouldn't worry about that. No problem. So Palm memo hiding vulnerability, I already talked about this. Any file manager editor can view, edit the hidden memos. So I'm just about, after I get done with the conference, that guy that told me that I'm going to change all of his bank accounts and stuff like that, see if he notices. So over here, overview of all the PDA holes and what everything means. And I went quick, so you guys are going to have a lot of time for questions and all that other good stuff. Removal of media, huge gaping hole, no solution, big problem. There are a couple different products out there. If you guys are really worried about this sort of thing, you should really look into some of the third-party tools. There's a couple products you can buy. There's some free products, like Safe Crypt and different things like that that can encrypt data on your PDA. Then there's other programs by companies like F-Secure and PDA Defense and PointSec and a couple other companies that make security programs that protect PDAs, encrypt data, things like that. Entrust actually makes a really good one called Movie Encrypt, which encrypts the entire thing. Reset programs. Like I was talking to you about yesterday with the demonstration of how to reset this thing remotely through TCPIP, through whatever you want, through a buffer overrun. Just wipe all the memory and erase the whole thing. The user doesn't even know anything. Whether you send it through a worm or through a net attack, allows you to just blow it out. Keep a backup. That's the moral of my story. Synchronization programs, they all suck. There's all sorts of holes in them. Don't use them over TCPIP in the air. Don't use 802.11. Don't do it. Don't use it over wired unless you use a VPN or something like that. Other general vulnerabilities with PDAs, of course, is that a lot of people don't even choose a password for them. They're all susceptible to dictionary attack. A lot of them aren't really smart. They don't do locking out and wiping or any of that other good stuff. If you want to write a program that grenades, or use an old program. You remember the old program Grenadier? That was a really cool program. You could put up any box and programmatically say, feed a dictionary into it, so you could do dictionary attacks on any program. Works fine. Works great with any PDA device because a lot of them don't have the idea of timing out or locking out over multiple missed passwords. So you can just feed them passwords, feed them passwords until you get in. Locking optional. That goes into this whole idea of feeding them multiple passwords. A lot of them don't have that. They don't know three strikes and you're locked out, or your account's disconnected, or any of those types of things. That ends up being a big problem. Of course, the biggest problem is no encryption. Even though you have a password, your data on your SD and your compact flash, that's all in the open. If you get past the password, you've got all the data. Not much security, really, no matter what you do. The other big problem about this, which kind of comes home with the 5455 example, is that the security varies from manufacturer to manufacturer, from platform to platform, even with the same operating system. So if you look at something like, you know, you would think Pocket PC 2002, it would be the same. If you buy Windows XP Professional and you buy it on an HP or you buy it on a compact or you buy it on a machine that you make yourself, they all run the same with the same security properties. Well, Microsoft has deemed in its value the last wisdom to make it the option of all of the people that create the devices like HP or Toshiba or any of those people to include security and not include security or do whatever they want, build their platform at their leisure with something called the platform builder. So you can set up, whether it includes security or doesn't include security, it's totally in the arms of the person that you buy your PDA from. So an attack, for example, the 5455 button, the biometric one that I'm talking about, that doesn't have anything to do with a Toshiba. They've swapped it out by using that, the registry headings and that idea of the control panel password application. They've been able to switch that entire thing out. PDA connection points are, of course, vulnerable. TCPIP, I've beleaguered enough. 802.11, yeah. And all of the WEP implementations on 802.11 for, you know, PDAs, really sucks. I haven't seen a good one yet. If anybody sees a good one, tell me. Basically, it's all just regular, you know, the old stuff. Fixed key, no rotating, you know, no good stuff. Bluetooth, you know, susceptible also. We talked about Redback a little bit, which allows you to find indiscoverable devices. Basically, disable Bluetooth if you have it on there. I do use Bluetooth, but I always use it in a very controlled environment and make sure that, you know, nobody's within a while. Like, I'll use it at my house, in my office, but no place else. You know what I mean? Something like that. Don't have it enabled in general because you're really wide open. Sync vulnerabilities, TCPIP wireless, all synchronization traffic is unencrypted. Easy to sniff the data. Bluetooth, incomplete security. Redback software allows you to discover. And that's it. Thanks a lot. Do you guys have any questions? Thank you. Yes? . Browsing with your PDA is pretty much okay. You don't have to worry about it. I wouldn't worry about, I wouldn't be, the question was, is browsing okay on your PDA? I wouldn't worry about it. The SSL is decent. Make sure you use SSL. But other than that, it's decent. So, good use for it. . . . . . . . . . . . . . . . . . . . . . . . . No, it hasn't been fully released. He posted it to Microsoft, reported it, but now they have these new procedures that you can't tell about it until it's fixed. Yeah. It stores it in just a file on the device. It's stored as just some data points. It's not even a bitmap or anything like that. It stores the eight points. It's actually a very bad biometric lax, if you want to look at it. No, no, no, God. Jeez, you are naive, aren't you? No, no. No, no, no. It's not an industry standard at all. It's just... It's stored really badly. The implementation is not good at all. I wish it would have been better. I hope somebody comes out with... If anybody has a software company in here that does stuff like IPAC, write a new biometrics piece of software for the IPAC. I'll buy it from you right away. I'd love that. That would be great. Yeah. Yeah. PDA Bomb, PDA Defense is a good one. PointSec has got a good one. A company called PointSec has got a good one. Is there anything to worry about with the software? In other words, is there something that you've seen where you've got to go, yeah, what about the science? Yeah, you need to adjust that one. The only negative thing I've ever seen about any of the companies that does... the different companies that do the security is about a year and a half ago, PointSec had a vulnerability found with their storing of their passwords in plain text, but that was fixed, like, right away. But other than that, I haven't... there's not really a problem. No. That's good. Any more questions? Yes, sir. On the PDA, is that kind of like a spelled stink or something? It's like a ghost. If you've ever played with ghosts for a... that's what it is. It's like ghosts for a PDA. So you put it in, it doesn't even know it's there, and it just takes all the data right off the device, and it puts it in an image file. It's not even in a sink, it's just... Oh, yeah. Yeah. On the PDA, you're talking about that... Yeah. Yeah. You said that when it pushes out and has its own pin, it's a trick to see if it's a good one. Yes. So when you send it back to the PDA, you see that it has a pin that gives it an image around it. That's exactly what you could do, or the other thing you could do is reset the device, do a soft reset on the device, and it usually figures itself out again. I have thought about the pin issue, though, resetting it correctly. Yeah. On that biometric sensor, you mentioned that it stores data. How many data points? What's the resolution of each data point? It doesn't say. It doesn't say directly. I read in some of the technical briefings about it, it said eight points. That's the only rail of data it gave you. So it can store eight points. 256 different biometric sensors. How large... No, no, no. I mean, I'm talking about like eight piece, eight different curls or parts on your fingerprint. I'm not talking about like eight different fingers. I mean, it takes your finger and looks at eight different spots on it, and then it memorizes those eight spots, which is usually... Like very large, and then you're mapping them to a place. No. Yes. Yes. The fingerprint... The fingerprint... The fingerprint... The biometric itself, and if anybody wants to look at one, the biometric itself is totally a photographic biometric. It's not conductive. It's not heat sensitive. It's none of those things. So it would be susceptible to all those things, like photocopying your finger and running that if it were a high-res picture, or any photo replay of your finger to the device. It would be... Yeah. Yeah, it's very low-res. Yeah. Any more? Okay. Do you have any concerns about the list of PDAs for the ZORUS? Yeah. Yeah, very much so. The ZORUS is interesting. The real problem when it comes to PDAs is that people usually don't think about what they're going to do with them before they get them, and then they also end up with this idea of they'll have three or four if they're working with other people. People will have all different ones, and then you have to try to figure out how to secure all of them. But the ZORUS is pretty good. The security on the ZORUS is pretty good. I like it. Remember, the ZORUS is like a high-profile PDA for a PDA. Yeah. Exactly. Exactly. Any more? Well, thanks a lot, guys. Have a great time in the conference. Thank you. Thank you. Thank you. Thank you. Thank you.