WEBVTT

00:00.000 --> 00:02.980
Um, alright, welcome to Wireless Village.

00:02.980 --> 00:13.100
Um, I'm going to be giving you guys a brief rundown in a second on the various IOT communication forms that exist now and what you can do with them.

00:13.300 --> 00:16.220
So, come join me on a journey.

00:16.680 --> 00:20.760
About me, my name is Wasabi, Spicy Wasabi.

00:20.760 --> 00:26.160
The reason I'm speaking here today is because there is another Wasabi in the room and it's frustrated Wasabi.

00:26.160 --> 00:29.520
So, uh, if you're around now, make sure to see me at the end.

00:29.520 --> 00:38.340
If not, uh, that's the reason why I'm speaking here today, but also to give you guys some interesting information about embedded devices and wireless communications.

00:38.400 --> 00:44.520
And if you're not interested in wireless communications here, please, uh, you've come to the wrong place.

00:44.520 --> 00:51.360
Uh, but anyway, I've focused on embedded things, internet of things, and all sorts of things for the last four years.

00:51.980 --> 00:58.760
I have participated in a bunch of competitions related to embedded devices and security and all sorts of things like that.

00:58.760 --> 01:07.980
And that's led me down a path of looking at what can you do with embedded devices that exist nowadays and how can you get them to do what you want.

01:08.240 --> 01:21.500
So, what we'll be looking at today is the existing technologies that are out there, the possible uses and challenges of those technologies, and what types of protocols are in use today.

01:21.800 --> 01:30.540
Uh, we'll also be looking at some of the radios and micro controllers you can pick from to do what you want to do, but it's up to you on what you pick on, uh, for all this obviously.

01:30.960 --> 01:32.320
So, let's get started.

01:32.320 --> 01:43.660
Way back when, if you wanted to send data out of a network, you're, you're doing a penetration test or you're doing something along those lines, uh, you will have the need to get out of the network.

01:43.820 --> 01:50.620
And in the old days that was, and is still heavily used, you're doing some sort of exfiltration using the network.

01:50.620 --> 01:52.480
You're on the network as it is.

01:52.480 --> 01:53.460
And that's great.

01:53.460 --> 02:01.740
It works pretty well because most, you know, corporations, most businesses and, and places don't really secure their network very well.

02:02.060 --> 02:05.840
Some newer ones are also using 4G to allow you to communicate out.

02:05.840 --> 02:06.900
That's pretty good.

02:06.900 --> 02:11.240
It's, you know, a relatively large area of support you can use from.

02:11.240 --> 02:12.960
The problem is that it's not very stealthy.

02:12.960 --> 02:16.800
If someone's actively looking for you, they will find you.

02:16.800 --> 02:24.040
Even, um, if they're, you know, if they're using DNS, if they're monitoring web traffic, you will not be undetected.

02:24.420 --> 02:29.220
Some of them do support passive tap capabilities but for the most part they don't.

02:29.220 --> 02:30.520
So not very useful.

02:31.180 --> 02:32.660
True and proven is Wi-Fi.

02:32.660 --> 02:34.840
If you want to send data out of a network, you use Wi-Fi.

02:34.840 --> 02:37.360
If you want to use a network, use Wi-Fi.

02:37.540 --> 02:44.680
It has pretty good pivot capabilities because you can just use any device you buy at the store on eBay and just let it connect in.

02:44.680 --> 02:45.640
Pretty great.

02:46.020 --> 02:51.280
It is sometimes capable of tapping a network because you're using basically a Linux computer to run your routing.

02:51.640 --> 02:58.360
So you have the capabilities on there but again, it's not very long range and it's not necessarily very stealthy.

02:58.360 --> 03:04.080
If you're running, you know, HackerNet and you're running a test , that, that doesn't really make it stealthy.

03:04.920 --> 03:08.420
But that comes into where we're using wireless communications.

03:08.520 --> 03:12.520
So if you're familiar with wireless, you have half duplex and full duplex.

03:12.720 --> 03:14.240
And that's pretty good.

03:14.320 --> 03:18.940
Uh, so for half duplex, you send data and then you receive the data.

03:18.940 --> 03:21.740
For full duplex, you're sending and receiving more or less at the same time.

03:21.740 --> 03:27.660
Which is great for us because if you want two lines of communication, you now have them both working actively.

03:27.660 --> 03:29.300
And uh, hold on one second.

03:30.720 --> 03:32.960
Uh, I,

03:36.150 --> 03:38.130
where's the presenter view?

03:43.310 --> 03:44.710
Okay, hold on one second.

03:44.710 --> 03:46.550
The monitors are misconfigured.

03:54.860 --> 03:57.080
Alright, did the monitors just go away?

03:57.240 --> 03:58.340
Great.

04:01.970 --> 04:03.390
Alright, cool.

04:03.390 --> 04:06.590
Technical difficulties are wonderful.

04:09.370 --> 04:13.490
Uh, the monitors have gone out.

04:48.060 --> 04:49.340
Okay.

04:51.340 --> 04:51.980
Yeah.

04:52.660 --> 04:54.760
Uh, the, oh, wrong view entirely.

04:54.760 --> 04:56.600
Yeah, it, Windows is my problem.

04:58.840 --> 04:59.740
There we go.

04:59.740 --> 05:00.920
Sorry about the delay.

05:01.060 --> 05:01.920
Alright.

05:02.340 --> 05:06.020
So, okay, we're talking about duplex and half duplex.

05:06.100 --> 05:09.800
So, what happens if we need just slow communication?

05:09.800 --> 05:11.920
We don't care about receiving and sending at the same time.

05:11.920 --> 05:15.100
We have the ability to just send data or receive it.

