1 00:00:00,000 --> 00:00:04,000 If Phil Zimmerman's in here, you can feel free to talk while we're setting this up. 2 00:00:04,320 --> 00:00:07,400 If you want to go first so people don't have to wait even longer. 3 00:00:29,920 --> 00:00:38,640 Hello? Hi, I'm Phil Zimmerman, and I'm kind of doing a last-minute substitute talk. 4 00:00:38,800 --> 00:00:45,740 Not a substitute talk, but a steel 20 minutes of his time talk, and thanks for letting me do that. 5 00:00:48,160 --> 00:00:53,840 So I just wanted to give you a quick little update on my project for Secure VoIP Z-Phone. 6 00:00:54,560 --> 00:00:59,320 Last year I was here. Was that a year ago? Must be. 7 00:01:00,140 --> 00:01:09,800 Anyway, I demonstrated a prototype written in Python, and that was just for proof of concept to see if the protocol works. 8 00:01:10,160 --> 00:01:14,540 But now I actually have some real software you can download from the website. 9 00:01:14,780 --> 00:01:19,800 It's written in C, not Python, and it's not a standalone VoIP client. 10 00:01:20,820 --> 00:01:27,300 It's sort of a plug-in for whatever VoIP client you prefer to use, except for Skype, not that one. 11 00:01:29,060 --> 00:01:29,980 But it's... 12 00:01:30,000 --> 00:01:38,200 If you have a standard VoIP client, like X-Lite, or I-Beam, or Gizmo, or SJ-Phone, or any number of others, 13 00:01:38,940 --> 00:01:46,780 then you can run my Z-Phone software that will go into the IP stack and encrypt the phone call 14 00:01:48,940 --> 00:01:54,520 by detecting the VoIP-related packets and interceding at the beginning of the call, 15 00:01:54,720 --> 00:01:59,980 at the beginning of the packet stream of media packets, and doing the Diffie-Hellman exchange, 16 00:01:59,980 --> 00:02:03,200 and setting up the keys, and then encrypting the rest of the call. 17 00:02:03,400 --> 00:02:07,280 It's got its own separate little GUI that tells you if the call is secure. 18 00:02:07,540 --> 00:02:10,540 It's got a couple of buttons on it, go secure and clear, you know. 19 00:02:12,780 --> 00:02:17,200 And it uses Diffie-Hellman to set up the keys. 20 00:02:17,560 --> 00:02:23,780 It displays a short authentication string to tell you that there's no man in the middle. 21 00:02:25,640 --> 00:02:28,660 And it doesn't involve any public key infrastructure. 22 00:02:28,660 --> 00:02:32,880 It doesn't involve the key... It doesn't involve the SIP servers. 23 00:02:33,100 --> 00:02:35,340 It doesn't involve the VoIP service providers. 24 00:02:35,580 --> 00:02:38,020 It doesn't involve any third parties at all. 25 00:02:38,800 --> 00:02:45,160 And the reason why I designed it this way is because I felt that architecture has a lot of impact 26 00:02:46,860 --> 00:02:51,240 on, you know, whether your call is going to be secure. 27 00:02:51,560 --> 00:02:57,380 I just felt that, you know, the other encryption schemes for VoIP 28 00:02:58,660 --> 00:03:00,480 all involve the signaling. 29 00:03:00,700 --> 00:03:03,660 They all involve the participation of the SIP servers, 30 00:03:03,940 --> 00:03:06,580 the participation of the VoIP service providers, 31 00:03:06,920 --> 00:03:08,800 the participation of the telephone companies. 32 00:03:09,620 --> 00:03:13,720 And it just seemed to me that somehow it just... 33 00:03:13,720 --> 00:03:18,760 It appears that the phone companies don't always have your best interest in mind. 34 00:03:24,400 --> 00:03:27,680 And so there's a whole bunch of other VoIP encryption 35 00:03:28,440 --> 00:03:32,820 standard proposals that all involve the participation of the phone companies 36 00:03:32,820 --> 00:03:34,000 of the VoIP service providers. 37 00:03:34,600 --> 00:03:35,480 Mine doesn't. 38 00:03:36,420 --> 00:03:38,000 And I think that matters a lot. 39 00:03:41,540 --> 00:03:44,220 They... We presented this to the IETF. 40 00:03:44,360 --> 00:03:48,700 John Callis, Alan Johnston, and I presented an internet draft to the IETF. 41 00:03:49,000 --> 00:03:53,860 And there's been a lot of discussion about it there, comparing it to the other schemes 42 00:03:53,860 --> 00:03:57,080 that are currently under consideration at the IETF. 43 00:03:57,680 --> 00:03:58,900 The ones that all use the signaling. 44 00:04:01,540 --> 00:04:02,860 And, you know, they... 45 00:04:03,460 --> 00:04:05,580 The proponents of the other schemes are... 46 00:04:07,180 --> 00:04:09,180 They view this as a layer violation, 47 00:04:09,460 --> 00:04:13,200 because I'm doing the key exchange in the media stream, 48 00:04:13,440 --> 00:04:15,360 which is highly unorthodox in their view. 49 00:04:15,780 --> 00:04:19,900 Well, you know, the media stream is how they always used to work 50 00:04:19,900 --> 00:04:23,660 in the public switch telephone network in the old days of secure phones. 51 00:04:24,640 --> 00:04:27,400 It works just fine there. Nobody called that a layer violation. 52 00:04:28,460 --> 00:04:30,640 And that didn't involve the phone company. 53 00:04:31,640 --> 00:04:33,760 So I thought it would be a good way to do it here. 54 00:04:35,460 --> 00:04:37,480 So there's no persistent key material. 55 00:04:37,680 --> 00:04:39,500 The keys are created at the beginning of the call, 56 00:04:39,520 --> 00:04:40,980 and they are destroyed at the end of the call. 57 00:04:42,540 --> 00:04:44,280 There's perfect forward secrecy. 58 00:04:46,060 --> 00:04:47,520 There's also something else. 59 00:04:48,200 --> 00:04:51,520 You remember I mentioned that you read aloud and compare 60 00:04:52,320 --> 00:04:57,540 a short authentication string with your partner to see if there's any man in the middle. 61 00:04:59,040 --> 00:05:01,920 That's a kind of a substitute for a public key infrastructure. 62 00:05:03,600 --> 00:05:05,440 Well, not everybody's going to do that. 63 00:05:05,700 --> 00:05:08,660 I mean, there's a lot of nerds in this room that would do it, 64 00:05:09,080 --> 00:05:10,720 but your mom's not going to do it. 65 00:05:11,780 --> 00:05:13,520 So what do you do for those cases? 66 00:05:13,740 --> 00:05:15,920 Well, it has another thing. 67 00:05:16,120 --> 00:05:21,000 It uses key continuity, sort of analogous to SSH. 68 00:05:21,360 --> 00:05:27,160 In other words, if the man in the middle is not there to attack in the very first call, 69 00:05:27,540 --> 00:05:31,140 he's locked out of all future calls, like SSH. 70 00:05:33,860 --> 00:05:36,700 This is one audience that I don't have to ask for a show of hands 71 00:05:36,700 --> 00:05:38,500 of how many people here have used SSH. 72 00:05:42,240 --> 00:05:44,180 It's not the same approach as SSH. 73 00:05:44,220 --> 00:05:46,880 It doesn't involve persistent public keys for signatures. 74 00:05:47,480 --> 00:05:51,200 Instead, it retains a shared secret from the earlier call. 75 00:05:52,000 --> 00:05:56,880 It hashes it and retains a hash of it, so you can't work backward to recover the old one. 76 00:05:57,540 --> 00:06:00,920 And on the next call, it does a fresh Diffie-Hellman like it always does, 77 00:06:01,060 --> 00:06:03,680 but then mixes in the re-shared secret from the earlier call. 78 00:06:04,120 --> 00:06:05,720 So you have key continuity. 79 00:06:06,160 --> 00:06:10,560 So if you don't check the short authentication string for many, many phone calls, 80 00:06:10,660 --> 00:06:12,940 maybe you call someone a hundred times using this scheme, 81 00:06:13,040 --> 00:06:17,340 and you're unbelievably lazy, and you just don't check the short authentication string. 82 00:06:17,600 --> 00:06:21,520 After a hundred calls, you decide that today we're really going to talk about very secret stuff. 83 00:06:22,040 --> 00:06:25,940 And so you check the short authentication string, and it matches. 84 00:06:26,240 --> 00:06:27,520 Well, that proves not only that, 85 00:06:27,540 --> 00:06:29,200 there's no man in the middle in this call, 86 00:06:29,660 --> 00:06:33,280 but it retroactively proves that there never was a man in the middle, 87 00:06:33,360 --> 00:06:35,100 all the way back to the very first call. 88 00:06:35,380 --> 00:06:36,880 That's a nice security property. 89 00:06:38,360 --> 00:06:40,580 And it's all without any public key infrastructure, 90 00:06:41,080 --> 00:06:43,020 and the servers don't even know you're doing it. 91 00:06:43,120 --> 00:06:46,240 The SIPP servers are not aware that you even did a key exchange. 92 00:06:49,220 --> 00:06:52,920 So, of all the various encryption schemes for VoIP, 93 00:06:53,060 --> 00:06:56,640 this one, I think, is the most politically congruent 94 00:06:56,640 --> 00:06:59,500 with the values of the people in this room. 95 00:07:02,060 --> 00:07:04,860 And I think that it will prevail in the long run, 96 00:07:06,260 --> 00:07:08,860 competitively, over the other VoIP encryption schemes, 97 00:07:08,980 --> 00:07:14,520 for the same reasons that PGP has prevailed against PEM in 1991, 98 00:07:15,140 --> 00:07:18,400 MOS in the mid-1990s, and even SMIME today, 99 00:07:18,560 --> 00:07:21,280 which has an enormous deployment advantage over PGP, 100 00:07:21,360 --> 00:07:22,640 and yet no one uses it. 101 00:07:23,740 --> 00:07:24,780 Architecture matters. 102 00:07:25,360 --> 00:07:32,980 And the activation energy for PGP is much lower than it is for SMIME, 103 00:07:33,000 --> 00:07:34,120 and that's why people use it. 104 00:07:34,380 --> 00:07:36,660 That's part of why they use it. They also trust it more. 105 00:07:37,820 --> 00:07:40,780 And the activation energy for this is much less. 106 00:07:40,840 --> 00:07:42,000 You don't have to build a PKI. 107 00:07:43,380 --> 00:07:46,680 So, if you go to my website philzimmerman.com right now, 108 00:07:46,840 --> 00:07:49,340 or tonight, and download it, 109 00:07:49,360 --> 00:07:51,280 you can get the third public beta. 110 00:07:51,400 --> 00:07:53,580 It's been out since March, but now, a few days ago, 111 00:07:53,580 --> 00:07:56,340 I just did a new public beta. It's the third one. 112 00:07:56,540 --> 00:07:58,780 I even have a Windows one for the few of you, 113 00:07:58,840 --> 00:08:00,720 the five or six of you in this room that use Windows. 114 00:08:03,320 --> 00:08:06,340 And it's the second public beta of the Windows, so it's more stable. 115 00:08:08,040 --> 00:08:10,660 I'm told that the engineers have fixed the blue screens of death, 116 00:08:10,820 --> 00:08:12,140 and it even has an uninstaller. 117 00:08:15,160 --> 00:08:19,580 So, I think it's going to become the de facto standard for VoIP encryption. 118 00:08:20,240 --> 00:08:21,740 I think it's going to change things. 119 00:08:21,740 --> 00:08:24,200 So, any questions? 120 00:08:27,240 --> 00:08:27,980 Yeah? 121 00:08:35,780 --> 00:08:39,860 I'm relying on the short authentication string for that. 122 00:08:42,740 --> 00:08:48,680 You're going to have to use your common sense. 123 00:08:49,540 --> 00:08:51,080 Your ordinary brain. 124 00:08:51,080 --> 00:08:53,240 You know, how do you know your mom's not a Martian? 125 00:08:53,400 --> 00:08:53,900 You know? 126 00:08:56,300 --> 00:08:59,820 We always manage to solve that problem with the public switch telephone network, 127 00:08:59,960 --> 00:09:01,540 and nobody got upset about that. 128 00:09:01,800 --> 00:09:03,260 I just wanted to make sure that that's what it was. 129 00:09:03,420 --> 00:09:03,640 Yeah. 130 00:09:05,840 --> 00:09:07,640 Well, all right, maybe I'm done early. 131 00:09:08,000 --> 00:09:09,140 Everybody download it. 132 00:09:09,180 --> 00:09:10,380 And by the way, something I need. 133 00:09:10,620 --> 00:09:14,620 You know, I've been doing my code development in the Ukraine, 134 00:09:14,840 --> 00:09:17,420 because I'm paying for it out of my own pocket. 135 00:09:18,200 --> 00:09:20,780 This is not a venture capital funded enterprise here. 136 00:09:21,080 --> 00:09:22,320 This is my own little private project. 137 00:09:23,040 --> 00:09:25,600 And so, I need people to beat up on this thing. 138 00:09:26,760 --> 00:09:27,920 And I don't know. 139 00:09:27,980 --> 00:09:29,440 Is there anybody here that's good at that? 140 00:09:30,100 --> 00:09:33,480 Is this the kind of conference where I might find somebody that could do that? 141 00:09:33,960 --> 00:09:35,140 So, please download it. 142 00:09:35,220 --> 00:09:37,160 You can get the source code for the Linux version. 143 00:09:37,600 --> 00:09:39,380 Actually, you can get the source code for all the versions, 144 00:09:39,500 --> 00:09:43,120 but the website, you can immediately download the Linux source code. 145 00:09:44,240 --> 00:09:47,260 I need to do, not the cryptanalytic breaks. 146 00:09:47,440 --> 00:09:49,400 I don't think you're going to be able to get very far with that, 147 00:09:49,400 --> 00:09:52,180 but I would like people to beat up on it 148 00:09:52,180 --> 00:09:56,840 on the more traditional buffer overflow attacks and malformed packets 149 00:09:56,840 --> 00:10:01,020 and all the things that you're already good at doing for breaking into systems. 150 00:10:01,700 --> 00:10:05,120 Of course, it's going to depend on what kind of VoIP client you have hooked up to it, 151 00:10:05,180 --> 00:10:06,520 but that's not my problem. 152 00:10:07,140 --> 00:10:11,060 Now, in the long run, this thing is going to be inside of VoIP clients, 153 00:10:11,200 --> 00:10:12,760 integrated inside of VoIP clients. 154 00:10:12,880 --> 00:10:14,080 That's the best way to do it. 155 00:10:14,940 --> 00:10:18,040 In the meantime, though, we're doing this IP filter approach. 156 00:10:18,040 --> 00:10:24,840 And I recently signed an agreement with a Canadian company called Borderware 157 00:10:24,840 --> 00:10:28,140 that makes a VoIP security gateway, and they're going to put it in that. 158 00:10:29,440 --> 00:10:34,920 So, you can have an office with 100 VoIP phones all connected to the VoIP security gateway 159 00:10:34,920 --> 00:10:41,600 that will apply the ZRTP protocol, that's the protocol that is in ZPhone, out to the cloud. 160 00:10:43,120 --> 00:10:47,900 So, the last 10 or 20 meters will be not encrypted, but, you know, 161 00:10:48,880 --> 00:10:51,860 it's better if it's inside the phone, but this is also pretty good. 162 00:10:53,220 --> 00:10:56,540 So, anyway, I'd like people to try to attack it. 163 00:10:57,880 --> 00:10:58,600 So, please. 164 00:10:59,200 --> 00:11:04,100 And, by the way, if you do break it, send me an email about it before you announce it. 165 00:11:06,200 --> 00:11:06,880 It's in beta. 166 00:11:07,040 --> 00:11:08,540 You know, I expect there's bugs in it. 167 00:11:08,680 --> 00:11:09,460 So, yeah. 168 00:11:09,840 --> 00:11:12,120 I just wanted to thank you for your work with PGP 169 00:11:12,120 --> 00:11:15,280 and continuing to work in this space and using your talents here, 170 00:11:15,340 --> 00:11:17,160 even in the face of the adversities you've faced. 171 00:11:18,040 --> 00:11:18,560 Well, thank you. 172 00:11:18,620 --> 00:11:19,520 Thank you for saying that. 173 00:11:24,640 --> 00:11:28,440 I'm hoping this will be my act two. 174 00:11:29,320 --> 00:11:31,240 I'm getting a little old for an act three. 175 00:11:31,360 --> 00:11:32,900 So, this one's got to be good. 176 00:11:34,700 --> 00:11:35,100 Yeah. 177 00:11:40,660 --> 00:11:42,300 Yeah, it's letters and numbers. 178 00:11:42,540 --> 00:11:45,760 Later on, I'm going to add the word list that we use in PGP. 179 00:11:45,960 --> 00:11:48,020 Actually, that word list was originally developed 180 00:11:48,040 --> 00:11:49,760 ten years ago for PGP Phone. 181 00:11:50,280 --> 00:11:54,000 So, it was originally developed for the same product, pretty much. 182 00:11:54,560 --> 00:11:55,040 . 183 00:11:59,540 --> 00:12:02,760 Yeah, I don't think the rich little attack is not going to work. 184 00:12:02,980 --> 00:12:04,560 The rich little attack. 185 00:12:04,820 --> 00:12:05,900 Oh, you guys are too young for that. 186 00:12:06,360 --> 00:12:10,980 Rich little was an impersonator in the 1960s. 187 00:12:11,160 --> 00:12:13,520 He did Ed Sullivan and Richard Nixon. 188 00:12:13,840 --> 00:12:15,900 And he did almost everyone. 189 00:12:16,160 --> 00:12:18,020 And so, I call it the rich little attack. 190 00:12:18,040 --> 00:12:21,860 The rich little attack is not a realistic attack against this. 191 00:12:22,040 --> 00:12:24,920 There's too many ways that you can thwart that. 192 00:12:25,080 --> 00:12:27,900 The attacker doesn't know when you're going to read those, 193 00:12:28,520 --> 00:12:29,860 the short authentication string. 194 00:12:30,500 --> 00:12:31,760 He doesn't know how you're going to do it 195 00:12:31,760 --> 00:12:32,780 and what form you're going to do it. 196 00:12:33,420 --> 00:12:36,140 I mean, you know, there's so many ways to trip him up. 197 00:12:36,600 --> 00:12:39,440 So, remember, the attacker's trying not to be detected. 198 00:12:40,220 --> 00:12:41,280 He's not going to risk it. 199 00:12:43,020 --> 00:12:46,640 So, you just read, like, what, four characters. 200 00:12:46,640 --> 00:12:49,580 Four characters and it's base 32 right now. 201 00:12:49,720 --> 00:12:51,240 Later we'll change it to words. 202 00:12:52,360 --> 00:12:54,080 Then you'll just probably read two words. 203 00:12:54,600 --> 00:13:00,660 If you read two words and it's one byte per word, 204 00:13:00,820 --> 00:13:03,800 then eight bits per word, 205 00:13:03,900 --> 00:13:08,160 then the attacker has only one chance in 65,000 of success. 206 00:13:09,260 --> 00:13:11,040 Ah, I got five minutes. 207 00:13:14,560 --> 00:13:16,120 So, make this... 208 00:13:16,640 --> 00:13:19,700 You know, do stuff with this. 209 00:13:20,180 --> 00:13:21,060 Put it in... 210 00:13:21,640 --> 00:13:23,360 You can download the source code 211 00:13:23,360 --> 00:13:26,180 and write to me about putting it into VoIP clients. 212 00:13:29,160 --> 00:13:30,660 You're probably going to get it in... 213 00:13:30,660 --> 00:13:31,000 What? 214 00:13:32,980 --> 00:13:33,460 . 215 00:13:40,560 --> 00:13:42,920 So, the question is, is this subject to CALEA? 216 00:13:43,580 --> 00:13:44,060 . 217 00:13:44,800 --> 00:13:45,360 . 218 00:13:50,840 --> 00:13:52,780 PGP doesn't have any backdoors in it. 219 00:13:53,240 --> 00:13:55,340 That's pretty well established. 220 00:13:57,660 --> 00:14:00,440 PGP is not subject to CALEA and neither is this. 221 00:14:00,660 --> 00:14:02,860 And the reason why this is not subject to CALEA 222 00:14:02,860 --> 00:14:06,620 is because CALEA governs the behavior of the service providers. 223 00:14:07,500 --> 00:14:11,160 CALEA requires the service providers to cooperate with the government 224 00:14:11,160 --> 00:14:13,520 to hand over whatever they've got, 225 00:14:13,680 --> 00:14:18,020 which would typically be either keys or, if it's not encrypted, 226 00:14:18,160 --> 00:14:19,000 the packets themselves. 227 00:14:19,420 --> 00:14:24,020 In the case of the ZRTP protocol and ZPhone, 228 00:14:25,280 --> 00:14:28,660 the two parties that are doing the conversation, Alice and Bob, 229 00:14:28,840 --> 00:14:31,640 they're the ones who work out the keys between them 230 00:14:31,640 --> 00:14:33,560 without the participation of the service providers. 231 00:14:33,840 --> 00:14:36,780 The service providers are not in a position to provide any keys. 232 00:14:40,360 --> 00:14:43,640 So, CALEA is actually sort of irrelevant. 233 00:14:45,960 --> 00:14:48,260 I didn't mean that in a pejorative way. 234 00:14:48,360 --> 00:14:50,920 I'm just saying it doesn't technically apply, you know. 235 00:14:51,700 --> 00:14:55,820 Although I'm sure that plenty of people would also look at it 236 00:14:55,820 --> 00:14:56,780 in a pejorative way. 237 00:14:57,460 --> 00:14:57,980 Yeah? 238 00:14:58,320 --> 00:14:58,840 . 239 00:15:03,320 --> 00:15:04,780 Yes, I'm using AES. 240 00:15:04,780 --> 00:15:08,820 In fact, the low-level packet encryption uses a protocol called SRTP, 241 00:15:09,600 --> 00:15:14,960 which is also used by the other schemes that I've been trashing 242 00:15:14,960 --> 00:15:15,860 in the last few minutes. 243 00:15:16,800 --> 00:15:19,640 It's actually a very good way to encrypt the voice packets. 244 00:15:19,760 --> 00:15:21,080 SRTP is a great protocol. 245 00:15:21,300 --> 00:15:26,360 In fact, it looks just like the protocol I developed 10 years ago for PGP Phone. 246 00:15:27,440 --> 00:15:29,060 Except it's actually even better, 247 00:15:29,120 --> 00:15:31,680 because they put an authentication tag on each voice packet. 248 00:15:31,980 --> 00:15:33,200 I didn't do that then. 249 00:15:33,200 --> 00:15:36,060 The threat models changed over the years. 250 00:15:41,580 --> 00:15:42,620 So, alright. 251 00:15:43,900 --> 00:15:46,340 There's plenty of technical information on the website. 252 00:15:46,560 --> 00:15:47,520 There's an FAQ page. 253 00:15:47,920 --> 00:15:50,320 There's the internet draft. 254 00:15:50,860 --> 00:15:52,040 There's source code. 255 00:15:52,380 --> 00:15:56,380 And I can even give you documentation for the SDK if you want to look at that. 256 00:15:57,340 --> 00:15:59,440 So, there's plenty of stuff to look at. 257 00:15:59,620 --> 00:16:00,500 So, send me an email. 258 00:16:00,500 --> 00:16:03,520 philzimmerman.com, spelled with two Ns, the German spelling. 259 00:16:03,740 --> 00:16:05,960 There's another guy named Phil Zimmerman with one N, 260 00:16:06,020 --> 00:16:07,000 so don't go to his website. 261 00:16:09,080 --> 00:16:10,040 Alright. Thanks. 262 00:16:22,700 --> 00:16:25,520 So, I want to introduce Joe Grand, the man. 263 00:16:28,540 --> 00:16:29,500 Who's responsible? 264 00:16:29,500 --> 00:16:32,780 That must be Space Rogue, the one guy I haven't seen in about eight years. 265 00:16:33,080 --> 00:16:34,360 Yeah, I hear you back there. 266 00:16:35,640 --> 00:16:37,820 Whatever happened to hackernews.com? 267 00:16:39,680 --> 00:16:43,100 Hey, so this is Joe Grand, the guy behind the badge. 268 00:16:43,360 --> 00:16:46,600 We've been thinking of doing these badges for four or five years. 269 00:16:46,800 --> 00:16:49,140 And every year the cost came down, the cost came down, 270 00:16:49,160 --> 00:16:52,540 it got easier and easier to do, and finally it fell within our budget. 271 00:16:53,460 --> 00:16:55,780 So, it's not that we don't have cool badge ideas, 272 00:16:55,860 --> 00:16:57,340 it's just that we can't normally afford them. 273 00:16:57,940 --> 00:16:59,400 Joe figured out how to make that work. 274 00:16:59,580 --> 00:17:01,700 So, he's going to tell you the story behind the badge, 275 00:17:02,240 --> 00:17:04,060 sort of all the technical challenges he had. 276 00:17:04,200 --> 00:17:08,280 And also, I just want to say, hey, thanks for toughing it out this morning with us 277 00:17:08,280 --> 00:17:10,000 for this whole safety inspection thing. 278 00:17:10,400 --> 00:17:11,780 And you guys were cool about it. 279 00:17:12,580 --> 00:17:15,460 So, anyway, with that, take it away, Joe. 280 00:17:15,860 --> 00:17:18,660 Oh, and he's going to be competing in the mystery box challenge, 281 00:17:18,740 --> 00:17:20,080 if you guys have followed any of that. 282 00:17:20,520 --> 00:17:22,240 It's a fucking cool contest. 283 00:17:22,480 --> 00:17:25,520 You should just at least go over and look at the mystery boxes, because they're cool. 284 00:17:26,060 --> 00:17:27,820 What time does that start up, 4 o'clock? 285 00:17:28,400 --> 00:17:29,280 We love it! 286 00:17:30,320 --> 00:17:30,720 Joe! 287 00:17:31,940 --> 00:17:34,560 Wow, thanks. 288 00:17:37,480 --> 00:17:39,120 God, I love having space rug here. 289 00:17:40,060 --> 00:17:40,460 Cool. 290 00:17:40,700 --> 00:17:43,940 All right, well, thanks everyone for coming and sitting outside and everything. 291 00:17:44,080 --> 00:17:45,720 I'm Joe, as you already know. 292 00:17:45,880 --> 00:17:47,280 Some of you guys might know me as Kingpin, 293 00:17:47,760 --> 00:17:50,240 the old man from the loft back in the day. 294 00:17:51,780 --> 00:17:54,260 I'm going to pretty much run through a lot of this stuff kind of quickly 295 00:17:54,260 --> 00:17:58,220 and just get to some of the fun stuff since I only have about half the time. 296 00:17:58,820 --> 00:18:01,660 Check out the story in the DEF CON program for a little bit... 297 00:18:03,340 --> 00:18:05,780 another view of what's going on with this badge. 298 00:18:06,040 --> 00:18:08,520 But basically, if you do have questions, I'm going to run off afterwards, 299 00:18:09,000 --> 00:18:11,040 off the stage, so come ask me questions about this. 300 00:18:11,380 --> 00:18:14,760 Basically, the development process of this badge was sort of fun. 301 00:18:15,080 --> 00:18:17,820 If you are new into product development or you want to get into hardware hacking 302 00:18:17,820 --> 00:18:21,400 or anything like that, here's sort of the steps that I took for it. 303 00:18:21,720 --> 00:18:24,180 And we're going to run through pretty much all of that. 304 00:18:24,180 --> 00:18:27,560 When DT and Ping basically, as he just said, 305 00:18:27,640 --> 00:18:29,280 he had this idea of doing a badge for a while. 306 00:18:29,480 --> 00:18:31,100 So now is the time to do it. 307 00:18:32,000 --> 00:18:36,760 We made 6,055 badges, which anybody who's had any sort of manufacturing experience, 308 00:18:37,880 --> 00:18:38,980 that's a lot of badges. 309 00:18:39,180 --> 00:18:40,220 That's just a lot of anything. 310 00:18:41,680 --> 00:18:44,360 The chances of things going wrong with that amount of quantity 311 00:18:44,360 --> 00:18:47,660 when boards are being built by hand in China in a factory 312 00:18:47,660 --> 00:18:50,720 that I can't physically go and watch is pretty scary, 313 00:18:50,840 --> 00:18:52,940 but luckily everything worked out because you guys have the badges. 314 00:18:52,940 --> 00:18:55,200 We needed to keep the cost under $5, 315 00:18:56,560 --> 00:18:58,860 which is even expensive for a DEF CON badge, 316 00:18:59,040 --> 00:19:00,800 but we thought it was cool enough to just do it anyway. 317 00:19:01,800 --> 00:19:04,940 Obviously, DEF CON logo, all these things that I had to design into this thing. 318 00:19:05,200 --> 00:19:08,720 Here's the concept sketch right as I got off the phone with DT and with Ping. 319 00:19:09,720 --> 00:19:12,920 You can see just sort of, you know, we had a bunch of different ideas of stuff to do 320 00:19:12,920 --> 00:19:15,200 and that was the original kind of idea. 321 00:19:18,500 --> 00:19:22,680 So after some discussions we figured, alright, we're going to have the DEF CON logo, 322 00:19:22,680 --> 00:19:24,820 the icons on the top copper layer of the board, 323 00:19:24,920 --> 00:19:28,560 so if you guys aren't familiar with PC board design, that's okay. 324 00:19:28,800 --> 00:19:31,680 For this particular printed circuit board we have two layers, 325 00:19:31,800 --> 00:19:32,800 the top layer and the bottom layer. 326 00:19:33,040 --> 00:19:35,120 Those layers that are covered by this colored thing, 327 00:19:35,220 --> 00:19:38,600 which is called a solder mask, is actually copper traces, copper layer. 328 00:19:38,880 --> 00:19:43,100 So we wanted the icons and the DEF CON logo as you see on the top layer. 329 00:19:43,500 --> 00:19:47,980 Crossbones and the smile were actually to be cut out, which also was done. 330 00:19:48,340 --> 00:19:51,480 That's a difficult thing for printed circuit board design. 331 00:19:51,480 --> 00:19:54,860 Most times printed circuit boards aren't actually designed to be like artistic elements 332 00:19:55,440 --> 00:19:57,900 that are actually shown around and made to look cool. 333 00:19:58,120 --> 00:20:02,200 So getting the factory to say, okay, you know, to have them understand 334 00:20:02,200 --> 00:20:05,700 that these aren't going to be shoved inside of a box somewhere was kind of interesting. 335 00:20:06,000 --> 00:20:07,180 Different solder mask colors. 336 00:20:07,460 --> 00:20:09,860 Some of you guys have blue, some of you guys have white. 337 00:20:09,980 --> 00:20:10,880 Human badge is white. 338 00:20:11,520 --> 00:20:13,580 I'll show you all the different colors that are out there. 339 00:20:13,900 --> 00:20:15,180 Some of us have gold. 340 00:20:16,800 --> 00:20:18,580 Different colors for different clientele. 341 00:20:19,500 --> 00:20:21,380 The button you guys have probably already figured out. 342 00:20:21,380 --> 00:20:22,980 It goes through these different modes. 343 00:20:23,100 --> 00:20:27,060 Know that random, pseudo-random mode is actually not any sort of subliminal message. 344 00:20:27,220 --> 00:20:28,120 It's no Morse code. 345 00:20:28,940 --> 00:20:32,080 For those of you guys who spent hours looking at it yesterday, sorry. 346 00:20:35,000 --> 00:20:37,300 But if you do find something out of that, let me know. 347 00:20:39,180 --> 00:20:41,140 Here's the preliminary schematic that I put together, 348 00:20:41,240 --> 00:20:44,840 essentially like an electronic roadmap of the circuitry. 349 00:20:45,020 --> 00:20:48,020 And later on you'll see the actual final one, which might be a little easier to read. 350 00:20:48,180 --> 00:20:50,580 But we ended up using a microchip PIC 10F device, 351 00:20:50,580 --> 00:20:53,160 which was a new SOT 23 package. 352 00:20:53,260 --> 00:20:55,040 A six-pin tiny little microcontroller. 353 00:20:55,160 --> 00:20:57,100 If you look on the back, you can see it. 354 00:20:57,580 --> 00:20:59,060 It's the only black chip on there. 355 00:21:00,000 --> 00:21:03,840 I was looking for an excuse for the past few weeks to actually experiment with that device. 356 00:21:04,020 --> 00:21:05,860 So this was a perfect opportunity to do it. 357 00:21:06,440 --> 00:21:10,500 Basically just have two LEDs, a switch, and some power going to it. 358 00:21:10,580 --> 00:21:13,200 So a really simple type of device. 359 00:21:14,260 --> 00:21:18,640 And you'll see I have a little star programming port accessible for hackers. 360 00:21:19,660 --> 00:21:21,000 That's accessible for you guys. 361 00:21:21,200 --> 00:21:23,100 And I'm going to explain the contest a little later on. 362 00:21:23,200 --> 00:21:26,280 But if you look on the board, the five pins at the top is a programming port. 363 00:21:26,480 --> 00:21:29,320 It's not JTAG for those who have wondered, but I'll get into that a little later. 364 00:21:32,360 --> 00:21:34,740 So the first thing that I needed to do once we had the specs, 365 00:21:34,960 --> 00:21:37,820 put together some breadboards, test out some of the circuitry, 366 00:21:37,840 --> 00:21:40,420 make sure everything's working before I actually started designing a board. 367 00:21:40,580 --> 00:21:43,660 So we went through evaluating different types of LEDs. 368 00:21:43,980 --> 00:21:46,500 I basically just picked up a ton of different LEDs from Digikey, 369 00:21:46,640 --> 00:21:48,140 laid them all out, took some pictures, 370 00:21:48,140 --> 00:21:51,280 and sent them off to DT and Ping so they could tell me which ones they like. 371 00:21:51,900 --> 00:21:55,600 After that, wrote some code for the processor, fine-tuned, tweaked it. 372 00:21:55,740 --> 00:21:58,160 Once it worked the way I wanted, then I ended up working on the board. 373 00:21:58,860 --> 00:22:01,420 So I'm going to skip over some of the basic electronics stuff. 374 00:22:02,300 --> 00:22:03,900 You can ask me about that later if you want. 375 00:22:04,660 --> 00:22:07,920 Here's one picture. This was the LED they liked the best. 376 00:22:09,520 --> 00:22:11,460 Here's another view of what you can see here. 377 00:22:11,560 --> 00:22:15,900 On the right side is the DIP package, the dual inline package 378 00:22:15,900 --> 00:22:20,080 of the microchip PIC processor, which is a little easier to work with. 379 00:22:20,180 --> 00:22:24,040 For prototypes, I just had the button and the LEDs, so easy stuff. 380 00:22:24,300 --> 00:22:27,400 For the code development, some of you guys are more on the software side, 381 00:22:27,480 --> 00:22:28,360 firmware side of things. 382 00:22:28,780 --> 00:22:33,940 I used CCS PCM, which is one of the dozens of compilers available for PIC processors. 383 00:22:34,400 --> 00:22:41,760 I also used MPLAB 7.3 for the IDE, which integrates with CCS PCM pretty well. 384 00:22:42,000 --> 00:22:45,580 But you can also write stuff in assembly and in other versions of C. 385 00:22:46,420 --> 00:22:49,620 So you can grab some development tools off of the microchip website 386 00:22:49,620 --> 00:22:51,680 if you're interested in hacking these. 387 00:22:52,240 --> 00:22:55,460 The state machine is basically a simple state machine, right? 388 00:22:55,560 --> 00:22:58,380 So we either go through the steady, blink, alternating, or random, 389 00:22:58,500 --> 00:22:59,620 and then the next state is sleeping. 390 00:22:59,920 --> 00:23:04,660 So you should be able to last at least the length of DEF CON with the one battery. 391 00:23:04,900 --> 00:23:07,520 Here's a view of an IDE if you guys have never seen an IDE before, 392 00:23:07,720 --> 00:23:09,160 which I find highly unlikely. 393 00:23:11,520 --> 00:23:14,520 Here's the final schematic, something a little nicer that I drew up in Orcad, 394 00:23:14,520 --> 00:23:16,340 which is my schematic capture tool that I use. 395 00:23:17,620 --> 00:23:19,820 It's a lot better to just be able to visualize something nice. 396 00:23:19,960 --> 00:23:22,600 It's basically the same thing as you saw in the hand-drawn sketch. 397 00:23:22,980 --> 00:23:26,520 And this is what I ported over into my printed circuit board program 398 00:23:26,520 --> 00:23:27,480 to make the actual boards. 399 00:23:28,900 --> 00:23:31,500 So if you are interested in hacking this board, take a look, 400 00:23:31,560 --> 00:23:32,740 and you can see everything you need here. 401 00:23:32,820 --> 00:23:36,420 You don't have to start probing stuff out with a multimeter if you don't want to. 402 00:23:39,000 --> 00:23:41,560 In the interest of time, skipping over drawing schematics, 403 00:23:41,760 --> 00:23:43,640 but I should mention if you do want to get into drawing schematics 404 00:23:43,640 --> 00:23:46,580 and don't want to pay $10,000, check out GEDA, 405 00:23:47,000 --> 00:23:50,600 running on Unix platforms for schematic capture for PC board layout. 406 00:23:50,840 --> 00:23:52,520 Pretty cool to get started with that. 407 00:23:55,160 --> 00:23:57,920 The bill of materials was the next thing that we had to come up with. 408 00:23:58,020 --> 00:23:58,880 So we had the circuitry working. 409 00:23:59,160 --> 00:24:04,060 We had to end up designing in parts that we could actually get thousands of pieces of 410 00:24:04,060 --> 00:24:06,900 within a few weeks to be able to send out to the factory. 411 00:24:07,600 --> 00:24:09,320 Again, we had to keep the thing under $5. 412 00:24:10,620 --> 00:24:12,920 DigiKey and Mouser are two good electronics distributors, 413 00:24:12,920 --> 00:24:14,980 so if you guys want to get parts pretty quickly, 414 00:24:15,080 --> 00:24:15,940 they have just about everything. 415 00:24:16,120 --> 00:24:19,620 You don't even have to leave your house, which works out well. 416 00:24:19,920 --> 00:24:23,300 So once we got those parts, we ended up using a company called Future Electronics 417 00:24:23,300 --> 00:24:26,400 to actually take the part numbers we gave them, find second sources, 418 00:24:26,600 --> 00:24:31,300 find cheaper stuff, which would enable us to get down below that $5 unit. 419 00:24:31,540 --> 00:24:38,560 And Future larger distributors are about 30% cheaper than DigiKey 420 00:24:38,560 --> 00:24:40,080 in the online sort of distributors. 421 00:24:40,180 --> 00:24:41,500 So that was pretty cool. 422 00:24:41,500 --> 00:24:45,120 Here's a full bill of materials, which is hard to see from probably in the back, 423 00:24:45,240 --> 00:24:47,140 but I believe this presentation is on the CD. 424 00:24:48,200 --> 00:24:51,560 All the parts break down and costs and everything. 425 00:24:52,160 --> 00:24:52,760 PC board design. 426 00:24:53,300 --> 00:24:56,740 Again, I'm going to skip this stuff, but let's see. 427 00:24:56,820 --> 00:24:57,940 Make Magazine, issue two. 428 00:24:58,200 --> 00:25:02,700 Make is a sort of new do-it-yourself magazine by O'Reilly Publishing. 429 00:25:02,840 --> 00:25:05,680 They have a really good article on etching your own printed circuit boards. 430 00:25:05,760 --> 00:25:08,220 You can buy some equipment at Radio Shack if you do want to etch your own. 431 00:25:08,320 --> 00:25:11,480 You're not going to get precision like you do with an actual professional fan. 432 00:25:11,480 --> 00:25:12,880 It's a fabrication, but it's a great way to start. 433 00:25:13,500 --> 00:25:14,560 So I will mention that. 434 00:25:20,620 --> 00:25:22,260 I'm going to skip all this boring stuff. 435 00:25:22,580 --> 00:25:22,740 All right. 436 00:25:23,360 --> 00:25:24,540 So printed circuit board design. 437 00:25:24,740 --> 00:25:27,040 Basically, create the schematic, which I did. 438 00:25:27,440 --> 00:25:31,420 Output a netlist, which is basically a text description of how every component 439 00:25:31,420 --> 00:25:32,580 connects to every other component. 440 00:25:32,780 --> 00:25:36,040 So it's going to say U1 pin 1, which would be the microprocessor, 441 00:25:36,100 --> 00:25:37,660 is connected to R1 pin 2. 442 00:25:38,200 --> 00:25:39,160 Just all text. 443 00:25:39,920 --> 00:25:41,460 Import that into a PC board design. 444 00:25:41,480 --> 00:25:45,480 In my case, I used Protel DXP, which is a fairly expensive package, 445 00:25:45,620 --> 00:25:48,300 but I design boards for a living, so it was sort of worth the money. 446 00:25:49,280 --> 00:25:52,220 Create the printed circuit board, which is easier said than done. 447 00:25:53,240 --> 00:25:54,220 Output the Gerber plots. 448 00:25:54,360 --> 00:25:57,620 And Gerber plots are basically a binary or text vector description 449 00:25:57,620 --> 00:26:01,180 of how the board is actually laid out, where you can send Gerber files. 450 00:26:01,340 --> 00:26:03,640 It's an industry standard thing, so you can send it to any board house 451 00:26:03,640 --> 00:26:06,040 just about anywhere in the world, and they can make your boards. 452 00:26:08,420 --> 00:26:09,820 So designing the actual PCB. 453 00:26:10,180 --> 00:26:11,420 Here's the process that I used. 454 00:26:11,560 --> 00:26:14,940 I had to verify the size, make sure that this thing wasn't going to look huge 455 00:26:14,940 --> 00:26:16,300 when somebody's walking around with it. 456 00:26:17,520 --> 00:26:20,100 Created the mechanical outline, the physical outline of the board. 457 00:26:20,620 --> 00:26:22,160 Added the logos, which I talked about. 458 00:26:22,460 --> 00:26:24,160 Placing the components in the right locations. 459 00:26:24,300 --> 00:26:26,520 I wanted them to sort of be in one general area. 460 00:26:27,240 --> 00:26:28,140 Import the netlist. 461 00:26:28,580 --> 00:26:29,320 Route the board. 462 00:26:29,580 --> 00:26:31,640 I wanted to keep all the traces on the bottom side, 463 00:26:31,720 --> 00:26:34,420 so if you look on the top side, there's no actual electronics at all. 464 00:26:34,980 --> 00:26:35,880 Everything's on the back side. 465 00:26:35,960 --> 00:26:38,340 All the connections are on the back, so it sort of looks nice from the front. 466 00:26:39,220 --> 00:26:40,720 Run some tests, output the plots. 467 00:26:41,060 --> 00:26:43,280 Send everything to a company called E-TechNet, 468 00:26:43,360 --> 00:26:44,920 which is actually exhibiting in the other room, 469 00:26:45,020 --> 00:26:46,940 and I'm going to talk about them a little bit. 470 00:26:48,400 --> 00:26:50,900 Work with those guys to make sure that these things were actually built right. 471 00:26:52,660 --> 00:26:55,900 So here's a screenshot of the actual circuit board layout program, 472 00:26:56,040 --> 00:26:57,680 where I'm doing the mechanical design first, 473 00:26:57,860 --> 00:27:00,240 laying out the shape, and then I can start adding components. 474 00:27:00,600 --> 00:27:02,860 And the hardest part, again, was to mention these cutouts 475 00:27:02,860 --> 00:27:05,260 and make sure that the cutouts were actually being cut out properly 476 00:27:05,260 --> 00:27:06,800 and that they actually looked nice and everything. 477 00:27:07,840 --> 00:27:09,160 Working on the top layer. 478 00:27:11,440 --> 00:27:12,260 The bottom layer. 479 00:27:12,480 --> 00:27:13,940 And you see here, the bottom layer is in reverse, 480 00:27:14,140 --> 00:27:15,760 because with most PC board design programs, 481 00:27:15,900 --> 00:27:18,340 you're looking at the bottom layer through the top layer. 482 00:27:18,580 --> 00:27:20,920 So you're sort of always kind of looking at it upside down. 483 00:27:21,620 --> 00:27:24,500 So if you end up working on boards, make sure you reverse your text 484 00:27:24,500 --> 00:27:27,360 so you don't get boards back with all the text the wrong direction. 485 00:27:30,080 --> 00:27:32,580 Do a little mock-up, making sure everything worked out right 486 00:27:32,580 --> 00:27:34,160 before I ordered a prototype. 487 00:27:34,540 --> 00:27:35,620 And prototype boards, 488 00:27:35,620 --> 00:27:37,500 what's cool about making your own boards right now 489 00:27:37,500 --> 00:27:40,180 is you can get boards done for maybe even $20 490 00:27:40,180 --> 00:27:42,240 for a single one-off printed circuit board. 491 00:27:42,400 --> 00:27:45,480 So it's gotten to the point where pretty much anybody can go order 492 00:27:45,480 --> 00:27:46,180 printed circuit boards. 493 00:27:46,260 --> 00:27:49,160 Either collecting cans to get the money or work a few hours. 494 00:27:49,460 --> 00:27:51,560 It's not a few hundred dollars like it used to be. 495 00:27:52,120 --> 00:27:55,720 So what I first did is ordered a few bare boards from eTechNet. 496 00:27:55,800 --> 00:27:57,000 Make sure the board layout was good. 497 00:27:57,100 --> 00:27:59,280 Make sure the cutouts were right. 498 00:27:59,720 --> 00:28:00,660 Hand-assembled those. 499 00:28:02,400 --> 00:28:05,540 Sent those off to DT and Ping for the final sign-off. 500 00:28:05,620 --> 00:28:06,920 Which I assume they liked. 501 00:28:08,220 --> 00:28:09,660 Ended up doing some current measurements. 502 00:28:09,840 --> 00:28:11,120 So I wanted to just verify the electronics. 503 00:28:11,740 --> 00:28:14,660 One of the limitations, or at least one of the requirements, 504 00:28:14,860 --> 00:28:16,460 is we needed to make sure that the battery would last 505 00:28:16,460 --> 00:28:18,000 at least throughout the length of the conference 506 00:28:18,000 --> 00:28:20,420 if somebody got drunk and forgot to turn it off. 507 00:28:21,300 --> 00:28:22,880 So we're well within that range. 508 00:28:23,280 --> 00:28:25,280 And here's all the different current measurements 509 00:28:25,280 --> 00:28:27,560 based on the different functions. 510 00:28:27,740 --> 00:28:29,460 So current consumption is going to change 511 00:28:29,460 --> 00:28:31,320 whether you have both LEDs on all the time, 512 00:28:31,400 --> 00:28:32,800 which draws the maximum amount of current. 513 00:28:33,160 --> 00:28:35,420 Or if you have the blink, 514 00:28:35,420 --> 00:28:36,200 if you're blinking or alternating, 515 00:28:36,440 --> 00:28:37,140 it's a little bit less. 516 00:28:37,360 --> 00:28:40,740 And the numbers in red are the actual current values 517 00:28:40,740 --> 00:28:42,280 for this thing with the two blue LEDs. 518 00:28:44,740 --> 00:28:45,800 So with some calculations, 519 00:28:46,060 --> 00:28:47,720 it turns out in the random mode, 520 00:28:47,840 --> 00:28:49,220 these things will last about 10 days, 521 00:28:49,400 --> 00:28:50,700 10 and a half days, ideally. 522 00:28:51,220 --> 00:28:52,340 Sometimes you might get more, 523 00:28:52,420 --> 00:28:53,400 sometimes you might get less. 524 00:28:54,500 --> 00:28:56,720 If it's steady on, just the two LEDs on, 525 00:28:56,840 --> 00:28:59,320 4.6 days, so still longer than DEF CON, 526 00:28:59,440 --> 00:28:59,960 which would be okay. 527 00:29:00,160 --> 00:29:01,340 Luckily the batteries are cheap, 528 00:29:01,340 --> 00:29:03,460 so if they do run out, you go buy another one for a dollar. 529 00:29:07,920 --> 00:29:09,560 I really just wanted to put this in 530 00:29:09,560 --> 00:29:11,100 because I'm proud of the Big Mac hat 531 00:29:11,100 --> 00:29:12,220 that I found at a flea market. 532 00:29:15,060 --> 00:29:16,660 So this was actually the first time 533 00:29:16,660 --> 00:29:17,460 we got the board working, 534 00:29:17,580 --> 00:29:18,540 and I was pretty stoked. 535 00:29:20,260 --> 00:29:22,080 So finding the parts ended up being 536 00:29:22,080 --> 00:29:23,220 the hardest part of this process. 537 00:29:23,580 --> 00:29:25,420 Designing the board was, you know, 538 00:29:25,420 --> 00:29:26,460 it's a pretty simple design, 539 00:29:26,580 --> 00:29:27,660 but it did have its challenges. 540 00:29:27,660 --> 00:29:30,400 But getting enough parts to make sure 541 00:29:30,400 --> 00:29:32,040 that 6,000 badges could be built 542 00:29:32,040 --> 00:29:33,000 was not an easy task. 543 00:29:34,600 --> 00:29:35,700 If we didn't get the parts, 544 00:29:35,740 --> 00:29:36,560 we wouldn't have the badges, 545 00:29:36,600 --> 00:29:37,880 and I would have looked really bad, 546 00:29:38,040 --> 00:29:40,520 and Jeff would probably not talk to me again. 547 00:29:41,360 --> 00:29:42,600 So again, you know, I mentioned 548 00:29:42,600 --> 00:29:43,800 that we used Future Electronics, 549 00:29:44,200 --> 00:29:46,660 which is good because their prices are really cheap 550 00:29:46,660 --> 00:29:47,920 because they have good vendor contacts, 551 00:29:48,140 --> 00:29:49,340 but it's bad, as you'll see, 552 00:29:49,400 --> 00:29:50,820 because we ran into a lot of problems. 553 00:29:51,440 --> 00:29:52,780 And then I also used DigiKey, 554 00:29:52,860 --> 00:29:56,800 which has a service now that they can actually program parts for you. 555 00:29:56,800 --> 00:29:58,040 So if you don't have a device programmer, 556 00:29:58,700 --> 00:30:01,280 or if you don't want to program 6,000 parts by hand, 557 00:30:01,520 --> 00:30:03,520 you basically send DigiKey the program code, 558 00:30:03,640 --> 00:30:05,340 the firmware that you want to program into a device, 559 00:30:05,600 --> 00:30:08,140 they'll program it for you for a little bit of setup charge, 560 00:30:08,780 --> 00:30:10,120 and send it right back to you. 561 00:30:10,160 --> 00:30:12,240 I think they charged me 25 cents a piece 562 00:30:12,740 --> 00:30:15,240 to program the microchip pick parts. 563 00:30:16,080 --> 00:30:17,140 So it's a pretty good deal. 564 00:30:17,800 --> 00:30:19,820 Some of the issues that I had with Future Electronics, 565 00:30:20,880 --> 00:30:22,120 some misquoted lead times. 566 00:30:22,220 --> 00:30:24,560 So we built in a lot of extra time for this project 567 00:30:24,560 --> 00:30:26,520 to make sure that we were going to have everything 568 00:30:26,520 --> 00:30:26,720 ready. 569 00:30:27,740 --> 00:30:32,200 So I ordered parts probably 12 weeks before we actually needed them. 570 00:30:32,540 --> 00:30:35,600 It turns out that one of the sales guys I was working with 571 00:30:35,600 --> 00:30:36,180 at Future said, 572 00:30:36,280 --> 00:30:37,180 oh yeah, they'll be here in three weeks. 573 00:30:37,460 --> 00:30:39,180 They didn't arrive until after six weeks, 574 00:30:39,260 --> 00:30:40,180 and by then the factory's like, 575 00:30:40,260 --> 00:30:42,020 all right, we've got to get going on building these boards. 576 00:30:42,540 --> 00:30:43,560 A little bit frustrating. 577 00:30:43,840 --> 00:30:44,560 Lost parts. 578 00:30:44,660 --> 00:30:46,880 Out of 12,000 LEDs that we ordered, 579 00:30:48,200 --> 00:30:50,080 somehow only 500 of them were shipped, 580 00:30:50,120 --> 00:30:50,840 and the others were lost. 581 00:30:52,040 --> 00:30:54,560 I don't know how you lose 12,000 LEDs, 582 00:30:54,660 --> 00:30:55,720 or 11,000 LEDs, 583 00:30:56,520 --> 00:30:57,260 but that's a lot of boxes. 584 00:31:00,180 --> 00:31:00,900 Slow shipping. 585 00:31:01,720 --> 00:31:02,840 Basically, I'd tell the guy, 586 00:31:02,920 --> 00:31:03,720 I need this stuff soon. 587 00:31:03,860 --> 00:31:05,000 Ship it directly to the factory, 588 00:31:05,140 --> 00:31:06,100 and of course he doesn't do it. 589 00:31:06,120 --> 00:31:07,500 Ships it by ground to the wrong address. 590 00:31:08,060 --> 00:31:10,560 So luckily, sort of a little too late, 591 00:31:10,600 --> 00:31:12,040 though I was upgraded to a sales contact 592 00:31:12,040 --> 00:31:13,960 that actually knows what she was doing. 593 00:31:14,140 --> 00:31:16,880 So Future isn't necessarily all bad. 594 00:31:17,100 --> 00:31:17,780 Just beware. 595 00:31:17,920 --> 00:31:19,880 I just wanted to mention this because this is part 596 00:31:19,880 --> 00:31:21,040 of the product development process, 597 00:31:21,180 --> 00:31:22,880 and you run into issues like this all the time. 598 00:31:23,420 --> 00:31:24,500 But luckily they were resolved. 599 00:31:24,680 --> 00:31:25,320 We got the badges, 600 00:31:25,320 --> 00:31:26,720 and all of them were actually made. 601 00:31:26,920 --> 00:31:30,960 An interesting thing is out of all of the 6,055 602 00:31:30,960 --> 00:31:33,360 that were produced, built by hand, 603 00:31:33,460 --> 00:31:35,000 again in a factory in China, 604 00:31:35,260 --> 00:31:38,100 only 34 of them didn't work the first time 605 00:31:38,100 --> 00:31:39,720 through the line, which is pretty impressive. 606 00:31:39,880 --> 00:31:43,160 I think that's what, like a half percent yield 607 00:31:43,160 --> 00:31:44,760 or half percent failure, which is pretty good. 608 00:31:45,760 --> 00:31:47,420 Here's the sheet, and this is sort of the hell 609 00:31:47,420 --> 00:31:48,840 I had to go through for a few weeks 610 00:31:48,840 --> 00:31:51,120 of keeping track of what part went where 611 00:31:51,120 --> 00:31:51,920 and who had what. 612 00:31:53,660 --> 00:31:54,480 Sort of a nightmare. 613 00:31:55,320 --> 00:31:57,820 So again, placed the order, got all the parts, 614 00:31:58,300 --> 00:32:00,420 sent everything over to eTechNet, worked with them. 615 00:32:01,400 --> 00:32:03,160 They actually had sent me a first article, 616 00:32:03,260 --> 00:32:07,160 which is one of each color board, 617 00:32:07,320 --> 00:32:09,420 the first board that they built and manufactured. 618 00:32:09,620 --> 00:32:10,280 They sent those to me. 619 00:32:10,320 --> 00:32:11,360 I could say, okay, this is perfect. 620 00:32:11,880 --> 00:32:13,280 Pulled the trigger on the entire board. 621 00:32:13,380 --> 00:32:15,480 So that's what we did after the first article was approved, 622 00:32:16,360 --> 00:32:18,140 and the rest of the boards were being made. 623 00:32:19,520 --> 00:32:21,320 Choosing the colors was sort of fun because we knew 624 00:32:21,320 --> 00:32:22,920 that we needed to have different color badges. 625 00:32:23,000 --> 00:32:24,320 Of course, the goons are always red. 626 00:32:26,280 --> 00:32:27,400 VIPs typically are black. 627 00:32:27,580 --> 00:32:28,940 So we wanted to do some fun stuff here. 628 00:32:29,680 --> 00:32:31,420 So we were experimenting with a lot of colors. 629 00:32:31,540 --> 00:32:32,780 And typically, if you look at circuit boards, 630 00:32:32,900 --> 00:32:33,720 you usually see green. 631 00:32:34,280 --> 00:32:36,640 Well, green is sort of boring, unless you're press. 632 00:32:36,800 --> 00:32:37,420 Press gets green. 633 00:32:38,900 --> 00:32:41,900 So whether that means anything or not, I'm not sure. 634 00:32:42,860 --> 00:32:45,720 But we wanted to experiment with just whatever other colors 635 00:32:45,720 --> 00:32:46,880 were available for solder masking. 636 00:32:46,940 --> 00:32:49,560 A lot of the other colors are difficult to work with 637 00:32:49,560 --> 00:32:50,720 during the PC board process 638 00:32:51,180 --> 00:32:53,360 as far as the temperature requirements, 639 00:32:53,600 --> 00:32:55,200 storage requirements, the way they dry, 640 00:32:56,060 --> 00:32:58,640 so we basically just talked to the factory and said, 641 00:32:58,700 --> 00:33:00,840 give us every single possible color that you have. 642 00:33:01,000 --> 00:33:02,740 And then we ended up picking the ones that we liked. 643 00:33:02,860 --> 00:33:05,140 So here's some pictures of the gold and white and black 644 00:33:05,140 --> 00:33:08,420 and a few of the samples that the factory sent. 645 00:33:08,520 --> 00:33:09,760 They didn't even cut them out of the board. 646 00:33:09,860 --> 00:33:12,120 They just lathered the solder mask on top, 647 00:33:12,180 --> 00:33:14,360 basically like silk screening a solder mask 648 00:33:14,360 --> 00:33:15,660 right on top of the board. 649 00:33:15,760 --> 00:33:17,340 And that solder mask, by the way, protects 650 00:33:17,340 --> 00:33:19,620 all of the traces on the board. 651 00:33:19,740 --> 00:33:21,960 So if you try to scratch off a trace, it's not going to work. 652 00:33:22,040 --> 00:33:23,580 The solder mask is just a protective layer. 653 00:33:23,580 --> 00:33:25,540 But we use it to look cool. 654 00:33:26,940 --> 00:33:28,840 Here's what we ended up with for the final colors. 655 00:33:29,540 --> 00:33:30,480 How many did we have? 656 00:33:30,640 --> 00:33:32,360 One, two, three, four, five, six, seven. 657 00:33:32,640 --> 00:33:34,780 Seven. Humans obviously are white. 658 00:33:34,820 --> 00:33:36,680 We had 5,185 of these. 659 00:33:36,880 --> 00:33:38,260 So actually here, this is a good list 660 00:33:38,260 --> 00:33:40,380 so you can see how rare your badge is. 661 00:33:41,320 --> 00:33:43,060 The goons were red. Press is green. 662 00:33:44,080 --> 00:33:44,900 Speakers were blue. 663 00:33:45,660 --> 00:33:47,120 Vendors are purple. VIP black. 664 00:33:47,380 --> 00:33:48,860 And then I made one panel 665 00:33:48,860 --> 00:33:50,600 of circuit boards in gold 666 00:33:50,600 --> 00:33:52,460 because I'd always wanted to work with gold. 667 00:33:52,460 --> 00:33:54,180 Hey, someone's actually calling me. 668 00:33:54,980 --> 00:33:56,360 That's really weird. It's Space Rogue. 669 00:33:56,740 --> 00:33:57,860 You can't get enough of me. 670 00:33:58,220 --> 00:33:59,200 I guess I'll turn it off. 671 00:34:00,740 --> 00:34:02,320 Or maybe we should talk to him. It's funny. 672 00:34:02,400 --> 00:34:03,660 No one ever calls me on this phone. 673 00:34:04,140 --> 00:34:05,580 There's my phone. It's old. 674 00:34:08,000 --> 00:34:09,620 So, yeah, I made 20 of gold 675 00:34:09,620 --> 00:34:11,340 because it was sort of a color that I'd never seen 676 00:34:11,340 --> 00:34:13,320 in printed circuit board manufacturing before. 677 00:34:13,960 --> 00:34:15,780 And the factory was like, yeah, we can do gold. 678 00:34:15,920 --> 00:34:17,500 So of course it took them a few weeks 679 00:34:17,500 --> 00:34:20,040 to actually find the gold and experiment with it 680 00:34:20,040 --> 00:34:21,840 because they'd actually never worked with it 681 00:34:21,840 --> 00:34:22,480 as far as I know. 682 00:34:22,860 --> 00:34:25,140 So the gold here, there's 20 of them made. 683 00:34:25,220 --> 00:34:27,720 I'm wearing one and I think Dark Tangent and Ping 684 00:34:27,720 --> 00:34:28,560 have the other somewhere. 685 00:34:29,800 --> 00:34:31,080 No, I don't have any extras. 686 00:34:31,320 --> 00:34:32,540 This is the only one I do have. 687 00:34:33,100 --> 00:34:34,060 But I thought it was cool. 688 00:34:35,680 --> 00:34:37,540 I don't know if it actually gets me in anywhere, 689 00:34:37,700 --> 00:34:38,880 but I thought it was neat. 690 00:34:39,560 --> 00:34:42,820 So one other thing as part of the assembly process, 691 00:34:43,380 --> 00:34:45,340 I needed to create a parts placement diagram 692 00:34:45,340 --> 00:34:46,320 to send to the factory 693 00:34:46,680 --> 00:34:48,460 so somebody who has completely no idea 694 00:34:48,460 --> 00:34:50,380 about the board at all can still assemble it. 695 00:34:50,380 --> 00:34:52,700 This is the top drawing of the parts placement. 696 00:34:52,920 --> 00:34:55,000 Of course, we have the two LEDs, so that's all there is. 697 00:34:56,060 --> 00:34:57,820 Bottom parts placement just shows the parts 698 00:34:57,820 --> 00:35:00,920 with actually part designators that match up to the schematic. 699 00:35:01,420 --> 00:35:02,760 So on this, you can't really see, 700 00:35:02,860 --> 00:35:04,780 but U1 is the microprocessor 701 00:35:04,780 --> 00:35:07,800 and then I have R1, C1, R2. 702 00:35:08,860 --> 00:35:10,300 That's so somebody can visually look 703 00:35:10,300 --> 00:35:11,220 and see what the parts are. 704 00:35:11,280 --> 00:35:12,100 If you look on our board, 705 00:35:12,220 --> 00:35:13,720 we don't have that information printed. 706 00:35:14,140 --> 00:35:16,300 That was because I think it sort of looks ugly. 707 00:35:17,040 --> 00:35:19,420 It also, you might see this sometimes in products 708 00:35:19,420 --> 00:35:22,140 so people are hoping that hackers 709 00:35:22,140 --> 00:35:23,900 won't actually be able to reverse engineer their products 710 00:35:23,900 --> 00:35:25,280 by not having part designators. 711 00:35:25,440 --> 00:35:28,440 But in this case, it just looked bad with having them on there. 712 00:35:28,540 --> 00:35:30,480 But we at least had to specify those parts 713 00:35:30,480 --> 00:35:32,220 so whoever was building this knew what they were doing. 714 00:35:32,900 --> 00:35:34,300 And then, of course, the test procedure. 715 00:35:34,540 --> 00:35:36,620 I didn't want these boards coming all the way from China 716 00:35:36,620 --> 00:35:39,980 and not working, especially with 6,000 people. 717 00:35:40,580 --> 00:35:41,760 So that was a little bit stressful. 718 00:35:42,060 --> 00:35:43,720 The hard part about doing test procedures 719 00:35:43,720 --> 00:35:46,420 is making sure that the factory is actually testing the boards. 720 00:35:47,400 --> 00:35:48,680 I've heard a lot of horror stories 721 00:35:48,680 --> 00:35:50,680 about companies having a test procedure 722 00:35:50,680 --> 00:35:52,100 hanging up on the wall in the factory 723 00:35:52,490 --> 00:35:55,480 and then getting boards with, like, no chips actually soldered on them. 724 00:35:55,840 --> 00:35:57,460 So, and that's happened. 725 00:35:58,080 --> 00:36:00,320 So the test procedure is basically insert the battery, 726 00:36:00,420 --> 00:36:02,060 hit the button, go through all of these things. 727 00:36:02,200 --> 00:36:04,840 And I included a little video that I sent to the factory 728 00:36:04,840 --> 00:36:07,000 so they'd be able to understand exactly what was going on. 729 00:36:08,420 --> 00:36:11,040 Here's the front of the first article approval 730 00:36:11,040 --> 00:36:13,400 when they all came in to me, all the different flavors. 731 00:36:15,120 --> 00:36:15,980 And the back. 732 00:36:18,680 --> 00:36:19,820 It might be cool if you can actually, like, 733 00:36:19,840 --> 00:36:21,540 trade your badge with other people or something. 734 00:36:23,500 --> 00:36:26,800 OK, badge hacking contest, what I'm actually up here to talk about. 735 00:36:28,460 --> 00:36:31,620 Basically, we decided since this thing was electronics and it was sort of fun 736 00:36:31,620 --> 00:36:33,900 and people might be interested in poking around on it, 737 00:36:34,720 --> 00:36:37,180 we decided to have a little DEF CON badge hacking contest. 738 00:36:37,460 --> 00:36:38,360 What can you guys do? 739 00:36:38,520 --> 00:36:41,500 What sort of interesting things can you modify to the board? 740 00:36:43,200 --> 00:36:46,720 Basically, the coolest thing that we decide if, you know, whether it's whatever, 741 00:36:46,720 --> 00:36:53,080 anything goes and we're going to award something at the award ceremony on Sunday. 742 00:36:53,240 --> 00:36:56,920 What I'm going to say is I need to, I guess, 743 00:36:56,960 --> 00:37:01,620 have a decision on which board to give an award for before that time. 744 00:37:01,980 --> 00:37:04,360 So if you are interested in hacking your board, 745 00:37:04,580 --> 00:37:09,420 I'll be at the contest area at 12 o'clock on Sunday and bring your hack there 746 00:37:09,420 --> 00:37:11,620 and show it to me and if you guys don't mind, 747 00:37:11,680 --> 00:37:13,840 I want to show a few at the award ceremony so we can, like, 748 00:37:13,840 --> 00:37:15,200 show what kind of cool stuff's been done. 749 00:37:16,400 --> 00:37:17,400 Microchip development tools. 750 00:37:17,520 --> 00:37:19,480 So if you do want to take advantage of those five pins, 751 00:37:19,640 --> 00:37:23,900 the microchip in-circuit debugger pin out is right there for you. 752 00:37:23,900 --> 00:37:25,940 If you look on the schematic, you'll be able to see what those actually, 753 00:37:26,000 --> 00:37:27,380 what those connections actually are. 754 00:37:28,520 --> 00:37:30,320 We're going to have one development kit available. 755 00:37:30,620 --> 00:37:32,280 I'm going to leave it at the eTechNet booth. 756 00:37:32,500 --> 00:37:34,560 You're going to still have to install some software and everything, 757 00:37:34,700 --> 00:37:35,760 but I'll leave that at eTechNet. 758 00:37:35,940 --> 00:37:40,000 And there's a few others for sale in the store pretty much at cost. 759 00:37:40,880 --> 00:37:44,340 And you'll need the actual ICD2 debugger unit. 760 00:37:44,340 --> 00:37:45,780 And then you're going to need an adapter, 761 00:37:46,100 --> 00:37:48,140 which is the smaller box that comes with the kit, 762 00:37:48,240 --> 00:37:50,040 to work with the PIC10F device. 763 00:37:50,920 --> 00:37:52,020 So it is sort of fun. 764 00:37:53,620 --> 00:37:55,280 Yeah, that's what's on sale at main DEF CON. 765 00:37:55,360 --> 00:37:56,500 There's only four of those there. 766 00:37:56,680 --> 00:37:58,300 I think it's, like, 350 bucks. 767 00:37:59,240 --> 00:38:01,540 I know all of you guys have that much cash in your pocket. 768 00:38:02,360 --> 00:38:03,960 Maybe they take credit cards. I don't know. 769 00:38:04,100 --> 00:38:04,800 But it is fun. 770 00:38:04,900 --> 00:38:06,560 And the good thing about those development tools is 771 00:38:06,560 --> 00:38:10,060 it works on any microchip device that's out there pretty much. 772 00:38:10,180 --> 00:38:13,320 So if you are interested in doing some hobbyist electronics 773 00:38:13,320 --> 00:38:16,640 and designing products, you'll be able to reuse it 774 00:38:16,640 --> 00:38:18,840 and not just hack the badge and then be done. 775 00:38:19,020 --> 00:38:21,540 And I think one of the awards of the hacking contest for the badge 776 00:38:21,540 --> 00:38:23,560 is we're going to give away one of those development kits. 777 00:38:28,640 --> 00:38:30,780 Which I guess by then you might already have one. 778 00:38:31,460 --> 00:38:34,120 But actually, so I sort of wanted to show you guys mine 779 00:38:34,120 --> 00:38:38,300 and what I did to my hack just because we have time. 780 00:38:39,120 --> 00:38:40,800 I call this, like, the squirting flower. 781 00:38:43,240 --> 00:38:45,440 And, you know, I figure people are going to expect me 782 00:38:45,440 --> 00:38:47,020 to do, like, some sort of electronics thing, 783 00:38:47,100 --> 00:38:48,780 but instead I just, you know, have it squirt. 784 00:38:49,580 --> 00:38:51,220 So, except when it leaks in your pocket. 785 00:38:51,300 --> 00:38:51,900 That doesn't really work. 786 00:38:52,660 --> 00:38:53,120 What's that? 787 00:38:54,480 --> 00:38:57,280 Yeah, I know, emulating the water without the development kit was pretty hard. 788 00:38:58,820 --> 00:39:00,600 But you can get creative. 789 00:39:01,800 --> 00:39:03,520 So I guess that's it. 790 00:39:03,660 --> 00:39:04,820 Thanks a lot. Enjoy the show. 791 00:39:04,960 --> 00:39:06,840 And come find me if you have questions. 792 00:39:13,320 --> 00:39:15,280 Thank you.