Sorry, I'm stuck. And the bunker. This is Martin Herfoot, who will introduce himself. Hi, my name is Martin. I'm with Salzburg Research Austria, and I'm mainly concerned about the presentation and demonstration today. So it would be nice of you if you switched on your Bluetooth, if you have it. So we have a little more statistics to show you in the end. We won't hurt you, honestly. Okay, today I'm going to go through some definitions of terms. I'm not sure Bluetooth's taken off in the same way over here as it has in the UK. And then we'll look at the devices and the various attacks we came up with. The responses and defenses from the industry, and by defenses I mean not how they defended against the attacks, but their defensive position. Some legal issues arising out of this whole stuff. It's not as simple as, you know, that it's illegal. It's quite interesting, some of the legal stuff that comes along. So we'll just go straight into that. I'm sorry. Is that better? Okay, so Bluetooth is basically a wireless replacement, a wire replacement technology. It's designed to get rid of all the crap that you need to connect all your devices together. It's low power, short range. It uses the same frequencies as Wi-Fi, and the data rate's about one megabit. It's owned, the trademark Bluetooth is owned by the Bluetooth Special Interest Group, who are a trade association. And they basically license the IP and the trademark. Now what's nice about that is you can go and join as an individual the SIG, and that gives you the right to use the logos and the trademarks. So it's not as simple as that. So if you were to release some kind of useful tool, for example, you could have the SIG stamp of approval on it, which is nice. Other people get to pay, you know, the bigger members who are actually making Bluetooth devices have to pay various fees to get their devices qualified. There's two websites. The Bluetooth.com is the consumer site, and Bluetooth.org is the technical site where you can go and sign up as a member. So the three issues that have come up. The three issues that have come up recently are bluejacking, blue-snarthing, and blue-bugging. Bluejacking is a bit of a misnomer. I mean, it sounds like someone's hijacking your phone, taking it over. What they're actually doing is just sending you harmless messages. Of course, like any good new technology, it's immediately used for the pursuit of sex. So this thing called Toothing has come along, which is basically setting up casual liaisons via Bluetooth messaging. So people sitting on trains or in airports waiting, they're bored, waiting for a plane, they'll send each other a message, and if they like the other guy or whatever, they'll go and do something. Yeah. So because of bluejacking, the fact that you're visible makes you vulnerable to blue-snarthing, which is the thing we discovered back in November. And basically, we just took the sort of geek slang, snarf, to steal or take an unauthorized copy of some data, stuck it with blue, so you get blue-snarthing. And what that gives you the capability of doing is copying data, your phone book, calendar, IMEI, which with GSM networks doesn't mean very much anymore. It's the unique identity of your phone. But I guess on networks where you don't have a SIM card, it might still work. It might still be useful for cloning. If you've got images associated with entries in your phone book or your calendar, then we get those too. Blue-bugging was discovered by Martin when he was trying to reproduce my work at CBIT. And basically, he wanted to see how big a threat this was in the real world. But because I hadn't published any of my data, he had to independently discover it. So he... discovered how to do it, but actually found some more problems as well. And then we teamed up, and have done some interesting things since then. Now, using his attacks, we're able to actually take full control of the telephone, make calls, read and write your SMSs, your text messages, as well as the calendar and phone book entries, and send SMSs and set diverts. Okay, so the devices we've looked at on the whole, they're all mobile phones. And the reason we looked at those is, because, well, my job as security officer for the bunker, you know, my job is to protect my perimeters. And what I was finding is, those perimeters were actually becoming wider, and they were leaving my building, because they're, you know, network of, or gateway of last resort for my sysadmins, for example. They have GSM mobile phones. They want to be able to dial in from anywhere. So, you know, they have, potentially, set up gateways into the network. The sales teams have all of their contacts in there, calendar entries, you know, point business appointments and so on. So there are potentially a lot of issues with allowing staff to use network-enabled phones. And in particular, it was becoming something they needed to do because the law changed in the UK. To do with using mobile phones while driving. It's now no longer legal to actually hold the phone to your ear while you're driving. You have to use a headset of some kind. So Bluetooth is a good solution for that. Now, over in Europe, there's absolutely massive take-up. There's two million devices per week worldwide, but I think most are entering the market. And I think most of those are over in Europe. And in fact, if I go out in London, it's pretty much impossible to get out of range of a Bluetooth. If I scan for Bluetooth, I will find something no matter where I am. And Bluetooth are claiming that by next year, 30% of all new phones released in the States will have Bluetooth. So when we first publicized this, the responses, or when I talked to people about it, the general public response was usually, well, I don't care. There's nothing special in my phone. You can have my address book. In practice, if you go and look at what's in your phone, you'll probably find there's a few entries in there that you might not want the whole world to see. And everyone I've challenged on that, I've actually gone and they've let me pull data off their phone. We have found stuff like that. So a friend of mine who's a coffee shop manageress, I read her phone book, and I found the full street addresses of three coffee shops plus the door codes and the alarm codes. So, you know, she didn't care when I first told her. It wasn't a problem, but actually it probably is a problem. And Bruce Schneier's comment on this was the people are treating their phones as kind of data wallets now. They believe that they're secure, so they put a lot of stuff in there. And they believe that, you know, it's a device you carry around with you. If you don't lose it, you can't lose your data. So clearly with this technology, you can. Second response is, well, you're supposed to enter a password or something. So, yeah, well, that's the whole point. You are supposed to, but we're bypassing that. But people kind of dismiss it because they believe the industry claim that it's secure. So you're telling me you can get in, but I know you can't because I have to pay. So I'm not going to listen. And finally, you're selling a fix. Okay, well, we can't fix it. The mobile phone companies need to fix it. This is closed source proprietary technology. We can't just go in with a fix and say, okay, we've taken your stack and we've fixed it. So this is something they have to do. But even if that were true, you know, you can be as cynical as you like, but you still have a problem. Okay, the specific attacks, which Martin will demonstrate. Smart thing, we can steal your calendar appointments, some images. We won't do that now. Because it's too slow. Your phone book names, addresses, numbers. As I've said, you can get pins and other codes out of there if people have put them in there. And SMS text messages. The other attack is actually probably more serious, is turning a phone into a bug. Because we can initiate a call, what we can do is connect to your phone, tell it to call us back. And then we have an open mic on your person. So you're walking around doing your thing and we're listening to everything you say. And that's now coming over the network. So we don't even have to stay in range anymore because it's a GSM call. The other method of bugging is we could set up a man in the middle attack where we change an entry in your phone book. So your office entry no longer phones directly to your office. What it does is it phones my gateway, which then phones your office. And we have both sides of the conversation. So what I'm going to do, the organizers here suck. So we're going to have to change cables. I'm supposed to have a video switch. Now when we tried to do this over at Black Hat, somebody dosed the phone we were going to attack. And was blue jacking it. So I don't want to worry you on Julie, but I think there might be a hacker in town. Maybe. Have you broken it? No, it's fine. So as always, some of you already attacked our Nokia. Thanks. So what you see in the right hand corner of the screen, it's an insecure phone. But what which is ours, it's totally untouched so far. We didn't modify anything. But we have to do that for legal reasons. Just bugging a phone which is ours. Which we have for this. And hopefully it's working. So we try that. As I said, you know this is not how it is supposed to be in the wild. People are passing by. Now try it again. I'll try it. So this move on to the next demonstration we have about the Nokia phone book. And SMS. So we move on. And try this again. So we have another script on there. Which is called GSnarfy. It's both using the Gnocchi application. Which is for Nokia phones. And it's even having an X front end. Which makes it even nicer to work with. So it said connecting to charger. Charger is the name of our phone. Or machine. We called it this way. Because people would get maybe some, you know they would get some funny ideas of what is going on. If there is something else than charger. So the only indication we see there is a little headset symbol on the display. It has not made any sound so far. So people won't know if it's in the pocket. And even if it's not in the pocket they won't know what's going on. So what happens next is that I open up the contacts. Reading them out from the phone. So it's reading the phone memory and the SIM memory. In fact there are some more phone books to read out. It's about the dialed contacts. Missed contacts. And stuff like that. Missed calls. And that's just stored phone book information. Which is enough to play with in the end. So what you see here is just a list of the phone. We just kind of obfuscated the numbers. So you won't have anything of them. And I'm looking for a specific entry called honey. So this is supposed to be the girlfriend or the boyfriend of the owner. And I'm sure you know those. You can't see it anyway. Wait. So. That's what we're going to do. So. Taking that out. Modifying the entry. Which is done with that little icon. So we have the honey. And we just modify the number. Which we have on here. Oh. Other way around. 702. So maybe you want to copy that number. That's only 47 bucks I believe. Yeah. It's cheap. Don't forget the one. Oh. Thanks. Don't forget the one. So it's a plus one or one. I think it should. It's right. Okay. How do you know it's right? Okay. So this is used to save it to the phone again. So we changed that number of the honey. So anybody calling honey will probably call somebody else. . You know if that number would call the person, honey would show up. So. But if the person is intending to call the entry with honey. So it will. The person will call this number on here. Right. But yeah, if you examine the entry, you will see that number. So another thing to do is. Don't leave the room please. Okay. Phone is still there. Yeah. Okay. Our bug is still here. Stay there. It's okay. We'll try it later. So whatever. SMS messages. We can read them out of the phone. It makes it. You probably could have your own application doing that. But. Yeah. It's. It's PDA encoding of the messages. So we use GNOCKI again for reading that. So what you see here are the stored SMS or the received SMS messages. And we could also use the phone in order to send SMS messages without even, you know, knowing of the owner. The only time the owner gets to know that this happened is when he receives the bill. And maybe there's some premium service numbers also on it. Right. So when we disconnect from the phone, you see it again in the display. We disconnected from the charger. And you didn't hear that. The phone emitted a beep. So people probably would look to the display and would see, okay, I disconnected from the charger. So what I'll try now is again to blue bug our test device. Okay. Which has nothing to do with the Nokia phone here. So it didn't work out so far. That's what happened. So no bad response. It's supposed to be dialing a number. You know what we did is just, as Adam explained before, calling the phone which is here on the table. But it's not ringing. So I'll try it again. This is a little embarrassing. So no reaction on the display. So it's supposed to work usually anyway. We could bug this phone. I haven't got the voice channel on there. No? Okay. Okay. With the Nokia, the attack profile is slightly different. We would have to set up the Bluetooth to capture the headset profile. On the Sony Ericsson's we just get a straight open mic back through to this phone. But basically if this had worked what you would get is the goon that's holding that phone would be walking around with an open mic and he could go out and leave the room, get in a cab, go to the other side of town and that GSM connection would keep working and we would hear everything that's going on around him. And in fact that connection could be anywhere. So we could just be local operative setting up the bug. But the actual connection is going back to Tokyo or somewhere, anywhere because it's across the GSM network. And of course he's paying for it because he made the call. So yeah, he will have a record that he made a call to my throwaway pay-as-you-go phone. Yeah. So you would have to take care to obfuscate your phone number. So what you see here is an application I used for the CBIT and also for several TV demonstrations. So you were nice and switched on your Bluetooth. So what you see here is basically a listing of all the Bluetooth devices. On the left there's a manufacturer which is guessed from the MAC address or the hardware address of the phone. So sometimes I don't have an entry but mostly it's Nokia. Yeah. At least in Europe. We have some strange, I never saw TCOM so far. IPACs are here. You know, you can pretty much guess which device is vulnerable by having the manufacturer. And sometimes in this case the T610 we know it's sometimes vulnerable. Didn't even change the name. So this is still set to the default and you could pretty much guess it's vulnerable. So on the right hand side of this table. There's a red dot. The application is not set to attack any of this device of these devices now because of legal issues. So what usually happens is that it turns green. This spot and if it turned green, we would have gotten an SMS from this phone including the number and the phone book of the respective device and not only the SIM and the telecom the phone device phone book. But also the dialed contacts, missed calls and stuff like that. Which is pretty interesting to know. You know, who did the person call last. That would be kind of interesting for any spouses to know. Well, we try the blue buttons more. I used to know it was in the history. Somebody connected again. I switched blue to talk better. Yep. Okay. Thank you. Thank you. Thank you. Thank you. Thank you. Okay. We have to skip that demonstration. We're sorry. But yesterday and all the people who attended Black Hat would know it worked. Anyway. So that was the demonstration part. Okay. Thank you. Thank you. Thank you. Thank you. Thank you. Thank you. There's a question. When the phone is turned off and the battery is still in, I don't believe it's vulnerable because the Bluetooth stack is part of the operating system which has to be up at the time of the attack. So I don't believe it's vulnerable at that point. It doesn't make sense. So we're not going to share that at this time until the phone companies have actually got a mechanism for dealing with the issue, which Nokia announced last week that they are actually rolling out an upgrade program where you'll be able to walk in and get your firmware upgraded. What models are affected? If you go to the bluesnuff.org site, you'll find a list of models there. By the way, the presentation is not done. Maybe we shift the questions to the end. Okay, so if we move on. So the potential attacks you've got with the calling, the voice calls, you can call premium rates. You don't care where the voice is going. You just want to establish a call, initiate a call from the phone, and you're charging per minute for the outgoing call. In the UK, at least, the costs per minute are completely open-ended. There is no regulation. You can set up a company that charges £10 for the first second of the call and that will be charged to your bill. And you only need access, as I say, for the initial call setup. You don't have to stick around because you don't care where the voice is going. Long-distance calls, you do need the voice channel. Basically, you want to use somebody else's phone to make a phone call yourself, so you need the voice channel. So if you're doing it by... hijacking the voice channel over Bluetooth, you basically need to act as a headset. So you have to stay within range. The alternative is you set up a call forward so that the phone you're calling actually calls the number you want when you dial it and connects you onwards. And that's only worth doing if your local call is cheaper than the long-distance, which it probably is. And if you're on a network where you get free calls in the evening, whatever, then that call for you will be free. You can listen to voicemail because most voicemail systems accept the CLI of the incoming call as authentication. It doesn't require a PIN if it recognizes the incoming call. So if I use Bluetooth to connect to the phone and then dial your voicemail, it will just send me straight into voicemail and I'll hear your messages, can delete your messages, and so on. With SMS, you've got, again, the same problem with premium rate. You can send messages to... to cost-per-drop systems where you actually just send it a message and it charges you. You could potentially use the phone as a spam gateway, so you're sending unsolicited SMS spam from someone else's phone. You can impersonate the victim, so a message arriving on someone else's phone appears to have come from you, so clearly, oh, from that victim. So they may act on that message because they feel it's authenticated because of where it's coming from. And probably one of the most scary is the authentication, access to authentication secrets or being able to actually complete an authentication process. In the UK, we have some services where you can type a phone number into a website and it will then track that phone wherever you go, and you can look it up any time, day or night, and if that phone is switched on, it will draw you a nice little map and show you where the phone is. And the way they authenticate, is you type in the number, they send a text message to the phone, you respond from the phone with another text message to their center, and then you're in. So if I can connect by Bluetooth to your phone, I can actually complete that process for you. And this is one I did earlier. So, I don't know how good the writing is, but basically, for the civilian market, they reduce the accuracy down to about 800 meters. And if you can see, just by the vertical bar where the avenue is, there's a little number one, and that's where it thought I was. Where I actually was is just above the tube station at Turn and Green, where there's a little cross. That distance is about 100 meters. So, it's much more accurate than it claims to be, and that's certainly close enough that you could then drive to that location and find me with Bluetooth. Okay, so other potential losses are service theft, using the phone as a gateway, to dial into the Internet. Or, as I said, with the perimeters, if you have a properly set up network that authenticates incoming calls with CLI, then I can bypass at least that first stage of authentication because I'm coming in from a recognized number, which I found in your phone book, of course. GPRS, just again, another kind of gateway, free Internet, and potentially could be used as an endpoint for cracking or spamming. Okay, so we found these problems, and we posted to the industry, and the first way we did that was we posted to the Bluetooth SIG on the technical website. They actually have a security expert group, and they have a forum where you can just go and post messages. So, I posted a message describing the outline, and I expected various phone manufacturers to get in touch and find out what the problem was. A couple of weeks later, nothing had happened, and I looked back at the forum, and basically anyone else who'd posted had also had no response whatsoever. There were no replies in the forums to any of the messages or issues that people had raised. So, we posted to BugTrack. Within 24 hours, Nokia got in touch, and their chief of security basically discussed the issue with us. We shared the code with them. They reproduced the problem in their labs. They verified that it was a real problem, and management decided that they weren't going to do anything about it, because it only affected a few models of phone. We'll come on to that later. TDK published a very long, rambling explanation of why we were wrong, and this couldn't possibly happen. Sony Ericsson released a press release saying they had fixed the problems. When we tried to get in touch with them, they actually refused to talk to us. We emailed them, we phoned them, we wrote to them. The only response we ever got was a letter saying, we have our own security department, thanks very much, and good night. Six months on, they were still taking that stance, and publishing, you know, in response to any press that came along, they were publishing that they had fixed the problems. But they had never spoken to us, so I'm not sure how they could be sure they'd fixed the problems. When I finally got through to someone and suggested that they actually send me a phone so that I could get in touch with them, so that I could test it, because, you know, we're working on old phones with older firmware, but six months on, they said if I want to test it, I should go to a shop and buy one. So, yeah, like I need a broken phone. So they then got the idea that maybe there was a further problem, and they finally allowed me to tell them what the problem was, and sure enough, they hadn't fixed it. They'd fixed Martin's problem, but not mine. So phones were still vulnerable, and when they believed they had, they'd actually corrected the issue. Siemens and Motorola, on the other hand, came to us unsolicited. We hadn't looked at their devices. We hadn't reported any problems with their devices. They came along and said, you know, here are some new Bluetooth phones we're about to launch. Can you have a look at them? Tell us if there's any issues. Siemens came up clean. Motorola V600 actually established that something we believed may be true, which was an escalation of privilege attack using Wi-Fi. One profile to attack another was possible, and so we combined our attacks and actually managed to get into the Motorola. So the industry then responded with a bunch of defenses as to why this really wasn't an issue, and they cited these things. Distance, limited number of models, that it's an implementation issue. It's not an issue with Bluetooth per se. You need specialist equipment. You're gonna look really suspicious doing it. Devices aren't vulnerable. They're vulnerable anyway. You can change the name, and then we won't be able to attack you because we won't know you're vulnerable. It's easier to steal or find a phone, and it's far-fetched and low risk. So distance, the actual published distance of Bluetooth is 10 meters, so we have to be close. Well, 10 meters is 30 feet. You know, that's from here to these guys here, to you probably, yes. And it's a sphere. It goes all around me, behind me, beside me, above me, below me. So if I'm sitting in a bus, I've got everyone on the bus. If I'm in an office building, I've got people on the floor above and the floor below. And in practice, actually, just with a normal dongle, you get a range of about 40 meters. What I found with a class one device, I get a range of about 90 meters. Now, this gentleman sitting here from Flexilis, they have a really cool toy with them, which is a Bluetooth sniper. It's a sniper rifle. And do you have it with you? Okay. Well, they're getting a range of half a mile pointing at a normal phone, and they've done copies of data from a phone half a mile away by pointing this device out. So, yeah. So get a look at that if you can. It's really cool. Okay. So limited number of models. Well, yeah, I put my hands up here. They were right. There are only a limited number of models affected. Unfortunately, they are by far the most popular models on the market. If you go out in London, 70% of all the phones you see will be one of these models. The Nokia 6310 and 8910 series are the standard businessman's phone. So, you know, corporate contracts will have thousands of these things. Sony Ericsson T610 is the sort of trendy lifestyle phone. So, you know, those two models are pretty much the main models on the market. As far as implementation issues go, you know, you don't care whether it's Bluetooth is the problem or it's the actual implementation on that model of phone. And in fact, at stake, have probably found some fundamental flaws which would lay a lot more devices open to attack anyway. And there's more detail on their website. But we need specialist equipment. You know, advanced knowledge of Bluetooth technology. Well, again, that's not the case. We used black box research. We didn't know anything about Bluetooth when we started. We just poked around with the protocols that were available. Information we could find on the internet. Standard laptop. Generic dongles, which you can see on the table. Software stacks downloaded from the internet and slightly modified. And even if, you know, this is all too bulky, in theory, there is software available on PDAs and mobile phones in development. But in practice, you know, you just have a laptop in a bag. That's fine. So, yeah, which brings us on to suspicious behaviour. I can do it from my laptop, in a bag, hung over my shoulder, reading a newspaper. In fact, I entered the Houses of Parliament, went through the security, handed in all my crap. They sent it through the X-ray machine. They searched me. They let me in. I spent 15 minutes walking around with my bag over my shoulder, looking at the nice paintings and the statues and seeing some MPs milling around. And I left. And the attack was running all the time I was in there. Not actually attacking, of course, just gathering statistics. Devices are not always in vulnerable mode. Well, they have to be discoverable. That's not necessarily true. Some devices are actually vulnerable to attack, even if they're not discoverable, if you know their MAC address or BD address. And, you know,