05:15.100 --> 05:19.460
A lot of IoT protocols use the method of half duplex because it's very efficient.

05:19.460 --> 05:21.040
Well, they don't even use just half duplex.

05:21.040 --> 05:25.120
They just have receive windows where the device is allowed to receive data.

05:25.120 --> 05:27.360
All other times it's send only.

05:27.960 --> 05:31.740
So, that, there's a lot of opportunities here for sending data.

05:31.740 --> 05:35.520
But the problem is, well, even Wi-Fi is half duplex.

05:35.660 --> 05:38.420
And so, you may not necessarily notice a problem .

05:38.480 --> 05:46.760
But the general rule is, regardless of the protocol, the more power you use, the more data you can send, the more data you send, the more power you need.

05:46.760 --> 05:55.000
If you're running on a battery, the problem is you're going to run out of power a lot quicker if you're sending a lot of data versus something that's, you know, smaller, more embedded.

05:55.560 --> 06:03.180
When you're using Wi-Fi, it's more, it uses more power than something that's designed specifically for low power use, such as IoT protocols.

06:03.620 --> 06:07.140
So, if, and you have to think about compression.

06:07.440 --> 06:20.840
It may not think, it might, you may not imagine it's a lot, but when you go from 128 bytes down to 64 bytes, that's a huge difference in the amount of data that you're sending and the duration that you can operate for these devices.

06:21.520 --> 06:26.400
So, very, very quick, high-level overview of what wireless will look like.

06:26.400 --> 06:27.800
This is very simplified.

06:27.800 --> 06:31.840
There's a lot of different ways you can format data over a wireless signal.

06:31.900 --> 06:39.420
But the general idea is that you have high and low sending data and receiving data, and you can have different ways to send it.

06:39.420 --> 06:47.840
You have a carrier and then you can do different encodings, such as ASK, FSK, PSK, ODFM, all sorts of different formats.

06:47.980 --> 06:51.640
So, that's good, but how would you implement some of these protocols?

06:51.840 --> 06:54.680
Well, you have the, the, the SDRs.

06:54.680 --> 06:56.640
Now, these are great for general use.

06:56.640 --> 06:59.440
SDRs are very, very powerful, but they're big.

06:59.940 --> 07:03.920
They're getting smaller, but for the most part, if you're going to be using this, this is something very obvious.

07:03.920 --> 07:10.680
If you're going to have a box that has an SDR and it has the enough processing power to use an SDR, you're not looking at being very stealthy again.

07:11.060 --> 07:12.600
It is getting better, though.

07:12.600 --> 07:14.440
This is the Lime SDR Mini.

07:14.820 --> 07:15.960
This is a pretty good device.

07:15.960 --> 07:18.260
I've actually been seeing some people use it over there.

07:18.620 --> 07:24.100
The problem is, with this device, is that it does not support a lot of things that are just point and click.

07:24.100 --> 07:27.140
So, if you're trying to do something quick, not necessarily true.

07:27.140 --> 07:37.940
And what I mean by point and click here is that you can program the FPGA and other components on there, but now you're developing for the hardware, and it requires a little more knowledge versus just running the, the devices.

07:37.980 --> 07:43.380
And versus the full-blown SDRs, which are usually about $400, this one runs about $150.

07:43.620 --> 07:47.820
So, it's very cheap and it's much smaller, so we're going on the right track.

07:48.380 --> 07:51.160
But of course, there are other methods of communication.

07:51.380 --> 07:54.360
Um, this one is probably one of my favorite that I've, I've seen.

07:54.360 --> 07:56.940
This is, we're going into ham radio here.

07:56.980 --> 08:01.460
And ham radio has been doing this sort of work for a very long time.

08:01.460 --> 08:13.120
In fact, I'd say they're probably the experts in implementing, if you're a ham radio operator, you're basically the expert in implementing communication over very small amounts of wireless bandwidth.

08:13.180 --> 08:19.340
And this computer over here is basically a TNC machine, which is sending serial data over the radio.

08:19.440 --> 08:25.440
And it allows, so this technology is not new, but it is extremely useful and relevant.

08:25.440 --> 08:26.940
And why, you may be wondering?

08:26.940 --> 08:30.860
Well, what happens if you're trying to get into like that power plant in the middle of nowhere?

08:31.180 --> 08:39.400
Well, you can't use wifi then because you're not going to be just sitting in your car next to the wire, the power plant and being like, hey, cool, I'm just here, you know, it's a nice place to sit down.

08:39.680 --> 08:42.740
You're going to be far away where you're not getting detected.

08:43.800 --> 08:45.220
So, that's good.

08:45.220 --> 08:47.020
But what happens if you're in a regular business?

08:47.240 --> 08:48.540
You know, can you hear me here?

08:48.840 --> 08:53.200
So, this is a little, this is an easier form, but why not make something that can be used for both?

08:53.440 --> 08:55.260
So, now we gotta get creative.

08:56.100 --> 08:59.080
And there's a lot of choices with these devices.

08:59.160 --> 09:06.180
Because of IoT is so popular, you can go from any preferred embedded device that you can work with.

09:06.280 --> 09:09.000
You can work with Zigbee, in the top, that's Zigbee.

09:09.000 --> 09:18.780
You can work with the Silicon Technologies modules that do 4G, they do all sorts of different communication ones.

09:18.780 --> 09:21.580
There's also the ESP modules.

09:21.580 --> 09:24.620
ESP modules are by far the cheapest modules that you can get.

09:24.620 --> 09:33.820
If you need to throw them on anything, there's, um, the ESP, uh, uh, 8691, or, I'm blaming on the name.

09:34.240 --> 09:38.400
But it is, 8285, 8285, that came to me.

