start	end	text
1510	2430	Hi, everyone.
2430	7830	Welcome to Hacking IEEE 802.15.4 Low-Rate Wireless Networks.
7830	8950	My name is Dan Perrette.
8950	12110	I'm one of the volunteers with the RF Hacker Sanctuary.
12290	21170	And I help design and run challenges for the Radio Frequency Capture the Flag that we run at several conferences throughout the country.
21330	24930	And part of that is what prompted this talk.
25650	30950	So what we're going to be talking about today is what is IEEE 802.15.4?
31270	36650	It's not something that a lot of people have heard of, unless you're very familiar with some of these low-rate protocols.
37130	45610	We're going to talk about sending and receiving IEEE 802.15.4 data and some hardware and software tools to do that.
45810	51510	I think that's kind of the most basic you can get with hacking these types of networks.
51510	56490	And then we're going to talk about some RF Capture the Flag 802.15.4 challenges.
57510	60410	There's a basic IEEE 802.15.4 challenge.
60410	67110	There's also a 6LowPan challenge that I've been running for a little while, and then a new challenge that I introduced very recently.
67650	74930	So if you're looking for zero days or new novel research, that's not what's going to be in this talk.
74930	80270	I'm going to be talking about how to interact at a basic level with some of these types of networks.
80810	89110	It's something that I've seen people seem to struggle with a little bit, and I want to share what I've learned about interacting with some of these signals.
89770	100330	Mandatory disclaimer, the viewpoints, opinions, and recommendations in this presentation are my own, and they're not representative of the views, opinions, or recommendations of my employer.
103020	105720	So what is IEEE 802.15.4?
106240	112360	IEEE 802.15.4 is a standard from the IEEE for low-rate wireless networks.
112360	115840	It was first introduced in 2003.
115840	132100	It defines the physical and the MAC layers, meaning how the physical signal is sent over the air, and then also the media access control layer, so addressing different devices on that network.
132100	136200	So we're talking about point-to-point, from one device to another.
136360	140600	That's the kind of thing that this standard specifies.
140600	146940	The latest version is 802.15.4.2020, so that was released two years ago.
147220	151340	You can get a PDF of that standard for free under the IEEE GET program.
151460	153680	It's about an $800 paid standard.
154160	158000	If you really want to read through the entire thing, have a good time.
158430	162200	We're going to be focusing on just the most common things that are in there.
162740	172680	So 802.15.4 can range anywhere from 169 MHz up to 10.2 GHz, depending on which physical layer implementation you're using.
172820	176820	They actually do define a couple of different options for the physical layer.
177380	182960	I don't know that some of those are all that common, but they are possibilities.
182960	189900	In the U.S., the 2.4 GHz and the 915 MHz bands are the most common.
190040	203100	The 915 MHz band is split up into 2 MHz channels from 1 to 10, and then the 2.4 GHz band is split up into 5 MHz channels, numbers 11 through 26.
203860	212740	I would say the 2.4 GHz band is probably the most common, or at least those are what we're going to be talking about when we get to the challenges later.
215000	223080	So I mentioned that IEEE 802.15.4 defines the physical and the MAC layers for sending these signals.
223400	235820	And so let's talk just a little bit about the OSI model, and I'm going to talk about that just a little bit because the OSI model, I think, is the networking abstraction model that most people are familiar with.
236420	251360	It's not perfect, and so we're not going to dive super deep into things like certain protocols kind of split some of these layers, like the data link layer in particular, and how IEEE defines things slightly differently than OSI.
252120	263140	But the main thing I want people to take away from this is that there are different layers, and we're talking about those bottom two layers, the physical and the data link layer, or the physical and the MAC layer.
263580	269980	So if you're talking about other protocols like Ethernet, that's at the same level, the physical and the data link layer.
269980	273000	Same thing with Wi-Fi, physical and data link again.
273180	283760	On top of that, you can use other protocols like IPv4, IPv6, TCP, UDP, TLS, PPTP, SOX, and all the way up to the application level, HTTP.
284160	288640	So IEEE 802.15.4 lives down at those first and second layers.
288640	298480	A very, very short rant and a nitpick, IEEE 802.15.4 is not the same as ZigBee.
298480	301980	So a lot of people have heard of ZigBee.
301980	303760	It's got a really catchy name.
303800	307720	It's great in its own right, but it is not the same thing.
307860	312680	So IEEE 802.15.4 is the MAC layer and the physical layer that ZigBee uses.
312680	315380	However, they are not interchangeable terms.
316080	322040	So taking a look back at the OSI model, IEEE 802.15.4 is at the physical and MAC layer.
322140	329160	ZigBee, 6LowPan, Thread, there are some other things, too, that you can put over 802.15.4.
329160	332980	Those are all in those higher level layers.
335850	339930	So next up, receiving and sending 802.15.4.
339950	348290	So again, I think this is sort of the most basic thing that you can do with some of these signals, aside from maybe just detecting that there might be a signal at all.
348290	359770	So if you look in the background underneath the presentation, underneath the slides, you see a scrolling waterfall display that's actually centered up on a fairly active 802.15.4 channel.
359770	366010	And you can see some things that are about 5 MHz wide, and those are very likely 802.15.4 packets.
366230	373070	This is also overlapping in their range of Wi-Fi, so some of the more broad spectrum things are likely not 802.15.4 packets.
374150	380590	But there's a decent number of 802.15.4 packets scrolling through that waterfall behind me.
381390	387070	So some of the common tools for sending and receiving 802.15.4 packets that we're going to run through.
387070	406630	Killer Bee, OpenLabs 802.15.4 radios for Raspberry Pis, Nordic, Nordic Dongle, SILO OpenSniffer, FreakLabs has a Freak USB dongle that is helpful, and also some SDR tools or software-defined radio tools for interacting with it.
407070	408990	So first up is Killer Bee.
408990	415970	This is kind of the OG for manipulating IEEE 802.15.4 traffic.
415970	421930	Also ZigBee, the name Killer Bee comes from ZigBee.
421930	425210	It's obviously some inspiration there.
426110	433470	So this is an old tool set, and it's fantastic for capturing and manipulating traffic.
433990	447610	Some of the hardware that you can get for it is, or that can be used with Killer Bee, so the App Remote V4 up at the top there, that's something that Ryan Spears and Sergey brought us, introduced at DEF CON a number of years ago.
447950	452590	And that's a fantastic tool for interacting with some of these networks.
453750	455910	Downside for a while, it was a little bit hard to get.
455910	460790	I think there's actually a vendor now selling those for somewhere around $150 or something.
460830	463790	I don't have any experience with that particular vendor.
464390	472390	Sergey and Ryan were nice enough to give me one of these boards after their talk at DEF CON, and I very much appreciate that.
472390	479650	That's enabled me to mess around with a number of different 802.15.4 protocol or devices.
479650	486330	Also, the Atmel RZ USB stick, which unfortunately is not made any longer.
486850	490150	So this was somewhere around $30 when it was available.
490690	493150	Sadly, Atmel decided to stop making it.
493150	503470	This is something that you could flash with the Killer Bee firmware, and then use that with the Killer Bee tools like zbdump, zbreplay, and all that sort of thing.
504430	514090	Something that I haven't used, but I've heard that other people are using with some success, the TICC2531 dongle, which you can see down in the lower right there.
514530	525470	That, as I understand it, is capable of sniffing only with Killer Bee, but that's another viable option for potentially capturing 802.15.4 traffic with Killer Bee.
527710	531030	Next up, the OpenLabs 802.15.4 radio.
531030	536790	So this is something that can transmit and receive 802.15.4 and 6LOPAN.
536790	538610	It's open source hardware.
538630	545190	You can sniff with TCPdump, at least within the channel that you're currently on.
546390	550610	It's fairly inexpensive at around $13 when it's available.
550910	554410	There unfortunately is intermittent availability with it.
554410	558050	That said, it is open source hardware, so if you really want to, you can make your own.
558050	559690	Not something I've tried yet.
559810	565210	I might try to do that at some point, but it is something that is an option to you.
566790	572450	Potential downside to using this is that you do need to compile the kernel for the Raspberry Pi and or the modules.
572450	578930	So I think you might just be missing a module for the default Raspberry Pi images at this point.
579350	584250	There's a helpful guide at the link that's in that slide right there.
584490	590390	It's something I've followed to recompile the kernel and the kernel modules to make this module work.
590550	594090	You also need WPAN Tools, which is another open source project.
595990	601730	So that guide is not 100% perfect, but it's evolved over time.
601730	607750	It makes mention of a few different kernel versions that were problematic at a certain point.
607830	616930	I believe the current versions of the Raspberry Pi kernel are compatible with this module and with 6LoWPAN and all that fun stuff.
617130	621170	I think the latest version I was running was 5.10 point something.
621170	628090	Don't quote me on that exact version, something very recent, much more recent than is listed in those directions.
628310	630350	Should be able to get things working.
634110	638910	Also from OpenLabs, a couple of things I haven't tried yet, but I think are potentially interesting.
639330	642230	There's a Pi 6LoWPAN slip radius.
642230	650230	So basically what this does, it has some firmware on it that will just talk IPv6 over a slip link to the Raspberry Pi.
650230	654330	So the kernel itself is not interacting with the radio.
655530	657910	There's potential pros and cons to that.
657910	659210	It's a potentially interesting thing.
659210	663630	It's also a relatively inexpensive module just like the other one.
664550	670610	Again, not something I've tried, but it looks interesting and I know the guy that made it is using them with success.
670630	679070	Also this KW-41Z mini board that's got an ARM Cortex processor in it and it's also capable of Bluetooth Low Energy.
679070	681110	It can run on a coin cell battery.
681150	690070	Again, not something I've used myself, but it looks like a viable option for interacting with some of these 6LoWPAN networks in particular.
692150	696630	Next up, the Nordic NRF-52840 dongle.
696630	700570	This is a USB dongle that's very versatile.
700570	707610	It's got firmware available that can sniff Bluetooth Low Energy and also firmware for sniffing 802.15.4 traffic.
708170	722010	There's a Python script which is available to use as an XCAP interface for Wireshark, meaning you can have this external script captured directly into Wireshark and you can control this module from the GUI in Wireshark.
722230	731750	It's relatively inexpensive at around $10 and you can get it on both DigiKey and Mouser and I'm sure some other vendors online.
735660	737900	Next up, the Celo OpenSniffer.
737900	741220	This is not something I have, but I've heard good things about it.
741220	744440	It's a multiband 802.15.4 sniffer.
745000	749520	It's very expensive at around $622 was when I checked.
749520	753600	It was the price on it last I checked within a week or two ago.
754120	756080	There is a killer B firmware available.
756500	771620	Something I noticed about this particular sniffer when looking at it is that it's got two different transceivers on it using the chips listed there, the Atmel chips there, one for the sub-gigahertz bands and one for the 2.4 gigahertz band.
772720	782460	Interestingly enough, that is the same transceiver chip that's used in a couple of the other things like the OpenLabs 802.15.4 board, also something that we're going to talk about next.
782460	786860	There are a couple of different things that use that chip for interacting with 802.15.4.
786860	791240	This just has two of them and does some processing to make everything a little bit easier.
791240	798500	If you're looking for a more professional type sniffer, this might be something that you should look into.
801060	805440	The FreakLabs Freak USB is another option for sniffing 802.15.4.
805440	808900	This again uses the same chips depending on which version you get.
808900	812360	So they have 2.4 gigahertz and 900 megahertz options.
812480	818640	They use the same chips as the Saewoo OpenSniffer and it's basically an Arduino that's interacting with that chip.
818640	830040	So there's a sniffing firmware which is available as an Arduino example sketch that you upload to the dongle and then you can sniff packets that way.
830500	832780	Close to this, you can program it with an Arduino.
832780	838720	So if you're looking to write some Arduino code that interacts with 802.15.4 stuff, this would be a really good thing to use.
839360	853140	Unfortunately, in some of my testing, I found that it dropped packets, especially when trying to monitor six low-pin data and trying to monitor, say, repeating pings or ping sixes over six low-pin.
853140	860060	I found that it seemed to drop some packets compared to some of the other sniffing solutions or some of the other sniffing options that I mentioned.
860440	863420	And I also noticed that it seems to be currently unavailable.
863420	870020	I'm not sure if that's a permanent thing or if that's just the particular website I was going to wasn't around.
870300	872680	But that's something to consider when looking at these.
873210	875620	Great, you can do some good stuff with it.
876300	880080	But if you're looking to buy something new, you might not be able to find one of these.
882440	885960	Last up, I wanted to mention GRIEE 802.15.4.
885960	891560	This is an out-of-tree module for GNU Radio that can interact with 802.15.4.
891560	901340	I think they have a couple of different physical layer implementations available in this out-of-tree module, both OQPSK and CSS.
902040	904760	They might have others at this point, I'm not 100% sure.
905020	912700	But this is something that you could potentially use to use a USRP as a transceiver or potentially a BladeRF or something like that.
913360	916180	That said, this is a little bit more difficult to set up.
916560	919560	It doesn't work just out of the box necessarily.
921080	924420	It's not something that I've been able to get working, which doesn't mean that it doesn't work.
924420	928300	It just means that I haven't spent enough time to get this working myself.
928300	934300	But this is something that I'm sure it works based on the amount of work that's gone into it, and I have a lot of respect for the guy that made it.
934600	939840	So I have no doubt that it does work if you get it set up correctly.
940320	950760	But this is something that you could use to send and receive 802.15.4 packets and have a lot of control over every aspect of the physical layer, the Mac layer, everything you want.
954730	958450	Next up, the RFCTF 802.15.4 challenges.
965930	974710	So in the RFCTF flag, for anybody that's participated in that, you've probably seen some of these little devices.
974710	978710	These are Arduino UNOs with little XB boards on them.
979070	981730	So that is an XB-S1.
982290	987790	So those are XBs that communicate over 802.15.4 if you configure them to do so.
989090	993610	So these are simulating an industrial temperature sensor.
993610	1006170	The idea behind this challenge is I wanted something that was just plain 802.15.4, very basic point-to-point communication, just sending a little bit of data, which I think is what 802.15.4 is really designed for.
1006170	1010130	Sending small amounts of data back and forth just between a couple of different points.
1010610	1028410	You can be more complicated than that, but this is, I feel like, about a very small amount of data going back and forth between the simulated sensor on the right there without the LCD, and the simulated display, which is on the left with that LCD display on it.
1028610	1032250	So the idea here is that there are a couple parts to the challenge.
1032270	1035370	One is to receive the 802.15.4 traffic.
1035690	1046830	And so in addition to sending the simulated temperature data from the transmitter to the display, there's also a key that's being transmitted in ASCII across that.
1046830	1057290	So if you're sniffing this traffic for a little while, you'll see a bunch of simulated data, and then you'll also see an ASCII key go across in clear text at some point.
1057690	1068650	The second part of the challenge is reverse engineering this basic protocol, decoding it, and then transmitting a value that's outside of the normal range.
1068650	1074570	So I took the temperature ranges for this based on what's necessary for melting glass.
1074570	1089610	And the idea is that this would be a glass oven, something that's heating up for a little while, it gets up to a certain level, and then it goes back down and kind of cools off, kind of fluctuating in temperature like an oven would.
1090470	1096990	And it fluctuates within a certain range, and if you watch for long enough, you'll see what that range is.
1097110	1108610	And the transmit part of this challenge is to transmit something outside of that range, hopefully triggering an alarm, transmitting something that's too hot for this particular oven, or this simulated oven.
1111130	1113090	Couple possible solutions for this.
1113090	1121610	When I designed the challenge originally, I intended for Killer Bee to be used to decode and to replay the traffic for this challenge.
1122070	1140330	So one possible way you could do this is take Killer Bee with whatever dongle you happen to have, sniff the traffic with zbdump, and then take that traffic, you can extract the receive key, the RX key in ASCII out of Wireshark or whatever else you're using to look at that traffic,
1140330	1148330	and then you can take that PCAP and either create a new one or modify that PCAP and replay that with zbreplay.
1149190	1159590	You can also, at the same time that you're doing that, if you're sniffing with a second dongle, you'll be able to receive the transmit key once you successfully complete that part of the challenge.
1160470	1166190	Alternate solution is sniffing traffic with the tool of your choice, doesn't necessarily have to be Killer Bee, could be anything.
1167070	1178250	You can do things like identify the channel, the PAN ID, the source and destination for the sensor and the display.
1178730	1190990	And then if you have an XBee module, an XBee Series 1 module, you can configure that to send and receive frames just through the configuration tool, XCTU, that's used for configuring XBee modules.
1192990	1197970	So here's an example of what that data looks like when it's going across.
1197970	1205650	So you can see here there are a bunch of data packets going from a source of all zeros to a destination of one.
1205650	1209950	So that is the simulated sensor transmitting to the display.
1210170	1215390	And you can see there's a very small amount of data, just five bytes at the end there.
1215830	1221970	And that's all that's going back and forth, all that's going from the transmitter to the display.
1225930	1227810	Go back real quick here.
1227810	1240150	You also notice there's a destination PAN of 3332, and that's something else that we'll need to plug into the configuration if we want to interact with this.
1241450	1247310	So in this case, the channel that I had set was channel F or 15.
1247710	1252930	I have the PAN ID plugged in there, destination address of one.
1252930	1258950	In this case, I also have my address set to one, so I could potentially receive data.
1258950	1264790	You can mess around with those and have your destination and your source address be the same.
1264790	1266230	You could have them be different.
1266230	1269690	You could have them configured exactly like the transmitter or the receiver.
1269970	1276390	There are a couple of different things you can do here in order to receive all the data and to be able to send the data to where you want to get it to go.
1277370	1280490	Something important here is the MAC mode.
1280930	1283790	I have that set to 802.15.4 with AX.
1284610	1287550	There's a couple options in there with the MAC stream header.
1287550	1291830	That's not necessary for what we're doing, and that could make it incompatible.
1291830	1296290	So I was trying to make this as plain vanilla 802.15.4 as possible.
1296290	1300810	Could have done no AX, but decided to go with AX for whatever reason.
1301230	1307930	Once you have that all set up, in the console log, if you open that up, you can see a bunch of data scrolling past.
1308710	1315890	You'll see there's a bunch of 5-byte hex values on the right there, and then a couple of longer ones.
1315890	1320650	And you can see that the longer ones are just an ASCII DEF CON 30 demo RX key.
1321090	1323270	So that's something I just set up just for demo.
1323310	1327570	The other ones are simulating the actual temperature.
1327870	1332170	You can see in there, there's a 53, which is an ASCII S.
1332170	1343110	In this case, that's just to simulate, hey, this is the type of sensor I have, or it's something to identify the type of transmission.
1343110	1354350	The next two bytes are the actual simulated temperature, and then that's followed by a one -byte checksum, and 0d is just a new line or a carriage return.
1354350	1358750	It's an artifact of how the code is written to send stuff over the XP.
1363370	1373550	So once you figure that stuff out, you've got the receive key, you can also try to craft packets to send them back to the simulated display.
1373790	1375970	That's something you can do through XCTU.
1375970	1384610	You can construct packets just like I have up on the screen here, and then you can send the packets either once or multiple times.
1384730	1385750	And depending on what you send...
1386930	1392130	So there are a couple different things I saw over the amount of time we've been running this challenge.
1392130	1401070	The first one I implemented with no checksum at all, and saw people immediately just jump straight to changing the values to all Fs.
1401090	1403250	Okay, that works.
1404070	1408910	But what if we had some basic error checking, and that's where the checksum came into play.
1409410	1417530	And so at this point, this iteration of the challenge, there are a couple different error states or a couple of different things that the challenge will detect.
1417530	1425870	One is if you just kind of blindly send all Fs to it, including with a checksum, it'll send back a nope key.
1425870	1432550	So basically, the display detected a really rudimentary attack.
1432550	1435610	It knows that that should never happen.
1435890	1440830	Everything was all Fs, so it just kind of blindly went in there and did that and sent it.
1440830	1446470	So this is the one negative flag that we have in there.
1446470	1449950	If you send this and submit that key, you'll get some negative points.
1449950	1456210	Not a lot, but we figured that was kind of mean when people are doing that to go too negative with it.
1456570	1459030	Next up is the try harder key.
1459650	1471650	So basically, what this is, is you capture a packet, and then you modified the right bits for the temperature and modified that to something higher, but you didn't update the checksum.
1471650	1473650	So this is a checksum mismatch.
1473650	1477550	So that's like, you were real close, try a little harder.
1478030	1480190	So that's the try harder key.
1480190	1490630	Finally, down to the bottom there, we have modifying the packet to include both the updated temperature data and also the correct checksum for that data.
1491130	1494430	And that gets you the actual TX key.
1495910	1497150	And here's some examples.
1497150	1505710	So if you modify the data and send a temperature outside of a valid range, just a little bit, you get the screen also turn yellow.
1505710	1513070	And if you send it way over correctly, then the screen will start flashing red as though there were an alarm going off.
1513070	1516190	And that's when it will transmit the key back to you.
1526430	1529390	Next up is the 6LOPAN challenge.
1531070	1535790	So 6LOPAN is IPv6 over IEEE 8215-4.
1535790	1541970	And this is something that is defined in IETF RFC 4944, if you care to read up on that.
1543810	1550070	Basically, all it's doing is defining a way of sending IPv6 packets over 802.15.4 networks.
1550070	1558810	So you can have IPv6 addresses on your IoT network that is running 802.15.4 stuff.
1560190	1571550	Interesting thing about 6LOPAN is that an IPv6 packet is a lot bigger than the max size of an IEEE 8215-4 packet.
1572870	1574930	So an IPv6 packet needs...
1576030	1583770	MTU on that is 1280 octets, and an IEEE 8215-4 frame is only 127.
1583850	1591170	So there's a lot of overhead that you need to crunch down into a much smaller space to get this to work.
1591450	1600930	So a lot of what the standard defines is how to compress the headers for IPv6 and also how to fragment those packets across multiple IPv6 packets.
1601670	1608030	This is something to consider when looking at sniffing traffic for 6LOPAN networks.
1608750	1610750	Something that I thought was a problem...
1610750	1611330	I thought that...
1612030	1619610	Something I learned while preparing for this talk was that I thought that 6LOPAN actually increased the MTU of 802.15.4.
1619610	1620810	I think that's actually not right.
1620810	1630010	I think it just compresses the headers and does some fragmentation to get the traffic to flow across those networks.
1630510	1635310	And I thought that the MTU was bigger because there are some tools...
1635310	1640550	Kilby in particular, the last time I tried to capture 6LOPAN traffic with it, wasn't capturing properly.
1640550	1641710	And I wasn't sure why.
1641710	1643290	I thought this was why it was.
1643290	1645090	I might be wrong about that.
1645390	1650130	But all that to say, there are some tools that capture 6LOPAN properly.
1650130	1651770	There are some that do not.
1651770	1656230	Double check what you're looking at if you're trying to monitor 6LOPAN traffic.
1656230	1665370	Test and verify that your stuff is actually capturing 6LOPAN properly, displaying it correctly in Wireshark if that's what you're using to analyze the data.
1667850	1675430	So the 6LOPAN challenge that I created is two Raspberry Pis that are communicating back and forth with each other over 6LOPAN.
1675670	1680350	You see they're using the OpenLabs 802.15.4 radios.
1681290	1682750	One of them is a client.
1682750	1684730	One of them is a server.
1684730	1690370	One of the challenges is that the client is running ping6 with an ASCII payload.
1690930	1698250	That's something you could see, even if you're not properly decoding 6LOPAN, you might get lucky and see that text going by.
1699170	1701630	And the keys are usually pretty obvious.
1701970	1704150	But just ping6 with an ASCII payload.
1704890	1710730	And then that client is also periodically getting a page over a web page over HTTP.
1711530	1714010	And there's a key on that page.
1714010	1717510	And also a link to a second web page with an additional key.
1720020	1727820	So here's what that looks like if you're monitoring that traffic in Wireshark with whatever tool you choose to use.
1728140	1732420	So on the left there, there's an ICMPv6 packets.
1732420	1737020	And you see a Defcon 30 demo key going by there.
1737440	1741480	Just regular ping6 between two different addresses.
1741480	1747080	You'll see a WCTF in the payload down there.
1747080	1751840	That is actually just part of the IPv6 addresses that I chose to use for this.
1752680	1755400	I figured I'd throw a little Easter egg in there in addition to the key.
1755400	1760680	And also something to make it more clear that this is part of the wireless capsule flag.
1761200	1766980	Over on the right, you'll see the web page that the client is requesting.
1767600	1770240	It's just getting a root.
1770240	1772300	So it's getting index.html.
1772780	1779160	And if you follow that stream, you'll see the entire GET request and the HTML that's coming across.
1779180	1784520	You'll see the key, the demo, 6LOPAN RX key in there.
1784520	1787780	And then you can see the link to that additional page.
1789060	1792920	And if you open those up in a browser, this is what they look like.
1792920	1797700	So it's just a little page saying, hey, 6LOPAN is fun, here's your key.
1797700	1800240	Are you really on the network?
1800300	1801500	Can you click this link?
1801500	1803940	Can you also request this page?
1803940	1813360	And that key link will take you into a second page with the TX key or a key that's only available if you go and request that page yourself.
1814620	1823480	Something that was possible for a while, and I think a number of people were doing, were passively sniffing while other people were solving this portion of it.
1823480	1828300	For the most recent iteration, I added HTTPS to the key page.
1828300	1834680	So the client will request the regular page, the index.html over HTTP.
1834680	1838020	And that goes across in clear text, and other people can see that.
1838020	1840820	You can passively sniff that and get that flag.
1841080	1845740	But now when you go to the key, that's encrypted over HTTPS.
1845740	1851180	And so other people won't be able to passively steal flags if you're computing in the wireless capture flag.
1853000	1855780	Next up, a new challenge for this year.
1855980	1860420	I wanted to introduce an RFCTF 6LowPanFox.
1861860	1869720	So for anybody that doesn't know what I mean by a fox within the confines of an RFCTF, fox hunting, a.k.a.
1870280	1873580	finding mobile transmitters, is what we're talking about.
1873620	1883040	So in this case, there will be a 6LowPan transmitter roving around whatever conference we're at, and the goal will be to go and find that transmitter.
1883680	1891540	If you're unfamiliar with fox hunting, there's a DEF CON 22 talk in the wireless village by Adam Worth called Practical Fox Hunting 101.
1891680	1900880	This is an excellent intro to fox hunting, and he talks about a number of different techniques and considerations that you need to think about when fox hunting.
1900940	1908120	We're not going to go into all of those during this talk, but if that's something you're interested in, definitely go find that video and watch that talk.
1908120	1910080	There's a lot of great information in there.
1912780	1924500	So when I was creating this challenge, one of the most important things that you need for fox hunting is to be able to figure out where that signal is, figure out how far away from that signal am I.
1924500	1926420	So where's the signal strength?
1926480	1936340	And if you look in this capture from below, there's a bunch of information in that capture, but one of the things that's missing is signal strength.
1936340	1942140	There's no RSSI, there's no other way of representing signal strength.
1942740	1945640	And so I want to make sure that this is solvable.
1945640	1954840	So when I created this challenge originally, I started looking through a bunch of my captures, started capturing a bunch with all the different tools that I had, and I found that none of them had signal strength available.
1954840	1960660	It took me into this rabbit hole of, you know, why is signal strength missing?
1960660	1962460	Where would I find that?
1962460	1964420	Is there anything that will show me that?
1964420	1978820	And I started thinking about, you know, this is something that shows up when I do, when I sniff Wi-Fi with Aircrack or some other tools, it usually shows up in a header above the, above that Mac layer stuff.
1978820	1982400	It's an extra layer that shows up in Wireshark.
1985500	1994500	And before we get into it, this is the, this XHCD comic is the most applicable to what I found in this rabbit hole that I went down.
1994500	1998980	There, it turns out there are multiple ways to represent signal strength.
1999040	2001880	And there are many different standards.
2001880	2004040	There doesn't seem to be a clear winner.
2004040	2012100	There's some that sort of win in Wi-Fi, but there's even less of a clear winner when it comes to 802.154.
2013880	2023260	So in 802.11, there's a, most commonly if you're capturing with Aircrack or something like that, you'll see a radio tap header.
2023260	2026160	You'll also see underneath that a WLAN radio header.
2026820	2035220	Actually, both of those additional protocol layers will show you some form of signal strength that you can go and look in your PCAPs for that.
2035460	2039340	And there's also a case PPI pattern or header.
2039480	2047920	So case, like for anybody that remembers the Air PCAPs, the company that made those, case per packet information is what that stands for.
2047920	2053820	And that's another way to represent a number of different extra data fields with additional information about each packet.
2054540	2062000	So when we get to 802.154, there is an 802.154 radio tap header that's relatively new.
2062000	2066060	I think, I want to say 2015 or so, somewhere in that range.
2067020	2077540	With the NRF sniffer or that NRF dongle that I mentioned earlier, their dongle will let you do that as long as you specify an additional metadata field.
2077540	2081140	So that IEEE 802.154 tap as the metadata.
2081900	2085400	You can also select that in Wireshark, which I'll show in just a minute.
2085920	2093400	With Killer Bee, Killer Bee uses another header.
2093400	2098140	It uses the case PPI headers, so the old 802.11 standard.
2098580	2103660	They kind of repurposed that for 802.154.
2104220	2107240	ZBdump does not use that header by default.
2107240	2114180	You need to use the dash P flag or double dash PPI flag in ZBdump.
2114340	2116120	And then you'll get that per packet information.
2116120	2117560	You'll get signal strength.
2118080	2126000	This is something that took me a little while to figure out because in the help output for ZBdump, it doesn't tell you what that dash P stands for.
2126000	2132360	So if you don't know that PPI stands for per packet information, you might miss that option in ZBdump.
2133100	2137240	But both of those tools will capture signal strength for you.
2137260	2140720	And that's something that you could use to potentially foxhunt.
2143080	2151760	So I mentioned that the NRF dongle and the Python script for that is available as an XCAP interface for capturing data in Wireshark.
2151760	2153800	And here's what that looks like when you're configuring it.
2153800	2155960	So you can select the channel that you want to capture on.
2155960	2161240	You can select 802.154 tap from that out-of-band metadata.
2161240	2169540	And then if you look on the right there, you'll see that 802.154 tap layer above the 802.154 data.
2169540	2173300	You can see we have an RSS, in this case, of negative 51 dBm.
2173380	2178300	So that's the kind of information that we need to be able to foxhunt successfully.
2181720	2184380	And that's all I've got for you today.
2184480	2191040	So if you have any questions, the easiest place to find me is going to be on the RF Hacker Sanctuary Discord.
2191200	2192940	My username on there is RedBaron.
2193420	2199940	I'm also on Twitter with underscore TheRedBaron, underscore some number of underscores under there.
2199940	2205720	You can find me from the RF Hacker Sanctuary website under the crew page.
2205720	2208140	The bio listed there is 100% accurate.
2210160	2214160	And like I said, this is not original research.
2214160	2227420	You know, this talk was intended to tell people with some of the things that I've struggled with in interacting with some of these networks and to convey some of the lessons I've learned over the years of interacting with these things.
2227480	2240360	So I'm hopeful that more people will interact with these types of networks, go find more devices, maybe do some more driving with it, interact with the RFCTF challenges a little bit more.
2240360	2244420	Hopefully we get somebody to find the 6LopanFox at some point.
2245320	2246860	That's all I've got for you today.
2248040	2249500	Thanks and have a great day.
