1 00:00:00,560 --> 00:00:03,960 Some of you may have noticed, I'm not David Litchfield. 2 00:00:06,580 --> 00:00:09,340 So, I'm not David Litchfield. He's supposed to be speaking now. 3 00:00:09,400 --> 00:00:10,080 This is David Litchfield. 4 00:00:12,320 --> 00:00:13,460 Okay, I'm undercover. 5 00:00:15,040 --> 00:00:19,740 So, I won't be offended if you all get up and run away now. 6 00:00:20,840 --> 00:00:26,140 I was basically in the bar last night and I was told David wasn't going to make it 7 00:00:26,140 --> 00:00:28,340 and someone heard me speaking and they said, 8 00:00:28,340 --> 00:00:32,340 Oh, you're British, you'll do. Just get up on stage, do something. 9 00:00:32,640 --> 00:00:34,120 Because all Brits look alike, right? 10 00:00:34,340 --> 00:00:37,840 Yeah, and sound alike. And we know about cricket, by the way. 11 00:00:39,700 --> 00:00:40,100 Allegedly. 12 00:00:40,960 --> 00:00:44,920 By the way, what is the most feared question that an Englishman faces by a yank? 13 00:00:44,980 --> 00:00:46,500 Because I think he would rather die than answer it. 14 00:00:46,920 --> 00:00:47,460 Anyone else? 15 00:00:48,640 --> 00:00:49,840 What? No. 16 00:00:50,560 --> 00:00:51,640 No, but thank you for the money. 17 00:00:51,640 --> 00:00:54,580 Would you please explain the rules of cricket? 18 00:00:57,360 --> 00:00:58,320 Would you explain the rules of cricket? 19 00:00:58,340 --> 00:00:59,720 I mean, the rules of cricket was the question. 20 00:00:59,960 --> 00:01:04,560 So, yeah, if you want to run away, alternatively, if you want to get on the phone 21 00:01:04,560 --> 00:01:06,760 and quickly tell all your friends to come in and fill up the room 22 00:01:06,760 --> 00:01:10,880 so they actually pay attention to my CFP next time, I'd be delighted. 23 00:01:13,920 --> 00:01:17,060 So, this talk is called Aliens Clone My Sheep. 24 00:01:17,280 --> 00:01:19,480 You may have already seen it as RF Idiots. 25 00:01:19,800 --> 00:01:23,340 When I sent my CFP in, I had this great idea that I was going to do 26 00:01:23,340 --> 00:01:26,900 some really wacky talk about cloning. 27 00:01:26,900 --> 00:01:31,740 It must be aliens because I'm being told it's not humanly possible to clone RFID chips. 28 00:01:31,980 --> 00:01:34,780 So, since I'm cloning them, obviously it's the aliens. 29 00:01:34,920 --> 00:01:41,380 But since my CFP kind of vaporized, I didn't get a chance to prepare it. 30 00:01:41,420 --> 00:01:47,640 So, I've just changed the front page and the rest of it is pretty much the same talk as I've given on RFID. 31 00:01:47,820 --> 00:01:51,320 So, if you've already seen that, again, I will not be horribly offended 32 00:01:51,800 --> 00:01:54,440 and have the goons track you down if you leave. 33 00:01:54,580 --> 00:01:56,360 So, feel free. 34 00:01:58,980 --> 00:01:59,860 Damn, they're all leaving. 35 00:02:05,140 --> 00:02:06,940 Are the slides going to be on the website? 36 00:02:07,660 --> 00:02:08,800 Or is the video? 37 00:02:08,940 --> 00:02:11,040 The whole thing is videoed, so I guess it will be on the website. 38 00:02:11,140 --> 00:02:14,860 You can come and watch it in about a year's time when they get around to posting it, I guess. 39 00:02:16,800 --> 00:02:17,740 The slides, yeah. 40 00:02:18,660 --> 00:02:21,920 I'll create a PDF and make sure it gets posted, yeah. 41 00:02:23,560 --> 00:02:24,780 So, you're free to leave now. 42 00:02:29,980 --> 00:02:30,740 So, I'm sorry. 43 00:02:30,800 --> 00:02:32,220 I haven't had time to plug in either. 44 00:02:44,540 --> 00:02:44,980 Okay. 45 00:02:45,280 --> 00:02:45,720 Right. 46 00:02:46,680 --> 00:02:48,240 Quick introduction of who I am. 47 00:02:49,580 --> 00:02:53,820 Until fairly recently, I worked for a company in the UK that does secure hosting. 48 00:02:53,980 --> 00:02:56,880 We buy up ex-military nuclear bunkers. 49 00:02:56,900 --> 00:02:58,680 And convert them for civilian use. 50 00:02:59,480 --> 00:03:00,360 They're pretty cool. 51 00:03:00,480 --> 00:03:07,080 You get to see where the UK government spent all our tax money on hiding underground in dark holes 52 00:03:07,080 --> 00:03:09,100 with lots of very thick concrete walls. 53 00:03:10,000 --> 00:03:11,500 But, you know, very high tech. 54 00:03:11,660 --> 00:03:14,100 So, they spent millions and millions of pounds doing these places up. 55 00:03:15,120 --> 00:03:18,320 And then, as soon as it was ready, they closed them down and sold them to us. 56 00:03:19,580 --> 00:03:20,780 Thank you, Mr. Government. 57 00:03:21,840 --> 00:03:23,880 As you probably know, I'm a DEFCON goon. 58 00:03:23,940 --> 00:03:24,680 Oh, duh. 59 00:03:24,900 --> 00:03:25,340 Yeah. 60 00:03:25,420 --> 00:03:25,620 Yeah. 61 00:03:26,300 --> 00:03:33,220 And recently, I've been doing stuff on Bluetooth, RFID, but I'm now a full-time freelance. 62 00:03:33,480 --> 00:03:38,080 So, although I'm still involved in the hosting company, I don't work there day-to-day. 63 00:03:38,180 --> 00:03:40,600 So, I'm available for freelance work. 64 00:03:40,740 --> 00:03:42,460 I do weddings, bar mitzvahs. 65 00:03:45,820 --> 00:03:49,440 So, normally, when I'm speaking to a more corporate audience, 66 00:03:49,780 --> 00:03:53,780 I try and give an explanation of the kind of stuff we get up to at events like this. 67 00:03:54,340 --> 00:03:55,520 And I've got a little video. 68 00:03:55,520 --> 00:03:56,260 I'm going to show you. 69 00:03:56,300 --> 00:04:03,040 I'm almost embarrassed to show it here because we've got, you know, people like Deviant and Mouse and so on who are expert lockpickers. 70 00:04:03,940 --> 00:04:10,100 This was just a little attempt that I made when staying in a hotel recently in Miami. 71 00:04:11,180 --> 00:04:14,500 But it has a couple of other relevant issues. 72 00:04:14,740 --> 00:04:16,140 So, I'm going to show it to you anyway. 73 00:04:16,640 --> 00:04:18,300 And one of them is the law. 74 00:04:18,500 --> 00:04:22,360 In the U.K., they've just changed the Computer Misuse Act. 75 00:04:22,500 --> 00:04:25,380 So, it used to be illegal to break into computers. 76 00:04:26,080 --> 00:04:31,380 What's happening now is it's illegal to develop tools that may be used to break into computers. 77 00:04:34,060 --> 00:04:39,360 So, basically, what this is doing is looking at, well, what if you applied that logic to the physical world? 78 00:04:40,060 --> 00:04:48,000 If we applied the exact same logic to the physical world, would that make things like paperclips and pliers illegal tools? 79 00:04:49,360 --> 00:04:51,940 So, this is just a sort of quick illustration of that. 80 00:04:52,100 --> 00:04:55,500 The other thing is that I talk about... 81 00:04:55,520 --> 00:04:57,660 You know, not believing what manufacturers tell you. 82 00:04:57,720 --> 00:04:59,640 You should always check the security for yourself. 83 00:05:00,520 --> 00:05:03,740 And just because someone says something's secure doesn't mean it is. 84 00:05:03,900 --> 00:05:05,520 And don't discount the obvious. 85 00:05:05,880 --> 00:05:07,720 You know, go for the simple attacks first. 86 00:05:08,560 --> 00:05:13,060 In this case, this hotel in Miami was not just some old dive. 87 00:05:13,240 --> 00:05:15,220 It was a brand-new, state-of-the-art hotel. 88 00:05:16,040 --> 00:05:20,100 And so, it had a brand-new, state-of-the-art hotel safe in it. 89 00:05:20,220 --> 00:05:24,420 And I'm going to show you a little video of when me and the safe had a little fun together. 90 00:05:26,100 --> 00:05:32,040 Now, one of the other things I do when I'm speaking on Bluetooth is I have a couple of other co-presenters, okay? 91 00:05:32,320 --> 00:05:36,660 And we have a kind of competition going. 92 00:05:36,780 --> 00:05:38,900 Who can get the most hands raised in the audience? 93 00:05:39,580 --> 00:05:42,880 And you can't just say, raise your hand, because that's lame. 94 00:05:43,100 --> 00:05:46,760 You have to actually ask a question that's relevant to the subject you're about to discuss. 95 00:05:47,500 --> 00:05:50,760 So, I've come up with one which I think is going to get me ahead in the competition. 96 00:05:51,520 --> 00:05:53,440 So, my question is, raise your hands. 97 00:05:53,600 --> 00:05:55,500 How many of you have ever stayed... 98 00:05:55,520 --> 00:05:56,140 How many of you have ever stayed in a hotel? 99 00:05:59,020 --> 00:05:59,860 Excellent. I win. 100 00:06:01,480 --> 00:06:03,860 How many of those have ever used the hotel safe? 101 00:06:05,600 --> 00:06:06,460 Wow, lots of you. 102 00:06:06,540 --> 00:06:08,760 How many of those believe that it's secure? 103 00:06:11,380 --> 00:06:12,900 None of you. So, why do you use it? 104 00:06:13,440 --> 00:06:14,120 That's crazy. 105 00:06:15,000 --> 00:06:15,740 You're all insane. 106 00:06:17,300 --> 00:06:20,520 Okay, so anyway, this little video, it won't take long, 107 00:06:21,660 --> 00:06:24,740 is just showing me when I got left alone in my room. 108 00:06:25,520 --> 00:06:31,660 And I had time to fiddle with my safe, you guys. 109 00:06:32,920 --> 00:06:36,280 The voiceover is taken from the website. 110 00:06:36,460 --> 00:06:39,620 So, this is the manufacturer telling you how marvelous their product is, 111 00:06:39,720 --> 00:06:41,060 while we have a look at their product. 112 00:06:42,620 --> 00:06:43,500 So, here we go. 113 00:06:46,800 --> 00:06:50,080 Through the past three decades, we have developed the largest line 114 00:06:50,080 --> 00:06:54,740 of in-room hotel safes in the world, specifically designed with the particular needs 115 00:06:54,740 --> 00:06:57,020 of the hospitality industry in mind. 116 00:06:57,430 --> 00:07:01,400 Our safes are available in a wide variety of dimensions and colors, 117 00:07:01,600 --> 00:07:04,580 with either electronic or mechanical locking systems. 118 00:07:05,500 --> 00:07:10,140 Manufacturer continuously researches the development of new features, functions, 119 00:07:10,520 --> 00:07:12,940 options, and designs for its products. 120 00:07:13,690 --> 00:07:18,420 From removable core locks to a variety of electronic systems with digital keypad, 121 00:07:18,660 --> 00:07:22,820 credit card readers, or chip cards, manufacturer offers you products 122 00:07:22,820 --> 00:07:24,240 in the forefront technology. 123 00:07:25,140 --> 00:07:30,680 Our safes are installed in the most prestigious hotels and cruise lines throughout the world, 124 00:07:30,820 --> 00:07:34,580 which have recognized manufacturer for its quality, warranty, 125 00:07:34,780 --> 00:07:36,700 and superb technical service. 126 00:07:37,240 --> 00:07:41,220 Our uncompromising pledge of satisfaction to the client.... 127 00:07:53,360 --> 00:07:54,540 Uncompromising quality. 128 00:07:56,480 --> 00:07:58,500 so if you ever get your minibar and your safe 129 00:07:58,500 --> 00:07:59,800 confused you know where to come 130 00:07:59,800 --> 00:08:03,940 so yeah who's the criminal there 131 00:08:04,480 --> 00:08:06,460 me, the guy that made the paper clip 132 00:08:06,460 --> 00:08:07,900 or the guy that made the safe 133 00:08:07,900 --> 00:08:09,340 I can't figure it out 134 00:08:10,960 --> 00:08:12,480 ok so what we're really here 135 00:08:12,480 --> 00:08:14,400 to talk about and again if some of you 136 00:08:14,400 --> 00:08:16,260 want to jump up and run from the room screaming 137 00:08:16,260 --> 00:08:18,200 I'll understand is RFID 138 00:08:20,220 --> 00:08:22,280 and what I'm going to talk about is not 139 00:08:22,280 --> 00:08:23,840 the low level technology 140 00:08:23,840 --> 00:08:25,220 how RFID works 141 00:08:25,220 --> 00:08:27,560 but some of the stuff I've found 142 00:08:27,560 --> 00:08:29,460 with actually using it against itself 143 00:08:29,460 --> 00:08:31,760 so again don't believe what 144 00:08:31,760 --> 00:08:33,700 the manufacturers say, see what we can do 145 00:08:33,700 --> 00:08:34,180 with it ourselves 146 00:08:35,720 --> 00:08:37,540 and how we can bypass 147 00:08:37,540 --> 00:08:39,140 stuff using the actual 148 00:08:39,140 --> 00:08:41,920 devices without building extra circuits 149 00:08:41,920 --> 00:08:43,340 and so on, the original talk was 150 00:08:43,340 --> 00:08:45,580 RFID hacking without 151 00:08:45,580 --> 00:08:47,620 soldering irons and that's the main point here 152 00:08:48,720 --> 00:08:49,720 it's important to 153 00:08:49,720 --> 00:08:51,440 understand a little about 154 00:08:51,440 --> 00:08:53,700 how RFID works and in this case 155 00:08:53,700 --> 00:08:55,840 we're looking at passive chips 156 00:08:55,840 --> 00:08:57,520 that get activated by the reader 157 00:08:58,120 --> 00:09:00,400 so RFID is a little bit of a misnomer 158 00:09:01,120 --> 00:09:02,860 it's not actually sending a radio signal 159 00:09:02,860 --> 00:09:04,960 what it's doing is interfering with the 160 00:09:05,520 --> 00:09:07,300 signal coming from the reader 161 00:09:07,300 --> 00:09:08,700 so the reader creates a field 162 00:09:09,220 --> 00:09:11,900 an energy field, you put the tag into it 163 00:09:12,380 --> 00:09:13,900 it charges up from that field 164 00:09:13,900 --> 00:09:15,380 and then it shunts its own antenna 165 00:09:15,380 --> 00:09:17,380 and interferes with the antenna of the reader 166 00:09:17,940 --> 00:09:19,860 and by modulating that interference 167 00:09:19,860 --> 00:09:21,200 it sends a message 168 00:09:21,200 --> 00:09:23,380 so it's not actually sending out RF, ok? 169 00:09:24,460 --> 00:09:27,040 that's relevant because it limits the range 170 00:09:27,040 --> 00:09:28,800 at which you can attack these things from 171 00:09:28,800 --> 00:09:31,440 so it's not like you can just get a bigger antenna 172 00:09:31,440 --> 00:09:33,660 and a great big amplifier and expect to attack it 173 00:09:33,660 --> 00:09:34,740 from hundreds of feet away 174 00:09:35,320 --> 00:09:37,700 that's just not possible because you can't deliver the energy 175 00:09:38,360 --> 00:09:40,680 so that's the only reason I mention that stuff 176 00:09:42,220 --> 00:09:45,640 ok, so we've got two basic classes of RFID tags 177 00:09:45,640 --> 00:09:46,720 that I've been looking at 178 00:09:46,720 --> 00:09:48,860 the dumb ones and the smart ones 179 00:09:49,660 --> 00:09:52,980 so the dumb ones they just spit out an ID 180 00:09:52,980 --> 00:09:57,260 so a number, say I'm tag number 1234, possibly some data blocks. 181 00:09:57,900 --> 00:10:01,660 The smart cards, the smart ones are essentially smart cards. 182 00:10:01,820 --> 00:10:05,020 You just remove the contact chip to put an antenna in its place 183 00:10:05,020 --> 00:10:07,880 and you have a smart card that can talk RFID. 184 00:10:09,340 --> 00:10:11,800 But they behave just like a traditional smart card 185 00:10:11,800 --> 00:10:14,000 and those are used for things like payment cards. 186 00:10:14,240 --> 00:10:16,920 We have a system in the UK called the Oyster, 187 00:10:16,980 --> 00:10:21,960 which is the London Transport debit or prepayment card system 188 00:10:21,960 --> 00:10:25,300 and the new biometric passports, which we'll look at specifically as well. 189 00:10:27,780 --> 00:10:30,140 So the kind of things that it's getting used for, 190 00:10:30,480 --> 00:10:32,720 animal ID is probably one of the first. 191 00:10:33,800 --> 00:10:37,740 We're now seeing it in things like hotel keys as a replacement for the mag stripe. 192 00:10:38,940 --> 00:10:40,960 Car immobilizers, everyone's familiar with that. 193 00:10:41,420 --> 00:10:45,300 Events, things like ski passes and so on, one-off event passes. 194 00:10:45,920 --> 00:10:49,140 And one of the things I'm really interested in is the human implants, 195 00:10:49,460 --> 00:10:51,560 so actually sticking these things in humans 196 00:10:51,560 --> 00:10:51,940 instead of in humans. 197 00:10:51,960 --> 00:10:54,760 Anyone here implanted, by the way? 198 00:10:56,400 --> 00:10:57,120 Don't laugh. 199 00:10:57,800 --> 00:10:58,940 There's probably several. 200 00:10:59,280 --> 00:11:01,260 If they knew that I was doing this talk, 201 00:11:01,380 --> 00:11:03,400 I'm sure the room would be full of people with implants. 202 00:11:04,780 --> 00:11:09,020 If anyone knows someone or there is someone here that has an implant, 203 00:11:09,200 --> 00:11:10,700 particularly a Verichip implant, 204 00:11:11,200 --> 00:11:15,340 I would really like to drag you up on stage and see what we can do with you. 205 00:11:18,980 --> 00:11:21,600 If there isn't, I do have the equipment. 206 00:11:21,600 --> 00:11:22,340 If there isn't, I'll have the equipment with me, so. 207 00:11:26,040 --> 00:11:31,920 Okay, so looking at actually installing human implants, 208 00:11:32,040 --> 00:11:34,280 I don't know, is that too blurry to read at the back there? 209 00:11:35,120 --> 00:11:35,480 Yes? 210 00:11:36,480 --> 00:11:40,520 Okay, so in the wrong section, he's saying, the guy, the big, burly guy is saying, 211 00:11:40,560 --> 00:11:41,920 we want to implant this tag in you. 212 00:11:42,100 --> 00:11:45,080 And the little kid's saying, oh, that violates my rights. 213 00:11:46,100 --> 00:11:51,340 So he says, okay, we want to implant this tag in you, and it's also a cell phone, a digital camera, 214 00:11:51,340 --> 00:11:52,420 and an MP3 player. 215 00:11:52,760 --> 00:11:53,800 He's going, cool. 216 00:11:56,160 --> 00:11:57,480 Which I thought was pretty funny. 217 00:11:58,080 --> 00:11:59,520 I guess not if it's blurry. 218 00:12:00,800 --> 00:12:02,080 Okay, so here's a guy. 219 00:12:02,280 --> 00:12:06,800 The guy at the top is a journalist, works for a Spanish radio station. 220 00:12:07,640 --> 00:12:13,820 He's reporting on a beach where they've set up a scheme where you can have a prepaid digital wallet, 221 00:12:14,440 --> 00:12:18,520 and all of the vendors along the beachfront, so the ice cream parlors, the bars, 222 00:12:19,020 --> 00:12:21,160 the deck chair sellers, and so on, 223 00:12:21,340 --> 00:12:25,560 and nightclubs, and so on, will all subscribe to this system. 224 00:12:25,680 --> 00:12:29,080 And you can have a chip implanted in your arm, and you go and put money on it, 225 00:12:29,200 --> 00:12:33,980 and the idea is you then go to the beach, and you don't have to take your wallet with you 226 00:12:33,980 --> 00:12:35,780 where it's going to get stolen from the beach. 227 00:12:35,920 --> 00:12:38,880 You can leave it safely in your hotel safe, for example. 228 00:12:41,820 --> 00:12:43,660 Seemed like a good idea at the time, I guess. 229 00:12:45,240 --> 00:12:50,920 The guy at the bottom is working for, I believe, the Mexican government, and what they're doing is, 230 00:12:50,920 --> 00:12:57,260 they're implanting people, and you need the implant to get access to certain parts of the government infrastructure, 231 00:12:57,540 --> 00:12:59,700 so buildings, and certain restricted areas. 232 00:13:00,460 --> 00:13:05,840 And the reader in this picture is recognizably a VeriChip reader. 233 00:13:06,060 --> 00:13:07,740 So that's the technology they're using. 234 00:13:08,370 --> 00:13:10,440 And again, I will discuss that specifically. 235 00:13:13,290 --> 00:13:20,080 So the whole premise of these dumb tags which do ID only is that they have a unique ID. 236 00:13:20,080 --> 00:13:25,240 So it's absolutely guaranteed to be the only one of this tag with that number, right? 237 00:13:25,620 --> 00:13:30,560 If you go and read the manufacturer's websites, the white papers and all the descriptions will describe 238 00:13:30,560 --> 00:13:36,260 in great detail how their patented algorithm cannot be cloned, cannot be cloned, impossible to clone, blah, blah, blah. 239 00:13:39,020 --> 00:13:43,880 So, of course, we've seen people have come out with devices that will actually clone these. 240 00:13:44,140 --> 00:13:47,540 So last year, Jonathan West, who gave a presentation here, 241 00:13:47,760 --> 00:13:50,060 he built a device that would clone these. 242 00:13:50,060 --> 00:13:50,640 It's called a VeriChip. 243 00:13:51,200 --> 00:13:54,140 He's since come out with a do-it-yourself kit. 244 00:13:54,360 --> 00:13:57,120 So this kit, you can download from the link there. 245 00:13:57,800 --> 00:14:03,460 And for about 20 bucks worth of components, you can build a device that will clone the chip. 246 00:14:04,880 --> 00:14:06,500 So we all know it can be done. 247 00:14:08,040 --> 00:14:10,900 So what happens when something like this happens? 248 00:14:11,040 --> 00:14:13,340 The industry, of course, always has a defense. 249 00:14:13,600 --> 00:14:18,860 So I like to sort of imagine what happened last year when Jonathan gave his presentation, 250 00:14:18,940 --> 00:14:20,040 and there was probably some kind 251 00:14:20,060 --> 00:14:24,180 of kid from VeriChip here who saw the presentation, went back and went, 252 00:14:24,300 --> 00:14:25,620 oh, my God, it's game over. 253 00:14:25,760 --> 00:14:26,820 You know, they're cloning our chips. 254 00:14:28,040 --> 00:14:30,980 And the bosses say, well, that's not a problem. 255 00:14:31,080 --> 00:14:31,380 Don't worry. 256 00:14:31,460 --> 00:14:32,220 We'll come up with something. 257 00:14:32,720 --> 00:14:33,680 We'll sort it out. 258 00:14:33,920 --> 00:14:35,500 So this is what they came up with. 259 00:14:42,580 --> 00:14:44,720 So we're now into semantics world. 260 00:14:45,760 --> 00:14:48,900 We don't have to worry that they actually open doors 261 00:14:48,900 --> 00:14:52,340 and they are effectively the ID, because they don't look like the original. 262 00:14:52,520 --> 00:14:53,580 So not a problem. 263 00:14:56,100 --> 00:14:58,520 Second line of defense, if that isn't good enough. 264 00:15:00,500 --> 00:15:03,060 Some of you may remember or may have heard of, 265 00:15:03,140 --> 00:15:06,720 there was a talk going to be given at Black Hat Federal that got pulled at the last minute. 266 00:15:07,860 --> 00:15:09,760 There's no one from HID here, is there? 267 00:15:10,440 --> 00:15:10,840 No? 268 00:15:11,840 --> 00:15:12,700 Okay, I'm safe. 269 00:15:14,080 --> 00:15:18,080 So IOactive, they produced a cloning unit that would do the same thing for HID devices. 270 00:15:18,080 --> 00:15:21,320 And mysteriously, at the last minute, pulled their talk. 271 00:15:21,520 --> 00:15:24,640 And the two have been sort of pointing fingers at each other and saying, 272 00:15:25,140 --> 00:15:26,320 you told me not to talk. 273 00:15:26,360 --> 00:15:27,200 No, I didn't tell you. 274 00:15:27,220 --> 00:15:27,740 Blah, blah, blah. 275 00:15:27,900 --> 00:15:30,120 So full story is there. 276 00:15:31,600 --> 00:15:33,260 Whether they did or didn't, I don't know. 277 00:15:33,320 --> 00:15:35,060 I believe they've sort of kissed and made up now. 278 00:15:35,220 --> 00:15:38,020 But they still haven't given the full talk. 279 00:15:40,580 --> 00:15:44,540 But the bottom line is that a reader can't see what the device looks like. 280 00:15:44,580 --> 00:15:48,060 So effectively, if it's spitting out, 281 00:15:48,060 --> 00:15:50,000 spitting out the same ID, it is that tag. 282 00:15:55,260 --> 00:15:59,420 So when I was researching this talk, I did some searching on the internet. 283 00:15:59,540 --> 00:16:00,560 And there are loads of these things. 284 00:16:00,740 --> 00:16:01,780 This is not a new problem. 285 00:16:02,260 --> 00:16:06,340 They've been producing devices that can clone tags for years. 286 00:16:06,800 --> 00:16:14,800 And in fact, this last one on the bottom right is a weekend sort of do-it-yourself circuit from Circuit Seller. 287 00:16:15,600 --> 00:16:17,740 Build yourself an RFID cloning kit. 288 00:16:18,060 --> 00:16:19,040 Over the weekend. 289 00:16:19,940 --> 00:16:23,360 But as you can see, none of them look like the original chip. 290 00:16:23,540 --> 00:16:25,100 So not a problem. 291 00:16:25,500 --> 00:16:26,360 We're all safe. 292 00:16:26,520 --> 00:16:27,320 Nothing to see here. 293 00:16:30,160 --> 00:16:31,780 So I took that as a challenge. 294 00:16:32,280 --> 00:16:33,300 I like a challenge. 295 00:16:34,300 --> 00:16:36,880 Can I get away from the whole semantic argument 296 00:16:36,880 --> 00:16:41,600 and create a true clone that really looks like the original and has the same ID? 297 00:16:45,160 --> 00:16:48,040 So first to do that, we have to actually understand, you know, 298 00:16:48,060 --> 00:16:51,660 what makes up an RFID tag and how do you send the ID? 299 00:16:52,240 --> 00:16:56,920 The thing with these circuits is that they don't need to understand what they're seeing. 300 00:16:57,040 --> 00:16:57,740 They see a signal. 301 00:16:57,780 --> 00:16:58,420 They record it. 302 00:16:58,460 --> 00:16:59,060 They play it back. 303 00:16:59,540 --> 00:17:03,460 If I'm going to try and program a device to be an arbitrary ID, 304 00:17:03,540 --> 00:17:05,860 I really have to understand what that ID looks like. 305 00:17:07,120 --> 00:17:10,260 So the nice thing is that we're using industry standards. 306 00:17:11,720 --> 00:17:16,500 ISO 11784 tells us exactly what this ID looks like, how it's constructed. 307 00:17:18,580 --> 00:17:24,140 So the way it works is if the reader and the tag communicate with certain parameters that match, 308 00:17:24,300 --> 00:17:25,840 then the exchange will take place. 309 00:17:26,060 --> 00:17:31,200 So they use a particular frequency, 125 kilohertz in the case of the dumb tags, 310 00:17:32,360 --> 00:17:34,800 1356 typically in the case of the smart tags. 311 00:17:36,000 --> 00:17:37,920 They'll use a particular data bit rate, 312 00:17:37,980 --> 00:17:41,920 which is going to be the radio frequency divided by some factor of two. 313 00:17:42,540 --> 00:17:46,000 And they'll encode it in a particular way, so Manchester or biphase. 314 00:17:46,700 --> 00:17:49,260 And then you obviously have the actual data pattern. 315 00:17:50,380 --> 00:17:51,840 So if we look at an example, 316 00:17:54,280 --> 00:18:00,000 if you were to take an animal tag and read it on a dumb reader that doesn't try and interpret the data, 317 00:18:00,120 --> 00:18:01,700 what you would get is eight bytes of data. 318 00:18:02,200 --> 00:18:03,940 And you then have to do a bit of tweaking. 319 00:18:04,120 --> 00:18:05,060 So you reverse it. 320 00:18:05,140 --> 00:18:06,500 You reverse the nibbles. 321 00:18:06,540 --> 00:18:08,120 You do a bit of left shifting and so on. 322 00:18:09,100 --> 00:18:14,600 So I've put these examples into the slides just so that you can follow it right through from beginning to end. 323 00:18:14,980 --> 00:18:15,980 So here's an example. 324 00:18:16,000 --> 00:18:16,920 8-bit raw ID. 325 00:18:17,780 --> 00:18:18,980 Turn it back to front. 326 00:18:19,600 --> 00:18:20,700 Reverse each nibble. 327 00:18:21,980 --> 00:18:26,000 And then I end up with a number which I can pull the three fields out of. 328 00:18:26,180 --> 00:18:29,100 So I've got the application ID, 8000, that says you're an animal. 329 00:18:30,280 --> 00:18:34,320 Country code, F65, which you then right shift and convert to decimal. 330 00:18:35,120 --> 00:18:41,240 That will then be a number which is, if it's below 900, that's an ISO standard country code. 331 00:18:41,660 --> 00:18:44,880 If it's above 900, then it's an icar.org. 332 00:18:45,540 --> 00:18:46,280 Manufacturer code. 333 00:18:46,960 --> 00:18:50,940 And you can just go to icar.org and download the table and look them up. 334 00:18:51,480 --> 00:18:55,480 So in this case, the chip is Digital Angel, which is now known as VeriChip. 335 00:18:56,340 --> 00:18:58,480 And they will then program the national ID. 336 00:18:58,720 --> 00:19:00,160 So this is what gives you the uniqueness. 337 00:19:00,760 --> 00:19:07,080 You've got control of the country code and then the individual country or manufacturer has to control the unique ID. 338 00:19:09,840 --> 00:19:14,020 So obviously, if I want to create an ID, I just reverse the decoding process. 339 00:19:14,020 --> 00:19:19,860 So I take the 64-bit ID, add a header, add some bits. 340 00:19:22,400 --> 00:19:26,060 What they've got here is the header is nine zeros. 341 00:19:26,600 --> 00:19:29,960 So to make sure you don't accidentally get a header in the data stream, 342 00:19:30,080 --> 00:19:34,900 they chop the data up into four-bit chunks and add a one in between each chunk. 343 00:19:35,040 --> 00:19:37,420 So it's impossible to have nine zeros in a row. 344 00:19:38,800 --> 00:19:42,960 So now we have 128 bits of raw data with all the headers and everything we need in it. 345 00:19:42,960 --> 00:19:44,320 How do we deliver it? 346 00:19:45,640 --> 00:19:49,460 So I thought about this from the manufacturer's point of view. 347 00:19:49,980 --> 00:19:55,960 If I was a manufacturer getting into this industry where there's a plethora of new standards coming out 348 00:19:55,960 --> 00:19:57,580 and all these different RFID applications, 349 00:19:58,460 --> 00:20:04,400 what I would do is make a sort of super tag that could be programmed, set the parameters, 350 00:20:04,520 --> 00:20:08,240 make it behave the way that each application wants it to behave 351 00:20:08,240 --> 00:20:11,860 because that will make my ongoing cost much, much lower. 352 00:20:13,540 --> 00:20:17,380 So if I can think of that then obviously manufacturers can too 353 00:20:17,380 --> 00:20:22,760 and indeed when I searched the market I found a couple of tags that actually matched that requirement. 354 00:20:23,580 --> 00:20:25,260 So there's one called the Q5. 355 00:20:26,540 --> 00:20:30,680 Q5 you can independently configure each of those parameters. 356 00:20:30,900 --> 00:20:33,160 So you can set the bit rate, you can set the modulation. 357 00:20:33,880 --> 00:20:38,320 It has 224 bits of data storage that I can put my ID into 358 00:20:39,160 --> 00:20:42,620 and you can tell it how many blocks to dump when it wakes up. 359 00:20:42,960 --> 00:20:48,180 So the way these things work is when it goes in the field it will just sit there constantly barfing out its ID. 360 00:20:50,420 --> 00:20:57,580 Hightag2 made by Philips is the same idea except they've just got three sets of parameters that they call public mode. 361 00:20:57,820 --> 00:21:03,680 So public mode A is a particular modulation and a particular bit rate 362 00:21:04,580 --> 00:21:08,520 and the data constructed in a particular way and that matches the animal tags. 363 00:21:09,320 --> 00:21:12,940 The second type is door entry system. 364 00:21:12,960 --> 00:21:16,360 And the third type is car immobilizers. 365 00:21:16,540 --> 00:21:19,460 So the three sort of common uses of the system. 366 00:21:20,080 --> 00:21:25,380 So great, we found some tags that potentially could be programmed to be another one. 367 00:21:27,420 --> 00:21:28,840 So then I had a bit of luck. 368 00:21:29,140 --> 00:21:35,640 I started writing software to look at this stuff and I discovered that my own office tag was indeed a Q5. 369 00:21:36,200 --> 00:21:41,200 So I now had a device that I could potentially program to be another device. 370 00:21:41,620 --> 00:21:45,820 So all I have to do is figure out the bit rate and the modulation and so on that I need to set. 371 00:21:46,880 --> 00:21:49,700 Give it the data and so on and we're off. 372 00:21:52,020 --> 00:21:55,260 So I'll give you a demonstration of sort of what happened next. 373 00:21:55,880 --> 00:21:58,260 We're going to look at first an access control system. 374 00:22:18,340 --> 00:22:19,140 Is that readable? 375 00:22:21,600 --> 00:22:25,200 Is there any way we can do anything about the focus on this, these projectors? 376 00:22:27,000 --> 00:22:28,180 It's the projector, okay. 377 00:22:29,120 --> 00:22:29,900 Blame the projector. 378 00:22:31,760 --> 00:22:35,700 Okay, so what I'm going to try and do is, this is my door entry tag. 379 00:22:35,880 --> 00:22:37,380 I'm going to try and reprogram this. 380 00:22:40,160 --> 00:22:41,120 So open this. 381 00:22:41,200 --> 00:22:42,200 This door entry system. 382 00:22:43,300 --> 00:22:47,280 So what I've got here is an example entry system. 383 00:22:47,720 --> 00:22:51,140 So I've got some logic, a little battery. 384 00:22:51,760 --> 00:22:57,140 This would normally be connected to a door opener, but I've put it onto an LED so you can see it lighting up. 385 00:22:57,460 --> 00:22:58,260 And a reader. 386 00:22:59,940 --> 00:23:01,400 Actually, how many of you flew here? 387 00:23:03,980 --> 00:23:05,360 I flew here with this. 388 00:23:11,200 --> 00:23:13,900 So you can imagine going through security was fairly interesting. 389 00:23:15,120 --> 00:23:26,780 I actually carry it in my hand luggage because if I put it in my checked-on luggage, I'm really concerned that they're going to find it and take one look at it and take my bag out the back and blow it to smithereens. 390 00:23:28,180 --> 00:23:32,640 So I carry it in my hand luggage to make sure I can actually explain what the hell it is, right? 391 00:23:33,700 --> 00:23:39,000 So I was going through security and there was a couple in front of me with a newborn child. 392 00:23:39,580 --> 00:23:43,360 And they had a whole shitload of stuff with them. 393 00:23:43,420 --> 00:23:44,380 They had bags. 394 00:23:44,500 --> 00:23:45,320 They had nappies. 395 00:23:45,340 --> 00:23:46,300 They had milk. 396 00:23:46,420 --> 00:23:47,420 They had prams. 397 00:23:47,520 --> 00:23:48,060 They had everything. 398 00:23:48,480 --> 00:23:58,720 So anyway, they start pushing all this stuff through and the wife goes through and the baby goes through and the bag of nappies goes through and everything goes through and all that's left is the husband and the milk. 399 00:23:59,820 --> 00:24:03,820 And the guy behind the scanning machine says, well, you can't take fluids on board. 400 00:24:04,680 --> 00:24:06,580 And he's like, well, we've got a newborn baby. 401 00:24:06,680 --> 00:24:07,800 We're going on a 12-hour flight. 402 00:24:07,920 --> 00:24:08,980 We really need to take the milk. 403 00:24:08,980 --> 00:24:09,340 We need to take the milk along. 404 00:24:09,920 --> 00:24:15,100 So he calls over his supervisor and the supervisor says, yeah, of course, they can take milk on. 405 00:24:15,160 --> 00:24:15,880 That's exempted. 406 00:24:15,880 --> 00:24:16,340 That's fine. 407 00:24:16,480 --> 00:24:18,900 But you have to first prove that it's real milk. 408 00:24:20,340 --> 00:24:23,420 So I'm thinking, okay, what kind of milk is that? 409 00:24:25,100 --> 00:24:30,840 And the husband then has to taste each bottle and prove that it's real milk, which he does. 410 00:24:31,020 --> 00:24:33,600 So obviously he loves his wife and he takes a sip of each bottle. 411 00:24:35,360 --> 00:24:37,700 And, I mean, who knows what they get up to normally. 412 00:24:39,180 --> 00:24:40,020 That's the usual problem. 413 00:24:41,720 --> 00:24:44,500 Anyway, eventually the milk goes through and the husband goes through. 414 00:24:44,600 --> 00:24:48,600 But by now, as you can imagine, a bit of a sort of backlog has built up at the scanner. 415 00:24:49,100 --> 00:24:56,100 And in the meantime, my bag's been sitting there for a while while he's drinking milk with all kinds of shit on the screen. 416 00:24:56,340 --> 00:24:59,800 You know, boxes, batteries, circuit boards, wires. 417 00:25:00,860 --> 00:25:02,460 And now we've got the supervisor. 418 00:25:02,500 --> 00:25:03,860 We've got the original guy. 419 00:25:03,960 --> 00:25:05,420 We've got the guy who runs the screen. 420 00:25:05,680 --> 00:25:07,980 And we've got this big crowd of agitated people 421 00:25:07,980 --> 00:25:11,240 who just want to get through and me standing there. 422 00:25:12,440 --> 00:25:16,880 And I'm thinking, you know, if only the ground would swallow me up now, everything would be cool. 423 00:25:18,340 --> 00:25:21,000 So I'm thinking this is, you know, this is going to be trouble. 424 00:25:21,240 --> 00:25:23,680 And these three guys are just staring intently at this screen. 425 00:25:24,380 --> 00:25:28,660 And eventually one of them sort of looks at the screen and he looks at me and he goes, 426 00:25:29,600 --> 00:25:31,400 there's no fluids in there, are there? 427 00:25:36,420 --> 00:25:37,180 No, fine. 428 00:25:37,180 --> 00:25:38,060 Okay, on you go. 429 00:25:39,220 --> 00:25:40,780 Take your little bomb thing with you. 430 00:25:42,900 --> 00:25:46,220 So the world we live in now, everyone's ticking the fluids box, 431 00:25:46,420 --> 00:25:49,680 but if you have something that actually just looks like a bomb, that's fine. 432 00:25:53,720 --> 00:25:56,620 So I'm just going to quickly wire this up so you can see what I'm doing. 433 00:26:13,900 --> 00:26:18,180 Okay, so the way this works is hopefully you can see the little red light. 434 00:26:18,260 --> 00:26:23,740 If I use the right tag, so this is the real tag, if I do that, red light comes on. 435 00:26:23,920 --> 00:26:24,200 Yeah? 436 00:26:24,420 --> 00:26:25,600 Can you all see that at the back? 437 00:26:26,700 --> 00:26:27,100 Yes? 438 00:26:27,200 --> 00:26:28,820 Red light off, on. 439 00:26:34,080 --> 00:26:34,740 Is that good? 440 00:26:36,580 --> 00:26:41,660 Okay, so if I use my own tag, nothing happens, right? 441 00:26:42,240 --> 00:26:45,680 This is my door entry tag for my office, so it's not going to open this door. 442 00:26:48,840 --> 00:26:52,620 So plan A is I try and reprogram this to open this door. 443 00:26:56,040 --> 00:26:58,660 So this is what's called a keyboard wedge. 444 00:26:58,800 --> 00:27:00,280 This is a really cheap little reader. 445 00:27:01,120 --> 00:27:02,620 Stick it in the USB port. 446 00:27:02,780 --> 00:27:04,080 You present a tag to it. 447 00:27:04,080 --> 00:27:06,760 And it just acts as if you've typed it at the keyboard. 448 00:27:09,360 --> 00:27:12,920 So if I do that, that's my tag number. 449 00:27:16,840 --> 00:27:19,120 So I'm now going to try and write the tag with that. 450 00:27:30,240 --> 00:27:33,760 So this is a little off-the-shelf reader-writer compact flash. 451 00:27:33,760 --> 00:27:34,140 I've got a flash unit. 452 00:27:36,740 --> 00:27:38,700 Stick it in a PCI adapter. 453 00:27:40,500 --> 00:27:42,040 Get all this crap out of the way. 454 00:27:46,540 --> 00:27:48,180 You should get bigger podiums up here. 455 00:27:54,480 --> 00:28:00,080 Okay, so these tags are sold under one of the brand names that's used is unique. 456 00:28:00,360 --> 00:28:00,760 Okay? 457 00:28:00,780 --> 00:28:02,300 Because it's got a unique code, right? 458 00:28:02,300 --> 00:28:09,180 So I've written a little program called unique. 459 00:28:27,380 --> 00:28:31,400 So in theory, I've now reprogrammed this tag to have the ID of the other tag. 460 00:28:31,400 --> 00:28:33,900 So if I go back to my door. 461 00:28:38,060 --> 00:28:38,820 See the light? 462 00:28:39,260 --> 00:28:40,320 Can you see the light? 463 00:28:41,920 --> 00:28:42,580 And I'm in. 464 00:28:49,740 --> 00:28:55,480 So if that was your door and you just walked out of the office and I walk past you with my little scanner. 465 00:28:55,680 --> 00:28:57,500 You can scan your key as I go by. 466 00:28:58,180 --> 00:29:00,340 Or potentially I could wire up a door. 467 00:29:00,340 --> 00:29:01,820 Or a couple of gates. 468 00:29:01,960 --> 00:29:02,780 And you walk through them. 469 00:29:02,900 --> 00:29:04,320 And I get all the tags that go through. 470 00:29:04,460 --> 00:29:07,320 And then I have a nice little supply of tag numbers to get into buildings with. 471 00:29:09,020 --> 00:29:11,640 So that's door entry systems. 472 00:29:14,660 --> 00:29:17,440 The other demonstration I was going to do is animal implants. 473 00:29:18,280 --> 00:29:20,180 Or in particular, cow implants. 474 00:29:20,320 --> 00:29:21,080 I live in the country. 475 00:29:21,180 --> 00:29:21,960 We're surrounded by cows. 476 00:29:22,400 --> 00:29:24,580 So I was going to bring my cow, Daisy, along. 477 00:29:25,600 --> 00:29:28,220 But she got stopped at security at Heathrow Airport. 478 00:29:28,800 --> 00:29:29,900 Something to do with fluids. 479 00:29:29,900 --> 00:29:30,240 I think. 480 00:29:31,800 --> 00:29:36,660 So what I brought instead is my little mouse friend here. 481 00:29:37,640 --> 00:29:41,540 I've brutally implanted him with a chip. 482 00:29:45,740 --> 00:29:50,800 This is a little handheld veterinarian's scanner. 483 00:29:52,280 --> 00:29:55,320 Incidentally, has anyone here got a dog or a cat that's implanted? 484 00:29:56,240 --> 00:29:58,040 Okay, my dog was implanted. 485 00:29:58,080 --> 00:29:58,660 I have a... 486 00:29:59,900 --> 00:30:00,740 A female dog. 487 00:30:00,940 --> 00:30:02,420 She's about four years old now. 488 00:30:02,620 --> 00:30:04,940 And when we got her as a puppy, we had her implanted. 489 00:30:05,440 --> 00:30:07,520 And the tag was put in the back of the neck. 490 00:30:07,680 --> 00:30:09,060 I think that's the normal place. 491 00:30:09,720 --> 00:30:12,700 So when I got this, I thought, oh, I wonder what her tag number is. 492 00:30:12,780 --> 00:30:14,680 I'm going to see if it's compatible and scan it. 493 00:30:15,740 --> 00:30:16,700 So I scanned it. 494 00:30:16,740 --> 00:30:17,540 And I couldn't find it. 495 00:30:18,380 --> 00:30:22,360 And when I got a bit more confident that I really knew what I was doing and it should actually work, 496 00:30:22,440 --> 00:30:22,960 I tried again. 497 00:30:23,040 --> 00:30:23,700 And I scanned it. 498 00:30:23,740 --> 00:30:24,920 And eventually I did find it. 499 00:30:25,000 --> 00:30:25,600 And it was here. 500 00:30:26,800 --> 00:30:27,160 Okay. 501 00:30:27,160 --> 00:30:28,640 So it's just above her elbow. 502 00:30:29,880 --> 00:30:31,280 So it was put here. 503 00:30:31,340 --> 00:30:32,960 It's now here three years later. 504 00:30:33,340 --> 00:30:36,760 So if you're thinking of getting an implant, choose your location carefully. 505 00:30:38,120 --> 00:30:39,280 These things travel. 506 00:30:40,700 --> 00:30:41,860 It could get uncomfortable. 507 00:30:46,660 --> 00:30:47,140 Okay. 508 00:30:47,200 --> 00:30:50,160 So basically the way this works is you press scan. 509 00:30:50,880 --> 00:30:52,320 It'll go beep, hopefully. 510 00:30:53,520 --> 00:30:56,700 What I'm going to do is plug it into a screen so you can see what I'm seeing. 511 00:31:04,680 --> 00:31:06,080 There. 512 00:31:13,560 --> 00:31:16,100 So it is in that screen. 513 00:31:17,620 --> 00:31:19,020 So please keep that in mind. 514 00:31:19,020 --> 00:31:19,680 Mm-hmm. 515 00:31:19,680 --> 00:31:19,740 So noú 516 00:31:19,740 --> 00:31:20,380 Fingers crossed? 517 00:31:23,460 --> 00:31:24,160 Mia? 518 00:31:24,420 --> 00:31:25,460 We're owe nobody a lot of bail in the camera. 519 00:31:25,460 --> 00:31:27,140 I can if you are seeing this. 520 00:31:45,120 --> 00:31:46,720 So if I scan our front... 521 00:31:46,720 --> 00:31:47,920 Let me just make this bigger a sec. 522 00:31:50,180 --> 00:31:51,680 If I scan the mouse... 523 00:31:57,160 --> 00:32:01,440 So you'll see it gives us, or you may not see, because that's bad. 524 00:32:02,920 --> 00:32:09,700 So it says it's an FDXB, it's country code 968, and that's the ID, 47, etc. 525 00:32:10,800 --> 00:32:13,920 So what I'm going to do now is try and reprogram my tag. 526 00:32:20,180 --> 00:32:21,660 Now when I first started doing this, 527 00:32:21,660 --> 00:32:27,640 you know how when you're playing with something you get it right a few times 528 00:32:27,640 --> 00:32:30,880 and you get a bit overconfident and then you start trying all sorts of other things 529 00:32:30,880 --> 00:32:34,100 and then you get it wrong and then you find you've bricked your device. 530 00:32:35,360 --> 00:32:37,760 I'd managed to do that to this card fairly quickly, 531 00:32:38,000 --> 00:32:40,820 so not only could I not clone cards anymore, 532 00:32:40,980 --> 00:32:43,280 but I couldn't even get into my own office building anymore. 533 00:32:45,580 --> 00:32:49,300 So then I discovered, well, actually I can just buy blanks on the web. 534 00:32:49,460 --> 00:32:51,060 So I bought 10 blanks. 535 00:32:51,660 --> 00:32:56,000 And pretty soon I'd bricked all of those too, so I couldn't do any more research. 536 00:32:56,040 --> 00:32:58,120 And I was on a train on a really long journey, 537 00:32:58,860 --> 00:33:02,080 and I really wanted to get this fixed and carry on working on it. 538 00:33:02,660 --> 00:33:06,680 So I kind of put my mind to it, and eventually I did come up with something to fix them. 539 00:33:06,760 --> 00:33:09,860 So before I reflash it, I have to reset it. 540 00:33:09,900 --> 00:33:12,540 I actually found the master sort of reset to get it back to normal. 541 00:33:12,700 --> 00:33:14,340 So I wrote a little program for that. 542 00:33:26,280 --> 00:33:27,460 So that's now reset. 543 00:33:27,560 --> 00:33:29,240 I can reprogram it to be the mouse. 544 00:33:31,060 --> 00:33:34,520 Actually, well, when I said at the beginning we're going to do, 545 00:33:34,600 --> 00:33:36,540 I'm trying to emulate the same form factor. 546 00:33:36,720 --> 00:33:37,940 So I'm going to go one step further. 547 00:33:38,080 --> 00:33:41,280 I've actually got one of these implanted in my wrist. 548 00:33:42,720 --> 00:33:45,520 So I'm going to reprogram myself to be the mouse. 549 00:33:46,620 --> 00:33:49,960 So just to show you there's nothing up my sleeves, as they say. 550 00:33:52,720 --> 00:33:54,540 So if I scan myself now. 551 00:33:57,760 --> 00:33:59,320 So scan my wrist. 552 00:33:59,880 --> 00:34:00,840 Nothing happening. 553 00:34:03,900 --> 00:34:05,440 Let's just scan the mouse again. 554 00:34:07,980 --> 00:34:09,240 So I've got his ID. 555 00:34:10,360 --> 00:34:12,980 So country code 968, that's the number. 556 00:34:19,960 --> 00:34:20,520 So that's the number. 557 00:34:21,660 --> 00:34:23,540 8,000, because I'm going to become an animal. 558 00:34:26,640 --> 00:34:27,080 968. 559 00:34:28,280 --> 00:34:28,940 Unique ID. 560 00:34:30,280 --> 00:34:31,280 I'm going to write that. 561 00:34:32,760 --> 00:34:34,280 Okay, so it's waiting for a blank. 562 00:34:40,340 --> 00:34:44,040 Okay, so in theory I've now reprogrammed my wrist to be the mouse. 563 00:34:46,100 --> 00:34:49,240 So if you remember this number, 4708897. 564 00:34:49,240 --> 00:34:51,980 Just clear the screen. 565 00:34:55,140 --> 00:34:56,100 Do the scan. 566 00:35:08,100 --> 00:35:09,860 So I am now that mouse. 567 00:35:10,500 --> 00:35:11,660 Can you spot the difference? 568 00:35:14,240 --> 00:35:15,280 My wife can't. 569 00:35:16,080 --> 00:35:16,820 Say again? 570 00:35:17,160 --> 00:35:18,280 I'm a different form factor. 571 00:35:18,440 --> 00:35:19,000 I'm a different form factor. 572 00:35:19,000 --> 00:35:19,080 I'm a different form factor. 573 00:35:19,080 --> 00:35:19,220 I'm a different form factor. 574 00:35:19,240 --> 00:35:20,800 I'm not a true clone. 575 00:35:20,980 --> 00:35:21,260 It's true. 576 00:35:21,380 --> 00:35:22,200 I'm working on it. 577 00:35:24,120 --> 00:35:25,780 Oh, actually, no, I'll feed him up. 578 00:35:25,860 --> 00:35:26,440 That'll be easier. 579 00:35:28,840 --> 00:35:33,600 Okay, so the other demonstration that I was going to do, 580 00:35:33,680 --> 00:35:36,120 but it's basically the same thing, 581 00:35:36,240 --> 00:35:39,340 and since we don't have any real humans to try it against. 582 00:35:39,780 --> 00:35:40,660 One last call. 583 00:35:40,760 --> 00:35:43,540 Is there anyone here with a VeriChip implant? 584 00:35:44,920 --> 00:35:45,320 No? 585 00:35:46,000 --> 00:35:48,380 Okay, so I wanted to clone a VeriChip. 586 00:35:48,980 --> 00:35:56,500 Now, I believe that I can do that because they're using the exact same standard. 587 00:35:57,100 --> 00:35:57,620 Okay. 588 00:35:58,240 --> 00:36:00,440 But they're selling it as a security device. 589 00:36:01,040 --> 00:36:04,960 So there must be something about it that's unique and difficult to reproduce. 590 00:36:06,020 --> 00:36:07,260 And yes, there is. 591 00:36:07,440 --> 00:36:09,820 Remember I said it's a three-digit country code? 592 00:36:11,560 --> 00:36:12,720 VeriChip go to four. 593 00:36:13,360 --> 00:36:13,880 Ooh. 594 00:36:16,000 --> 00:36:17,100 So that's it. 595 00:36:17,240 --> 00:36:18,040 It can't be cloned. 596 00:36:18,040 --> 00:36:21,440 Because it's got four numbers and the standard says three. 597 00:36:22,520 --> 00:36:24,960 And actually, that's true of commercial software. 598 00:36:25,200 --> 00:36:27,100 I've gone to commercial vendors and said, 599 00:36:27,160 --> 00:36:29,560 can you program me a chip with a four-digit country code? 600 00:36:29,620 --> 00:36:31,260 And they're like, why would you want to do that? 601 00:36:32,080 --> 00:36:33,620 And actually, no, we can't. 602 00:36:33,640 --> 00:36:34,980 Our software won't let us do that. 603 00:36:36,040 --> 00:36:39,280 Obviously, mine, since I wrote it, will do whatever I tell it to. 604 00:36:41,280 --> 00:36:46,200 So if I put a code 1022 in, that's VeriChip's unique code, 605 00:36:46,680 --> 00:36:47,920 and it will quite happily. 606 00:36:48,520 --> 00:36:52,220 There's actually room for, I think, about six digits in that field. 607 00:36:52,380 --> 00:36:55,620 So even if they add another one, it's not going to save them. 608 00:36:57,240 --> 00:37:00,280 So as far as I can tell, that is their security mechanism. 609 00:37:00,520 --> 00:37:04,420 I have cloned chips, and I have used readers to read VeriChip clones, 610 00:37:04,580 --> 00:37:05,660 and it's come out fine. 611 00:37:10,400 --> 00:37:12,940 So what are the threats behind that? 612 00:37:13,200 --> 00:37:16,120 Obviously, if I can read other people's implanted chips, 613 00:37:16,200 --> 00:37:17,040 I can track them. 614 00:37:18,040 --> 00:37:19,520 If I can track them, I can target them. 615 00:37:20,380 --> 00:37:22,540 I can impersonate them to gain access 616 00:37:22,540 --> 00:37:24,620 or spend their money on the beach 617 00:37:24,620 --> 00:37:26,920 once I've run out of money from their wallet. 618 00:37:28,260 --> 00:37:29,900 Gain access to restricted areas. 619 00:37:30,120 --> 00:37:32,040 And actually, it works both ways. 620 00:37:32,220 --> 00:37:36,340 So impersonating someone isn't always just to get you in somewhere. 621 00:37:36,880 --> 00:37:40,660 It can also be used to prove that you are somewhere where you're not, of course. 622 00:37:40,940 --> 00:37:44,760 So if we were to start using these devices in things like probation, 623 00:37:45,060 --> 00:37:48,020 you know, proving people within the country, 624 00:37:48,040 --> 00:37:53,180 I could start offering a service, if anyone wants to contact me afterwards, 625 00:37:54,560 --> 00:37:56,720 where I just pop into the police station for you. 626 00:37:57,560 --> 00:38:00,600 And obviously, worst case, smart bombs that only go off 627 00:38:00,600 --> 00:38:02,500 when the right person or the right number of people 628 00:38:02,500 --> 00:38:04,660 or the right class of person comes along. 629 00:38:08,040 --> 00:38:10,860 Okay, so how do we protect against that? 630 00:38:11,600 --> 00:38:15,500 Simple answer, don't use just straightforward IDs. 631 00:38:15,740 --> 00:38:17,160 Put something else on top. 632 00:38:18,640 --> 00:38:21,440 The biometric passport is a very good example of that. 633 00:38:21,560 --> 00:38:25,440 We've got up to 48 items of very valuable data stored in there. 634 00:38:26,780 --> 00:38:29,700 Fingerprints are going to be out in the UK passports in 2010. 635 00:38:30,460 --> 00:38:32,920 It's already got your image, your facial image. 636 00:38:34,460 --> 00:38:36,920 Potentially, it's going to have the document that you used 637 00:38:36,920 --> 00:38:38,760 to get the ID in the first place, 638 00:38:38,820 --> 00:38:41,260 so your birth certificate or whatever document you produced, 639 00:38:41,480 --> 00:38:44,560 home number, phone, profession, and so on. 640 00:38:44,600 --> 00:38:46,000 Some very, very sensitive information. 641 00:38:48,900 --> 00:38:50,340 Incidentally, people ask me, 642 00:38:50,380 --> 00:38:52,160 how do you tell if you've got a chip in your passport? 643 00:38:52,480 --> 00:38:55,680 The clue is this little logo here. 644 00:38:55,780 --> 00:38:57,020 That's an international standard. 645 00:38:57,500 --> 00:38:59,900 If your passport has that logo at the bottom, 646 00:39:00,620 --> 00:39:01,980 then you've got a chip in it. 647 00:39:05,820 --> 00:39:08,260 If you're from the UK, there's another clue, 648 00:39:08,960 --> 00:39:10,800 which is there's this damn great chip in it. 649 00:39:11,800 --> 00:39:12,740 Looks like that. 650 00:39:14,180 --> 00:39:15,980 Not all countries, it's that visible. 651 00:39:16,160 --> 00:39:18,020 Sometimes they're hidden in the colors, 652 00:39:18,040 --> 00:39:22,220 some countries have a thick plastic page and it's embedded in there. 653 00:39:23,680 --> 00:39:24,940 We've got some stuff in there. 654 00:39:25,040 --> 00:39:25,920 We need to protect it. 655 00:39:25,980 --> 00:39:26,900 How do we protect it? 656 00:39:27,420 --> 00:39:28,320 They do two things. 657 00:39:28,520 --> 00:39:30,920 One is, unlike the unique ID devices, 658 00:39:31,300 --> 00:39:32,360 they do exactly the opposite. 659 00:39:32,560 --> 00:39:34,460 They deliberately don't give a unique ID. 660 00:39:35,080 --> 00:39:37,040 They don't want me to be able to say, 661 00:39:37,100 --> 00:39:38,400 I've seen that passport before. 662 00:39:38,800 --> 00:39:41,580 I know that Joe Schmoe is now stood in front of me. 663 00:39:42,120 --> 00:39:45,580 If I ask the passport for its ID and nothing else, 664 00:39:45,600 --> 00:39:47,460 it will just give me a different number every time. 665 00:39:47,540 --> 00:39:47,760 Sudo. 666 00:39:48,040 --> 00:39:48,480 It will give me a random number. 667 00:39:49,620 --> 00:39:51,280 The other thing is strong authentication. 668 00:39:51,800 --> 00:39:54,200 So before I can read any data from the passport, 669 00:39:54,540 --> 00:39:56,860 I have to actually log in and authenticate to it. 670 00:39:57,320 --> 00:40:00,560 And I do that using a standard called basic access control. 671 00:40:01,900 --> 00:40:05,140 The important thing to understand about basic access control is, 672 00:40:06,360 --> 00:40:07,840 you don't have to do it, 673 00:40:07,900 --> 00:40:10,440 but if you do it, you have to do it according to the standard. 674 00:40:10,720 --> 00:40:13,480 So every country will follow the exact same procedure 675 00:40:13,480 --> 00:40:15,080 for locking down the passport. 676 00:40:15,560 --> 00:40:16,980 And they use a three days. 677 00:40:18,160 --> 00:40:19,020 So you have to have a standard algorithm for that. 678 00:40:20,060 --> 00:40:22,740 In addition to that, you can encrypt the content. 679 00:40:23,640 --> 00:40:25,340 That's called extended access control. 680 00:40:25,680 --> 00:40:27,460 I haven't seen any passports doing it. 681 00:40:27,800 --> 00:40:29,760 But if you do it, it's up to you. 682 00:40:29,900 --> 00:40:31,380 There is no standard how you do it. 683 00:40:31,480 --> 00:40:34,240 So the standard that defines the passport application says, 684 00:40:34,380 --> 00:40:38,180 you may do this, but you don't have to do it in any particular way. 685 00:40:38,980 --> 00:40:41,360 So I don't think it's going to be particularly useful 686 00:40:41,360 --> 00:40:42,720 until that standard is agreed. 687 00:40:43,080 --> 00:40:45,780 And once it's agreed, it's going to be widely known 688 00:40:45,780 --> 00:40:47,780 and therefore presumably anyone 689 00:40:48,040 --> 00:40:48,460 can do it. 690 00:40:49,520 --> 00:40:51,660 But if we look back at basic access control, 691 00:40:51,920 --> 00:40:53,120 you see it's using three days. 692 00:40:53,280 --> 00:40:56,740 So anyone know what kind of cipher three days is? 693 00:40:58,780 --> 00:40:59,220 Broken. 694 00:40:59,420 --> 00:41:00,560 Well, maybe. 695 00:41:01,320 --> 00:41:03,120 It's a symmetric cipher, right? 696 00:41:03,160 --> 00:41:04,880 So you have the same key on both sides. 697 00:41:05,340 --> 00:41:08,060 So unlike public key where you have a public private key, 698 00:41:08,700 --> 00:41:10,180 both sides have to know the key. 699 00:41:10,480 --> 00:41:12,620 So in order to be able to read this passport, 700 00:41:13,140 --> 00:41:15,000 I have to know what the key is. 701 00:41:16,100 --> 00:41:17,960 We've got all this super safe data. 702 00:41:18,040 --> 00:41:21,640 So we're going to store our key somewhere really safe, right? 703 00:41:23,300 --> 00:41:24,920 Yeah, we print it on the passport. 704 00:41:27,900 --> 00:41:30,460 So the way you derive the key for the passport 705 00:41:30,460 --> 00:41:34,060 is you read the MRZ, which is the machine readable zone. 706 00:41:34,740 --> 00:41:38,760 You take the passport number, the expiry date and the date of birth. 707 00:41:39,040 --> 00:41:41,160 You glue them together and that's your key. 708 00:41:42,200 --> 00:41:44,680 That's the same for every passport in the world. 709 00:41:46,700 --> 00:41:48,020 So I'll give you a quick demo. 710 00:41:48,020 --> 00:41:48,800 I'll give you a quick demonstration of that. 711 00:41:59,560 --> 00:42:05,700 I'll just have to quickly edit my config file. 712 00:42:18,340 --> 00:42:20,820 So again, I'm using a commercial off-the-shelf reader. 713 00:42:22,980 --> 00:42:24,340 Runs at slightly higher speed. 714 00:42:26,780 --> 00:42:28,400 Now, normally the procedure would be 715 00:42:28,400 --> 00:42:30,700 you hand this to the guy at the passport control. 716 00:42:30,800 --> 00:42:33,820 He swipes it through an MRZ and then he reads it. 717 00:42:33,960 --> 00:42:36,640 I don't have one, so I'm going to type it in, 718 00:42:36,700 --> 00:42:39,620 but I've pre-typed it so you won't fall asleep while I do this. 719 00:43:01,340 --> 00:43:02,660 Okay, so it's logged in. 720 00:43:02,740 --> 00:43:03,500 It's read some data. 721 00:43:04,260 --> 00:43:05,800 It's now reading the rest of it. 722 00:43:05,860 --> 00:43:10,860 So you can see it's got the basic name, date of birth, passport number and so on. 723 00:43:11,380 --> 00:43:13,540 It's now reading one of the biometric files. 724 00:43:18,940 --> 00:43:21,000 So that's the image stored in the passport. 725 00:43:22,080 --> 00:43:25,000 As you can see, I was much better looking when that picture was taken. 726 00:43:26,380 --> 00:43:27,840 Actually, that's my son's passport. 727 00:43:28,080 --> 00:43:29,800 He's not allowed to travel when I'm speaking. 728 00:43:32,460 --> 00:43:35,380 In fact, he was actually in Estonia last week. 729 00:43:35,900 --> 00:43:38,860 Nothing to do with the problems they've been having out there, I assure you. 730 00:43:39,680 --> 00:43:42,740 And I was a bit worried, what am I going to do for my talk? 731 00:43:42,840 --> 00:43:43,720 I don't have his passport. 732 00:43:44,040 --> 00:43:47,600 So I arranged that my flight left the day he was coming in. 733 00:43:48,120 --> 00:43:49,500 And I called him up and I said, 734 00:43:49,560 --> 00:43:52,920 Hey, you're flying into Gatwick, I'm flying out of Gatwick, I'll meet you. 735 00:43:52,980 --> 00:43:54,560 We'll have coffee, it'll be nice, we'll have breakfast. 736 00:43:56,020 --> 00:43:58,180 It's his birthday next week, I'll give him some attention. 737 00:43:59,000 --> 00:44:01,100 So he shows up and I meet him at the gate and he's like, 738 00:44:01,180 --> 00:44:01,920 Hi Dad, how are you? 739 00:44:02,060 --> 00:44:03,020 And I'm like, oh, I'm great, yeah. 740 00:44:03,140 --> 00:44:04,280 Let me see your passport a second. 741 00:44:04,900 --> 00:44:05,400 Oh, cool. 742 00:44:05,580 --> 00:44:07,180 Anyway, see you, I've got to go, catch my flight, bye. 743 00:44:10,660 --> 00:44:12,580 So I've got his passport, he's going nowhere. 744 00:44:16,020 --> 00:44:18,000 So basically, I've read all the data out there. 745 00:44:18,000 --> 00:44:21,960 I now have an exact digital copy of the data that's stored in this passport. 746 00:44:22,400 --> 00:44:25,640 It's already been demonstrated, you can just write that back to a blank. 747 00:44:25,980 --> 00:44:27,980 There are no anti-cloning mechanisms. 748 00:44:29,240 --> 00:44:31,820 And it will be indistinguishable from the original. 749 00:44:32,520 --> 00:44:34,740 There's also no anti-brute force mechanism. 750 00:44:34,860 --> 00:44:41,560 So if I didn't know the whole of that number, I could say, put two question marks there instead. 751 00:44:43,080 --> 00:44:44,460 And it'll just keep trying. 752 00:44:44,620 --> 00:44:47,840 So you've got a challenge response, challenge response, fail, fail, fail. 753 00:44:48,360 --> 00:44:50,180 And I'm going to be in there in a minute. 754 00:44:52,440 --> 00:44:57,760 So one of the questions I get asked is, okay, so you can read it, but you can't change it. 755 00:44:57,820 --> 00:44:58,900 So what's the big deal? 756 00:45:01,640 --> 00:45:06,800 And until recently, the answer was, well, you can change it. 757 00:45:06,860 --> 00:45:11,980 Because on the passport, the way it works is, these files, there's a cryptographic hash. 758 00:45:12,720 --> 00:45:14,100 So they're all signed. 759 00:45:14,320 --> 00:45:17,040 So I read the file that has the name and address and so on. 760 00:45:17,220 --> 00:45:17,660 Okay. 761 00:45:18,000 --> 00:45:18,740 So I read the file that has the image. 762 00:45:19,020 --> 00:45:21,520 I read another file that's called the security object. 763 00:45:22,000 --> 00:45:26,400 Security object has within it a certificate and a bunch of signatures. 764 00:45:26,760 --> 00:45:29,980 And what you do is you check the signatures against the signatures on the files 765 00:45:29,980 --> 00:45:31,880 and then you check the signature against the certificate. 766 00:45:32,220 --> 00:45:34,400 And if they all match, then you know it's genuine. 767 00:45:35,060 --> 00:45:37,200 Can anyone spot the deliberate mistake there? 768 00:45:38,840 --> 00:45:39,320 Okay. 769 00:45:39,340 --> 00:45:44,000 The thing I'm checking and the thing I'm checking it against have both been delivered to me by the thing. 770 00:45:44,400 --> 00:45:44,880 Yeah? 771 00:45:45,540 --> 00:45:47,980 So why don't I just sign it with my own certificate? 772 00:45:48,000 --> 00:45:50,560 And put the new certificate on the device. 773 00:45:51,860 --> 00:45:52,340 Okay. 774 00:45:52,420 --> 00:45:55,840 So there is actually a cure for that now, which is good. 775 00:45:59,100 --> 00:46:02,020 There is a thing called the PKD, the public key directory. 776 00:46:02,380 --> 00:46:06,100 So that you can now connect to the PKD and you can download a certificate 777 00:46:06,100 --> 00:46:09,480 and you can check that the one on the passport is actually the valid one. 778 00:46:10,580 --> 00:46:12,420 That's only true of April this year. 779 00:46:12,520 --> 00:46:16,120 These things have been out, what, three, four years now in some countries. 780 00:46:16,540 --> 00:46:17,980 There are 28 countries. 781 00:46:17,980 --> 00:46:20,840 There are 28 countries participating in this type of passport program. 782 00:46:21,220 --> 00:46:24,980 And yet there's only 15 countries currently using the PKD. 783 00:46:25,740 --> 00:46:30,720 I think they only ratified the design for the PKD in sort of July of last year. 784 00:46:30,900 --> 00:46:37,860 So I'm very dubious as to, you know, how wide this and how well this project is actually maintained. 785 00:46:39,320 --> 00:46:44,540 But anyway, before that happened, I had a look at how hard it would be to create a fake certificate and do the signing. 786 00:46:45,380 --> 00:46:47,960 So this is one I pulled off a New Zealand project. 787 00:46:47,980 --> 00:46:48,160 This is my passport. 788 00:46:49,440 --> 00:46:50,760 And this is my forgery. 789 00:46:51,520 --> 00:46:56,080 So if I flip between the two, you can see the only thing that's changing is the crypto modulus. 790 00:46:56,800 --> 00:46:59,240 Very easy to produce a fake that looks the same. 791 00:47:01,540 --> 00:47:05,180 So again, the threats that come from this. 792 00:47:06,000 --> 00:47:09,540 We found that the key data, because there's no anti-brute forcing, 793 00:47:09,760 --> 00:47:12,240 if you can obtain some of the key data through other channels, 794 00:47:12,380 --> 00:47:15,680 then you can reduce the brute force to such a small space that it's actually doable. 795 00:47:16,260 --> 00:47:17,780 I believe in Holland, 796 00:47:17,980 --> 00:47:19,420 they've got it down to two hours. 797 00:47:19,940 --> 00:47:23,580 So they can actually brute force an arbitrary passport in about two hours. 798 00:47:24,860 --> 00:47:25,500 Two minutes? 799 00:47:27,020 --> 00:47:29,180 The other thing is passport profiling. 800 00:47:29,300 --> 00:47:30,780 So even though I can't read the passport, 801 00:47:30,960 --> 00:47:33,680 I can probably tell where it came from. 802 00:47:33,880 --> 00:47:36,520 So without logging in, because of the implementation differences, 803 00:47:36,600 --> 00:47:40,060 I can say that's an American or that's an Australian or that's an English passport, 804 00:47:40,600 --> 00:47:41,900 which again could be bad. 805 00:47:42,580 --> 00:47:43,980 Okay, I've got to wind up really quickly. 806 00:47:44,160 --> 00:47:47,100 So this software, everything I've used today, 807 00:47:47,980 --> 00:47:50,900 it's published, it's open source, it's on rfidiot.org. 808 00:47:51,660 --> 00:47:53,300 Feel free to download it. 809 00:47:54,040 --> 00:47:58,260 The hardware I use is available also from that site. 810 00:47:58,360 --> 00:48:00,720 You'll probably find some suppliers in the US 811 00:48:00,720 --> 00:48:02,600 that are going to be cheaper than buying them from me. 812 00:48:02,900 --> 00:48:04,400 But if you want to buy them from me, 813 00:48:04,520 --> 00:48:06,680 that will help support further research. 814 00:48:08,200 --> 00:48:10,260 It interfaces to those manufacturers, 815 00:48:10,460 --> 00:48:14,400 so ACG, FROSCH, PCSC devices, so OmniKey, for example. 816 00:48:15,040 --> 00:48:17,840 And there's a cool project coming along called OpenPCD, 817 00:48:17,980 --> 00:48:22,560 which is a completely open source implementation of an RFID reader. 818 00:48:25,140 --> 00:48:27,400 I'll take one question before I wind up. 819 00:48:30,460 --> 00:48:31,140 Where's the bar? 820 00:48:32,700 --> 00:48:33,100 Yes? 821 00:48:34,360 --> 00:48:35,680 Why do I have a chip in me? 822 00:48:36,240 --> 00:48:38,160 Okay, I'm crazy, but I'm not that crazy. 823 00:48:38,360 --> 00:48:40,040 It's not really, it's in my watch strap. 824 00:48:42,780 --> 00:48:44,140 Okay, that's me, I'm done. 825 00:48:48,120 --> 00:48:48,780 Thank you. 826 00:48:48,900 --> 00:48:49,420 Thank you.