09:38.420 --> 09:42.100
Um, it is designed specifically for being very lightweight.

09:42.100 --> 09:50.160
It has embedded storage on it, so you can actually program it, have it running stuff, and do a little bit of data storage while you buffer to send out if you need to.

09:50.160 --> 09:51.620
So, that one's very good.

09:51.720 --> 09:54.720
But the things you have to think about are what IO do you need?

09:54.720 --> 09:59.680
If you're connecting to an actual computer, do you have what you need to connect to that computer?

09:59.720 --> 10:01.160
Do you need to be stealthy?

10:01.160 --> 10:02.360
Do you need to be battery powered?

10:02.360 --> 10:11.900
If it's battery powered, you need to be able to relay the data, if you have a lot of data being sent and you're using all your battery, you're gonna lose power very quickly.

10:12.700 --> 10:16.960
So, here's one that I saw online, this is the WiFi Ducky.

10:17.260 --> 10:23.900
It's an open source project, it looks very open source, um, but it's very powerful.

10:23.900 --> 10:34.660
And this is the type of stuff that is very exciting to me, because this is someone taking multiple components, putting them together and building something that is actually very useful for work.

10:34.660 --> 10:40.920
But the only problem with this device, and obviously it's easy to fix if you build an enclosure, is it looks somewhat sketchy.

10:40.920 --> 10:46.600
If you were to plug this into someone's computer to drop a payload, they're probably going to notice.

10:46.600 --> 10:49.080
And that, that's problematic.

10:49.080 --> 10:51.320
And the other problem with this is it doesn't have full communications.

10:51.320 --> 11:01.700
You can't receive data out, you can, you can launch scripts, you can make it pivot over the network, but once you've executed the commands, uh, and you've triggered it from wireless, it's not sending data back to you.

11:02.240 --> 11:09.360
And again, the problem is you don't want, you don't want the party, this dance crew coming out to see you when you're doing a pen test.

11:09.400 --> 11:11.540
So, we need something a little more subtle.

11:11.920 --> 11:13.580
That's where you get into the microcontrollers.

11:13.580 --> 11:16.920
The microcontrollers nowadays are very, very good.

11:17.100 --> 11:24.720
Um, you, obviously again, ESP modules, they're super cheap, that's why you're going to see them again and again for every device, uh, and release thing that you're going to see.

11:24.920 --> 11:32.760
Um, the other thing you may see is, um, uh, I think that's how you pronounce it, these devices are absolutely stunning.

11:32.840 --> 11:48.200
They're very, very low power, they have a Hope RF module built in, they have an Arduino built in, you just basically start flashing them and you have a device that can run over battery relay information and do anything you need it to off of a very small package.

11:48.500 --> 11:59.060
Uh, in my test, this thing actually lasted for over, I think, two weeks in, uh, doing timed communication with just running off of a small little battery.

11:59.080 --> 12:00.260
That's pretty good.

12:00.860 --> 12:02.060
But there's others.

12:02.060 --> 12:10.200
If, if you need something a little more powerful and you, you want to, instead of using a full computer, you want to just embed and you want to have one device that you can just drop in.

12:10.220 --> 12:12.600
That's where the system on a chip's come in.

12:12.740 --> 12:18.400
Linux has been getting on smaller and smaller devices for a long time now and the hobbyist community has been growing.

12:18.820 --> 12:22.820
So, the top device is the Vocore.

12:23.320 --> 12:25.620
How many people have heard of a Vocore before?

12:26.140 --> 12:27.880
Okay, more than I actually expected.

12:27.880 --> 12:34.280
For those of you who are not aware of what a Vocore is, it's a very cheap embed, uh, system on a chip device that's running Openwork.

12:34.280 --> 12:39.420
And they've exposed all the IO lines, um, they've exposed all the IO lines out.

12:39.420 --> 12:44.460
So, basically what you can do is you can add radios, you can add other communication, um, mediums.

12:44.460 --> 12:47.080
It also has WiFi built in.

12:47.180 --> 12:48.520
So that's good.

12:48.680 --> 12:50.800
And it's pretty powerful.

12:50.800 --> 12:52.300
It, it, again, it runs Linux.

12:52.300 --> 12:54.640
So you can embed things on it and make it do things.

12:54.660 --> 12:56.700
And it's about $10.

12:57.500 --> 12:59.980
Uh, the other one is the OrangePi.

13:00.100 --> 13:01.900
OrangePis are very interesting.

13:01.900 --> 13:07.800
The, the interesting thing is on, about OrangePis is they, they basically run a stock kernel now.

13:07.800 --> 13:09.660
And they're a fairly powerful processor.

13:09.660 --> 13:12.320
They're running about, uh, one gigahertz.

13:12.320 --> 13:18.540
So it's basically running a Raspberry Pi in a little tiny dongle that has Ethernet, WiFi, and IO that you can access.

13:18.540 --> 13:25.200
So, if you're needing something that you need to just embed into something small, these things are the size are smaller than the Raspberry Pi.

13:25.900 --> 13:30.280
So, you know, we, we can do a lot of stuff.

13:30.860 --> 13:33.060
Uh, communication is important.

13:33.260 --> 13:38.300
And we're going to get into how and what technologies work for different situations.

13:38.300 --> 13:40.760
I went through and started going on eBay a while ago.

13:41.100 --> 13:44.640
And went through and bought, bought every single wireless module I could find.

13:44.860 --> 13:47.660
Some of them work better than others, as you will see.

13:47.840 --> 13:53.180
And it turns into a very interesting experience when you're trying to deal with some of these devices.

13:53.180 --> 13:54.900
There's some quirks that exist.

