Hey, thank you for coming to the badge talk this year. We've got the designers and the creators and somebody who's leaving who was also somewhat tangentially involved. And so it's my privilege to introduce Mar Williams, the principal conceptualist designer and the team she assembled to make this happen. 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. 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. So we get to hear from them and their new hardware. And so I hope you enjoy it. Thank you very much. Take it away, Mar. All right. Hi, guys. All right. How do I go forward here? There we go. Okay. Hi. I'm Mar Williams. I did the concept design and coordination of the badge project this year. You can see my art around con. My first art for DEF CON was DC 17. I've shared two hacker spaces and run a collective art space in Denver called Cabal Gallery. Last year's badges, the DC 31 badges, were a non-electronic year. 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. There's the big one under the main screen and get the ones that came in after the con. Okay. And you can find me in the vendor area afterwards. I want to introduce the team Cat Ball is what we're calling ourselves. Bonnie Finley up here on stage. She did the 3D modeling for the case and did all the heavy lifting on creating the game in GB studio. In, like, a crazy short amount of time, by the way. And I'm going to show you the artwork. All the art in the game is also hers. Dimitri, who was on the stage just a moment ago, did the firmware and emulator. And we have some slides for him that we'll show in a minute. Chris who actually created GB studio, which is completely open source drag and drop environment for creating your own Game Boy games. He helped us with some plug-ins that are badge specific that work with, like, the IR. And he also created, like, the character creator that you see on your game. 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. Ada, who is right here, made a super cool dragon. Yeah. So if you choose the dragon, you are playing Ada's art. Okay. And then Raspberry Pi is Raspberry Pi and we love them and they're going to talk here in a minute. And Tropic Engineering was the hardware contractor and you can see their logo on the back of the badge here. Joe Grand, who came in sort of last minute and then did his magic ninja work. So he'll talk more later. Legion 303. So he put together music and sounds for the badge. They don't play within the game, unfortunately, but I've included them on the SD cards. So if you want to hear the bleeps and bloops and renditions of MC Frontalot and Dual Core, you can check those out later. Okay. And ICSN as our manufacturing partner. All right. Okay. So this is just an early concept on the left here of what I wanted to do. I wanted to use an orientation sensor so that when you're wearing the badge, your little character is representative of you. 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. 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. Okay. So you have your wearable character and your color changes. 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. And so I wanted other people to be able to take this home and do something really rad. So I went and tried to find Raspberry Pi and luckily they wanted to work with us so here's where we are. 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. You can load up your own ROMs onto the game so you can play whatever game you want on here if you really want. And if you want to make your own game, you can go use GBStudio and make one in a hurry. If you want to create your own firmware, you can use the RP 2350 SDK. So we ran into some challenges as you saw at the beginning of the talk here. 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. 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. So you can also see that Entropic is credited on the back of the badge and the firmware on my blog earlier today. I just want to do hacker stuff with my friends. So without further ado, I will give you some microcontrollers at Raspberry Pi and I worked on the chip that's on everyone's badges today. I'd like to talk about three things. The first one is the chip on the badge. The second one is one of the processor architectures on that chip. And the third one is our hacking challenge for everyone here and everyone who has GitHub. So RP 2040 was our first microcontroller, took our team from zero to microcontroller. This is a similar increment. So we have some low power states. The whole system can power itself up and down. We doubled the RAM. You can attach more RAM over QSPI up to 8 megabytes. 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. It's pretty beefy processor wise and we also offer more GPIOs up to 48 and larger package. Flash in package if you want it so you can have 2 megs of flash on device. 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. You can use it for symmetric and private keys for decryption as well. You can lock things down page by page either hardware or soft locks to revoke things after boot. We have a secure implementation. I'm not going to speak much about it here. It's in chapter 5 of the data sheet. The last thing to mention on that is all of the source code for the ROM including the secure boot is open source. It's on GitHub and it's BSD3 licensed so everyone can use it. So I said there are 2 processors. We have 2 codex M33s. It's a dual core system. We use codex M because we think they're the best in class. But one of my little hobby projects made it in as well. So RISC 5 is an open instruction set. Anyone can implement it. It's actually quite hard to find a real commercial bit of silicon with an open source processor on it. So if you read the data sheet there is a link in the data sheet to the source code. You can download it. It's Apache 2 licensed. You can modify the processor. Put it on FPGA. Tape it out yourself. It started out as a hobby project. It's forked from hazard 5, one of my earlier projects. The initial rework to a 3 stage pipeline took a few days. At that point it was about 90% done. The remaining 10% of the project took 3 years. So it was finished on Wednesday night before DEF CON. They had to launch it before we launched the chip. We want to build the best 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. As well as the source, the entire commit history for the project is open source which means, sorry, is public. So every mistake I made during development is documented as well as the resolutions. 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. The theme of this year's DEF CON is engage. And for better or for worse there are computers all around us. I think RISC-V is a chance to have some control over the compute substrate of our world. And that means both contributing directly to the ISA, the base architecture, and designing your own custom things on top. There's some really exciting stuff out there like Sherry which is a capability architecture on top of RISC-V. Last note on this, we had to fit two architectures into a 32K boot ROM and there are some fun tricks to do that. So definitely read the boot ROM source code and see what we had to do. Hacking challenge. We learned a lot working on the implementation of this chip. We tried to find all the standard tricks to make it a fun challenge. We expect to learn more things and we'd like to learn them sooner rather than later. So we're holding a challenge. It started yesterday, it continues for 30 days. We wanted to call it CTF, but we couldn't actually call it CTF. It's just a side quest. Hextree, stack smashing, worked with us on the firmware for this challenge. They also worked on the security evaluation of 2350 as well as new AE, a company. If you go to the URL here, so on our GitHub, 2350 hacking challenge, there are instructions. You can lock down your conference badge with a known boot signing key, a known secret, and you can try and hack it. If you think you've got through, we'll give you a Pico 2 with a random key and a random secret. And if you tell us the secret, you get $10,000. It's a very clear cut. One final request, we released a 1300 page data sheet for the chip. There will be mistakes in it. I'm hanging out at the ESV for the whole of DEF CON. If you tell me about a mistake, I will fix it or I'll get it fixed. We're doing daily releases. Improving the data sheet helps everyone at DEF CON who is working on the chip. Okay. Thank you. All right. Okay. Next up we have Joe Grand. Please, no applause. 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. Yeah, my name is Joe Grand. Thank you for coming and watching. I'm going to talk about the hardware and then I'm going to talk about the firmware. 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. 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. And I would say this surprisingly went pretty smoothly from a technical perspective. And that's like pretty amazing. 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. What do I have on there? Is it a 32 megabit? Is that right? 32 megabit flash for the code is on there. And kind of working outwards, of course we have the display. That has a touch screen as well. So when we talk about the firmware, there's actually some capability that you can use in that also. You can build it into stuff. 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. A lot of blinky lights. Everybody likes blinky lights. Standard types of LEDs for that. A lot of push buttons for the different things as you've seen. Power control circuitry. So you can actually have USB charging as you've probably all noticed. 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, 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. So the power control circuitry can either charge a lithium ion battery that's internal or just power from the USB also. 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. The SAO, there's micro SD card. That's what you use to load new firmware in and there's also a bunch of DEF CON information on it, right? There's like stuff. Right. So the official DEF CON sound track is on the SD card so you can pop it out and check that out later. And then, yeah, I don't remember what else we put on it. Yeah, some secret. 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. So yeah, that's not required. 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. So it's a nice added feature. But yeah, take that out, check it out and see what's on it and insert it into your friend's computer. Yeah, see what happens. We have an infrared speaker, of course. 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. What was the original intent for that? We made an attempt. The idea was that we want people to interact with each other at the CON. 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. And I mean, now it's a challenge. So if somebody wants to make that work, go for it. And there is some support and some of the firmware stuff we'll talk about. So hardware works and then you can implement it. There are three things attached on the I squared C bus which is a very common interchip communication bus. You can add additional stuff on there too if you want to. You just need a clock and data line. But here we have the accelerometer for the detection of your position. Analog to digital converter that's used for the battery kind of power gas gauge. And I think it's all it's used for right now. But there is analog to digital converter if you want to add additional sensors or whatever. Feeding in analog to that. The real time clock also has a purpose. 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. If you set your time correctly when you started up your badge, you can do that for any of the rooms in the game. Thanks for putting those in. So you can check out the con that way which is also pretty cool. Yeah. And then the touch screen controller of course controls the touch. So right. Some of you might be wondering why am I up here. I didn't do the hardware design. I didn't do the firmware design. Because of the challenges, Mar ended up calling me a couple weeks before production manufacturing started and said, hey, we need some extra help. 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. And we needed to go to the factory and help them get ramped up. Because that's the critical part. We were using ICSN, an amazing company, Korean company based with a facility in Vietnam. And it's always much better to do things in person. Like a lot of times people like to just send emails or a Zoom call or something. But when you're building physical things, being in person, having that relationship and solving problems and everything on site is the best. Totally worth it. So we decided, hey, let's go and monitor the first boards off of the line to make sure that they're working. Let's get everything ramped up. Let's solve whatever problems we can within the 48 hours that we were on the ground in Vietnam. So super fun. This is a view of what the manufacturing, part of what the manufacturing facility looks like. Very clean, non-hackerish looking. It's a professional facility. And 30,000 pieces for them was like, okay, side quest. Which is pretty cool. So that shows the line going from initial put the board in, put the solder mask on, sorry, put the solder paste on. There's automated optical inspection for each stage. Components go on, pick and place, machine goes through the reflow oven, ends up at the end. 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. Like top level executives down to the managers that are on the floor working with people. The excitement of stuff and Mar and I were just completely giddy. To see this is such a cool part that you don't normally get to see, right? You make products or whatever. This is so cool that everybody was there. And so it comes out of the oven. And then what do we have next? Oh, yeah. The picture. Those are the first two coming out of the oven of actual production manufacturing units. And we were very happy with those. But then we had to say, okay, we have the hardware assembled onto the board. 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. There's always going to be some amount, some percentage of things that fail with hardware. But we want to make sure everything works. 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. 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. And actually one of the first badges that came back, one of the chips was flipped on the I squared C bus. So basically that chip was preventing other devices from working and so the power on self test that was happening was failing. Test procedure was failing and we're like, what is going on? And somebody at the facility figured it out while we were actually visiting a different facility, which we'll talk about. And we came back and they're like, oh, yeah, so that part, just a part position broke everything. So luckily that was something that got fixed. But a lot of little challenges like that throughout the day. Those snacks were the best part. Are they cheering for the badge? Maybe they are. Yeah, so this is the team and we're very, very happy we have the first units. And what we also did, which I think is next, is visit, oh, maybe it's not in there. It's gone. We went to go visit the injection molding facility. So those plastics are freaking awesome. Right? I mean, it's like, do you see, have you seen a badge with fully injection molded plastic around electronics? I don't think so. And I experimented with this last year and we ended up hitting a lot of issues because we'd never done it before. But no electronics in it. No electronics. So just the plastic injection molding. And that was polycarbonate last year. This one's ABS, which is a great material, but it was so fun to do. And yeah, so we got to get these samples right off the line, like hot out of the thing. Like here you go. Yeah. Hot out of the oven. They were still melted plastic. 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. And if you've noticed some of the speaker badges and other badges have colors. Mar was actually going to take those and dye them at home before bringing them to Defcon. It was going to take too much time to actually go between the colors and clean the machine. So I was like, well, what if we just don't clean the machines? And it's like, you know, the Jolly Ranchers or no, Dum Dums that are like the mystery flavor Dum Dums. And they just like keep running it through to the next flavor. So yeah, it's like different colors. We ended up getting some in-between flavors, which is pretty cool. And instead of you having to do them at home, the facility did it. And yeah, it was like vinyl records and all the different colors. That was going to be crazy. I was willing, but I didn't want to. Really? I mean, they turned out really cool. So yeah, that was another step. So onto the firmware. So Dimitri Greenberg, who's done some really wild hardware hacking and firmware development and everything, did the firmware. And what's running on these badges is, I guess it's called a micro Game Boy, but it's a Game Boy emulator. And this is pretty cool. 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. And a lot of really cool stuff. You know, people have loaded Game Boy games. 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. Jaku. I don't know his Twitter, but he has some links to some firmware hacking stuff already. So yeah, lots of custom APIs and there's some documentation on that, I believe, on a website that hopefully will remain there. There is, so you can save games and I think there's a current bug. Is that still being worked on, do you know? Fixed? Okay. So some of you may have noticed if you try to save the game, there's a little bug there. So that's being fixed. Still plenty of time for that. Or if you fix it first, let us know and then that's cool. Yeah, definitely. Okay. Yeah. Right. Written in ARM. So full on assembler and full on emulator here for Game Boy stuff. Yeah, so Dimitri also wrote this thing called Repalm. So who remembers Palm OS? Palm pilots. Yeah, that kind of shows the age of maybe half the people at DEF CON. There's some really cool stuff. Palm OS was one of the first early mobile platforms that actually worked as opposed to like the Apple Newton. But there's a lot of really cool apps that you can run on Palm OS. 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. Oops. We missed a slide. How do I go back? Oh, yeah. I think it's just the left. Yes. 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. They started loading those basically with gold standard SD cards. 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. How many pallets were there? Do you know? 19 pallets. 19 pallets of this and went along air or ship? Air. Went air. Flew all the way here and now you are all wearing them. So that is the story of the DEF CON badge. Great. All right. I'm going to open it up to Q&A. If anybody has questions for our crew up here, I'll just let you guys take it if you want to call on people. Are there microphones at ‑‑ actually, this might be the microphone for the questions or is there ‑‑ oh, there's a Raspberry Pi chip. Did you mention this is the first product that's actually using ‑‑ the first 30,000 off the line. Yeah. 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, from Vietnam and they slapped a chip on there, did the testing, it was okay. That's a big risk and it worked out because the support from Raspberry Pi was ridiculous also. There's a ton of questions now. Yes. So the cat came all the way from Denver on top of my car and I don't want it to come home. Somebody wants to make me an offer or steal it at the end of the con. It's fair game. 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. Is that our feedback? Where's the AV? Was that us? No. Not us. Right. And on the hardware, the schematics, all of that stuff also all going to be in the same location on the DEF CON server. Yeah, so we'll release everything. Sources and all that stuff. So probably stay tuned to the DEF CON Twitter, probably. I think it's like DEF CON.org slash badge slash 32. It's in the program as well if you forget what the link is. So sometime later today we will release something, some instructions, yeah. Oh, yeah, sure. There's also a discord if you guys want to hop on and talk to folks. Cool. If you can, you can continually get QR codes? Oh, I don't, you want to take it, Bonnie? I believe there's only a set number of QR codes, right? 12. 12 QR codes, 12 photos, and yeah, that's about it on the collectible. That's all. And then it will fill up that deal. Yeah. So it's not QR codes forever. If there's some kind of bug, I'm not sure. 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. Yeah. Thank you. Oh, hi. Wow. How are you? Yes. Thank you. Thank you, yes, DEF CON 14. Don't get any expectations about future badges, but yeah, good seeing you. So we are still ramping up production. We have a few hundred thousand going through tests right now. They will be available soon. But there are some development boards available now, right? From other places you can buy right now. Also, if you come find us in the ESV, I can give you some sample chips. I can't compare the size. I can say that taking them out would not make the chip die smaller. Well, I knew exactly what shape hole the core was going to fit into and I designed it to fit. So the engineer who put that in the system had them running in about two hours. I see Will down here nodding yes and he's probably the one to know, so. Sure. So it's on the Pico 2, which we announced yesterday, and you can also buy chips. You can buy the boards. Yes. No, so the game doesn't use it, but it's on there. You can play with it. It's a thing. I can't hear. Sorry, can you repeat that? Oh, yeah, that's my bad. I can't hear you. Oh, yeah, that's my fault. But the DEF CON site will actually have stuff on it. 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. Sometimes Easter eggs are fun. 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. People, I can't speak to the compensation side of things because that's not what we do. 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. 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. I would never make a good politician, but that's just how it is. 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, of course, and it's just unfortunate when things like that come up in a public setting. It was just unnecessary. Yeah, I believe 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. 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. 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. 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. If you can explain that. So basically, the game... Yeah, so if y'all got that. 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. Thank you so much. 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. Sure. Okay, so I'll answer that one, and I know we'll have time for one more question. 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. So it basically, this is actually the, I don't remember the V whatever 69, it's the second generation of the SAO. 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. So it's just an enhancement port for badge life. 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. Oh, USB-C, what about it? Oh, well, USB-C doesn't have a DFU. 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. Sweet. Okay. One more. There is not really a badge challenge. 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. All right. I think that's it. Thank you, guys. I love seeing all your blinking lights and all your SAOs, and thank you so much.