This talk is going to be about a software platform that we wrote to enable fuzzing RF protocols. My name is Matt Knight. I'm a senior security engineer at Cruise Automation. We are hiring. If you're interested in working with us, come find me after. I also lead the RF practice at Riverloop Security, which is an embedded security consultancy. If you go back far enough, I got a bachelor's in electrical engineering from Dartmouth, and pretty much everything I've done since then has been all about embedded systems and software-defined radio. That's me. And hi, I'm Ryan Spears. I'm the co-founder at Riverloop Security that, as Matt said, does embedded vulnerability and RF consulting. I also lead research at Ionic Security. I guess I'll claim we are also all hiring. My background's in computer science, but my focus after that has been in applied cryptography, embedded systems, special passion for IEEE 802.15.4 or ZigBee, and doing automated firmware analysis. Cool. So we're going to begin this talk in a little bit of a nontraditional way. We're actually going to... We're going to kick this off with a demo, and then we're going to talk about what we're watching here throughout the rest of the talk. This will just take about 15 minutes. So when Ryan and I were conceptualizing this research, we were thinking, what could be the most boring demo to possibly show on stage at DEF CON? And we thought that live... It really can't get much worse than live fuzzing. So... But that's what we're going to do. That's what we're going to be talking about. So we're going to come back to that. The background for this talk, and I wanted to do that for like another five minutes, but he said no. So the background, a few things that you might be interested in. Some of the research here builds on research we did in making and breaking a wireless intrusion detection system, which myself and Javier presented at Troopers, as well as an ACM paper about speaking the local dialect, which was about idiosyncrasies in phylac. So we're going to talk about how we can use these for not just use the fuzzing to do bug discovery, but also to figure out differences about the physical layer finite state machine, and then generating fingerprints to identify chips differently based on that. Cool. So we're going to kick off with an overview of traditional fuzzing, kind of fuzzing as I think most of us know it. We're also going to comment on how those don't easily map to RF, and kind of the motivations. We're going to talk about some of the design principles that went into it, and then finally we'll come back to that example we showed, kind of show the significance of it, and then we're going to wrap up ruminations on hardware and where we want to go with this research to enable fuzzing arbitrary wireless protocols. Sure. So going through, and I think most people know or have some background in this, so we'll go through relatively quickly. Fuzzing is applying pseudo-random input, put into the system. The goal is to automate discovery of crashes, corner cases, bugs, et cetera. We're feeding in unexpected input and trying to find out if we can get the system in an unexpected state. Overall, people typically attach fuzzers to system interfaces, input-output, injecting into, like, to feed files to see if a file format parser works correctly, to feed bad or malformed data into network interfaces, or to play around with the memory state of a machine. And for software, there's a lot of really great tools out there, right? AFL, which is a pretty advanced tool that uses memory introspection to help advance its state coverage. Peach Fuzzer, which, although is a legacy tool, is still used today. And SCAPI, which is a network protocol generator, but also has some basic fuzzing in it. Now, what's interesting with software, is you can instrument and hook it at many levels. You can control, typically, when it starts execution, when it finishes, monitor the state, monitor the state through hooks or memory execution. But what else can one fuzz? Cool. So we're briefly going to run through some other applications of fuzzing. So fuzzing hardware is something that's been done through a couple different approaches. The challenge is that with hardware, the interface is often a lot less trivial to monitor than it is in software. Where you control execution, where you have easy ability to kind of attach that interface. So it may not be easy to get a harness that can hook into hardware and monitor its state. But there are some pretty interesting approaches that have been made here. For instance, AFL Unicorn, which emulates firmware to fuzz. That we use through different pinouts to look for data rates to find digital buses on hardware. And also JTAGulator, which does the same looking for unlock JTAG. So those are kind of like fuzzing hardware interfaces to try to find pinouts and things like that. And there are some others too. When we talk about fuzzing RF, there are a couple different projects I want to comment on just to kind of frame the state of the art. YFuzz is an open source project that's a layer 2 focused 802.11 fuzzer. Again, it's just focused on the Mac layer. And it doesn't engage the PHY really at all. It's also built pretty specifically for 802.11. So to take that and move it over to, or extend it to support another wireless network. It would be non-trivial. Additionally, my former colleague Mark Newlin. What's up, Mark? When he was doing his mouse jack research two years ago, he used fuzzing as part of his methodology for injecting packets at these NRF24 HID dongles. To find different packet injections and wireless mouse and keyboard protocols. Mark chose not to open source his tools for that. Shame on you, Mark. So we cannot build on his great work. And additionally, if we go back to Ryan's original 802.15.4 phy layer fuzzing research, he wrote the isotope framework, which was an 802.15.4 fuzzer. Again, that was also fairly protocol specific and not easy to extend. Shame. Shame. So kind of to tie that up, limitations of existing RF fuzzers is that they are generally siloed and protocol specific. They might use a COTS radio chipset that may or may not expose the PHY. And they're generally limited to like a single protocol. Because they're built with certain features in mind. Additionally, as with hardware, RF state is pretty challenging to instrument. It's really hard to measure what constitutes a crash or some sort of a weird behavior in an RF protocol, whether it's like a traditional layer two approach or if you're trying to identify behavior on the PHY. Additionally, if we're using a COTS radio chipset, we're kind of forced to trust what it's giving us. We don't have a lot of visibility into the execution of what's actually happening on the PHY chip. So that's part of what we're trying to expose with this research. Because there's an interesting characteristic here. And that's that not all PHY state machines are created equally. And I'm just going to share some ruminations on standards and kind of how they come to be briefly just to frame this. So if an industry group decides that they want a standard. Say your power company decides that 802.154 isn't sufficient for doing wireless meter reading anymore and they want something new. They all get together in a room with a whole bunch of stakeholders. They spend years talking about it. They decide what they want to be in the standard. And then they turn that into a nice easy to read 5,000 page document. That may or may not be freely available. You may have to buy it. They might make it available. But anyway, different manufacturers get the standard. They take it home. And then they have to interpret it and turn those interpretations into a chip. They have to take that and turn that into something that actually works. And as you might imagine, even the most well-formed, closed, comprehensively defined standard, is still going to leave room for interpretation. And there's still going to be differences in these implementations that we can monitor and begin to instrument off of. Some of these differences can be pretty profound and can be exploited, as the initial 802.11 research showed. So we're going to show how these fuzzing methodologies can be applied to RFIs to expose different corner cases in these protocols. Before we do that, we're just going to share a brief primer on how radio frequency communications actually work. And this is going to be very, very high level. So we're talking about radios here. And radios are devices that take ones and zeros and translate them into electromagnetic energy for the purpose of transmitting them over some distance, some air gap distance. And they do the inverse, too. So when we're talking about transmitting, we're going from ones and zeros into electromagnetic energy. When we're talking about receiving, we're taking electromagnetic energy and going back into ones and zeros. And the hardest part with building a receiver has to do with sampling and sampling. So we're synchronizing on the energy state that represents a signal. So I have just a picture we're going to talk about briefly. Does anybody in the audience know what this is? Yeah, I heard Bodline, so that's the name of the tool. But this is a representation of a spectrogram. So what we have here is we have time in the X axis, frequency in the Y axis, and then power in the Z axis. So we're looking at a signal here. And we're just going to talk briefly about what's here. We've got a periodic pattern that repeats in the beginning. It's a preamble. And that's just an alternating sequence that tells the receiver, hey, I'm about to receive a packet. And it also tells the receiver some information about the clock of the transmitter so that it can do some synchronization. At the end of the preamble, there's an element called a start-of-frame delimiter. And what that is is that's a discontinuity from the preamble that is a magic number. So the receivers know to look for the start-of-frame delimiter. And when it sees it, it's going to say, okay, I'm done receiving the preamble. I'm going to lock on to this and just start reading out bits. And that represents the rest of the data. So the preamble is kind of the training sequence. The start-of-frame delimiter marks the end of it. And then the data follows. So we can boil a rough abstraction of an RF state machine down to look something like this, where when the radio chipset is in its idle state, it's looping over the seeking preamble state. When it sees that it's receiving a preamble, it moves on to the seeking SFD state. If it receives an SFD, it's looping over the seeking preamble state. When it sees that it's receiving an SFD, it basically starts reading out data for some number of bits before presenting that up to the Layer 2 parser in some way. So we're going to dig into these two states and talk about to kind of frame physical error fuzzing. So the way these two states work is they essentially run a correlation operation across the symbols that are being received from the demodulator. So this correlation is basically a shift register. It's clocking demodulated bits through at the symbol rate while it's looking for a pattern. So when we're looking for the preamble, we're looking for that alternating sequence of 0s and 1s, that 0, 1, 0, 1, 0, 1. And when we get a good enough match, then we can say with confidence, we've received a preamble, we're about to receive a packet. Let's go to the next state and start looking for the SFD. And that's a very similar operation, although instead of looking for that 0, 1, 0, 1, we're looking for whatever the magic number of that protocol is. So just to kind of illustrate this briefly. I'll talk about this table here. So on top we have RF symbol values that would be clocked through the shift register. And then beneath it in the preamble correlation value row is the magic number that our physical layer standard is looking for here. A pretty standard implementation here is just to have that alternating 0, 1, 0, 1 pattern. So what this correlator is going to do is it's going to XOR the current state, the current symbol value state against that magic number that we're looking for. And then it's going to compute the Hamming distance of that result. And the Hamming distance is essentially the number of bits that are set. And it basically represents the number of bits that differ between the current state and the value that we're looking for. So if we're looking for things to match really well, we're looking for that Hamming distance to be 0 or very, very close to 0. So if, say, we had an arbitrary packet on the air and we're clocking these values through, 0, 1, 0, 1, 0, 1, you can see the Hamming distance changes. It goes up and down until finally we've loaded the preamble into the shift register. And we can say with confidence, all right. These two strings match or match below a certain threshold. We think we're receiving a packet. We're going to move into the next state. So we do the same thing with the SFD state machine. Don't have to illustrate it. The only difference here is that rather than looking for 0, 1, 0, 1, we're looking for that magic number. Well, it turns out, as Ryan's research a couple years ago discovered, not all of these sync words and preambles are implemented. They're not all implemented the same way across manufacturers. So certain chipsets were found to correlate on different preambles and sync words than others. So that's really interesting because as attackers, if we're able to strategically malform or leverage that, we can get RADIUS to do really interesting things. So we can do things like send short preambles, send different sync words, and characterize how these different chipsets perform. And we can automate the discovery of this process by applying fuzzing. So with that, I'm going to hand it back over to Ryan. And he's going to talk through the design. And he's going to talk about the design of an ideal RF fuzzer. Exactly. So what we set out to do is sort of think first about what were we not getting at existing techniques that either we were writing one off for clients or for projects or for research. And also what did we not find in some of the existing tools. So these are sort of the four things that we wanted to come out of it. First of all, we wanted to be able to easily change out the RF interfaces, use different radios. This can be because we need to work on a different frequency or because we want to work on a different protocol. Et cetera. Then we wanted to have flexibility in how we generated the test cases. There's a lot of great tools, some of which we talked about earlier, that can generate fuzzing test cases. Some are generative. Some are mutative. We wanted to be able to plug those different ones in in a flexible way. And then reusable. And I think this was a main one for us. We had done this research on 802.15.4. We want to do some of this and port it over to other protocols. We'll talk some more about that at the end. And then lastly, the comprehensive alludes to the fact that we didn't want to just fuzz layer 2 and above, the MAC layer and forward. We also wanted to expose the PHY layer so that we could tweak it and fuzz that. And that's something that is sort of unusual in a lot of fuzzers. So out of that came something that we are releasing and talking about called TumbleRF. TumbleRF is a software framework for fuzzing arbitrary RF protocols. And there's sort of three things that it abstracts out. First of all, the radio API. Second, how do we do the test case generation. And lastly, how do we, what we call the harness, which I'll talk about more in a minute. It's how do we instrument the state and monitor the state of the target. And so if we draw this up in a fancy architecture diagram, it looks like this. The sort of the middle of the test case management, command line interface and results logging are the things that we didn't want to keep rewriting every time we did this. Then what we want to do is be able to change out the stuff on the top, the right, or the bottom. The test case generator, which creates sort of the bite patterns that we're going to send out on the radio. The harness, which measures the state of the target. And as the lightning bolt, which we all know is how RF looks, is how we transmit, right, from the bottom thing. And so we send lightning bolts across from the transmitter to the receiver. They wouldn't allow us to do the demo on it. They wouldn't allow us to do the demo on stage for obvious safety reasons. I just want to say for the record, it does look like that if you short your PA out. Yeah. We have made lightning bolts at times. Not on purpose. So I'm going to step through each of the interfaces. And the reason that I'm sort of going to go into the depth more than we may typically do is because we want you to understand that this is a simple, we hope, easy, we hope, usable, we hope, interface that you can take, modify, and extend. So if you want to add something to this, you can. If you want to add a new radio, what you need to do is implement the interface. And to do this, you basically inherit this class, it's Python, and implement a few functions. Transmit, start receiving, stop receiving, you know, get radio frames. And then we have a few set and gets. And this is to change the channel, but also some of the stuff if you have the ability on the interface you're working with to set the SFD or the preamble. And that gets into some of the file layer fuzzing that we'll be using today. The next is the generators. This is how do we generate the fuzz, you know, the fuzzing input into the system that we're going to send out. The goal of this is to integrate between either something that you write in custom for a protocol or maybe you're tying into one of the fuzzers like peach or scappy that we talked about earlier. You have to implement two functions. One is the control case. It sends a frame. It should return a frame that is typical, standard. Totally kosher as the standard specifies. And then the other is something that yields test cases. And this spits out the permuted input, the randomized input or whatever we're going to use to try to cause a bad state. In what we're showing today, we're going to be using the preamble length generator, but we also implemented two others. We'll show you the preamble length in a minute. More illustrated. The other one is to put nonstandard symbols in. So if the standard says this map points to this. What if we start changing that? 1, 1, 0, 0, 1, 1, 0, 0. And seeing what happens to the radios there. We also can put random payloads in the message as an example that this is not just applicable to file layer fuzzing like we're focusing on today, but also fuzzing the macro application layers. And the last major of the classes that you can implement is the harness. The harness's job is to evaluate the device under test. See if it's in a good state, bad state. See if it's in a bad state. Or, because this is important in embedded fuzzing, to reset it. Get it back into a good state when we cause it to go haywire. And so we have different ways to do this. Today, for simplicity, we'll be using the received frame check. Basically listening on a radio and saying, did I get a frame? Did I get a frame? Did I get a frame? And that works really well for file layer fuzzing. Because you can know it's because of the file layer and not because of some upper layer because we can configure other things out of there. But also, if you're working against a real target, you often won't be able to do that. You may monitor its state by seeing if you get an acknowledgment frame back, if it acts your frame. Or by monitoring processes to see if they crashed. Or looking at serial output to see if you have a serial console on your target, which we all know they like to leave. Then you can see if you're getting good output that indicates a good or bad state. Lastly, we tie this all together by looking at the data. This is what coordinates the generator, the interface, and the harness. This is typically very lightweight. And we have some that are defaults and some that you can extend. Today, we'll be using what we call the alternator case. Very straightforward. Send a good frame, see what happens. Send a fuzzing frame, see what happens. Good frame, fuzzing frame, et cetera. And the purpose for that is to just alternate between no and good states to see if we're still operational after injecting. So, this is what we're going to do. Cool. So, we're going to show you a quick demo of TumbleRF in action. Going after some certain physical error characteristics in the 802.15.4 preamble. Sorry, 802.15.4 protocol. So, this is what the test setup looked like. We're going to show a recorded video demo at DEF CON's request. So, here's a laptop that's running the TumbleRF framework. Just running it natively. And hooked up to it are a series of dev boards. So, we have three devices under test that we looked at. They're all 802.15.4. From left to right, we have this TI CC2420. Which is mounted on an Appemote. Which is an 802.15.4 test board that Ryan designed a couple of years ago. Next to that, we have a dev board from TI that contains a TI CC2531. Which is essentially the updated version of the CC2420. And then, right next to it, plugged into the laptop, that small black dev board is an Atmel RZUSB stick. Which has the AT86RF230 chip on there. Which is another great feature. Another 802.15.4 chip. And today, to conduct this test, I'm going to be injecting a stimulus signal from a USRP B210. Which is just a software-defined radio. Any software-defined radio would work with this methodology. So, when we talk about our architecture here, the three dev boards on top are going to be tied into the framework via an RX interface within the harness. And then, the TX interface, injecting into these devices, is going to be the USRP software-defined radio. All we had to do was extend the test case generator to enumerate the preambles. And that's all that we had to do on the tumble RF side to get this ready to go. So, the case that we're going to be looking at here is the 802.15.4 preamble. So, the 802.15.4 standard stipulates that the PHI header is comprised of three elements. The first is four octets of hex zero valued bytes. So, we have four octets of zero that represents the preamble. After that, the start of frame delimiter is hex A7 in the standard. That's the magic number that the receivers are all looking for to correlate against. And finally, it's followed by one octet of length. It's actually only seven bits, but there's one unused bit in there. But that follows it. That's in the standard. So, what we're going to do is we're going to experiment with the preamble length. So, we're going to see what happens as we begin to take away preamble octets as we send stimulus frames at these receivers to see what we can reveal. So, to generate this data, I'm actually using GNU radio. Since it's a software-defined radio, it's basically a blank canvas for us to do anything that we want RF-wise with it. We could use a hardware-defined radio if we had access to low-level registers that allowed us to configure PHI characteristics, which the API mode does. But for simplicity and for kind of mutability, software-defined radio is a nice way to do this. So, I'm using the GR IEEE 80215-4 out-of-tree module, which is written by a gentleman named Bastion. He did a really nice job architecting it. So, to cut out the PHI header, all I had to do was bypass that access prefix or block. So, what that block normally does is it appends the preamble to the start of frame delimiter in the length. When you bypass that, it doesn't do that, which means that I can then go upstream into total length. So, I'm going to go to the TumbleRF and implement those values in software on the host. So, it becomes super, super easy to iterate over, and it was very easy to set this up. And then this is hooked into the radio API via TumbleRF using a radio interface. So, we're going to tap over and show a quick demo here. We'll pick up where we left off. Give us a moment to take a drink of water while you watch more thrilling live fuzzing. This was super, super brave of us to do a live video demo of fuzzing at Tepcon. So, thank you for bearing with us here. Yeah. So, should wrap up in just a minute here, and we'll be able to take a look at the results. So, what's happening here, as Ryan mentioned, is we're running the alternator test case generator. Sorry, the alternator test case here. So, what this is doing is this is injecting a control case, a standard 802.15.4 frame to make sure that the radio is in a known good state before injecting a test case. And the reason why we always send a control case before a test case is if we want to run this thing and go to lunch and run it like 10,000 times, if it crashes on the 300th iteration, we don't want to have, you know, 9,000 false positives following it. We want to make sure that the radio is in a known testable good state before we send data into it. So, at the end of it, we can jump over, use the parse results script that we have to print it out, preprint it, and then we can talk about it in the next slide. So, we're going to go back to the slides, but it will have the same content. If you remember, test case 6 and 8 have interesting switch from valid versus invalid versus the rest. So, if we look at this. Do you want to drive? You want me to computer for you? Yes, please. Okay. Cool. So, now, what the output of that is is in the upper right-hand corner. It's actually from a different run, but it's about the same results. We just ran over 50 iterations when we're actually doing this. We run much longer. So, one thing that I, you know, want you to take away from this one, we've added some color highlighting from the three different chips around here, is that you have three transceivers, three different chips, made by two different manufacturers, all implementing what should be is a single protocol. But you have three behaviors coming out of that. Right? And so, if we look, for example, between the CC2420 in the upper left, the one on the app emote, and the Atmel 86RF that we just showed you the video, thrilling video demo of, one thing that you'll notice, for example, is that test case 2 and 4 are received most of the time on the CC2420. But they are received none of the time on the Atmel. And even between the two chips by the same vendor, by Texas Instruments, on the left-hand side. You do see differences, especially around test case 2, in the amount. And when we break this out to, like, thousands of iterations, you see this continue more clearly, statistically. You see a difference in how those respond to those cases. If we look back to the conversation about how RF physical layers actually implement this logic, you can kind of intuitively think about how this might work. So, the Atmel 86RF either uses a longer shift register to correlate against or has a much stricter threshold. For that preamble to hit against. Whereas the TI chips probably implement a more, either a smaller shift register or a more lenient correlation threshold that it's looking at. So, why should we care about this? Well, these results allow for us to do selective receiver targeting and intrusion detection system evasion. If, say, for example, we had, like, some sort of a network coordinator or an IDS or some sort of intelligent device in the network. That was doing orchestration and coordination. It was built on an 86RF chip. And we were trying to attack a device that was built on a CC2420. We would be able to use a dialect that only used one or two preamble octets. The device that we were targeting would receive it. Whereas the device that was monitoring activity on the network would have no idea that that traffic even occurred. So, this really invalidates all of the assumptions and precedent that a security device built on that would have been designed with them. So, that's that. That was a finding that I have to attribute to Ryan back a couple years ago when he initially did the research. But I think this is really profound when we think about physical layers and the manner in which we trust them. So, to kind of wrap this up, I want to talk briefly about RF interfaces and where we want to take this research and what we want to enable further work here. So, one of the challenges, as you just saw with presenting this demo, is that developing arbitrary RF content, arbitrary physical layers to inject at these receivers is not always easy to do. And the reason why is because not all radios, not all COTS radios are able to generate things like arbitrary preambles or change the SFD value that it's correlating against. Or even change the packet format, modulation, things like that. In order to do that on the physical layer, we either need to rely on software-defined radio or get our hands on a transceiver chipset that enables us to configure these things. So, software-defined radio is really powerful. I just showed how IEEE 802.15.4 can be used to do this. GRIEE 802.15.4 was easy to get set up with this because it's very well designed. But SDR has a ton of drawbacks, too. And I say that as a huge SDR fanboy. GNU radio is super, super complicated and can be pretty hard to develop for, especially if you don't have a lot of domain knowledge or experience. Additionally, SDR hardware is pretty expensive. You know, it's a couple hundred bucks to get your hands on a basic SDR that can transmit. So, you know, not everybody has one of these things just kicking around. Additionally, if you're doing anything that's timing-sensitive. So, if you're trying to fuzz sequences of packets or do anything very low-level timing-dependent, if you're using a USB-based software-defined radio and you have to go over that link between the device and the host, that's a very high-latency operation. So, a round-trip USB, I think, is around a millisecond, well optimized. A millisecond is a lifetime when we're talking about symbols and RF over the air. Additionally, software-defined radio is pretty expensive, so it can be hard to embed. When we talk about configuring SDRs. So, the issue that we run into is that transceivers are generally purpose-built and designed to do one protocol very well. They might be band-limited in terms of where, like, the frequencies at which they can tune to. So, if you're trying to experiment with, like, offsetting a channel from the frequency that is stipulated by the standard, you might not be able to do that. Maybe you can't specify, like, a floating-point value to tune to. Maybe you can only give it, like, a channel index, for instance. However, some of the benefits you get is that they're low-power. They're generally exposed over serial APIs that are pretty easy to work with. And some examples of these powerful but inflexible transceivers are things like LTE basebands that are used in cell phones, like the two that we have on the right there, the NRF24 chip on the left, and then there's an ESP for 802.11. These are good chips, but they don't really suit our purpose when it comes to fuzzing the physical layer. However, there's a certain class of hardware-defined transceivers that have a lot of flexibility with them and can be used in a manner that's actually almost similar to software-defined radio. They have some very STR-like features built into them. And the radios that I'm going to talk about, or the first radio I'm going to talk about, exposes PHY configuration via registers in a very powerful way. So we're going to talk quickly about the Appymode, which is a board that Ryan designed. And Javier. And Javier, yes, credit where it's due. It was kind of the tool that enabled all this initial 802.154 research. And what this board did that was really unique was, through the GoodFET framework, it exposed PHY configuration registers that were hidden in the CC2420. So with that, they were able to do things like modify, do just what we showed with the preamble length, but also modify the SFD value that was being looked for. And it also provided a serial pin that could be pulled to basically get very, very low-level insight, real-time insight into the state of the receiver's finite state machine. So this was useful for doing things like low-latency injection, getting around some of those timing limitations that occur when you have a serial, like a USB B-link in line between the host and the device. However, as awesome as the Appymode is, it's in need of an update and can use a little love. The CC2420 is end-of-lifed. Although we have an impressive stockpile of them and we're good on that for a while, we are going to have to contend with that eventually. The bill of materials for the Appymode is also pretty expensive. It has like a... Tactile switches, memory, all things designed so that you can do things like take it, throw it over a wall and leave it, come back and pick it up after you've monitored your target. But when you're doing research on a desktop, you don't really always need those. Yes, we'd love to make that cheaper. Additionally, in recent years, we've encountered some USB issues as, you know, Pi USB has diverged from whatever configuration is in our FTDI chip. Right. That's on the board. The CC2531 is a chip that we looked at to upgrade to. However, it doesn't expose Phi configuration registers in the same way that the CC2420 does. So we're limited to a much stricter implementation of the Phi there. So I started looking at some other chipsets as things that we could build on. That led me to the ADF7242, which is a really interesting chip made by Analog Devices. It's a 2.4 gigahertz transceiver that supports a whole bunch of modulations, including 80215-4. It also does, you know, arbitrary FSK, and I think does Bluetooth and Bluetooth Low Energy, too. It's a super, super powerful radio. However, the most interesting feature, in my opinion, is Sport Mode. So Sport Mode, I forget what it stands for. It's some sort of an acronym. What Sport Mode essentially does is it uses the demodulator but bypasses the decoder and all the framing logic that's implemented in the transceiver. So what it does is it allows you to stream raw symbols over a serial interface back to a host. So if we do that and we bypass that, we can then implement all those low-level physical layer features that we're interested in in software. So that enables us to have full control over the physical layer for most 2.4 gigahertz protocols. Super, super exciting. We're really excited to build this out. Appy Mode 2.0 is going to do a lot more than 80215-4, hopefully without giving up any functionality. So with that, I'm going to briefly talk about this project I've been working on called Orthris. It's a code name. And the reason why it's called that is because it's named after a two-headed dog from Greek mythology that Hercules or Odysseus killed or something like that. So it's the spiritual successor to the Appy Mode. The reason why it's named after a two-headed dog is because it has two heads. It uses two radio front ends to do some really cool things. So it's got an ARM host on board for implementing radio logic on it, radio state machines. That also enables host communication to USB. But it also enables us to implement the decoding logic that we're going to be processing data from sport mode within to do really cool low-level stuff. Additionally, as I mentioned, we're going to be using two of these ADF7242 radios on board. And the initial reason for that is because the ADF7242 has a very slow retune time. So if we want to do any fast, like, frequency-hopping stuff or any, like, timing-dependent things like that, that's something that we might run into. So, for instance, Bluetooth hops, I think it's, like, 1,600 times a second. That's really, really fast, and this chip couldn't keep up with it. Additionally, we can do things like very fast reactive jamming, where we can have one radio sitting in receive mode, looking for some, like, a packet to occur on the air or some state to arrive, while we have the other radio set, primed, and ready to transmit, sitting in transmit mode, so that all we have to do is send that a command, and it can fire very, very quickly. So this will be able to enable things like high-speed responsive jamming, which is really cool. In addition, the App Emote required a lot of, like, kind of, like, finagling with serial lines and things like that. You guys ready to see the prototype? Check that sucker out. So it's a Teensy wired up to a dev board. Custom hardware is in progress. I would love to have some help working on this. I think it could be a lot of fun and enable some really cool low-level physical layer stuff. So if you're interested, you know, come talk to me after, and we can get you on the GitHub and stuff. So kind of the initial things that we'd like to achieve is, obviously, implementing FIDA coders and firmware, so that we can start to play with them in a fast, iterative way. Additionally, abstracting away front-end manipulations so that we can run them in a blue-green fashion, similar to how one might do, you know, production cloud-based software, things like that, so that we can do fast retuning and channel hopping without having to, you know, do things manually. Something that I think is going to be really interesting beyond that, though, is abstracting away the radio, state machine, so that rather than writing event loops and firmware for every radio protocol we want to implement, we can instead write a generic kind of framework for doing that and then pass five configurations to it via a configuration file, so that we can write a well-designed event loop once and then implement new radio protocols just by, like, writing, like, a JSON file defining what all those values look like and things like that. I think that could be really cool. So if that sounds interesting, I'd love to chat with you afterward, and we can make this thing awesome. So we are looking for help not just on that, but on TumbleRF in general. We are going to be adding some more protocols to this and doing some more of our own research off of it. However, we are sharing this, and we'll show you the GitHub link in a moment, because we think it would be great for people to be able to add on, whether that be adding a radio interface to fuzz your favorite protocol, whether adding a generator if you have an idea about a fuzzing state that you're like, hey, could this get a radio into a strange state? Good to add. Or a harness to check the devices. Or a device you're instrumenting against. So in addition to what Matt mentioned on the Orthris with firmware development and the state machines, we are open to collaborating with anyone who's interested in it. That is the end of our talk. Although, if you really want, we can go back and show more live RF fuzzing. But really, there's the GitHub link. Thanks to DEF CON crew and the goons for helping us out. And to Riverloop Security, Cruise Automation, and the rest of you. And Ionic Security for letting us do this instead of being at the office sometimes. There's our contact information. You can tweet at us with complaints. Or compliments. Or our e-mail addresses. So feel free to reach out. We'd love to hear from you. We have, I think, five minutes left. If anyone has questions, we'll take one or two. Otherwise, after this, if you go out the doors in the back and go to your left, we will be there to answer questions so that we can keep DEF CON moving on time. Anyone have a question or two? Can our cheerleading crew stand up and show the audience why we're being pissed at you? Okay. So the question from the front row. The question from the front row, I believe Alex, he's a little slow sometimes, asked us to go back to the beginning and start again. Yeah, let's do that. Thanks, Alex. Anyone else? So just one comment to wrap up. As we've kind of worked through this and done more and more work on this, we focused on 802.15.4. I think applying this methodology to other protocols is going to rain bugs. I think we're going to find things across all sorts of different protocols. So we're excited to work on this and we'd love to get you involved if you're interested. So I think we can wrap up. Thanks very much. Thanks very much. We'll be in the hallway on the left if you want to chat. So thank you.