13:54.900 --> 14:02.000
If anybody's done any hobbyist or IoT development, you'll start seeing things where the radios don't work as expected in every situation.

14:02.520 --> 14:04.580
So, how were these radios tested?

14:04.580 --> 14:07.880
Um, this was done, uh, last year.

14:07.880 --> 14:09.760
I started getting all these modules.

14:09.820 --> 14:14.180
What I did was I started going farther and farther with about a thousand packets as a test.

14:14.180 --> 14:17.100
They were sent over a short period of time.

14:17.380 --> 14:21.680
Uh, the packets were a normal format that was used across every single radio.

14:21.680 --> 14:25.720
So, if one works better than the other, it's not a difference in the packet that was being sent.

14:25.720 --> 14:29.040
There's no time different, there's no different data for each packet.

14:29.040 --> 14:30.300
It's all the same.

14:30.420 --> 14:36.860
The same, and I was testing range and the signal quality being sent and received by each of the devices.

14:38.120 --> 14:40.720
So, we're back to ESP modules again.

14:41.140 --> 14:42.620
They are very powerful.

14:42.620 --> 14:44.800
They use about 70 milliamps of power.

14:44.800 --> 14:47.560
If you're plugged into a real device, that doesn't matter.

14:47.560 --> 14:54.120
But if you're running off of mobile, you're trying to relay information, this gets a little, uh, problematic.

14:54.120 --> 14:58.420
They use about 16 milliamp spike in addition.

14:58.420 --> 15:02.060
So, it goes up to about 80 milliamps, 85 milliamps when you're powering up.

15:02.060 --> 15:08.820
So, if you're running on an extremely low power battery, you could reset the device and then you will lose the capability you have.

15:08.820 --> 15:13.880
It also uses that amount of power for 3 to 5 seconds as it's doing DHCP.

15:14.500 --> 15:20.000
So, every time you need to connect and as it refreshes the least, it will be using more power.

15:20.980 --> 15:24.220
It has a fairly high transmit draw instead of receive.

15:24.300 --> 15:25.720
So, it's good.

15:25.720 --> 15:28.680
They're reliable in the sense that they are everywhere.

15:28.680 --> 15:29.460
They're cheap.

15:29.460 --> 15:34.320
And if you buy one and you buy another one from another vendor, they're still going to work the same.

15:34.320 --> 15:35.720
They speak Wi-Fi.

15:35.720 --> 15:39.940
And that's something that's good about them is that they are so standardized.

15:41.720 --> 15:46.860
The ESP32 is another interesting technology from Espressif.

15:46.860 --> 15:48.300
It's a dual-core version.

15:48.300 --> 15:49.860
It's pretty common now.

15:50.060 --> 15:54.580
The problem that I've found with the ESP32 is that it has a low-power core.

15:54.580 --> 15:56.240
It's one of its selling points.

15:56.300 --> 16:08.480
And so far, I have not seen anyone successfully implement the low-power core except for one person who was writing raw assembly in a C-struct and then writing that directly to the microcontroller.

16:08.480 --> 16:13.560
It's very complicated in that case and that's not ideal for something that we're trying to just deploy quickly.

16:15.000 --> 16:18.360
And again, they're very low-power.

16:18.600 --> 16:24.500
The ESP32s are actually slower by a couple of seconds to connect via DHCP every time.

16:24.500 --> 16:27.760
You can set them statically, but it's not necessarily ideal.

16:28.320 --> 16:32.200
And then again, they also have the high transmit draw when they're working.

16:32.960 --> 16:34.820
But then we get to LoRa.

16:34.820 --> 16:40.360
If you've done anything in the embedded protocol range, LoRa is a very powerful protocol.

16:40.620 --> 16:44.660
It's sub-gigahertz in most cases.

16:44.660 --> 16:46.980
There's a couple of different ranges that it works.

16:47.060 --> 16:50.080
But it by default has a one to two mile range.

16:50.320 --> 16:52.180
It's licensed.

16:52.180 --> 16:56.260
It's designed off of technology called chirp spread spectrum.

16:56.260 --> 16:59.040
That's how it does what it does with the range.

16:59.040 --> 17:09.840
It's used in not only raw radios, but it's also used in some cases, people have been experimenting with satellite communication using LoRa, which opens up a lot of possibilities.

17:09.840 --> 17:21.000
If you design a device that's going to use LoRa for communication and you add in satellite implementations, you don't have to rewrite everything that you're implementing in the first place.

17:21.380 --> 17:24.460
So it is just the lower level.

17:24.460 --> 17:29.520
The actual protocol implementations, there's a couple of them.

17:29.860 --> 17:31.660
LoRaWAN and Haystack.

17:31.900 --> 17:44.560
These are both implemented by licensing and they have a couple of different specific changes that they do for how you transmit to them or receive from them.

17:46.420 --> 17:53.680
Again, LoRa is the PHY implementation and it uses about 30 milliamps to receive and about 100 milliamps to transmit.

17:53.680 --> 17:55.820
So we're looking at something that's very, very low powered.

17:55.820 --> 17:59.040
If you're running on battery, this thing can go for a very long time.

18:00.300 --> 18:04.340
So LoRaWAN, it's self-configuration and join.

18:04.340 --> 18:07.880
You build a device, you build it, it's going to join to the LoRa network.

18:07.940 --> 18:09.560
Now where is the LoRa network?

18:09.580 --> 18:13.300
Well, interestingly, it's all around us if your city supports it.

18:14.480 --> 18:16.660
They're slowly rolling out to different cities.

18:16.660 --> 18:22.000
It's much like a cellular network in the sense that you have to have coverage where you're going to be deploying.

18:22.100 --> 18:25.380
In the middle of nowhere, you're not going to have coverage.

