1 00:00:00,000 --> 00:00:03,280 Hey, thank you for coming to the badge talk this year. 2 00:00:04,560 --> 00:00:13,680 We've got the designers and the creators and somebody who's leaving who was also somewhat tangentially involved. 3 00:00:14,960 --> 00:00:26,900 And so it's my privilege to introduce Mar Williams, the principal conceptualist designer and the team she assembled to make this happen. 4 00:00:26,900 --> 00:00:35,880 We've got all these incredible slides and some stories to tell you about the thinking behind the badge, how we try to involve community in it, the outcome. 5 00:00:36,660 --> 00:00:44,540 We have one of our partners, you might have noticed in the program, Raspberry Pi has launched and announced a new chip that was involved. 6 00:00:44,540 --> 00:00:47,480 So we get to hear from them and their new hardware. 7 00:00:48,080 --> 00:00:50,840 And so I hope you enjoy it. 8 00:00:50,920 --> 00:00:51,820 Thank you very much. 9 00:00:51,820 --> 00:00:52,700 Take it away, Mar. 10 00:01:00,010 --> 00:01:01,130 All right. 11 00:01:01,130 --> 00:01:02,230 Hi, guys. 12 00:01:04,650 --> 00:01:05,370 All right. 13 00:01:05,370 --> 00:01:06,890 How do I go forward here? 14 00:01:07,270 --> 00:01:08,310 There we go. 15 00:01:08,310 --> 00:01:08,630 Okay. 16 00:01:08,630 --> 00:01:08,890 Hi. 17 00:01:08,890 --> 00:01:09,990 I'm Mar Williams. 18 00:01:09,990 --> 00:01:15,250 I did the concept design and coordination of the badge project this year. 19 00:01:15,550 --> 00:01:17,490 You can see my art around con. 20 00:01:17,490 --> 00:01:21,170 My first art for DEF CON was DC 17. 21 00:01:21,470 --> 00:01:27,520 I've shared two hacker spaces and run a collective art space in Denver called Cabal Gallery. 22 00:01:27,980 --> 00:01:33,280 Last year's badges, the DC 31 badges, were a non-electronic year. 23 00:01:33,680 --> 00:01:44,380 We had some manufacturing issues and I just wanted you guys to know that if you have your last year's paper badge, replacement badge, you can go trade it in at one of the info booths. 24 00:01:44,380 --> 00:01:49,460 There's the big one under the main screen and get the ones that came in after the con. 25 00:01:50,220 --> 00:01:50,900 Okay. 26 00:01:50,900 --> 00:01:53,300 And you can find me in the vendor area afterwards. 27 00:01:53,560 --> 00:01:58,040 I want to introduce the team Cat Ball is what we're calling ourselves. 28 00:01:58,580 --> 00:02:01,060 Bonnie Finley up here on stage. 29 00:02:01,360 --> 00:02:11,620 She did the 3D modeling for the case and did all the heavy lifting on creating the game in GB studio. 30 00:02:13,720 --> 00:02:17,080 In, like, a crazy short amount of time, by the way. 31 00:02:17,560 --> 00:02:18,060 And I'm going to show you the artwork . 32 00:02:18,540 --> 00:02:21,500 All the art in the game is also hers. 33 00:02:23,460 --> 00:02:28,680 Dimitri, who was on the stage just a moment ago, did the firmware and emulator. 34 00:02:28,720 --> 00:02:31,180 And we have some slides for him that we'll show in a minute. 35 00:02:31,700 --> 00:02:41,240 Chris who actually created GB studio, which is completely open source drag and drop environment for creating your own Game Boy games. 36 00:02:41,520 --> 00:02:46,680 He helped us with some plug-ins that are badge specific that work with, like, the IR. 37 00:02:47,960 --> 00:02:52,220 And he also created, like, the character creator that you see on your game. 38 00:02:53,120 --> 00:03:04,140 Will Tuttle, who is out there in the audience somewhere, helped a ton back and forth with concept and narrative collab so that we had a really cool story to tell on the badge. 39 00:03:05,540 --> 00:03:09,900 Ada, who is right here, made a super cool dragon. 40 00:03:10,760 --> 00:03:11,440 Yeah. 41 00:03:11,440 --> 00:03:15,540 So if you choose the dragon, you are playing Ada's art. 42 00:03:17,220 --> 00:03:18,000 Okay. 43 00:03:18,000 --> 00:03:24,860 And then Raspberry Pi is Raspberry Pi and we love them and they're going to talk here in a minute. 44 00:03:28,160 --> 00:03:34,160 And Tropic Engineering was the hardware contractor and you can see their logo on the back of the badge here. 45 00:03:34,560 --> 00:03:40,980 Joe Grand, who came in sort of last minute and then did his magic ninja work. 46 00:03:41,320 --> 00:03:43,820 So he'll talk more later. 47 00:03:43,920 --> 00:03:45,340 Legion 303. 48 00:03:45,340 --> 00:03:49,180 So he put together music and sounds for the badge. 49 00:03:49,180 --> 00:03:53,880 They don't play within the game, unfortunately, but I've included them on the SD cards. 50 00:03:53,880 --> 00:04:03,440 So if you want to hear the bleeps and bloops and renditions of MC Frontalot and Dual Core, you can check those out later. 51 00:04:04,100 --> 00:04:04,480 Okay. 52 00:04:04,480 --> 00:04:06,800 And ICSN as our manufacturing partner. 53 00:04:10,020 --> 00:04:11,280 All right. 54 00:04:11,440 --> 00:04:11,880 Okay. 55 00:04:11,880 --> 00:04:16,980 So this is just an early concept on the left here of what I wanted to do. 56 00:04:16,980 --> 00:04:24,680 I wanted to use an orientation sensor so that when you're wearing the badge, your little character is representative of you. 57 00:04:24,680 --> 00:04:35,860 And we didn't get quite that far, but you can choose one of the characters in the game and if you flip it, after like a minute, it will pop up on your screen and you can have your little dragon or cat or whatever. 58 00:04:36,640 --> 00:04:50,060 There's LEDs that you can change the color of in the game and I see a ton of you out there wearing your expression on your badge and I love that and that was kind of part of the concept is to let you guys be as expressive as you could. 59 00:04:51,980 --> 00:04:52,780 Okay. 60 00:04:54,960 --> 00:04:58,940 So you have your wearable character and your color changes. 61 00:04:59,540 --> 00:05:20,000 Accessibility was a huge deal for me because when I got involved with all this with like the rise of hacker spaces like 2008, something like that, that's when things like this started coming on the scene where it was like people like me who I'm an artist and not like a hardcore hardware engineer or anything could get involved and create something. 62 00:05:20,380 --> 00:05:24,360 And so I wanted other people to be able to take this home and do something really rad. 63 00:05:24,360 --> 00:05:31,220 So I went and tried to find Raspberry Pi and luckily they wanted to work with us so here's where we are. 64 00:05:32,380 --> 00:05:39,060 SAOs are supported and I noticed that a bunch of you are wearing your SAOs and they're super cool and I hope to see more of them. 65 00:05:40,240 --> 00:05:46,780 You can load up your own ROMs onto the game so you can play whatever game you want on here if you really want. 66 00:05:47,660 --> 00:05:52,680 And if you want to make your own game, you can go use GBStudio and make one in a hurry. 67 00:05:53,380 --> 00:05:58,160 If you want to create your own firmware, you can use the RP 2350 SDK. 68 00:06:07,930 --> 00:06:13,210 So we ran into some challenges as you saw at the beginning of the talk here. 69 00:06:14,410 --> 00:06:23,130 Our hardware contractor left us out of some crucial and standard processes which eventually led for us to part ways and call in the help of Joe Grant. 70 00:06:23,850 --> 00:06:30,870 So you can see by this little Easter egg that was brought to our attention earlier today that they weren't very happy about that. 71 00:06:32,790 --> 00:06:39,530 So you can also see that Entropic is credited on the back of the badge and the firmware on my blog earlier today. 72 00:06:41,650 --> 00:06:44,350 I just want to do hacker stuff with my friends. 73 00:06:47,570 --> 00:06:51,450 So without further ado, I 74 00:06:57,710 --> 00:07:05,230 will give you some microcontrollers at Raspberry Pi and I worked on the chip that's on everyone's badges today. 75 00:07:05,830 --> 00:07:07,250 I'd like to talk about three things. 76 00:07:07,250 --> 00:07:09,150 The first one is the chip on the badge. 77 00:07:09,150 --> 00:07:13,150 The second one is one of the processor architectures on that chip. 78 00:07:13,370 --> 00:07:18,150 And the third one is our hacking challenge for everyone here and everyone who has GitHub. 79 00:07:19,310 --> 00:07:24,930 So RP 2040 was our first microcontroller, took our team from zero to microcontroller. 80 00:07:25,250 --> 00:07:27,910 This is a similar increment. 81 00:07:28,510 --> 00:07:29,890 So we have some low power states. 82 00:07:29,890 --> 00:07:32,550 The whole system can power itself up and down. 83 00:07:33,050 --> 00:07:34,310 We doubled the RAM. 84 00:07:34,410 --> 00:07:37,310 You can attach more RAM over QSPI up to 8 megabytes. 85 00:07:38,150 --> 00:07:47,710 Security extension is what's also called trust zone M and we extend those security boundaries out through the system with some system level hardware. 86 00:07:48,970 --> 00:07:55,750 It's pretty beefy processor wise and we also offer more GPIOs up to 48 and larger package. 87 00:07:55,770 --> 00:08:00,330 Flash in package if you want it so you can have 2 megs of flash on device. 88 00:08:01,130 --> 00:08:09,210 There's a lot of security stuff hardware wise I won't cover here but we do have on device storage and that's used for your boot signing keys. 89 00:08:09,270 --> 00:08:12,450 You can use it for symmetric and private keys for decryption as well. 90 00:08:12,530 --> 00:08:17,750 You can lock things down page by page either hardware or soft locks to revoke things after boot. 91 00:08:18,910 --> 00:08:20,510 We have a secure implementation. 92 00:08:20,710 --> 00:08:22,250 I'm not going to speak much about it here. 93 00:08:22,250 --> 00:08:23,990 It's in chapter 5 of the data sheet. 94 00:08:24,390 --> 00:08:30,670 The last thing to mention on that is all of the source code for the ROM including the secure boot is open source. 95 00:08:30,690 --> 00:08:33,950 It's on GitHub and it's BSD3 licensed so everyone can use it. 96 00:08:40,990 --> 00:08:43,210 So I said there are 2 processors. 97 00:08:43,210 --> 00:08:44,890 We have 2 codex M33s. 98 00:08:44,890 --> 00:08:46,110 It's a dual core system. 99 00:08:46,370 --> 00:08:49,150 We use codex M because we think they're the best in class. 100 00:08:50,090 --> 00:08:52,690 But one of my little hobby projects made it in as well. 101 00:08:52,890 --> 00:08:55,410 So RISC 5 is an open instruction set. 102 00:08:55,410 --> 00:08:56,430 Anyone can implement it. 103 00:08:58,030 --> 00:09:03,590 It's actually quite hard to find a real commercial bit of silicon with an open source processor on it. 104 00:09:03,590 --> 00:09:08,850 So if you read the data sheet there is a link in the data sheet to the source code. 105 00:09:08,870 --> 00:09:09,710 You can download it. 106 00:09:09,710 --> 00:09:10,790 It's Apache 2 licensed. 107 00:09:10,790 --> 00:09:12,190 You can modify the processor. 108 00:09:12,310 --> 00:09:13,470 Put it on FPGA. 109 00:09:13,470 --> 00:09:14,510 Tape it out yourself. 110 00:09:15,790 --> 00:09:17,530 It started out as a hobby project. 111 00:09:17,530 --> 00:09:21,170 It's forked from hazard 5, one of my earlier projects. 112 00:09:21,170 --> 00:09:24,350 The initial rework to a 3 stage pipeline took a few days. 113 00:09:24,430 --> 00:09:26,550 At that point it was about 90% done. 114 00:09:27,090 --> 00:09:29,590 The remaining 10% of the project took 3 years. 115 00:09:29,950 --> 00:09:33,390 So it was finished on Wednesday night before DEF CON. 116 00:09:33,390 --> 00:09:35,230 They had to launch it before we launched the chip. 117 00:09:36,770 --> 00:09:42,290 We want to build the best 118 00:09:46,930 --> 00:09:58,330 education platform we can for embedded systems and I'm picturing people doing university labs where they work with the processor on MCU, go home, read the source code, modify the processor, put it on FPGA dev board. 119 00:09:58,430 --> 00:10:04,250 As well as the source, the entire commit history for the project is open source which means, sorry, is public. 120 00:10:04,270 --> 00:10:09,470 So every mistake I made during development is documented as well as the resolutions. 121 00:10:10,110 --> 00:10:22,090 If you are a security researcher working in embedded systems, I think it's interesting to see the types of mistakes that hardware designers make because there might be similar hardware bugs in the systems you work on and they might be exploitable. 122 00:10:23,350 --> 00:10:26,390 The theme of this year's DEF CON is engage. 123 00:10:26,830 --> 00:10:29,870 And for better or for worse there are computers all around us. 124 00:10:29,890 --> 00:10:34,510 I think RISC-V is a chance to have some control over the compute substrate of our world. 125 00:10:34,950 --> 00:10:41,090 And that means both contributing directly to the ISA, the base architecture, and designing your own custom things on top. 126 00:10:41,090 --> 00:10:45,910 There's some really exciting stuff out there like Sherry which is a capability architecture on top of RISC-V. 127 00:10:46,730 --> 00:10:53,070 Last note on this, we had to fit two architectures into a 32K boot ROM and there are some fun tricks to do that. 128 00:10:53,070 --> 00:10:55,570 So definitely read the boot ROM source code and see what we had to do. 129 00:10:58,620 --> 00:10:59,600 Hacking challenge. 130 00:11:00,360 --> 00:11:03,440 We learned a lot working on the implementation of this chip. 131 00:11:03,760 --> 00:11:06,640 We tried to find all the standard tricks to make it a fun challenge. 132 00:11:06,740 --> 00:11:10,360 We expect to learn more things and we'd like to learn them sooner rather than later. 133 00:11:10,860 --> 00:11:12,460 So we're holding a challenge. 134 00:11:12,660 --> 00:11:15,980 It started yesterday, it continues for 30 days. 135 00:11:16,320 --> 00:11:21,200 We wanted to call it CTF, but we couldn't actually call it CTF. 136 00:11:21,200 --> 00:11:22,460 It's just a side quest. 137 00:11:23,080 --> 00:11:27,080 Hextree, stack smashing, worked with us on the firmware for this challenge. 138 00:11:27,120 --> 00:11:32,600 They also worked on the security evaluation of 2350 as well as new AE, a company. 139 00:11:33,080 --> 00:11:39,520 If you go to the URL here, so on our GitHub, 2350 hacking challenge, there are instructions. 140 00:11:39,760 --> 00:11:45,400 You can lock down your conference badge with a known boot signing key, a known secret, and you can try and hack it. 141 00:11:45,660 --> 00:11:51,360 If you think you've got through, we'll give you a Pico 2 with a random key and a random secret. 142 00:11:51,960 --> 00:11:54,900 And if you tell us the secret, you get $10,000. 143 00:11:54,900 --> 00:11:55,920 It's a very clear cut. 144 00:12:03,530 --> 00:12:08,230 One final request, we released a 1300 page data sheet for the chip. 145 00:12:08,370 --> 00:12:09,730 There will be mistakes in it. 146 00:12:09,730 --> 00:12:12,930 I'm hanging out at the ESV for the whole of DEF CON. 147 00:12:12,950 --> 00:12:15,690 If you tell me about a mistake, I will fix it or I'll get it fixed. 148 00:12:15,690 --> 00:12:17,070 We're doing daily releases. 149 00:12:17,250 --> 00:12:20,570 Improving the data sheet helps everyone at DEF CON who is working on the chip. 150 00:12:20,950 --> 00:12:21,170 Okay. 151 00:12:21,170 --> 00:12:21,810 Thank you. 152 00:12:30,950 --> 00:12:31,910 All right. 153 00:12:33,470 --> 00:12:33,930 Okay. 154 00:12:33,930 --> 00:12:35,330 Next up we have Joe Grand. 155 00:12:36,490 --> 00:12:37,790 Please, no applause. 156 00:12:39,250 --> 00:12:44,130 Those of you who know me know that I can't stand still while I'm talking so I'm going to kind of roam around. 157 00:12:44,510 --> 00:12:45,890 Yeah, my name is Joe Grand. 158 00:12:46,210 --> 00:12:47,870 Thank you for coming and watching. 159 00:12:47,870 --> 00:12:50,710 I'm going to talk about the hardware and then I'm going to talk about the firmware. 160 00:12:50,950 --> 00:12:56,870 And I'll tell some stories also because we had a lot of fun in the last couple weeks of trying to get this thing here. 161 00:12:56,870 --> 00:13:03,710 And if you've been at DEF CON before, you know there's always challenges with the badge at some point logistically or design wise or something. 162 00:13:03,710 --> 00:13:09,550 And I would say this surprisingly went pretty smoothly from a technical perspective. 163 00:13:09,550 --> 00:13:11,210 And that's like pretty amazing. 164 00:13:11,210 --> 00:13:21,330 So from the hardware side, kind of the block diagram of this, of course, the Raspberry Pi, the RP2350, and that uses as the microprocessor external SPI flash. 165 00:13:21,490 --> 00:13:22,750 What do I have on there? 166 00:13:22,750 --> 00:13:24,550 Is it a 32 megabit? 167 00:13:24,550 --> 00:13:25,030 Is that right? 168 00:13:25,030 --> 00:13:28,470 32 megabit flash for the code is on there. 169 00:13:28,570 --> 00:13:30,650 And kind of working outwards, of course we have the display. 170 00:13:30,730 --> 00:13:33,250 That has a touch screen as well. 171 00:13:33,430 --> 00:13:38,090 So when we talk about the firmware, there's actually some capability that you can use in that also. 172 00:13:38,090 --> 00:13:39,370 You can build it into stuff. 173 00:13:39,370 --> 00:13:44,390 I'm not sure if it's built into the game but you can at least use that hardware after the event which is pretty cool. 174 00:13:44,930 --> 00:13:46,090 A lot of blinky lights. 175 00:13:46,090 --> 00:13:47,850 Everybody likes blinky lights. 176 00:13:48,250 --> 00:13:49,690 Standard types of LEDs for that. 177 00:13:49,690 --> 00:13:52,070 A lot of push buttons for the different things as you've seen. 178 00:13:52,290 --> 00:13:53,470 Power control circuitry. 179 00:13:53,470 --> 00:13:56,990 So you can actually have USB charging as you've probably all noticed. 180 00:13:57,110 --> 00:14:09,630 When the batteries came in, so the batteries from a logistic perspective, those came in early and they sat and usually when you're ordering lithium ion batteries, they are not fully charged when they're shipping because if there's damage and they catch on fire, 181 00:14:09,630 --> 00:14:15,830 so charging those, you've probably since you've been here already for a couple hours probably already charged those and I see most of them on. 182 00:14:15,830 --> 00:14:24,050 So the power control circuitry can either charge a lithium ion battery that's internal or just power from the USB also. 183 00:14:24,230 --> 00:14:32,810 So if you don't have a battery in it, you can still have it powered like indefinitely if you're doing something with it after the con that you want to like, you know, do some Raspberry Pi magic with. 184 00:14:33,250 --> 00:14:36,970 The SAO, there's micro SD card. 185 00:14:36,970 --> 00:14:43,230 That's what you use to load new firmware in and there's also a bunch of DEF CON information on it, right? 186 00:14:43,230 --> 00:14:44,570 There's like stuff. 187 00:14:44,570 --> 00:14:44,830 Right. 188 00:14:44,830 --> 00:14:49,750 So the official DEF CON sound track is on the SD card so you can pop it out and check that out later. 189 00:14:50,250 --> 00:14:53,010 And then, yeah, I don't remember what else we put on it. 190 00:14:53,010 --> 00:14:54,410 Yeah, some secret. 191 00:14:54,410 --> 00:15:02,990 So if you look in your badge, that's not required for actual operation and it's even a branded DEF CON micro SD card, which is pretty cool. 192 00:15:02,990 --> 00:15:04,210 So yeah, that's not required. 193 00:15:04,210 --> 00:15:10,410 If you want to load new firmware in, you could load code in that way and I think there's actually a way to do it USB based as well. 194 00:15:11,470 --> 00:15:12,710 So it's a nice added feature. 195 00:15:12,710 --> 00:15:16,310 But yeah, take that out, check it out and see what's on it and insert it into your friend's computer. 196 00:15:16,870 --> 00:15:17,910 Yeah, see what happens. 197 00:15:18,430 --> 00:15:21,010 We have an infrared speaker, of course. 198 00:15:21,010 --> 00:15:29,590 Infrared transceiver is connected over UART and that's not implemented in the game code but kind of left as a challenge if you want to implement it. 199 00:15:29,590 --> 00:15:31,050 What was the original intent for that? 200 00:15:31,050 --> 00:15:32,150 We made an attempt. 201 00:15:32,370 --> 00:15:36,030 The idea was that we want people to interact with each other at the CON. 202 00:15:36,030 --> 00:15:45,450 And so if you go into your inventory and go to trade an item with someone else, it sort of hangs and you can go like IR to IR. 203 00:15:46,390 --> 00:15:48,950 And I mean, now it's a challenge. 204 00:15:48,950 --> 00:15:51,090 So if somebody wants to make that work, go for it. 205 00:15:51,210 --> 00:15:54,090 And there is some support and some of the firmware stuff we'll talk about. 206 00:15:54,090 --> 00:15:57,170 So hardware works and then you can implement it. 207 00:15:57,250 --> 00:16:02,350 There are three things attached on the I squared C bus which is a very common interchip communication bus. 208 00:16:02,350 --> 00:16:04,710 You can add additional stuff on there too if you want to. 209 00:16:04,710 --> 00:16:06,330 You just need a clock and data line. 210 00:16:06,530 --> 00:16:11,050 But here we have the accelerometer for the detection of your position. 211 00:16:11,050 --> 00:16:16,490 Analog to digital converter that's used for the battery kind of power gas gauge. 212 00:16:16,610 --> 00:16:18,810 And I think it's all it's used for right now. 213 00:16:18,810 --> 00:16:22,450 But there is analog to digital converter if you want to add additional sensors or whatever. 214 00:16:22,790 --> 00:16:24,590 Feeding in analog to that. 215 00:16:24,590 --> 00:16:27,170 The real time clock also has a purpose. 216 00:16:27,290 --> 00:16:33,730 Yeah, if you check out the track rooms like right now on your badge, it will say that we're giving a badge talk right now. 217 00:16:33,730 --> 00:16:38,930 If you set your time correctly when you started up your badge, you can do that for any of the rooms in the game. 218 00:16:38,950 --> 00:16:41,470 Thanks for putting those in. 219 00:16:42,190 --> 00:16:45,210 So you can check out the con that way which is also pretty cool. 220 00:16:45,210 --> 00:16:45,570 Yeah. 221 00:16:45,570 --> 00:16:48,990 And then the touch screen controller of course controls the touch. 222 00:16:48,990 --> 00:16:50,370 So right. 223 00:16:50,370 --> 00:16:51,890 Some of you might be wondering why am I up here. 224 00:16:51,890 --> 00:16:53,350 I didn't do the hardware design. 225 00:16:53,350 --> 00:16:54,370 I didn't do the firmware design. 226 00:16:54,370 --> 00:17:03,510 Because of the challenges, Mar ended up calling me a couple weeks before production manufacturing started and said, hey, we need some extra help. 227 00:17:03,810 --> 00:17:12,870 The boards were designed but the ones that were going to be used for production hadn't been tested yet and we were about to make 29,770 or something. 228 00:17:12,890 --> 00:17:16,010 And we needed to go to the factory and help them get ramped up. 229 00:17:16,010 --> 00:17:17,430 Because that's the critical part. 230 00:17:17,430 --> 00:17:24,230 We were using ICSN, an amazing company, Korean company based with a facility in Vietnam. 231 00:17:24,430 --> 00:17:26,970 And it's always much better to do things in person. 232 00:17:26,970 --> 00:17:30,590 Like a lot of times people like to just send emails or a Zoom call or something. 233 00:17:30,590 --> 00:17:37,290 But when you're building physical things, being in person, having that relationship and solving problems and everything on site is the best. 234 00:17:37,290 --> 00:17:38,250 Totally worth it. 235 00:17:38,250 --> 00:17:45,330 So we decided, hey, let's go and monitor the first boards off of the line to make sure that they're working. 236 00:17:45,330 --> 00:17:46,370 Let's get everything ramped up. 237 00:17:46,370 --> 00:17:51,750 Let's solve whatever problems we can within the 48 hours that we were on the ground in Vietnam. 238 00:17:51,750 --> 00:17:52,910 So super fun. 239 00:17:52,910 --> 00:17:57,950 This is a view of what the manufacturing, part of what the manufacturing facility looks like. 240 00:17:57,950 --> 00:18:00,670 Very clean, non-hackerish looking. 241 00:18:00,670 --> 00:18:03,710 It's a professional facility. 242 00:18:03,710 --> 00:18:08,350 And 30,000 pieces for them was like, okay, side quest. 243 00:18:08,510 --> 00:18:09,850 Which is pretty cool. 244 00:18:09,850 --> 00:18:19,750 So that shows the line going from initial put the board in, put the solder mask on, sorry, put the solder paste on. 245 00:18:19,750 --> 00:18:22,170 There's automated optical inspection for each stage. 246 00:18:22,170 --> 00:18:27,650 Components go on, pick and place, machine goes through the reflow oven, ends up at the end. 247 00:18:27,650 --> 00:18:37,810 And what we're seeing here and why I love this picture is the first boards that are for production are about to come off the line and the whole engineering team from the company is there. 248 00:18:37,810 --> 00:18:42,290 Like top level executives down to the managers that are on the floor working with people. 249 00:18:42,290 --> 00:18:46,810 The excitement of stuff and Mar and I were just completely giddy. 250 00:18:47,330 --> 00:18:50,570 To see this is such a cool part that you don't normally get to see, right? 251 00:18:50,570 --> 00:18:52,430 You make products or whatever. 252 00:18:52,470 --> 00:18:54,890 This is so cool that everybody was there. 253 00:18:55,130 --> 00:18:57,110 And so it comes out of the oven. 254 00:18:57,210 --> 00:18:58,890 And then what do we have next? 255 00:18:58,890 --> 00:18:59,510 Oh, yeah. 256 00:18:59,510 --> 00:19:00,030 The picture. 257 00:19:00,030 --> 00:19:04,190 Those are the first two coming out of the oven of actual production manufacturing units. 258 00:19:04,190 --> 00:19:06,210 And we were very happy with those. 259 00:19:06,510 --> 00:19:10,990 But then we had to say, okay, we have the hardware assembled onto the board. 260 00:19:11,510 --> 00:19:18,590 We need to make sure that this factory can assemble them and test them so when they arrive at DEF CON, most of them work. 261 00:19:18,590 --> 00:19:22,310 There's always going to be some amount, some percentage of things that fail with hardware. 262 00:19:22,430 --> 00:19:23,890 But we want to make sure everything works. 263 00:19:23,890 --> 00:19:36,510 So what was missing was this test procedure of let's make sure we have a way that the factory can test all the critical components, program the SD cards, package it, all of these things that really had to be done in person. 264 00:19:36,510 --> 00:19:45,330 So this was our war room and they had food coming in and we were there cranking, I don't know, eight hours or so and people coming in and out and trying different things. 265 00:19:45,330 --> 00:19:52,250 And actually one of the first badges that came back, one of the chips was flipped on the I squared C bus. 266 00:19:52,290 --> 00:19:57,950 So basically that chip was preventing other devices from working and so the power on self test that was happening was failing. 267 00:19:57,950 --> 00:20:00,730 Test procedure was failing and we're like, what is going on? 268 00:20:00,810 --> 00:20:06,230 And somebody at the facility figured it out while we were actually visiting a different facility, which we'll talk about. 269 00:20:06,250 --> 00:20:11,270 And we came back and they're like, oh, yeah, so that part, just a part position broke everything. 270 00:20:11,550 --> 00:20:13,310 So luckily that was something that got fixed. 271 00:20:13,310 --> 00:20:16,490 But a lot of little challenges like that throughout the day. 272 00:20:16,610 --> 00:20:18,250 Those snacks were the best part. 273 00:20:19,430 --> 00:20:20,890 Are they cheering for the badge? 274 00:20:20,890 --> 00:20:21,710 Maybe they are. 275 00:20:21,930 --> 00:20:26,810 Yeah, so this is the team and we're very, very happy we have the first units. 276 00:20:26,990 --> 00:20:32,850 And what we also did, which I think is next, is visit, oh, maybe it's not in there. 277 00:20:33,670 --> 00:20:34,550 It's gone. 278 00:20:34,550 --> 00:20:37,050 We went to go visit the injection molding facility. 279 00:20:37,050 --> 00:20:39,650 So those plastics are freaking awesome. 280 00:20:40,030 --> 00:20:40,430 Right? 281 00:20:40,430 --> 00:20:45,810 I mean, it's like, do you see, have you seen a badge with fully injection molded plastic around electronics? 282 00:20:46,230 --> 00:20:47,170 I don't think so. 283 00:20:47,170 --> 00:20:52,190 And I experimented with this last year and we ended up hitting a lot of issues because we'd never done it before. 284 00:20:52,190 --> 00:20:53,270 But no electronics in it. 285 00:20:53,270 --> 00:20:53,830 No electronics. 286 00:20:53,830 --> 00:20:55,590 So just the plastic injection molding. 287 00:20:55,590 --> 00:20:57,090 And that was polycarbonate last year. 288 00:20:57,090 --> 00:21:00,850 This one's ABS, which is a great material, but it was so fun to do. 289 00:21:00,850 --> 00:21:05,490 And yeah, so we got to get these samples right off the line, like hot out of the thing. 290 00:21:05,490 --> 00:21:06,490 Like here you go. 291 00:21:06,490 --> 00:21:06,670 Yeah. 292 00:21:06,670 --> 00:21:07,430 Hot out of the oven. 293 00:21:07,430 --> 00:21:08,490 They were still melted plastic. 294 00:21:08,490 --> 00:21:16,970 They basically take a mold that's made out of like steel and squirt it full of hot plastic and you get these pieces out and they were all clear. 295 00:21:17,030 --> 00:21:20,510 And if you've noticed some of the speaker badges and other badges have colors. 296 00:21:20,950 --> 00:21:24,930 Mar was actually going to take those and dye them at home before bringing them to Defcon. 297 00:21:24,930 --> 00:21:29,050 It was going to take too much time to actually go between the colors and clean the machine. 298 00:21:29,050 --> 00:21:31,330 So I was like, well, what if we just don't clean the machines? 299 00:21:31,350 --> 00:21:36,690 And it's like, you know, the Jolly Ranchers or no, Dum Dums that are like the mystery flavor Dum Dums. 300 00:21:36,690 --> 00:21:40,710 And they just like keep running it through to the next flavor. 301 00:21:40,730 --> 00:21:41,810 So yeah, it's like different colors. 302 00:21:41,810 --> 00:21:44,530 We ended up getting some in-between flavors, which is pretty cool. 303 00:21:44,590 --> 00:21:47,790 And instead of you having to do them at home, the facility did it. 304 00:21:47,790 --> 00:21:49,670 And yeah, it was like vinyl records and all the different colors. 305 00:21:49,670 --> 00:21:50,770 That was going to be crazy. 306 00:21:50,770 --> 00:21:51,830 I was willing, but I didn't want to. 307 00:21:51,830 --> 00:21:52,150 Really? 308 00:21:52,150 --> 00:21:53,250 I mean, they turned out really cool. 309 00:21:53,250 --> 00:21:55,090 So yeah, that was another step. 310 00:21:55,350 --> 00:21:56,190 So onto the firmware. 311 00:21:56,190 --> 00:22:02,010 So Dimitri Greenberg, who's done some really wild hardware hacking and firmware development and everything, did the firmware. 312 00:22:02,010 --> 00:22:06,730 And what's running on these badges is, I guess it's called a micro Game Boy, but it's a Game Boy emulator. 313 00:22:07,410 --> 00:22:09,010 And this is pretty cool. 314 00:22:09,270 --> 00:22:16,030 I think he started it, wrote it all from scratch, but I think started it within a tent of the RP2040 and then went to the 2350. 315 00:22:17,730 --> 00:22:19,290 And a lot of really cool stuff. 316 00:22:19,310 --> 00:22:20,990 You know, people have loaded Game Boy games. 317 00:22:21,630 --> 00:22:31,210 Jaku, I don't know if he's in here, but I don't even know the link, but he made a already has like hacked some of the code and done some other Game Boy related stuff. 318 00:22:32,010 --> 00:22:32,730 Jaku. 319 00:22:32,930 --> 00:22:36,790 I don't know his Twitter, but he has some links to some firmware hacking stuff already. 320 00:22:37,270 --> 00:22:44,730 So yeah, lots of custom APIs and there's some documentation on that, I believe, on a website that hopefully will remain there. 321 00:22:44,970 --> 00:22:48,810 There is, so you can save games and I think there's a current bug. 322 00:22:48,810 --> 00:22:50,510 Is that still being worked on, do you know? 323 00:22:52,490 --> 00:22:53,210 Fixed? 324 00:22:54,110 --> 00:22:54,690 Okay. 325 00:22:54,690 --> 00:22:59,010 So some of you may have noticed if you try to save the game, there's a little bug there. 326 00:22:59,010 --> 00:23:00,170 So that's being fixed. 327 00:23:00,470 --> 00:23:02,010 Still plenty of time for that. 328 00:23:02,150 --> 00:23:04,490 Or if you fix it first, let us know and then that's cool. 329 00:23:04,490 --> 00:23:05,330 Yeah, definitely. 330 00:23:05,910 --> 00:23:06,630 Okay. 331 00:23:08,410 --> 00:23:09,230 Yeah. 332 00:23:09,270 --> 00:23:09,810 Right. 333 00:23:09,810 --> 00:23:10,630 Written in ARM. 334 00:23:10,630 --> 00:23:15,770 So full on assembler and full on emulator here for Game Boy stuff. 335 00:23:17,350 --> 00:23:19,950 Yeah, so Dimitri also wrote this thing called Repalm. 336 00:23:19,950 --> 00:23:21,830 So who remembers Palm OS? 337 00:23:22,010 --> 00:23:23,170 Palm pilots. 338 00:23:23,450 --> 00:23:28,050 Yeah, that kind of shows the age of maybe half the people at DEF CON. 339 00:23:28,550 --> 00:23:29,950 There's some really cool stuff. 340 00:23:29,950 --> 00:23:35,770 Palm OS was one of the first early mobile platforms that actually worked as opposed to like the Apple Newton. 341 00:23:35,910 --> 00:23:39,410 But there's a lot of really cool apps that you can run on Palm OS. 342 00:23:39,410 --> 00:23:44,530 So this is not only Game Boy, it's Palm OS, it's new Raspberry Pi for whatever you want to do and totally wild. 343 00:23:45,750 --> 00:23:46,550 Oops. 344 00:23:46,870 --> 00:23:47,750 We missed a slide. 345 00:23:47,750 --> 00:23:48,250 How do I go back? 346 00:23:48,250 --> 00:23:48,290 Oh , yeah . 347 00:23:48,290 --> 00:23:49,570 I think it's just the left. 348 00:23:50,890 --> 00:23:51,430 Yes. 349 00:23:51,430 --> 00:24:02,450 So this factory, as soon as we left Vietnam, they started manufacturing all of the boards and then a couple weeks later, the firmware was done. 350 00:24:02,450 --> 00:24:06,510 They started loading those basically with gold standard SD cards. 351 00:24:06,510 --> 00:24:17,230 They put those into every badge after doing the test procedure, load the game code onto there and then insert the DEF CON one that goes to you, wrap those all up, put them in these massive pallets. 352 00:24:17,230 --> 00:24:18,130 How many pallets were there? 353 00:24:18,130 --> 00:24:18,830 Do you know? 354 00:24:19,010 --> 00:24:20,230 19 pallets. 355 00:24:20,230 --> 00:24:24,730 19 pallets of this and went along air or ship? 356 00:24:24,730 --> 00:24:25,530 Air. 357 00:24:25,530 --> 00:24:26,410 Went air. 358 00:24:26,410 --> 00:24:29,830 Flew all the way here and now you are all wearing them. 359 00:24:29,830 --> 00:24:32,510 So that is the story of the DEF CON badge. 360 00:24:32,710 --> 00:24:33,270 Great. 361 00:24:40,750 --> 00:24:41,510 All right. 362 00:24:41,610 --> 00:24:43,650 I'm going to open it up to Q&A. 363 00:24:44,370 --> 00:24:51,210 If anybody has questions for our crew up here, I'll just let you guys take it if you want to call on people. 364 00:24:54,770 --> 00:25:03,710 Are there microphones at ‑‑ actually, this might be the microphone for the questions or is there ‑‑ oh, there's a Raspberry Pi chip. 365 00:25:03,710 --> 00:25:09,450 Did you mention this is the first product that's actually using ‑‑ the first 30,000 off the line. 366 00:25:09,450 --> 00:25:09,610 Yeah. 367 00:25:09,650 --> 00:25:25,630 Talking about risk, that actually was ‑‑ when we were testing these, we had one revision earlier of the chip and then we had to put the final ‑‑ the chips are the version 8 rev A2 or whatever it's called, showed up at the factory right before we were leaving from Korea ‑‑ sorry, 368 00:25:25,630 --> 00:25:29,550 from Vietnam and they slapped a chip on there, did the testing, it was okay. 369 00:25:30,630 --> 00:25:34,750 That's a big risk and it worked out because the support from Raspberry Pi was ridiculous also. 370 00:25:34,750 --> 00:25:36,330 There's a ton of questions now. 371 00:25:46,130 --> 00:25:47,050 Yes. 372 00:25:48,210 --> 00:25:55,010 So the cat came all the way from Denver on top of my car and I don't want it to come home. 373 00:25:55,470 --> 00:25:58,490 Somebody wants to make me an offer or steal it at the end of the con. 374 00:25:58,490 --> 00:25:59,390 It's fair game. 375 00:26:13,050 --> 00:26:21,470 So we are working on that and we'll put some releases out on DEF CON.org so keep an eye out and we'll make a post about it. 376 00:26:24,490 --> 00:26:25,930 Is that our feedback? 377 00:26:25,930 --> 00:26:26,710 Where's the AV? 378 00:26:26,710 --> 00:26:27,690 Was that us? 379 00:26:27,730 --> 00:26:28,310 No. 380 00:26:28,910 --> 00:26:30,030 Not us. 381 00:26:30,790 --> 00:26:31,310 Right. 382 00:26:31,310 --> 00:26:36,930 And on the hardware, the schematics, all of that stuff also all going to be in the same location on the DEF CON server. 383 00:26:36,930 --> 00:26:38,790 Yeah, so we'll release everything. 384 00:26:39,070 --> 00:26:40,870 Sources and all that stuff. 385 00:26:40,870 --> 00:26:43,390 So probably stay tuned to the DEF CON Twitter, probably. 386 00:26:43,870 --> 00:26:47,450 I think it's like DEF CON.org slash badge slash 32. 387 00:26:47,450 --> 00:26:50,710 It's in the program as well if you forget what the link is. 388 00:26:51,010 --> 00:26:56,010 So sometime later today we will release something, some instructions, yeah. 389 00:27:03,030 --> 00:27:04,470 Oh, yeah, sure. 390 00:27:04,530 --> 00:27:08,330 There's also a discord if you guys want to hop on and talk to folks. 391 00:27:08,470 --> 00:27:09,190 Cool. 392 00:27:25,980 --> 00:27:29,300 If you can, you can continually get QR codes? 393 00:27:33,050 --> 00:27:35,410 Oh, I don't, you want to take it, Bonnie? 394 00:27:36,130 --> 00:27:40,990 I believe there's only a set number of QR codes, right? 395 00:27:41,090 --> 00:27:41,810 12. 396 00:27:42,550 --> 00:27:48,010 12 QR codes, 12 photos, and yeah, that's about it on the collectible. 397 00:27:48,010 --> 00:27:48,390 That's all. 398 00:27:48,390 --> 00:27:50,870 And then it will fill up that deal. 399 00:27:50,870 --> 00:27:51,210 Yeah. 400 00:27:51,210 --> 00:27:53,250 So it's not QR codes forever. 401 00:27:53,250 --> 00:27:55,030 If there's some kind of bug, I'm not sure. 402 00:27:55,270 --> 00:28:01,890 The cool thing about it is that we wrote it really fast and it's like, let's just see what this thing can do and then people tell us later. 403 00:28:02,830 --> 00:28:03,550 Yeah. 404 00:28:03,690 --> 00:28:04,690 Thank you. 405 00:28:09,610 --> 00:28:10,910 Oh, hi. 406 00:28:12,730 --> 00:28:13,690 Wow. 407 00:28:14,170 --> 00:28:15,030 How are you? 408 00:28:15,030 --> 00:28:15,770 Yes. 409 00:28:15,770 --> 00:28:16,670 Thank you. 410 00:28:20,010 --> 00:28:21,850 Thank you, yes, DEF CON 14. 411 00:28:21,850 --> 00:28:28,730 Don't get any expectations about future badges, but yeah, good seeing you. 412 00:28:38,330 --> 00:28:40,490 So we are still ramping up production. 413 00:28:40,490 --> 00:28:42,690 We have a few hundred thousand going through tests right now. 414 00:28:42,690 --> 00:28:44,070 They will be available soon. 415 00:28:50,130 --> 00:28:53,070 But there are some development boards available now, right? 416 00:28:53,070 --> 00:28:54,870 From other places you can buy right now. 417 00:28:54,870 --> 00:28:57,790 Also, if you come find us in the ESV, I can give you some sample chips. 418 00:29:13,520 --> 00:29:15,140 I can't compare the size. 419 00:29:15,140 --> 00:29:18,980 I can say that taking them out would not make the chip die smaller. 420 00:29:27,700 --> 00:29:31,700 Well, I knew exactly what shape hole the core was going to fit into and I designed it to fit. 421 00:29:31,840 --> 00:29:35,700 So the engineer who put that in the system had them running in about two hours. 422 00:30:01,680 --> 00:30:06,140 I see Will down here nodding yes and he's probably the one to know, so. 423 00:30:11,110 --> 00:30:11,830 Sure. 424 00:30:21,290 --> 00:30:25,410 So it's on the Pico 2, which we announced yesterday, and you can also buy chips. 425 00:30:25,410 --> 00:30:26,350 You can buy the boards. 426 00:30:38,270 --> 00:30:39,070 Yes. 427 00:30:43,070 --> 00:30:46,310 No, so the game doesn't use it, but it's on there. 428 00:30:46,310 --> 00:30:47,450 You can play with it. 429 00:30:48,330 --> 00:30:49,470 It's a thing. 430 00:30:58,510 --> 00:30:59,730 I can't hear. 431 00:30:59,970 --> 00:31:01,410 Sorry, can you repeat that? 432 00:31:06,610 --> 00:31:07,510 Oh, yeah, that's my bad. 433 00:31:07,510 --> 00:31:07,510 I can't hear you. 434 00:31:07,510 --> 00:31:08,390 Oh, yeah, that's my fault. 435 00:31:10,650 --> 00:31:15,690 But the DEF CON site will actually have stuff on it. 436 00:31:46,530 --> 00:31:56,690 So there was some misunderstanding with kind of vendor relationships and as you saw from that photo, that was sort of unauthorized code put into the DEF CON badge. 437 00:31:57,130 --> 00:31:58,950 Sometimes Easter eggs are fun. 438 00:31:58,950 --> 00:32:13,510 Other times, if somebody is making it look like they're getting the short end of the stick when they're not, there's just a lot of engineering processes and a lot of vendor kind of things that just didn't feel right for the relationship. 439 00:32:14,690 --> 00:32:22,290 People, I can't speak to the compensation side of things because that's not what we do. 440 00:32:22,290 --> 00:32:38,690 That's a DEF CON group thing, but it just having that in there was just unacceptable from a community perspective where we're all trying to build a badge and build something that people can enjoy and having a dig like that just felt wrong given a lot of the conversation around it. 441 00:32:38,690 --> 00:33:01,890 We wanted to make sure Dimitri in particular would get credit and because the work he did was amazing and the stuff he's done is amazing, but it just as you saw from the situation, the powers that be did not want certain people to have credit for things when it's kind of putting a damper a little bit on all of the hard work that had been done. 442 00:33:02,530 --> 00:33:05,810 I would never make a good politician, but that's just how it is. 443 00:33:05,830 --> 00:33:21,610 Vendor relationships and some kind of mistreatment of people behind the scenes caused the engineering to kind of stop and then the relationship of firmware was between the engineering vendor and Dimitri, not DEF CON and Dimitri, so it's very hairy, but we appreciate the work, 444 00:33:21,610 --> 00:33:27,130 of course, and it's just unfortunate when things like that come up in a public setting. 445 00:33:27,130 --> 00:33:28,490 It was just unnecessary. 446 00:33:51,440 --> 00:34:02,860 Yeah, I believe 447 00:34:06,430 --> 00:34:13,270 we were going to put that up on GitHub, I believe, is what we were doing, so everyone's going to have that really soon. 448 00:34:13,330 --> 00:34:23,050 As you can see, I was extremely busy in the vendor area, four more, but as soon as we're done with this, I'm working on that to get that to y'all. 449 00:34:23,490 --> 00:34:44,050 With the real-time clock issue, it was working correctly within the GB studio itself, but for some reason when it went over to the badge, like you said earlier, it goes a day later is what's actually happening with the real-time clock, so we're going to work on that. 450 00:34:44,050 --> 00:34:56,730 We're going to get the save fix happening, and you specifically told me about a workaround to actually get the save file to load. 451 00:34:56,930 --> 00:34:59,890 If you can explain that. 452 00:34:59,890 --> 00:35:03,010 So basically, the game... 453 00:35:43,460 --> 00:35:45,840 Yeah, so if y'all got that. 454 00:35:49,260 --> 00:36:03,400 Yeah, if y'all got that, I really thank you for finding that, because for now it's a workaround we can use until the save gets actually fixed today, so thank you. 455 00:36:03,400 --> 00:36:05,100 Thank you so much. 456 00:36:10,300 --> 00:36:25,180 I was wondering if it was possible to expound a little further on what some of these ports are, like the port between the gears, or what things can connect to the USB C port. 457 00:36:25,520 --> 00:36:25,980 Sure. 458 00:36:25,980 --> 00:36:29,360 Okay, so I'll answer that one, and I know we'll have time for one more question. 459 00:36:29,360 --> 00:36:39,880 So the port in the middle, that's called SAO, stands for shitty add-on, and that was created by sort of the community, the badge life community of people who wanted to make badges, but not full-on badges. 460 00:36:39,880 --> 00:36:46,980 So it basically, this is actually the, I don't remember the V whatever 69, it's the second generation of the SAO. 461 00:36:47,060 --> 00:37:00,060 The original one was four pins, this is six pins, it's power ground, I squared C, so clock and data, so you can have your microcontroller do other stuff over that bus, and then there's two GPIO pins connected directly to the Raspberry Pi. 462 00:37:00,400 --> 00:37:03,260 So it's just an enhancement port for badge life. 463 00:37:03,720 --> 00:37:10,000 I don't remember what the other question part of that was, but, yeah, lots of other ports on there, and they're telling us, yeah, we have one more question. 464 00:37:10,300 --> 00:37:12,640 Oh, USB-C, what about it? 465 00:37:14,000 --> 00:37:17,080 Oh, well, USB-C doesn't have a DFU. 466 00:37:18,460 --> 00:37:24,280 So you can drag and drop USB program, you can program the OTP, or you can use it for general USB stuff like bulk transfers. 467 00:37:25,280 --> 00:37:25,860 Sweet. 468 00:37:25,860 --> 00:37:26,220 Okay. 469 00:37:26,220 --> 00:37:26,940 One more. 470 00:37:37,890 --> 00:37:40,970 There is not really a badge challenge. 471 00:37:41,390 --> 00:37:55,110 The challenge is, there's a whole lot of stuff to play with on this thing, and I really just want people to be creative and come up with stuff and show me, and that's amazing, but I don't have any official challenge for you this year. 472 00:37:58,220 --> 00:37:58,800 All right. 473 00:37:58,800 --> 00:38:00,100 I think that's it. 474 00:38:03,580 --> 00:38:04,920 Thank you, guys. 475 00:38:05,500 --> 00:38:12,180 I love seeing all your blinking lights and all your SAOs, and thank you so much.