[00:00.000 --> 00:05.480] Um, alright, welcome to Wireless Village. Um, I'm going to be giving you guys a brief [00:05.480 --> 00:12.180] rundown in a second on the various IOT communication forms that exist now and what you can do [00:12.180 --> 00:20.980] with them. So, come join me on a journey. About me, my name is Wasabi, Spicy Wasabi. The [00:20.980 --> 00:24.980] reason I'm speaking here today is because there is another Wasabi in the room and it's [00:24.980 --> 00:29.660] frustrated Wasabi. So, uh, if you're around now, make sure to see me at the end. If [00:29.660 --> 00:33.620] not, uh, that's the reason why I'm speaking here today, but also to give you guys some [00:33.620 --> 00:39.360] interesting information about embedded devices and wireless communications. And if you're [00:39.360 --> 00:44.520] not interested in wireless communications here, please, uh, you've come to the wrong place. [00:44.520 --> 00:49.680] Uh, but anyway, I've focused on embedded things, internet of things, and all sorts of things [00:49.680 --> 00:56.220] for the last four years. I have participated in a bunch of competitions related to embedded [00:56.220 --> 01:00.120] devices and security and all sorts of things like that. And that's led me down a path of [01:00.120 --> 01:06.580] looking at what can you do with embedded devices that exist nowadays and how can you get them [01:06.580 --> 01:12.540] to do what you want. So, what we'll be looking at today is the existing technologies that are [01:12.540 --> 01:18.340] out there, the possible uses and challenges of those technologies, and what types of [01:18.340 --> 01:23.680] protocols are in use today. Uh, we'll also be looking at some of the radios and micro [01:23.680 --> 01:28.000] controllers you can pick from to do what you want to do, but it's up to you on what you pick [01:28.000 --> 01:34.460] on, uh, for all this obviously. So, let's get started. Way back when, if you wanted to send [01:34.460 --> 01:39.560] data out of a network, you're, you're doing a penetration test or you're doing something along [01:39.560 --> 01:45.240] those lines, uh, you will have the need to get out of the network. And in the old days that [01:45.240 --> 01:50.860] was, and is still heavily used, you're doing some sort of exfiltration using the network. You're [01:50.860 --> 01:55.520] on the network as it is. And that's great. It works pretty well because most, you know, [01:55.520 --> 02:02.560] corporations, most businesses and, and places don't really secure their network very well. Some [02:02.560 --> 02:07.520] newer ones are also using 4G to allow you to communicate out. That's pretty good. It's, you [02:07.520 --> 02:12.520] know, a relatively large area of support you can use from. The problem is that it's not very [02:12.520 --> 02:18.960] stealthy. If someone's actively looking for you, they will find you. Even, um, if they're, you [02:18.960 --> 02:24.860] know, if they're using DNS, if they're monitoring web traffic, you will not be undetected. Some [02:24.860 --> 02:29.740] of them do support passive tap capabilities but for the most part they don't. So not very [02:29.740 --> 02:34.900] useful. True and proven is Wi-Fi. If you want to send data out of a network, you use Wi-Fi. If [02:34.900 --> 02:39.820] you want to use a network, use Wi-Fi. It has pretty good pivot capabilities because you can [02:39.820 --> 02:46.260] just use any device you buy at the store on eBay and just let it connect in. Pretty great. It [02:46.260 --> 02:50.260] is sometimes capable of tapping a network because you're using basically a Linux computer to run [02:50.260 --> 02:56.660] your routing. So you have the capabilities on there but again, it's not very long range and [02:56.660 --> 03:01.420] it's not necessarily very stealthy. If you're running, you know, HackerNet and you're running a [03:01.420 --> 03:07.340] test, that, that doesn't really make it stealthy. But that comes into where we're using [03:07.340 --> 03:11.700] wireless communications. So if you're familiar with wireless, you have half duplex and full [03:11.700 --> 03:18.360] duplex. And that's pretty good. Uh, so for half duplex, you send data and then you receive the [03:18.360 --> 03:22.220] data. For full duplex, you're sending and receiving more or less at the same time. Which is [03:22.220 --> 03:26.960] great for us because if you want two lines of communication, you now have them both working [03:26.960 --> 03:44.430] actively. And uh, hold on one second. Uh, I, where's the presenter view? Okay, hold on one [03:44.430 --> 04:02.890] second. The monitors are misconfigured. Alright, did the monitors just go away? Great. Alright, [04:02.890 --> 04:49.340] cool. Technical difficulties are wonderful. Uh, the monitors have gone out. Okay. [04:51.340 --> 04:59.900] Yeah. Uh, the, oh, wrong view entirely. Yeah, it, Windows is my problem. There we go. Sorry [04:59.900 --> 05:07.260] about the delay. Alright. So, okay, we're talking about duplex and half duplex. So, what [05:07.260 --> 05:11.260] happens if we need just slow communication? We don't care about receiving and sending at the [05:11.260 --> 05:16.900] same time. We have the ability to just send data or receive it. A lot of IoT protocols use the [05:16.900 --> 05:20.620] method of half duplex because it's very efficient. Well, they don't even use just half [05:20.620 --> 05:25.680] duplex. They just have receive windows where the device is allowed to receive data. All other [05:25.680 --> 05:32.180] times it's send only. So, that, there's a lot of opportunities here for sending data. But the [05:32.180 --> 05:37.980] problem is, well, even Wi-Fi is half duplex. And so, you may not necessarily notice a [05:37.980 --> 05:43.740] problem. But the general rule is, regardless of the protocol, the more power you use, the more [05:43.740 --> 05:47.500] data you can send, the more data you send, the more power you need. If you're running on a [05:47.500 --> 05:52.140] battery, the problem is you're going to run out of power a lot quicker if you're sending a lot of [05:52.140 --> 05:57.100] data versus something that's, you know, smaller, more embedded. When you're using Wi-Fi, it's [05:57.100 --> 06:01.720] more, it uses more power than something that's designed specifically for low power use, such [06:01.720 --> 06:10.260] as IoT protocols. So, if, and you have to think about compression. It may not think, it might, you [06:10.260 --> 06:15.520] may not imagine it's a lot, but when you go from 128 bytes down to 64 bytes, that's a huge [06:15.520 --> 06:19.820] difference in the amount of data that you're sending and the duration that you can operate for [06:19.820 --> 06:26.720] these devices. So, very, very quick, high-level overview of what wireless will look like. This [06:26.720 --> 06:31.840] is very simplified. There's a lot of different ways you can format data over a wireless signal. [06:31.900 --> 06:37.760] But the general idea is that you have high and low sending data and receiving data, and you can [06:37.760 --> 06:42.180] have different ways to send it. You have a carrier and then you can do different encodings, such [06:42.180 --> 06:49.800] as ASK, FSK, PSK, ODFM, all sorts of different formats. So, that's good, but how would you [06:49.800 --> 06:55.780] implement some of these protocols? Well, you have the, the, the SDRs. Now, these are great for [06:55.780 --> 07:01.460] general use. SDRs are very, very powerful, but they're big. They're getting smaller, but for the [07:01.460 --> 07:04.300] most part, if you're going to be using this, this is something very obvious. If you're going to [07:04.300 --> 07:08.900] have a box that has an SDR and it has the enough processing power to use an SDR, you're not [07:08.900 --> 07:14.440] looking at being very stealthy again. It is getting better, though. This is the Lime SDR Mini. [07:14.820 --> 07:19.020] This is a pretty good device. I've actually been seeing some people use it over there. The [07:19.020 --> 07:23.700] problem is, with this device, is that it does not support a lot of things that are just point [07:23.700 --> 07:27.720] and click. So, if you're trying to do something quick, not necessarily true. And what I mean by [07:27.720 --> 07:32.120] point and click here is that you can program the FPGA and other components on there, but now [07:32.120 --> 07:36.480] you're developing for the hardware, and it requires a little more knowledge versus just running [07:36.480 --> 07:42.240] the, the devices. And versus the full-blown SDRs, which are usually about $400, this one runs [07:42.240 --> 07:48.820] about $150. So, it's very cheap and it's much smaller, so we're going on the right track. But [07:48.820 --> 07:53.040] of course, there are other methods of communication. Um, this one is probably one of my [07:53.040 --> 07:58.360] favorite that I've, I've seen. This is, we're going into ham radio here. And ham radio has [07:58.360 --> 08:02.900] been doing this sort of work for a very long time. In fact, I'd say they're probably the [08:02.900 --> 08:08.260] experts in implementing, if you're a ham radio operator, you're basically the expert in [08:08.260 --> 08:14.280] implementing communication over very small amounts of wireless bandwidth. And this computer [08:14.280 --> 08:20.500] over here is basically a TNC machine, which is sending serial data over the radio. And it [08:20.500 --> 08:26.000] allows, so this technology is not new, but it is extremely useful and relevant. And why, you [08:26.000 --> 08:29.740] may be wondering? Well, what happens if you're trying to get into like that power plant in [08:29.740 --> 08:33.700] the middle of nowhere? Well, you can't use wifi then because you're not going to be just [08:33.700 --> 08:37.380] sitting in your car next to the wire, the power plant and being like, hey, cool, I'm just [08:37.380 --> 08:41.800] here, you know, it's a nice place to sit down. You're going to be far away where you're not [08:41.800 --> 08:47.380] getting detected. So, that's good. But what happens if you're in a regular business? You [08:47.380 --> 08:51.540] know, can you hear me here? So, this is a little, this is an easier form, but why not make [08:51.540 --> 08:57.140] something that can be used for both? So, now we gotta get creative. And there's a lot of [08:57.140 --> 09:03.560] choices with these devices. Because of IoT is so popular, you can go from any preferred [09:03.560 --> 09:09.000] embedded device that you can work with. You can work with Zigbee, in the top, that's Zigbee. [09:09.000 --> 09:17.580] You can work with the Silicon Technologies modules that do 4G, they do all sorts of different [09:17.580 --> 09:23.760] communication ones. There's also the ESP modules. ESP modules are by far the cheapest modules [09:23.760 --> 09:32.500] that you can get. If you need to throw them on anything, there's, um, the ESP, uh, uh, 8691, [09:32.500 --> 09:39.680] or, I'm blaming on the name. But it is, 8285, 8285, that came to me. Um, it is designed [09:39.680 --> 09:44.200] specifically for being very lightweight. It has embedded storage on it, so you can actually [09:44.200 --> 09:48.820] program it, have it running stuff, and do a little bit of data storage while you buffer to [09:48.820 --> 09:53.520] send out if you need to. So, that one's very good. But the things you have to think about are [09:53.520 --> 09:58.260] what IO do you need? If you're connecting to an actual computer, do you have what you need to [09:58.260 --> 10:02.480] connect to that computer? Do you need to be stealthy? Do you need to be battery powered? If [10:02.480 --> 10:08.400] it's battery powered, you need to be able to relay the data, if you have a lot of data being [10:08.400 --> 10:14.100] sent and you're using all your battery, you're gonna lose power very quickly. So, here's one [10:14.100 --> 10:20.760] that I saw online, this is the WiFi Ducky. It's an open source project, it looks very open [10:20.760 --> 10:27.260] source, um, but it's very powerful. And this is the type of stuff that is very exciting to me, [10:27.260 --> 10:30.780] because this is someone taking multiple components, putting them together and building [10:30.780 --> 10:36.620] something that is actually very useful for work. But the only problem with this device, and [10:36.620 --> 10:41.120] obviously it's easy to fix if you build an enclosure, is it looks somewhat sketchy. If you [10:41.120 --> 10:46.600] were to plug this into someone's computer to drop a payload, they're probably going to notice. [10:46.600 --> 10:50.740] And that, that's problematic. And the other problem with this is it doesn't have full [10:50.740 --> 10:55.000] communications. You can't receive data out, you can, you can launch scripts, you can make it [10:55.000 --> 10:59.300] pivot over the network, but once you've executed the commands, uh, and you've triggered it from [10:59.300 --> 11:05.040] wireless, it's not sending data back to you. And again, the problem is you don't want, you [11:05.040 --> 11:09.960] don't want the party, this dance crew coming out to see you when you're doing a pen test. So, [11:09.960 --> 11:13.660] we need something a little more subtle. That's where you get into the microcontrollers. The [11:13.660 --> 11:19.040] microcontrollers nowadays are very, very good. Um, you, obviously again, ESP modules, they're [11:19.040 --> 11:23.160] super cheap, that's why you're going to see them again and again for every device, uh, and [11:23.160 --> 11:29.340] release thing that you're going to see. Um, the other thing you may see is, um, uh, I think [11:29.340 --> 11:33.940] that's how you pronounce it, these devices are absolutely stunning. They're very, very low [11:33.940 --> 11:39.920] power, they have a Hope RF module built in, they have an Arduino built in, you just basically [11:39.920 --> 11:45.600] start flashing them and you have a device that can run over battery relay information and do [11:45.600 --> 11:49.940] anything you need it to off of a very small package. Uh, in my test, this thing actually [11:49.940 --> 11:58.140] lasted for over, I think, two weeks in, uh, doing timed communication with just running off of a [11:58.140 --> 12:03.260] small little battery. That's pretty good. But there's others. If, if you need something a [12:03.260 --> 12:07.080] little more powerful and you, you want to, instead of using a full computer, you want to just [12:07.080 --> 12:11.900] embed and you want to have one device that you can just drop in. That's where the system on a [12:11.900 --> 12:17.000] chip's come in. Linux has been getting on smaller and smaller devices for a long time now and [12:17.000 --> 12:24.520] the hobbyist community has been growing. So, the top device is the Vocore. How many people [12:24.640 --> 12:29.000] have heard of a Vocore before? Okay, more than I actually expected. For those of you who are [12:29.000 --> 12:33.480] not aware of what a Vocore is, it's a very cheap embed, uh, system on a chip device that's [12:33.480 --> 12:38.900] running Openwork. And they've exposed all the IO lines, um, they've exposed all the IO lines [12:38.900 --> 12:43.840] out. So, basically what you can do is you can add radios, you can add other communication, um, [12:43.840 --> 12:51.560] mediums. It also has WiFi built in. So that's good. And it's pretty powerful. It, it, again, it [12:51.560 --> 12:58.280] runs Linux. So you can embed things on it and make it do things. And it's about $10. Uh, the [12:58.280 --> 13:03.400] other one is the OrangePi. OrangePis are very interesting. The, the interesting thing [13:03.400 --> 13:08.820] is on, about OrangePis is they, they basically run a stock kernel now. And they're a fairly [13:08.820 --> 13:13.760] powerful processor. They're running about, uh, one gigahertz. So it's basically running a [13:13.760 --> 13:19.180] Raspberry Pi in a little tiny dongle that has Ethernet, WiFi, and IO that you can access. So, [13:19.180 --> 13:22.700] if you're needing something that you need to just embed into something small, these things are [13:22.700 --> 13:31.340] the size are smaller than the Raspberry Pi. So, you know, we, we can do a lot of stuff. Uh, [13:31.340 --> 13:37.400] communication is important. And we're going to get into how and what technologies work for [13:37.400 --> 13:41.800] different situations. I went through and started going on eBay a while ago. And went [13:41.800 --> 13:46.240] through and bought, bought every single wireless module I could find. Some of them work better [13:46.240 --> 13:51.020] than others, as you will see. And it turns into a very interesting experience when you're [13:51.020 --> 13:55.680] trying to deal with some of these devices. There's some quirks that exist. If anybody's done [13:55.680 --> 14:00.340] any hobbyist or IoT development, you'll start seeing things where the radios don't work as [14:00.340 --> 14:07.480] expected in every situation. So, how were these radios tested? Um, this was done, uh, last [14:07.480 --> 14:11.760] year. I started getting all these modules. What I did was I started going farther and farther [14:11.760 --> 14:18.300] with about a thousand packets as a test. They were sent over a short period of time. Uh, the [14:18.300 --> 14:22.780] packets were a normal format that was used across every single radio. So, if one works better [14:22.780 --> 14:26.380] than the other, it's not a difference in the packet that was being sent. There's no time [14:26.380 --> 14:32.020] different, there's no different data for each packet. It's all the same. The same, and I was [14:32.020 --> 14:38.920] testing range and the signal quality being sent and received by each of the devices. So, we're [14:38.920 --> 14:44.860] back to ESP modules again. They are very powerful. They use about 70 milliamps of power. If [14:44.860 --> 14:50.080] you're plugged into a real device, that doesn't matter. But if you're running off of mobile, [14:50.080 --> 14:54.760] you're trying to relay information, this gets a little, uh, problematic. They use about [14:55.800 --> 15:01.560] 16 milliamp spike in addition. So, it goes up to about 80 milliamps, 85 milliamps when you're [15:01.560 --> 15:05.880] powering up. So, if you're running on an extremely low power battery, you could reset the [15:05.880 --> 15:11.520] device and then you will lose the capability you have. It also uses that amount of power for [15:11.520 --> 15:17.660] 3 to 5 seconds as it's doing DHCP. So, every time you need to connect and as it refreshes the [15:17.660 --> 15:24.740] least, it will be using more power. It has a fairly high transmit draw instead of receive. So, [15:24.760 --> 15:29.960] it's good. They're reliable in the sense that they are everywhere. They're cheap. And if you [15:29.960 --> 15:34.320] buy one and you buy another one from another vendor, they're still going to work the same. [15:34.320 --> 15:38.980] They speak Wi-Fi. And that's something that's good about them is that they are so [15:38.980 --> 15:47.700] standardized. The ESP32 is another interesting technology from Espressif. It's a dual-core [15:47.700 --> 15:53.820] version. It's pretty common now. The problem that I've found with the ESP32 is that it has a [15:53.820 --> 15:58.760] low-power core. It's one of its selling points. And so far, I have not seen anyone [15:58.760 --> 16:03.640] successfully implement the low-power core except for one person who was writing raw assembly in [16:03.800 --> 16:09.840] a C-struct and then writing that directly to the microcontroller. It's very complicated in [16:09.840 --> 16:15.180] that case and that's not ideal for something that we're trying to just deploy quickly. And [16:15.180 --> 16:22.680] again, they're very low-power. The ESP32s are actually slower by a couple of seconds to [16:22.680 --> 16:28.620] connect via DHCP every time. You can set them statically, but it's not necessarily ideal. And [16:28.620 --> 16:34.200] then again, they also have the high transmit draw when they're working. But then we get to [16:34.200 --> 16:39.480] LoRa. If you've done anything in the embedded protocol range, LoRa is a very powerful [16:39.480 --> 16:46.120] protocol. It's sub-gigahertz in most cases. There's a couple of different ranges that it [16:46.120 --> 16:53.240] works. But it by default has a one to two mile range. It's licensed. It's designed off of [16:54.080 --> 16:59.300] technology called chirp spread spectrum. That's how it does what it does with the range. It's [16:59.300 --> 17:05.100] used in not only raw radios, but it's also used in some cases, people have been experimenting [17:05.100 --> 17:10.020] with satellite communication using LoRa, which opens up a lot of possibilities. If you [17:10.020 --> 17:16.100] design a device that's going to use LoRa for communication and you add in satellite [17:16.100 --> 17:20.140] implementations, you don't have to rewrite everything that you're implementing in the first [17:20.140 --> 17:28.800] place. So it is just the lower level. The actual protocol implementations, there's a couple of [17:28.800 --> 17:37.100] them. LoRaWAN and Haystack. These are both implemented by licensing and they have a couple of [17:37.100 --> 17:44.560] different specific changes that they do for how you transmit to them or receive from them. [17:46.420 --> 17:52.700] Again, LoRa is the PHY implementation and it uses about 30 milliamps to receive and about 100 [17:52.700 --> 17:56.000] milliamps to transmit. So we're looking at something that's very, very low powered. If you're [17:56.000 --> 18:03.860] running on battery, this thing can go for a very long time. So LoRaWAN, it's self-configuration [18:03.860 --> 18:08.340] and join. You build a device, you build it, it's going to join to the LoRa network. Now where [18:08.340 --> 18:14.880] is the LoRa network? Well, interestingly, it's all around us if your city supports it. They're [18:14.880 --> 18:19.200] slowly rolling out to different cities. It's much like a cellular network in the sense that you [18:19.200 --> 18:24.080] have to have coverage where you're going to be deploying. In the middle of nowhere, you're not [18:24.080 --> 18:31.740] going to have coverage. LoRa will still work, but LoRaWAN will not. It's encrypted with AES 128 [18:31.740 --> 18:38.700] bit, but it's not necessarily the most effective encryption. If you've looked online, there's [18:38.700 --> 18:45.180] problems with their encryption, uh, implementation. Um, it supports OTA configuration, [18:45.180 --> 18:49.580] uploading and downloading. There's several different, um, implementation classes if you want [18:49.580 --> 18:56.900] to use LoRaWAN. If you're trying to send only, uh, that's class A. It has two timed windows [18:56.900 --> 19:01.860] every so often. I forget if it's a day or a week, but there's two windows where it will pull [19:01.860 --> 19:08.220] updates to reconfigure itself. Otherwise, it's just going to sit there and send all the data. [19:08.220 --> 19:13.200] You have no idea if you're going to ever get it back. Uh, class B has higher downlink speeds, [19:13.760 --> 19:19.140] but otherwise is unchanged. Class C is always listening, except when it's transmitting. So [19:19.140 --> 19:23.500] that's where you go into the half duplex. Class C seems like the best option to do, but [19:23.500 --> 19:28.320] there's also, uh, problems with having availability in the windows that you're transmitting [19:28.320 --> 19:35.360] for the, the LoRaWAN implementation. Oh, okay, just changing your own. Um, there is a small [19:35.360 --> 19:41.000] licensing cost for anything that you use with LoRa. It's not, not very big, but it is [19:41.000 --> 19:49.300] something that exists. So Wi-Fi is free, LoRa is not completely free. So you also have SIGFOX. [19:49.300 --> 19:55.680] It's both a protocol and a company. SIGFOX, SIGFOX is very interesting because there's a [19:55.680 --> 20:00.620] module cost, there's a licensing fee to have the module modem, there's also a service fee for [20:00.620 --> 20:06.740] the modem. So you're constantly paying money to use this. And it is primarily transmission [20:06.740 --> 20:12.240] only, and only in areas that SIGFOX is covered. So if you're trying to use this in areas [20:12.240 --> 20:17.280] that are long range, even though it has a longer range than LoRa, you may not be able to get [20:17.820 --> 20:24.300] reception. And it halves the transmission usage of LoRa. It only uses about 40 milliamps, [20:24.300 --> 20:34.840] um, during transmit. And, um, it can send a whopping, um, 14 bytes at 600 bits per second. So, [20:34.840 --> 20:39.140] you know, you're talking a lot of data here. Um, unfortunately for us, that probably isn't [20:39.140 --> 20:43.420] good enough. But if you need something that's just to ping back and say, hey, I'm still here, [20:43.420 --> 20:49.180] that, that does work. Um, it has a continuous TX mode, which is good if you're just trying to, [20:49.180 --> 20:56.480] you know, do location. And, um, but again, it's the licensing fees really kill it. Dash 7 is [20:56.480 --> 21:02.660] supposed to be the solution to both LoRa and SIGFOX. It's an open alliance, open platform. [21:02.660 --> 21:10.100] Also uses sub-gigahertz, uh, communication. It only uses about 10 milliamps to receive. And [21:10.100 --> 21:15.280] the, you can run your own nodes to receive data from. So you can implement something that [21:15.280 --> 21:20.700] goes over any radio protocol from this if you need to use it. That's really good. Uh, the [21:20.700 --> 21:24.860] only problem is that the documentation is a bit sparse on it. If you're trying to implement [21:24.860 --> 21:30.440] something using it, you have to go to someone who already implements it, a vendor. And that's [21:30.560 --> 21:34.960] a little expensive because we're usually, if we're doing some kind of pen test, it's one-offs, [21:34.960 --> 21:40.880] not thousands. So what else can we look at? Well, here's probably one of my favorite [21:40.880 --> 21:45.380] modules. If you're doing some kind of communication pen test or, or you need to communicate [21:45.380 --> 21:49.500] during a pen test where you can't use Wi-Fi or any other communications, the HC12 is this [21:49.500 --> 21:54.580] amazing little module that you can buy off eBay. It's cheap. It works very well if you [21:54.580 --> 21:59.540] get, they come in pairs. And as long as you're using the pairs, they can, uh, work up to [21:59.540 --> 22:09.300] about 3,000 feet distance in range. They're very, very powerful. Um, they have a built-in, [22:09.740 --> 22:14.040] um, they communicate over raw serial. So basically you can plug them into anything and they will [22:14.040 --> 22:17.980] just work. They will send and receive data. And you'll be sending and receiving serial data, [22:17.980 --> 22:22.200] which is great because now you're not using super slow bandwidth, but you're using serial. So [22:22.200 --> 22:26.900] if you need data information out or something else that you're getting, it's slow, but it's [22:26.900 --> 22:32.720] manageable. Um, the cool thing about these radios is that they're very small. The bad thing [22:32.720 --> 22:37.600] about these radios is that no two pair are alike. If you're going to buy a lot of them, be [22:37.600 --> 22:45.520] prepared to buy, um, double. When I was doing the test on these, um, I would buy one, I would [22:45.520 --> 22:48.700] receive it, and I could not get them to communicate. I couldn't figure out why they were [22:48.700 --> 22:54.400] not communicating. And I would go through, I'd try to see why it wasn't working. They'd both [22:54.400 --> 22:58.180] turn on, they both said they were configuring and sending data, receiving data, nothing would [22:58.180 --> 23:03.720] come out. And it occurred to me finally, let me turn on my HackRF and just take a look. What [23:03.720 --> 23:10.740] it turned out to be was the crystals on these chips are not quite up to par. None two are [23:10.740 --> 23:14.520] alike, so what happens is you get offsets that are just enough that you will not be able to [23:14.520 --> 23:20.060] communicate over these devices. So, they work great in pairs because the same crystals are [23:20.060 --> 23:25.000] used, but you have to keep an eye on what crystals, they have markings on them. So these are [23:25.000 --> 23:31.200] very good, but be prepared to buy a lot of them. And on a similar note, the NRF24 modules are [23:31.200 --> 23:35.840] very good, but they also have the same crystal problem. No two crystals are alike. Luckily [23:35.840 --> 23:41.640] these are a little easier to remove the crystal from, but they also, if you buy them in pairs, [23:41.640 --> 23:45.220] which they normally come with, they'll work great, but if you try to get them working in a [23:45.220 --> 23:50.420] mesh mode, which is something they actually support, you will have a problem because none of [23:50.420 --> 23:56.980] them are genuine usually. They fake the markings fairly well, but if you look at them through [23:57.120 --> 24:00.580] either a microscope or something like that, you'll see trace differences. So you never [24:00.580 --> 24:04.920] necessarily get a genuine one, so they're using parts sometimes different. The really cheap [24:04.920 --> 24:09.540] ones are very obvious when you get a fake one because they'll be missing resistors or other [24:09.540 --> 24:14.380] components that are actually fairly important on a radio, but they don't have them. But if you [24:14.380 --> 24:18.560] get one of the fairly good ones, they may still be fake, but the crystals may not be up to par [24:18.560 --> 24:22.940] again. So these are very good, but be prepared to buy a couple of them until you get pairs that [24:22.940 --> 24:30.520] work. The one nice thing about the NRF modules is they also support both Linux and Arduino [24:30.520 --> 24:35.140] natively, well I guess Linux and Arduino support them natively, but not the other way around, [24:35.140 --> 24:39.780] but they're very good and if you can get enough pairs that work, they support a very good [24:39.780 --> 24:49.020] mesh protocol and they work for about 500 to 600 feet in my tests, but again the crystals were [24:49.020 --> 24:53.760] what really killed it. But if you're looking for something that just works and you don't have [24:53.760 --> 24:59.400] to pay licensing fees necessarily, the Hope RF modules, they support LoRa, which again, you're [24:59.400 --> 25:04.400] gonna have that licensing fee, but they also support just regular RF transmission over a [25:04.400 --> 25:07.840] couple of different bands, I'm blanking on which ones they are right now, but they're very [25:07.840 --> 25:13.600] well documented, they support both Linux and Arduino again, both support them. It's $10 a [25:13.600 --> 25:17.480] module, but these things are appearing everywhere in the security community. If you have [25:17.480 --> 25:25.720] any of the DC Darknet badges, they use these, they've used them for the last couple of years, [25:25.720 --> 25:30.320] so they're definitely showing up in the community. They're very good modules, they're very [25:30.320 --> 25:34.400] good quality and that's the difference between some of the other communication modules, is [25:34.400 --> 25:38.660] that these are actually very well built and you can use them pretty much anywhere and [25:38.660 --> 25:42.280] guaranteed that if you're gonna get a mesh, they're gonna work, if you're gonna communicate [25:42.740 --> 25:48.120] point to point, they're going to work. They're spy based, which isn't a big deal, if you're [25:48.120 --> 25:51.260] gonna use them on a regular computer, that makes it a little more complicated, but you can [25:51.260 --> 25:56.000] also get cheap modules to communicate over spy to a regular computer or using a Raspberry Pi [25:56.000 --> 26:02.220] or anything else, but that's about it. And they use about 50 milliamps, so they're fairly low [26:02.220 --> 26:07.320] powered. And then, let's go to simple. If you want something that's literally just a throwable [26:07.320 --> 26:11.740] device, you just want a radio. You don't want something that does any of the, you know, [26:11.740 --> 26:16.260] protocol or anything else, you just want something that transmits. And ASK radios are very good [26:16.260 --> 26:21.560] at that, they just transmit. They are, the more power you provide them, they can go up to [26:21.560 --> 26:26.340] about 12 volts, the more range you're gonna get on them. They, uh, are supported by virtual [26:26.340 --> 26:32.520] wire and radio head in Arduino, you can also just write to them using Linux, um, if you have [26:32.520 --> 26:38.860] any spare IO lines. They have a max range of about 200-250 feet, they're not spectacular, but [26:38.860 --> 26:45.260] they're cheap. You can buy a 10-pack of them for less than $5. And they do work. Unlike the [26:45.260 --> 26:49.240] other ones, they don't really have a crystal problem, but they're just very cheap and not very [26:49.240 --> 26:55.780] good. I have 3 different versions of, uh, just cheap ASK radios. The ones on the bottoms are [26:55.780 --> 27:01.420] the ones you're gonna see most common. The one on the top left is the LR43B, if you're curious [27:01.420 --> 27:07.100] about it. It is designed a little smaller, it's a very small package, but it's, it has a little [27:07.100 --> 27:10.900] bit better range, it's a little bit better quality, it doesn't have so much noise [27:10.900 --> 27:17.320] interference. And then the other side is the H34C, and that one also has good, uh, better noise [27:17.320 --> 27:22.200] quality than the bottom one. But, um, they're not very good. They, they work at about 433 [27:22.200 --> 27:26.240] megahertz, which is about the same frequency that you get when you get those cheap [27:26.240 --> 27:31.300] thermometers. So they're not very fancy, but they're not gonna be detected. Because people in [27:31.300 --> 27:35.980] their offices or anywhere have those devices already, so you can just transmit freely on [27:35.980 --> 27:43.940] those. And then there's ZigBee. ZigBee's pretty much showing up everywhere in IoT devices. [27:44.360 --> 27:48.080] It's, there's a couple of implementations based off of this. ZigBee's one of the [27:48.080 --> 27:53.720] implementations of 802.15.4. There's also 6LowPan. Uh, they're all very low power and very [27:53.720 --> 27:57.800] low range. Usually you have a hub and other communication methods. And the reason I'm [27:57.800 --> 28:01.700] putting on, this on here, even though it's such low, low range, is the fact that you can use [28:01.700 --> 28:07.060] these to relay. So if you got control of an IoT device and it had ZigBee, you can transmit [28:07.060 --> 28:12.160] out to another device and another device. And if you have control along that path where [28:12.160 --> 28:16.500] they're all meshed together, you can send data out even if you don't necessarily have control [28:16.500 --> 28:20.860] of the direct connection to the device that you're starting with. So that makes it very good [28:20.860 --> 28:25.360] for that. But again, they're very low range. There's um, there's Thread Protocol, which is [28:25.360 --> 28:31.960] made by Google. It is encrypted. I don't know of much that you, uh, you can use with it, um, [28:31.960 --> 28:38.200] that's open. But it is something that also exists on the same frequency range. And you may [28:38.200 --> 28:41.640] be thinking, why not just use satellites? Satellites are really good. You know, you always [28:41.640 --> 28:45.760] have connection to a satellite. It's all, they're up in the air. The problem is that they're [28:45.760 --> 28:53.680] expensive. Very, very, very expensive. For $28, you can get 10 kilobytes of data. So it's very [28:53.680 --> 28:58.840] good on the budget. Unfortunately for us, that's not very good. But the upside is that they are [28:58.840 --> 29:05.400] universally accessible. The, the other interesting about the, uh, satellite transmitters is [29:05.400 --> 29:11.660] they're fairly large. This is the smallest module I could find. In the corner is the, uh, is a [29:11.660 --> 29:15.740] normal size module. It's about, it's basically the size of a small laptop that you transmit. And [29:15.740 --> 29:21.660] those are small. The smallest ones I've found, they're, they use a specific one, um, uh, [29:21.660 --> 29:27.220] satellite, uh, chain. Uh, they're called rockbox, uh, rockblocks. They use the Iridium network [29:27.780 --> 29:31.660] and that's where you get that high cost. There's other ones that you can use, um, that are [29:31.660 --> 29:36.280] actually continuous uplink and downlink versus just sending data for a small fee. Um, those [29:36.280 --> 29:45.000] work, but they are not very affordable. It is, uh, $90 for 30 megabytes of data. So you can use [29:45.000 --> 29:50.620] it, but if you're using them, you're probably, you probably have quite a bit of money. So what's [29:50.620 --> 29:56.500] the next best thing to cellular? Well, I, I don't know what that guy's wearing, but it's [29:56.500 --> 30:03.860] cellular. So cellular is fairly good with this stuff. The only problem is again, you, you run [30:03.860 --> 30:07.860] into the problem where you're not in range of a cell tower or you're in a building where you [30:07.860 --> 30:12.060] don't have range. If you're at Defcon, you know, you, you've probably been noticing where the [30:12.060 --> 30:16.640] signal's going out. It's in many cases, not someone actually trying to hack you. What's [30:16.640 --> 30:21.080] happening is there's just so much communication going on here. You're, we're not getting any [30:21.080 --> 30:26.800] signal out and that's problematic. And that's one of the problems that you can run into with [30:26.800 --> 30:32.840] these devices. But there's a couple of protocols that exist. You can communicate on different, [30:33.400 --> 30:38.740] I'm going to say protocols now, but so you have 3G, 4G, 2G. Those are all the standard ones [30:38.740 --> 30:44.860] that most people have heard of. But what's coming out now is Cat 0, Cat 1, Cat M1 and NB-IoT. [30:44.860 --> 30:50.560] These are all over cellular networks. They're getting deployed worldwide and they're really, [30:50.560 --> 30:57.980] really useful. For example, Cat 0 and Cat 1, they have limited messaging support, but they have a [30:58.820 --> 31:03.140] dedicated basically serial downlink and uplink. So you can send data continuously using a [31:03.140 --> 31:08.600] cellular network. In the screenshot of the picture of the person holding it, that's a Cat 1 [31:09.420 --> 31:16.200] radio. So they're very small. And then NB-IoT, that's the bottom corner. Those are about 50 [31:16.200 --> 31:22.520] kilobits a second, so very small, but they're also, it has higher latency, but it's a lot bigger [31:22.520 --> 31:27.640] coverage. I don't know why NB-IoT is getting so much popularity, but it is. So if you can use [31:27.640 --> 31:35.700] it, it's fairly deployed all over the world now. And then if we go back to what most people use, [31:35.700 --> 31:41.640] that's 4G and eventually 5G. It's very flexible, but you're going to have to have a baseband. [31:41.640 --> 31:45.160] You're going to have to have all sorts of things. If you get lucky, you can actually use add [31:45.160 --> 31:50.640] commands on the modem, but that's going to be very complicated and not necessarily very useful [31:50.640 --> 31:56.220] because you're going to have to write a lot of driver support. Then you have 2G and 3G. They're [31:56.220 --> 32:02.580] really good because the protocol implementations of 2G and 3G actually support web requests [32:02.580 --> 32:07.160] directly over the modem. You don't have to implement anything else. You just use an [32:07.160 --> 32:12.160] Ackman to say, hey, get this page. If that page has request parameters in it, you're now sending [32:12.160 --> 32:18.280] data out. So it's a very good way of using it. Their end of life, they should be all, you [32:18.280 --> 32:26.260] know, removed by around 2022 if I hear correctly, but it just depends. So don't rely on it, but [32:26.260 --> 32:30.920] those are very useful now. You can get the modules for very cheap. They're about $30 and you [32:30.920 --> 32:37.800] can just deploy them and go. They're fairly low power. What else is there? Okay, so here's a [32:37.800 --> 32:41.900] breakdown. I'm looking for the monitor over there. Here's a breakdown of the different [32:41.900 --> 32:48.240] protocols that are supported on cellular and the different data rates. As you can see, CATM [32:48.240 --> 32:55.260] supports more data, uh, millibits per second versus kilobits, but you don't necessarily need [32:55.260 --> 33:00.800] that. And then this comes back to the half duplex and full duplex. You can, you can see where [33:00.800 --> 33:05.860] they come in, where you can send more data or less, but who provides it? Well, I'm only [33:05.860 --> 33:09.980] listing two. These are the only two companies that got back to me. Verizon, T-Mobile, and all [33:09.980 --> 33:15.640] the others also say they support these, uh, you know, NBIT, CAT1, and they will sell you [33:15.640 --> 33:21.340] dev kits, but it turns out they'll only sell them to you if you make thousands of units and [33:21.340 --> 33:27.000] you're a corporation that can, you can afford to do that. So it's, it's a little [33:27.000 --> 33:31.640] problematic. These two on the other hand, they replied to me very quickly. They were able to [33:31.640 --> 33:36.160] give me information on how to use the protocols, how to use the radios that were going over [33:36.160 --> 33:42.940] cellular. So that was very nice. Uh, for, for particle, it's a little expensive. Um, they give [33:42.940 --> 33:50.100] you a free card, but it's three megabytes included only. Uh, 21 megabytes is, um, a total of [33:50.100 --> 33:55.120] 40 cents. So if you wanted to use 200 megabytes a month, it's about a hundred dollars, or you [33:55.120 --> 34:00.540] can just buy the one gig plan, which is about 400. Uh, again, it gets, the prices are steep for, [34:00.540 --> 34:09.260] um, uh, the IOT communication protocols that are long range, but they do work. All right. So [34:09.260 --> 34:14.440] here's the dev kit. The dev kits are fairly cheap. You can get them for about a hundred bucks [34:14.440 --> 34:22.780] actually from AT&T, but they, uh, again, unless you're planning on using, you know, only a little [34:22.780 --> 34:26.920] bit of data, you have to be considerate of how much the, the actual plan costs versus [34:26.920 --> 34:32.560] implementing them. But what is the goal? Why, why, you know, do this talk right here? Well, the [34:32.560 --> 34:37.760] goal is to implement something that does not get detected. How good would it be if you could go [34:37.760 --> 34:43.520] into your pen test and roll in a coffee maker that has wireless, you know, 4G, 3G, or, you know, [34:43.520 --> 34:48.380] it's using LoRa, any of these communication protocols I've listed today, and you just roll it [34:48.380 --> 34:53.040] in, someone's like, oh, look, a new coffee maker. They won't suspect anything. And then you [34:53.040 --> 34:56.700] have, you know, either wireless or some other thing that it's plugged in, it's monitoring and [34:56.700 --> 35:01.480] sending the data out via the IOT communications. Nobody's going to suspect a thing. It's [35:01.480 --> 35:05.600] going to sit there for a while. Probably you will never get it back, but at least you have [35:05.600 --> 35:12.740] something now that's easily rolled in. And so the goal here, uh, again, is that we want [35:12.740 --> 35:18.880] something that works, that's small, not easily detected, send, you know, the data out very [35:18.880 --> 35:24.280] easily. We don't want to do a lot of implementation, but we want it to go remote and maybe [35:24.280 --> 35:31.140] send it multiple paths. If we can do mesh, it's also good. And that's about it. Um, I hope this [35:31.140 --> 35:37.380] was a good summary of the IOT communication protocols that exist today. There's quite a few [35:37.380 --> 35:44.020] of them. I know this has been mostly high level, um, for what was actually supported. There's [35:44.020 --> 35:49.200] more stuff online that I've worked on, um, that you can see, but this hopefully will just give [35:49.200 --> 35:55.200] you an idea of what technologies you can use now and where you can use them. Uh, it's up to [35:55.200 --> 36:00.920] you in the end, but again, hopefully this covers most of them that exist. And if you have any [36:00.920 --> 36:04.820] questions, uh, feel free to find me at the end, but thank you guys for being here today.