18:25.440 --> 18:27.900
LoRa will still work, but LoRaWAN will not.

18:28.840 --> 18:36.680
It's encrypted with AES 128 bit, but it's not necessarily the most effective encryption.

18:36.860 --> 18:42.060
If you've looked online, there's problems with their encryption, uh, implementation.

18:42.360 --> 18:46.640
Um, it supports OTA configuration, uploading and downloading.

18:46.660 --> 18:50.840
There's several different, um, implementation classes if you want to use LoRaWAN.

18:50.880 --> 18:54.960
If you're trying to send only, uh, that's class A.

18:54.960 --> 18:57.840
It has two timed windows every so often.

18:57.840 --> 19:04.740
I forget if it's a day or a week, but there's two windows where it will pull updates to reconfigure itself.

19:04.880 --> 19:08.220
Otherwise, it's just going to sit there and send all the data.

19:08.220 --> 19:10.560
You have no idea if you're going to ever get it back.

19:10.900 --> 19:15.720
Uh, class B has higher downlink speeds, but otherwise is unchanged.

19:15.800 --> 19:18.960
Class C is always listening, except when it's transmitting.

19:18.960 --> 19:21.060
So that's where you go into the half duplex.

19:21.460 --> 19:31.800
Class C seems like the best option to do, but there's also, uh, problems with having availability in the windows that you're transmitting for the, the LoRaWAN implementation.

19:31.800 --> 19:33.440
Oh, okay, just changing your own.

19:33.600 --> 19:37.820
Um, there is a small licensing cost for anything that you use with LoRa.

19:37.940 --> 19:42.180
It's not, not very big, but it is something that exists.

19:42.180 --> 19:46.060
So Wi-Fi is free, LoRa is not completely free.

19:47.260 --> 19:49.300
So you also have SIGFOX.

19:49.300 --> 19:51.320
It's both a protocol and a company.

19:51.580 --> 20:01.660
SIGFOX, SIGFOX is very interesting because there's a module cost, there's a licensing fee to have the module modem, there's also a service fee for the modem.

20:01.660 --> 20:04.380
So you're constantly paying money to use this.

20:04.560 --> 20:10.140
And it is primarily transmission only, and only in areas that SIGFOX is covered.

20:10.400 --> 20:18.700
So if you're trying to use this in areas that are long range, even though it has a longer range than LoRa, you may not be able to get reception.

20:18.700 --> 20:22.080
And it halves the transmission usage of LoRa.

20:22.080 --> 20:26.700
It only uses about 40 milliamps, um, during transmit.

20:27.180 --> 20:34.260
And, um, it can send a whopping, um, 14 bytes at 600 bits per second.

20:34.260 --> 20:36.760
So, you know, you're talking a lot of data here.

20:36.760 --> 20:39.660
Um, unfortunately for us, that probably isn't good enough.

20:39.660 --> 20:44.920
But if you need something that's just to ping back and say, hey, I'm still here, that, that does work.

20:45.420 --> 20:50.340
Um, it has a continuous TX mode, which is good if you're just trying to, you know, do location.

20:50.560 --> 20:55.480
And, um, but again, it's the licensing fees really kill it.

20:55.840 --> 21:00.540
Dash 7 is supposed to be the solution to both LoRa and SIGFOX.

21:00.540 --> 21:02.660
It's an open alliance, open platform.

21:02.660 --> 21:06.040
Also uses sub-gigahertz, uh, communication.

21:06.460 --> 21:09.520
It only uses about 10 milliamps to receive.

21:09.540 --> 21:13.860
And the, you can run your own nodes to receive data from.

21:13.860 --> 21:18.620
So you can implement something that goes over any radio protocol from this if you need to use it.

21:18.800 --> 21:20.260
That's really good.

21:20.500 --> 21:23.800
Uh, the only problem is that the documentation is a bit sparse on it.

21:23.800 --> 21:29.460
If you're trying to implement something using it, you have to go to someone who already implements it, a vendor.

21:29.460 --> 21:36.520
And that's a little expensive because we're usually, if we're doing some kind of pen test, it's one-offs, not thousands.

21:37.500 --> 21:39.140
So what else can we look at?

21:39.140 --> 21:41.280
Well, here's probably one of my favorite modules.

21:41.280 --> 21:51.900
If you're doing some kind of communication pen test or, or you need to communicate during a pen test where you can't use Wi-Fi or any other communications, the HC12 is this amazing little module that you can buy off eBay.

21:52.200 --> 21:53.180
It's cheap.

21:53.180 --> 21:55.880
It works very well if you get, they come in pairs.

21:55.880 --> 22:02.060
And as long as you're using the pairs, they can, uh, work up to about 3,000 feet distance in range.

22:02.480 --> 22:05.260
They're very, very powerful.

22:05.260 --> 22:11.660
Um, they have a built-in, um, they communicate over raw serial.

22:11.660 --> 22:14.580
So basically you can plug them into anything and they will just work.

22:14.580 --> 22:15.900
They will send and receive data.

22:15.900 --> 22:21.980
And you'll be sending and receiving serial data, which is great because now you're not using super slow bandwidth, but you're using serial.

22:21.980 --> 22:27.680
So if you need data information out or something else that you're getting, it's slow, but it's manageable.

22:28.640 --> 22:32.060
Um, the cool thing about these radios is that they're very small.

22:32.060 --> 22:35.740
The bad thing about these radios is that no two pair are alike.

22:35.740 --> 22:40.720
If you're going to buy a lot of them, be prepared to buy, um, double.

22:40.900 --> 22:47.600
When I was doing the test on these, um, I would buy one, I would receive it, and I could not get them to communicate.

22:47.600 --> 22:49.720
I couldn't figure out why they were not communicating.

22:50.040 --> 22:53.600
And I would go through, I'd try to see why it wasn't working.

22:53.820 --> 22:58.920
They'd both turn on, they both said they were configuring and sending data, receiving data, nothing would come out.

22:59.180 --> 23:03.420
And it occurred to me finally, let me turn on my HackRF and just take a look.

23:03.420 --> 23:09.600
What it turned out to be was the crystals on these chips are not quite up to par.

23:09.900 --> 23:16.860
None two are alike, so what happens is you get offsets that are just enough that you will not be able to communicate over these devices.

23:17.020 --> 23:24.520
So, they work great in pairs because the same crystals are used, but you have to keep an eye on what crystals, they have markings on them.

23:24.520 --> 23:27.300
So these are very good, but be prepared to buy a lot of them.

23:27.820 --> 23:34.280
And on a similar note, the NRF24 modules are very good, but they also have the same crystal problem.

23:34.280 --> 23:35.640
No two crystals are alike.

23:35.640 --> 23:52.000
Luckily these are a little easier to remove the crystal from, but they also, if you buy them in pairs, which they normally come with, they'll work great, but if you try to get them working in a mesh mode, which is something they actually support, you will have a problem because none of them are genuine usually.

23:52.260 --> 23:59.940
They fake the markings fairly well, but if you look at them through either a microscope or something like that, you'll see trace differences.

23:59.940 --> 24:04.140
So you never necessarily get a genuine one, so they're using parts sometimes different.

24:04.240 --> 24:13.720
The really cheap ones are very obvious when you get a fake one because they'll be missing resistors or other components that are actually fairly important on a radio, but they don't have them.

24:13.860 --> 24:19.040
But if you get one of the fairly good ones, they may still be fake, but the crystals may not be up to par again.

24:19.040 --> 24:23.860
So these are very good, but be prepared to buy a couple of them until you get pairs that work.

24:24.920 --> 24:46.920
The one nice thing about the NRF modules is they also support both Linux and Arduino natively, well I guess Linux and Arduino support them natively, but not the other way around, but they're very good and if you can get enough pairs that work, they support a very good mesh protocol and they work for about 500 to 600 feet in my tests,

24:46.920 --> 24:50.200
but again the crystals were what really killed it.

24:50.600 --> 25:04.900
But if you're looking for something that just works and you don't have to pay licensing fees necessarily, the Hope RF modules, they support LoRa, which again, you're gonna have that licensing fee, but they also support just regular RF transmission over a couple of different bands,

25:04.900 --> 25:12.020
I'm blanking on which ones they are right now, but they're very well documented, they support both Linux and Arduino again, both support them.

25:12.480 --> 25:16.520
It's $10 a module , but these things are appearing everywhere in the security community.

25:16.580 --> 25:28.460
If you have any of the DC Darknet badges, they use these, they've used them for the last couple of years, so they're definitely showing up in the community.

25:28.460 --> 25:40.440
They're very good modules, they're very good quality and that's the difference between some of the other communication modules, is that these are actually very well built and you can use them pretty much anywhere and guaranteed that if you're gonna get a mesh,

25:40.440 --> 25:44.820
they're gonna work, if you're gonna communicate point to point, they're going to work.

25:45.680 --> 25:58.300
They're spy based, which isn't a big deal, if you're gonna use them on a regular computer, that makes it a little more complicated, but you can also get cheap modules to communicate over spy to a regular computer or using a Raspberry Pi or anything else,

25:58.300 --> 25:59.100
but that's about it.

25:59.100 --> 26:02.860
And they use about 50 milliamps, so they're fairly low powered.

26:03.440 --> 26:05.040
And then, let's go to simple.

26:05.040 --> 26:09.220
If you want something that's literally just a throwable device, you just want a radio.

26:09.220 --> 26:14.480
You don't want something that does any of the, you know, protocol or anything else, you just want something that transmits.

26:14.680 --> 26:17.720
And ASK radios are very good at that, they just transmit.

26:18.420 --> 26:24.120
They are, the more power you provide them, they can go up to about 12 volts, the more range you're gonna get on them.

26:24.540 --> 26:34.100
They, uh, are supported by virtual wire and radio head in Arduino, you can also just write to them using Linux, um, if you have any spare IO lines.

26:34.660 --> 26:39.640
They have a max range of about 200-250 feet, they're not spectacular, but they're cheap.

26:39.640 --> 26:42.440
You can buy a 10-pack of them for less than $5.

26:42.920 --> 26:44.420
And they do work.

26:44.820 --> 26:49.940
Unlike the other ones, they don't really have a crystal problem, but they're just very cheap and not very good.

26:49.960 --> 26:54.460
I have 3 different versions of, uh, just cheap ASK radios.

26:54.480 --> 26:57.520
The ones on the bottoms are the ones you're gonna see most common.

26:57.520 --> 27:02.200
The one on the top left is the LR43B, if you're curious about it.

27:02.200 --> 27:11.720
It is designed a little smaller, it's a very small package, but it's, it has a little bit better range, it's a little bit better quality, it doesn't have so much noise interference.

27:11.740 --> 27:18.580
And then the other side is the H34C, and that one also has good, uh, better noise quality than the bottom one.

27:18.580 --> 27:20.480
But, um, they're not very good.

27:20.480 --> 27:27.160
They, they work at about 433 megahertz, which is about the same frequency that you get when you get those cheap thermometers.

27:27.460 --> 27:30.200
So they're not very fancy, but they're not gonna be detected.

27:30.420 --> 27:36.560
Because people in their offices or anywhere have those devices already, so you can just transmit freely on those.

27:37.840 --> 27:39.280
And then there's ZigBee.

27:39.480 --> 27:43.940
ZigBee's pretty much showing up everywhere in IoT devices.

27:44.360 --> 27:47.440
It's, there's a couple of implementations based off of this.

27:47.440 --> 27:50.120
ZigBee's one of the implementations of 802.15.4.

27:50.200 --> 27:51.880
There's also 6LowPan.

27:51.900 --> 27:54.660
Uh, they're all very low power and very low range.

27:54.660 --> 27:57.180
Usually you have a hub and other communication methods.

27:57.180 --> 28:03.440
And the reason I'm putting on, this on here, even though it's such low, low range, is the fact that you can use these to relay.

28:03.440 --> 28:09.500
So if you got control of an IoT device and it had ZigBee, you can transmit out to another device and another device.

28:09.660 --> 28:19.800
And if you have control along that path where they're all meshed together, you can send data out even if you don't necessarily have control of the direct connection to the device that you're starting with.

28:19.800 --> 28:21.420
So that makes it very good for that.

28:21.420 --> 28:23.140
But again, they're very low range.

28:23.140 --> 28:26.320
There's um, there's Thread Protocol, which is made by Google.

28:26.320 --> 28:27.700
It is encrypted.

28:27.700 --> 28:32.760
I don't know of much that you, uh, you can use with it, um, that's open.

28:32.860 --> 28:36.620
But it is something that also exists on the same frequency range.

28:37.500 --> 28:40.120
And you may be thinking, why not just use satellites?

28:40.120 --> 28:41.040
Satellites are really good.

28:41.040 --> 28:42.940
You know, you always have connection to a satellite.

28:42.940 --> 28:44.400
It's all, they're up in the air.

28:44.580 --> 28:46.620
The problem is that they're expensive.

28:46.660 --> 28:48.640
Very, very, very expensive.

28:48.900 --> 28:52.500
For $28, you can get 10 kilobytes of data.

28:52.880 --> 28:54.880
So it's very good on the budget.

28:55.000 --> 28:57.700
Unfortunately for us, that's not very good.

28:57.700 --> 29:00.300
But the upside is that they are universally accessible.

29:01.540 --> 29:06.780
The, the other interesting about the, uh, satellite transmitters is they're fairly large.

29:06.780 --> 29:08.820
This is the smallest module I could find.

29:08.820 --> 29:12.300
In the corner is the, uh, is a normal size module.

29:12.300 --> 29:15.480
It's about, it's basically the size of a small laptop that you transmit.

29:15.480 --> 29:16.540
And those are small.

29:16.540 --> 29:23.280
The smallest ones I've found, they're, they use a specific one, um, uh, satellite, uh, chain.

29:23.380 --> 29:25.880
Uh, they're called rockbox, uh, rockblocks.

29:25.880 --> 29:29.480
They use the Iridium network and that's where you get that high cost.

29:29.480 --> 29:35.520
There's other ones that you can use, um, that are actually continuous uplink and downlink versus just sending data for a small fee.

29:35.520 --> 29:39.400
Um, those work, but they are not very affordable.

29:39.400 --> 29:42.800
It is, uh, $90 for 30 megabytes of data.

29:43.540 --> 29:49.740
So you can use it, but if you're using them, you're probably, you probably have quite a bit of money.

29:50.100 --> 29:52.180
So what's the next best thing to cellular?

29:52.180 --> 29:57.220
Well, I, I don't know what that guy's wearing, but it's cellular.

29:57.700 --> 30:01.320
So cellular is fairly good with this stuff.

30:01.740 --> 30:08.760
The only problem is again, you, you run into the problem where you're not in range of a cell tower or you're in a building where you don't have range.

30:08.760 --> 30:13.240
If you're at Defcon, you know, you, you've probably been noticing where the signal's going out.

30:13.240 --> 30:16.400
It's in many cases, not someone actually trying to hack you.

30:16.400 --> 30:19.780
What's happening is there's just so much communication going on here.

30:19.780 --> 30:23.920
You're, we're not getting any signal out and that's problematic.

30:24.080 --> 30:27.720
And that's one of the problems that you can run into with these devices.

30:28.720 --> 30:31.100
But there's a couple of protocols that exist.

30:31.100 --> 30:37.720
You can communicate on different, I'm going to say protocols now, but so you have 3G, 4G, 2G.

30:37.720 --> 30:39.900
Those are all the standard ones that most people have heard of.

30:39.900 --> 30:44.860
But what's coming out now is Cat 0, Cat 1, Cat M1 and NB-IoT.

30:44.860 --> 30:47.020
These are all over cellular networks.

30:47.060 --> 30:52.000
They're getting deployed worldwide and they're really, really useful.

30:52.660 --> 31:01.160
For example, Cat 0 and Cat 1, they have limited messaging support, but they have a dedicated basically serial downlink and uplink.

31:01.160 --> 31:04.040
So you can send data continuously using a cellular network.

31:04.060 --> 31:10.380
In the screenshot of the picture of the person holding it, that's a Cat 1 radio.

31:10.440 --> 31:11.940
So they're very small.

31:12.460 --> 31:15.020
And then NB-IoT, that's the bottom corner.

31:15.100 --> 31:23.080
Those are about 50 kilobits a second, so very small, but they're also, it has higher latency, but it's a lot bigger coverage.

31:23.080 --> 31:26.880
I don't know why NB-IoT is getting so much popularity, but it is.

31:26.880 --> 31:32.440
So if you can use it, it's fairly deployed all over the world now.

31:33.280 --> 31:38.400
And then if we go back to what most people use, that's 4G and eventually 5G.

31:38.560 --> 31:41.640
It's very flexible, but you're going to have to have a baseband.

31:41.640 --> 31:43.440
You're going to have to have all sorts of things.

31:43.440 --> 31:53.200
If you get lucky, you can actually use add commands on the modem, but that's going to be very complicated and not necessarily very useful because you're going to have to write a lot of driver support.

31:53.380 --> 31:55.400
Then you have 2G and 3G.

31:55.760 --> 32:04.900
They're really good because the protocol implementations of 2G and 3G actually support web requests directly over the modem.

32:04.900 --> 32:06.400
You don't have to implement anything else.

32:06.400 --> 32:09.400
You just use an Ackman to say, hey, get this page.

32:09.400 --> 32:13.100
If that page has request parameters in it, you're now sending data out.

32:13.180 --> 32:14.980
So it's a very good way of using it.

32:14.980 --> 32:23.580
Their end of life, they should be all, you know, removed by around 2022 if I hear correctly, but it just depends.

32:23.720 --> 32:27.680
So don't rely on it, but those are very useful now.

32:27.680 --> 32:29.260
You can get the modules for very cheap.

32:29.260 --> 32:32.400
They're about $30 and you can just deploy them and go.

32:32.400 --> 32:33.960
They're fairly low power.

32:35.700 --> 32:36.860
What else is there?

32:36.860 --> 32:38.160
Okay, so here's a breakdown .

32:38.160 --> 32:39.540
I'm looking for the monitor over there.

32:39.540 --> 32:46.120
Here's a breakdown of the different protocols that are supported on cellular and the different data rates.

32:46.340 --> 32:55.360
As you can see, CATM supports more data, uh, millibits per second versus kilobits, but you don't necessarily need that .

32:55.360 --> 32:58.240
And then this comes back to the half duplex and full duplex.

32:58.580 --> 33:04.660
You can, you can see where they come in, where you can send more data or less, but who provides it?

33:05.120 --> 33:06.680
Well, I'm only listing two.

33:06.680 --> 33:08.800
These are the only two companies that got back to me.

33:08.800 --> 33:24.700
Verizon, T-Mobile, and all the others also say they support these, uh, you know, NBIT, CAT1, and they will sell you dev kits, but it turns out they'll only sell them to you if you make thousands of units and you're a corporation that can, you can afford to do that.

33:24.980 --> 33:27.600
So it's, it's a little problematic.

33:27.600 --> 33:30.580
These two on the other hand, they replied to me very quickly.

33:30.680 --> 33:36.560
They were able to give me information on how to use the protocols, how to use the radios that were going over cellular.

33:36.560 --> 33:37.860
So that was very nice.

33:37.980 --> 33:41.920
Uh, for, for particle, it's a little expensive.

33:42.100 --> 33:45.880
Um, they give you a free card, but it's three megabytes included only.

33:46.340 --> 33:51.060
Uh, 21 megabytes is, um, a total of 40 cents.

33:51.140 --> 33:57.720
So if you wanted to use 200 megabytes a month, it's about a hundred dollars, or you can just buy the one gig plan, which is about 400.

33:57.940 --> 34:05.440
Uh, again, it gets, the prices are steep for, um , uh, the IOT communication protocols that are long range, but they do work.

34:06.960 --> 34:07.960
All right.

34:08.800 --> 34:10.560
So here's the dev kit.

34:10.860 --> 34:12.880
The dev kits are fairly cheap.

34:12.880 --> 34:28.060
You can get them for about a hundred bucks actually from AT&T, but they, uh, again, unless you're planning on using, you know, only a little bit of data, you have to be considerate of how much the, the actual plan costs versus implementing them.

34:28.500 --> 34:29.720
But what is the goal?

34:29.720 --> 34:32.140
Why, why, you know, do this talk right here?

34:32.140 --> 34:35.980
Well, the goal is to implement something that does not get detected.

34:36.140 --> 34:49.820
How good would it be if you could go into your pen test and roll in a coffee maker that has wireless, you know, 4G, 3G, or, you know, it's using LoRa, any of these communication protocols I've listed today, and you just roll it in, someone's like, oh,

34:49.820 --> 34:51.140
look, a new coffee maker.

34:51.140 --> 34:52.560
They won't suspect anything.

34:52.560 --> 34:59.440
And then you have, you know, either wireless or some other thing that it's plugged in, it's monitoring and sending the data out via the IOT communications.

34:59.600 --> 35:01.220
Nobody's going to suspect a thing.

35:01.220 --> 35:02.940
It's going to sit there for a while.

35:02.940 --> 35:07.700
Probably you will never get it back, but at least you have something now that's easily rolled in.

35:08.380 --> 35:19.520
And so the goal here, uh, again, is that we want something that works, that's small, not easily detected, send, you know, the data out very easily.

35:19.520 --> 35:25.540
We don't want to do a lot of implementation, but we want it to go remote and maybe send it multiple paths.

35:25.540 --> 35:27.740
If we can do mesh, it's also good.

35:28.460 --> 35:30.140
And that's about it.

35:30.140 --> 35:36.120
Um, I hope this was a good summary of the IOT communication protocols that exist today.

35:36.340 --> 35:37.880
There's quite a few of them.

35:37.880 --> 35:43.320
I know this has been mostly high level, um, for what was actually supported.

35:43.620 --> 35:54.500
There's more stuff online that I've worked on, um, that you can see, but this hopefully will just give you an idea of what technologies you can use now and where you can use them.

35:54.500 --> 35:59.400
Uh, it's up to you in the end, but again, hopefully this covers most of them that exist.

35:59.620 --> 36:04.820
And if you have any questions, uh, feel free to find me at the end, but thank you guys for being here today.

