It is my fine pleasure to introduce a man that I have thoroughly enjoyed a long-standing friendship. We walk in the park together holding hands, smelling the flowers, occasionally sleeping four people in a one-person room at Hope. We've gotten to know each other quite well over the years as we both like embedded hardware and all kinds of terrible things like N900s that, despite being 100,000 years old, we just both can't seem to let go of. But today he's going to be talking about the new Internet of Things. See, right after the cloud and big data and buzzword bingo, who's got drinks? All right, so without further ado, cyber, cyber, cyber, cyber, cyber, cyber, cyber, big data, Hadoop, Ronin. The blurry mess of vision for everybody. Thank you. I appreciate the one slow clap. Well done. So it's really funny. I get it. It's my next slide. But so, yeah, Ronin, all this stuff is here. So he did not know about this slide, but this was going to be my, like, corporate version of the talk title, which is wirelessly synergizing the Internet of Things with next generation cloud-based software as a solution services. If you see that talk somewhere else, it's totally going to be this. But, you know, depending on what con you submit to. So that's my next round for this is that exact title. I figure any, like, analytics that are going to be done. It's going to be done to filter out, like, I have every single word in there. So a little bit about me. I am JP Dunning. I go by the handle Ronin. I am a security consultant, like many people here. I've done several projects over the years. The N900 was one of them that I've been playing around with a lot, just something I love to have that's not actually up here. I made the glitch, Katana, a few other Bluetooth tools, and try to dabble and help out. I've done a lot of projects as I can over the years, and randomly, a co-worker of mine sent me this photo out of the blue. So this is like sort of, that's my face from my website that was posted on this body. I have no context for this, but I thought it was awesome. So now it's going to be in, like, every slide deck that I have. So what is the Internet of Things buzzword? And I don't know how I kind of came to the concept of it's basically every Disney movie ever made. But it's kind of. It's kind of that, like, if you think about it for a second, and then be like, wait, all right, cars, smart cars, okay, all the toys are talking to each other, all my appliances are talking to each other, like, you have controllers, like, oh, my gosh, it is everything in your home is coming to life. Disney predicted this long ago, so they're going to hold all the patents for all of these things. This is our prior art right here. I mean, how old is the one in the middle? I mean, come on. So, yeah, we've got lots of things. So we're kind of about two years into this buzzword term, but it really, you know, goes back. A long time ago. It's the control of very specialized devices. It's not a new concept at all. You know, smart homes, we probably started hearing about that in, like, the 60s, 70s. I've got a slide with Hal, and, I mean, it really is sort of an older term that through wireless technology has sort of become much more inexpensive, much more accessible. The key concepts for the IoT is, so I'm going to say IoT just because it's easier than Internet of Things. So the IoT is being able to sort of dynamically change your environment, adding these new devices, removing them, making that as simple to the end user as possible. It's, you know, performing specific tasks. So a lot of these devices are one-task systems, like pouring a cup of coffee or lighting the room. They're not like our laptops or computers or even like a DVD player and TV now or like smart TVs. They're very multi-task systems. A lot of these do their one task. They do it well. And they do that to keep the price down for that specific item. We've got home automation, kind of the big push into the spaces now. Any, you know, home store you go into, a lot of the, you know, just search through Amazon for smart devices. The word smart comes up now. So IoT, any time you see smart and Internet of Things, they're basically synonymous in one way or the other. And I don't know how I feel about my devices being smart. I prefer them dumb because that keeps me in control. The smarter they get, the more control I end up losing over them. So you've got the home side. You've got enterprises. You've got smart buildings. You know, companies are starting to also try to integrate this into sort of like a production environment, something they can make money off of. So it's not just your, you know, home target markets. You know, the more we look around this room, even over the next several years, everything in your, basically everything in every space you're going to be is going to be networked in some way. And that's where the IoT comes in. Who are the players? So this is an actual. I searched for the term players and something else. This is an actual movie poster for a Bollywood film. And I absolutely love that. I have the don't hate. But this is the promotion I came up with. It's not a specific technology, right? The IoT is more of a concept. It's not really like, oh, you know, Microsoft came up with it or Apple came up with it and it's a patented thing. It's a concept of how to connect these devices. So everybody who's in technology has a little division now that's going to this. Everybody who's not in technology. Also, is is outsourcing or adding divisions to do this. So you want all of your devices to be able to be this remotely controlled. So players, people are sort of corporations that had no business in technology. I mean, like they shouldn't be in it, but no previous space in technology are sort of expanding to add to this. And as we know, in security, new is almost always bad. As far as security goes, their implementation, they just don't have the lineage and the understanding it takes to know what might be the security risks of this. So we're really seeing, you know, an explosion in these technologies. The things there are so many things, everything's I particularly like the the crockpots because obviously that needs to be on the the IOT, the doggy door opener. You know, they're just round after round every day and you can search for a new item to to add. And I like to think that how it's pretty much controlling all of it. That's my central operating system for the IOT. Is is. How nine thousand. What is the Internet? So the Internet is not the Internet, not the Internet, but we're used to as our common term. It's actually the intranet of things. But nobody knows what the word intranet means outside of people in this room. So that would be a horrible buzzword cloud portion. So Internet sounded better, sexier, more marketable. The Internet portion of it is really the method of communication between these specific task devices. To each other, excuse me, and to maybe a centralized management hub. So we're looking at wireless technologies, which is the focus of today, and we'll go through a list a little later on of everything. But you have Wi-Fi, Bluetooth, you know, we're very familiar with those over decades of decades, decades of use. Now, you've got Zigbee and Z-Wave, which is a big focus of ours, but you've really got anything else. A lot of things. A lot of them, some of them will use, you know, cell phone signals, so CDMA, 4G, for sort of a base station to get back to the Internet, actual Internet side of it. RFID, you know, badging into your home is going to be a thing. A lot of proprietary ones out there that are slowly fading out because they realize they have to interconnect with lots of other stuff. You've got the peripherals that go along with the Internet of things, right? You've got sometimes keyboard and mice, but most of the time it's just like a push button. And... Like a touch screen. They're very... The minimal size of them and the minimal functionality prohibits a lot of general interaction we're used to. Like, you know, some of us in this room program our own hardware, like an Arduino, for example, so you're used to flashing it that way. Or you've got your cell phone, your laptop, or your TV. You've got those several methods of interaction with them. With these, they don't have the capability of that, so you're looking at very minimal, like one button push is the entire interaction you physically have with them. And then you have the WICOs. We've got the cloud. We've got some other stuff we'll talk about here. Baseline IoT is command and control. It's not really getting a lot of data back. It's mostly just seeing what's your status update. Give me a little... You think of the thermostat, right? It's been... I'm going to stay away from brands as much as possible. So we'll just... The thermostat that everybody knows is a very common IoT one. What it really does is it's getting... There's a few sensor nodes that it's got out there. And it's telling you... You know, the temperature and maybe you could add humidity or a few household things, but it's not like big data flow. Like the temperature doesn't change significantly every microsecond. It, you know, maybe minute updates, every 10 minute updates. That's really all you need. So a lot of these devices that are going in there are really there just to notify what their current state is and maybe a few other pieces of data. You're looking at a local network. And, you know, again, I've talked about the house a lot, but also your car. And think about it. Your car has had this forever. I mean, how long have car computers existed? Decades. And what's the purpose of the computer in your car? It's sensors, right? It's got sensors everywhere throughout your car to tell you if something's wrong. So that's the same concept here. The luxury that a car had is that the power was very accessible. You would just wire it in. There's not... You don't need to make it modular. Where in the other installations, you might be popping sensors out left, right, and center. You could throw it in the chandelier and just say that's because that's where it should be. Well, how do we get power to it? Do we have to run, you know, lines since that becomes a significant hindrance? So, you know, homes, offices, again, we're going to get a lot of these in buildings in the very near future. And then basically there's a direct one like the thermostat where you can talk with your phone, connect directly to it. You've got the local one where there's like a house or room controller. And then you've got like a cloud-based or Internet-based controller system that everything locally goes, gets funneled out to something on the Internet. Your controls go through a web face. So there's like seven different steps to get through there which I'll talk about in a second. Why we want the IoT? It's convenience. It's really... That's pretty much it. It makes life a lot easier when your phone, your tablet, your computer can control everything in your home. You get constant status updates. You know, door lock is a very common one. You know, a lot of home alarm systems have this. It's just convenience of life and adding information that we didn't have regularly before. So the home ones is great convenience for us. It could also be, you know, for manufacturing plants having a lot of these sensors in there more... Being able to install them a lot easier in addition would make the, you know, the manufacturing process or whatever processes the corporations might need them for much easier. I promise we're going to get to the wireless stuff in a second. This is just a lot of setup time of why a lot of the things I'm going to be talking about today are important. So seeing the big IoT picture. I didn't put it all up here because there's so many variables of it. You've got your giant nest of devices. Just tons of them throughout your house or location. You've got a centralized controller for the most part. We'll talk about mesh networkings a little later. You've got something that's controlling it locally. You've got something that's controlling it remote. You've got the web application interface. You've got methods to update. Not just status updates but actually push other sorts of updates to the devices themselves. You've got the controller device. Here. You've got your mobile phone or whatever. And then you've got the human user. So we're looking at a security perspective of that as a whole. There's just so many areas for potential risk for, you know, any fail point along the way. You know, that's why a lot of these solutions, you know, if you went to some of the tracks last year, there's an entire track on IoT. And, you know, people were popping out these devices left and right for vulnerabilities. Yay. What do I got here? Oh. Bluetooth enabled vibrator. Oh. Why did it? You said that after I. That's lame. Appreciate that. Yeah. Internet of Things covers everything. I feel like it's going to be. I should have seen it. Exactly. Thank you. I don't know why that didn't end up in my slide deck. Boy. Next time around. Oh, my gosh. I hate you so much. This isn't like I'm hurling towards me. I got completely off track. So what are the practical fears? And the real practical fear is basically your home track. It's turning against you like in many. You know, we can break it down a few different ways, but it's kind of like you going home and waking up in the middle of night and your home is literally because everything is automated. It's turning on you. You've got the simple examples of door locks or, you know, disabling alarms. These are the sort of things that make it. You know, if you're talking to your friends and family don't understand security and say a lot of stuff like, oh, well, you know, you could trip this sensor and that might be significant. Blah, blah, blah, blah. They're like, whatever. But you're like, what if I can unlock your door? Oh, yeah, that's that's probably what if I can trip an alarm? What if I can send out a distress distress distress? I got that out distress call or as a simple one. Like, what if I can make toast while you're asleep? That sounds funny, but it's like, well, that'll burn down your house. I mean, if I have an automated toaster and I can turn it on and keep turning it on, it's going to overheat. So you have like turn the oven on, turn the oven off. There's a lot of things that we just don't conceptually. That's not part of our world yet. So we don't think about the potential consequences. We don't think about the potential dangers of them because we're so used to a stove. You're like you're you're the user. You turn it on. You turn it off. You you know what's going to happen. But in the world of automated devices connecting to one another, it could be you. It could be whoever has control of the device or of the central hub or whatever. They're the ones who who own that. So making it a fear factor, especially kind of bringing this digital world into a physical realm, might actually help our field in general security. I mean, you know, data breach. What does that mean to me? Oh, my credit card got stolen. I don't really care. So I jump back this slide. But once you say that you can break in digitally and, you know, unlock your car or unlock your home while your children are there, that kind of thing, all of a sudden that computes a lot more. That's much scarier than the data breaches you hear about every day left, right and center. Finally, on to the wireless side. So the difference, a big difference between, you know, some of these devices use Wi-Fi, use Bluetooth because they've been around forever. They're integrated into everything that's existed for the last 10 years. Great. I'm going to build something new. Let me integrate it with what existed before. And some of these devices do use that, but it's not the predominant ones because predominantly power issues. As I mentioned before, you know, wiring something in is not easy. I keep mentioning this room here, if you want to put 30 sensors in there, 30 new IoT devices, you know, running new power to them is crazy expensive. And the device might cost, you know, $2. So you're spending, you know, $1,000 to get power to this $2 device and it doesn't make sense. If you're building it from the ground up, maybe, but that's not what, you know, that's not the sales pitch. Hey, burn down your house and rebuild it IoT compatible. It was really not going to work for most places. So you have to make it modular. So power is the biggest deal of all with these things. They don't want to consume a lot of power. They're doing their task and they're needing to update at the same time. So that can be a lot of power use. Wi-Fi, you know, anybody who uses Wi-Fi with their phone for three hours knows, you know, your phone is dead. Bluetooth is better, but it's still a lot more power than they kind of want to use. These devices are last, they'll tell you between about five years. Some of them are designed, you put it where it's supposed to go. You cannot touch it for five years. It will work perfectly. It'll do the updates, which is a long time for one device. It's kind of like a watch battery, right? Your watch is designed to run for a long time because it draws very, very little power. If you had to replace a watch battery every three hours like you do a rechargeable phone, you would not want to use it. So that's a big key factor in the wireless that's been up and coming for these sort of devices. Another interesting thing with wireless embedded devices is, again, you have no method of interacting with it other than the push button. I mentioned that before. Well, why is that important? How do you enter the key? You know, say Wi-Fi. You want to enter your password, pass key, whatever. You've got a certificate. You can join that because you're manually entering that data. With these devices, there's no process to do that. You take it out of the box. You want it to be pushed out to wherever it's going to be within a few minutes. If you make it really complex, users aren't going to, you know, jump on board. So that, we run into some very interesting issues with that. This is kind of the hierarchy even by size of what the Internet of Things is right now. Predominantly, you've got ZigBee and Z-Wave. And they're the big competitors in the very low energy portion of these devices. You've got Bluetooth and Wi-Fi. Again, they were there. So, you know, some of them require a lot more power. I'll get to that. So, you know, for convenience sake, if you're going to launch it into the market, making it Bluetooth compatible in some way as an option was great. Because you can interact over your phone. Then you've got a lot of, you know, other wireless technologies in there. You know, you've got badging. NFC is so popular in phones now. You can kind of use that as a wireless tech. Infrared, still around. HD is basically a wireless HD protocol. So this would be a very high data flow. There's a lot of those, like the data stream for video. There's so many of them out there. But that would come into play. And again, we're still pretty fledgling. So there'll be more of these lower band ones in here. But, you know, right now, it's a little bit different. It's looking like these are the big boys, the top four. So general wireless attacks. We've gotten down to our focus on wirelessly attacking the Internet of Things. We've got, you know, as everyone I'm guessing in this room knows, the standard sort of wireless ones. We can discover devices. This is compared to necessarily a wired, not Internet, but if there was another, like, wired serial home setup. So if we're comparing what could have been with everything pre-wired and serial connections everywhere with the IoT version of that, I can walk in this room and discover it. How? You know, we've got SDRs. We've got specialized equipment. You can find devices. You can monitor the channels. It's a signal. You can get to it. You can inject data, replay data, decrypt data. Everything we've been doing with Wi-Fi for a long time and, you know, especially with SDRs, we're expanding into a lot of other fields. Not uncommon stuff. The one that is probably a little more effective here is denial of service attacks. Because, you know, what happens if your cell phone gets bumped off your Wi-Fi connection? Oh, darn. It reconnects. Oh, darn. I can't, you know, check Facebook or whatever. It's not generally non-mission critical. Some of these devices, however, can be mission critical. Updating if your door is locked, for example. I mean, I keep using that one. That's a very easy one to conceptualize. If it can't, if you're not getting the signal that the door unlocks, and it did, then, you know, you could have an ajar door and thinking it's locked because there was no status update. That said, hey, I've unlocked. Or, you know, you go into more secured areas. If it's implemented in a bank or something like that, you know, you've got a lot higher security presence. So the fact that the message isn't getting through can be a really, really big deal to these embedded devices. Because the only purpose they have is to send that small little message of a status update. So we're going to walk through the top four I mentioned. Again, this room is very familiar with that. But we've got Wi-Fi. The big dog. It is used in here. I'm going to talk through some of the standards and the encryption methods and just general understanding of all four of these. Okay. So Wi-Fi, A, B, G, N, A, C. You know, again, they're there. We've got our ranges. We've got between 11 megabits and 3 gig. I don't know if anybody has looked at the A, C standard. But, like, technically, it can, in a very perfect world, push through 3 gig. Which is actually crazy. I mean, this would be with no interference. But I haven't seen any studies. I'm just imagining the amount of power that would take off a device. Like, if you're looking at the channel that you have. Like, this is the entire 5.8 channel. I think it's 2.4. But I know it's the 5.8 one. So you're saturating all of that. So, you know, the normal channel is very slim. This is all of them together. So even your phone rocking this much data would probably just die almost instantly. We've got our, you know, unencrypted version with WPA. I'm not going to go into a lot of that. Something else I wanted to do with this talk is sort of show people and talk to people about the equipment that you can use. Again, Wi-Fi is one that's a lot of data out there on what tools to use with Wi-Fi. You know, you just look over to the left here. You can see all the cards. A lot of people have moved to this one over here because it's the cheapest. That's pretty much. I mean, it's good. But it's because it's the cheapest. You know. I'm very interested in a lot of them. I didn't list them specifically. There's somebody out there. Talk to some of the guys that are running the booth. Vendors downstairs. Easy stuff to pick up. It's become much, much cheaper. If somebody bought one of these Orinoco gold cards years ago, they were like $100. How much? Like $150? Yeah, it was like $180 for anybody who remembers PCMCA slots. Woo! No. No, it was it. That's all you could do was monitor, which was cool. I mean, now we're like whatever. But then it was super cool. They were crazy expensive. Some of the other TP-Link one, the Roswell one. There's a lot of lists out there put out by people that are in this very room. So why use Wi-Fi? Again, as I mentioned, there's a lot of power issues with that. One of the big reasons with Wi-Fi is because say you have a centralized control. You don't have to go out to the cloud. Your phone connects into a hub over Wi-Fi because that's what it has built into it. And then that hub, the controller device, then spouts out the controls to whatever devices are lingering in the area. So in that way, we have a few select criteria. Or the controller is talking to another controller. You can have multiple nests of those. And they want to go over a Wi-Fi signal because you get a lot more data throughput. They're talking back out to the internet. So that's one of the reasons why it exists. We've also got certain types of devices. Like CCTV cameras. That you can't push through enough data on any other technologies that are common. Video feed is a lot of data. You can compress it to a certain extent. But it just doesn't do well over Bluetooth. You're going to have to degrade it quite a bit. So certain devices that need high data throughput will still integrate with internet of things. You've got legacy devices that have been around for a long time. That were standalone. That now, since there's no real rules. You can try to integrate into the internet. Maybe this centralized control system. Different product lines. Whatever. Trying to build it. All the developers now. All these companies are trying to make theirs the controller. And then have other people opt in. Being the devices portion. So you've got some that have been out there forever. And maybe you have a Wi-Fi remote control. Well, why not integrate that into what we have here. So making it as an option is kind of a key. Wi-Fi is good, right? We fixed everything in Wi-Fi. There's no more security risks. Even though it's been around forever. We've got three. Three big ones. We've got sniffing. As I mentioned before. An issue with all wireless protocols. Not easily avoided. If you're unencrypted, you get sniffed. There's certain protocol levels. The lowest layer is unencrypted. So you can sort of tell things like MAC address. And so you can identify devices. Still with Wi-Fi. You can punt devices off. Still find the standard. You can kick a Wi-Fi device off there. Or network. Or from the AP, kick a device off. We've got reverse. We've got WPA. Sorry. WSP. PS. WPS. Where it's possible to brute force the entire key space for most home routers within like a 24 hour span. You can probably do it much faster depending on your system. But most home routers. And this isn't like breaking news. This is several years ago. But most home routers are still susceptible. Even if you disable. There's like a little check box in the configuration. You say, nah, I don't want to opt for that. They just totally ignore it. There's no like. There's nothing. So you have to reflash the firmware. This is the only way to disable this. So sometimes there's like a switch. But most of the time it's like there's no way. So with Wi-Fi, we still have issues. And so this is also being integrated into these controllers in the same way it was integrated into your home systems. Because they want to make it user friendly. So again, not talking about any specific brands. But these issues of like, you know, Reaver brute forcing the key space still exists in the controllers for these home sys setups. So if you can potentially, you know, brute force your way in there. Then you've got. If it's the controller controller for all the devices, then you've gotten directly into that. Maybe it had a web interface or something that you're able to now control the home network because you came in, you know, over the Wi-Fi option. So that's Wi-Fi. Bluetooth. Again, very simple. We got in a lot of devices. Low energy. I mentioned Bluetooth not being great for IoT. But low energy is a lot better. By the actual name, low energy. That was a pretty direct made sense. When they saw this coming, they saw these IoT devices coming out there. And they're like, okay, let's upgrade our standards so we don't have to require so much data. It's a bit higher than the rest of them. But it does save quite a bit of data. There have been several talks in this. Well, not in this very room since we moved. But in the wireless village over the years about a lot of Bluetooth attacks. This one being one I think that came up last year at the wireless village that I found really interesting on the low energy. Some tools to play with for Bluetooth. That's the one I still rock. The Cine UD100 because it has the SMA connector. You've got your Ubertooth. Are there any other crowd source like good Bluetooth dongle? Are we like still? The problem with this one is the standard is like 10 years old. But it's the only one with the little adapter on the end. And it's got a lot of power. I don't know what the best, if anybody knows stuff that's really good for 4.0. If we're just rocking generic. I'm looking over in that area. And everybody's ignoring me. Yeah. Oh, hi. Yeah, I pointed over there. And you're like, ah, I'm on call. Okay. So that was a fail. That question in the audience came right back at me. But a lot of them do work for general interaction. Some of them were better for like reflashing firmware. Or you can spoof the MAC address with Bluetooth. Something people might not know. But only with certain cards. So just much like the Wi-Fi cards, we have those special ones that tend to get ignored by the masses that are awesome for our playing purposes. So what's fun to play with Bluetooth? Does anybody know who that is? That is Harold the Bluetooth, King of Denmark, circa 1500s. And yes, that's what Bluetooth was named after. So I actually have this action figure. It was put out by the guys that did Spawn, the MacFarlane one. So it's really cool looking. But I have no idea why. But they made an action figure of this 500-year-old Danish king. And I don't know the exact story of why Bluetooth was named after him. That was like somebody lost a bet or somebody was a really big history buff. But that's actually Bluetooth, even though not blue. Apparently, it was something with blueberries where he got that nickname. But he killed a lot of people. He was a very powerful dude. So that's why he's up there. Typical Bluetooth attacks in this space. Unauthenticated services. So unlike Wi-Fi, Wi-Fi basically says, I'm going to encrypt everything and get you from point A to point B is really the entire purpose. Bluetooth has, they have their encryption of the whole tunnel. Then they have a service level. So think of it in comparison to like a VPN encrypts everything or should versus like HTTPS where all the other services don't matter, but that one service is encrypted. Bluetooth has that concept of they have a defined space of services. And in configuration, again, this is all configurable through the standards or however they implement on the device. You can do an entire authentication where you have to authenticate to do anything or a service level to authenticate and or encrypt. So a lot of these devices have a lot of devices haven't been tested at all for Bluetooth security, which is a shame. But some of them have like I've seen development ports, which the actual name of it was like, like dev port number blah through scanning these devices that are unauthenticated connections. Or they'll be like a file transfer service that's unauthenticated but some other service that is. So with Bluetooth, it's not like WPA, WEP, and nothing. It's actually service level configuration that can potentially have these major risks. And this is the same with these devices in the IOT. They're all configurable the same way where they might use three different kinds of a file transfer service, you know, a messaging service, and something else that are all like all of a sudden I got into the control one and now I can, you know, mess with the individual devices or the control itself. They have a non-authenticated version. We're so used to having the PIN, right? Back in the olden days, you had the PIN, which was, was what? Four zeros. Four zeros would work against everything. Your headsets, when everything came out. Then newer standards came into being and there was more of an exchange process. They were meant to be more secure. There was no, no authentication option. But they added in a new option that was called just works instead of no authentication. And that's what it does. It, they do the same thing. They just automatically pop, okay, everything's good. They're communicating with one another. They've authenticated. There was no key, there was no key. There was nothing like that. They just, you know, make friends very easily. So that's, that's a weird addition to a standard to basically have two versions of things that are completely, you know, insecure. So those are, there's some general ones against Bluetooth that'll, you know, work across the board. Now we're getting to the meat of it. So I pushed through those because they are predominant. Hopefully, we'll hear more about attacks over these surfaces in the near future against IoT devices. But here's the big boys. This is the fight, fight to the death. We've got VHS versus Betamax. We've got Blu-ray versus HD. And we've got, you know, Jack Bauer versus Chuck Norris. This can go either way right now. The, we've got, you know, Zigbee and Z-Wave are, you know, we've got, you know, we've got, you know, there are kind of neck and neck back and forth. One, one company, one big name company, all of their products are going to be Zigbee. And then another company is like, no, we long ago implemented Z-Wave. So they're kind of, most of the controller devices are enabling with both right now. Just waiting to see which one bubbles up to the top. So everybody who bought all those HD DVDs and all the Betamax years ago, you're going to be on one side or the other with your home at some point in this, in the very near future. Because, you know, these technologies, one always bubbles up to the top. Yeah. These are form, these are designed originally for mesh networks. So you've got a lot of the same devices. And then you might, you know, you're trying to avoid any, any outliers joining your network. The trick with mesh networks is how do you authenticate? How do you have them join in any sort of secure way whatsoever? When you don't just press the button and oh, it's, it's on. Great. Well, how did it know where to go? Like how is there any trust relationship? How do you add one, remove one from trust? These are the concepts that are Wi-Fi and Bluetooth and our normal, our normal. You know, interactions with wireless just, just don't have. Zigbee. Again, this is an IEEE standard. A lot of talks in this room have been focused on the 802.15.4, which is the lower standard, lower standard, which is the underlying protocol. It's been around for a very long time. It just hasn't been seen in a lot of places. It's been seen specifically in certain things for a long time, like water sensors, some other, you know, industrial updates. That stuff is there. It's been around for a long time. We haven't even talked about that for a long time. We don't even talk about it. And it's been around for a long time. We're trying to, we've been working on that sort of thing and, you know, trying to And now, you know, as a result, like as you said, this stuff has a lot of. are the ones that control your fate with all this stuff. So it's good in a way that it's not just one company for the most part, but it's also bad because they can make horrible decisions or be very slow to react. Like how long was WEP an issue before new standards got pushed out? Because they all had to agree on that standard. So it's a good thing that they have a lot of people looking at it, but it's also sucky because it can take a lot of time for changes to be made. So if you ever work with ZigBee, you also might know that there's ZigBee and ZigBee Pro. This is a linear progression in the standards. There was a lot of things added in ZigBee Pro, especially the encryption. So regular ZigBee from years ago, unless it says Pro because it's actually like different name branded, if it doesn't say Pro on there, then it generally doesn't have encryption options at all for the traffic. So the original ones that came out, they wanted to make it as low power drain as possible. And what do we know about encryption? It's a lot of power. It takes a lot of power to encrypt stuff, especially when you're working with ZigBee. So it's a lot of power to encrypt stuff, especially when you're working with these embedded devices. So then they're like, okay, we'll add encryption later. It operates at the same frequency as Wi-Fi. We've got 2.4 gigahertz here, and they have different licenses throughout the world. So it's not, a lot of the chips will allow for all of them. It can be reprogrammed for all of them. But if you're going to be monitoring, it depends on what area of the world you're going to be in. And notice the three gigabits for Wi-Fi versus 250 kilobits per second for this technology. So that's significantly less. Power and data to be sent through, but that's cool, because we don't need that. The range, very limited range. Again, like the size of this room is about right for this technology. The equipment to play around with, the Killer Bee set, got some developers in here for that. That's been one of the ongoing projects for a while. Most of these focus on the 802.15.4 standard. Some of them have been working up towards the 802.15.4 standard. Some of them have been working up towards the 802.15.4 standard. Some of them have been working up towards the actual Zigbee interaction protocol level stuff. So these are good projects to keep monitoring on for the boards and the hardware. A lot of the commercial hardware you can buy just doesn't really work for the lower level protocols. Some of them, like the one I have up here, the Atmel and a few other products, do work well for the higher level, the Zigbee range. Killer Bee Suite has all the tools you'll want to play around with. They work really well. You've got a couple of these hardware options that'll actually work with this. Sniffing, replay, all the stuff you're used to with your fun with Wi-Fi works pretty well with Zigbee. You've got replay, you've got sniffing keys, and we'll get into that in just a second. That's the big thing that I found with Zigbee right now is, you know, they have several rounds of keys, which sounds great. Like this key, and then you have to get that key, and then you have to get that and another key. Wow, that must be really secure. There's so many keys going on. There's so many rounds. That would be great. In theory, except for several opt-out options. The master key is the key that the controller has. That's the one that, you know, this box, it's controlling the network. However it's controlling it, it's the, you know, the master. New devices get added in all the time. They use the link key for initial authentication. That's the first time round. And then after that, they have a shared network key that gets generated on the fly. That's the key for all the nodes. In that network. They all have a shared one, like you do with Wi-Fi. You're running it in its standard home version mode. You have the shared key with everybody. You're all authenticating the same way, as opposed to like a certificate-based authentication where you can have different ones, or like radius, where individual users are running in. So this one, shared across the board, is the same. The master key ships out with the device. It doesn't necessarily have to be shared, so it's locked in there. It's unique. The other ones will have to be shared. So we'll see. So we're going to have some fun with standards here, for people that read the standards. I've read through some of this one, I read or actually printed out the Bluetooth 4.0 standard, which is about 25,000 pages long. 2,100. 2,100 sounds about better. It was about this big. I don't know. I was doing research, and I decided it was a good idea to basically kill an entire tree and print it out. And I highlighted like 15 pages out of all of that. It was a lot of repeat. So that was not an easy thing to do, but it was the best idea. So this is how stuff gets missed in standards over years and years and years of review, because some of these are really, really boring, and they're just so long and redundant. The only people that read them are the developers who are like contractually obliged to read these painful documents. But sometimes you can find some interesting things in them, like, for example, the common link key. There's a special exception in Zigbee for home automation devices. And the, well, exception, there's a special standard. And the standard says, you know what? We've got a lot of different brands we're working with here. We want to make sure that the different brands don't have to, like, talk to each other every single time they want to pop out a new product, because we want this one to work with this one and this one, and we want to become vendor neutral as far as who's going to be our controller. Let's just all use the same key. Yeah. This is in the standard as, like, you know, there's more documents in there, like, this might be bad. You might not want to do this, but it's there. So this key is documented, and I didn't do a good job of keeping which page and what, but you can kind of see it and then look it up by date, number, and reference. This is the suggested key for all Zigbee home automation devices, which is anything that's designed to go in your home. And my guess is most likely everybody else is going to use it, too, because it was convenient for you as, you know, you as, in general, as the user who doesn't want to spend time setting stuff up. Yeah. That key is actually now mandatory. Mandatory for all devices? Or as an option? All devices except smart energy are required to have a new system. Okay. So you're saying that this is now a required key as far as this 3.0 spec, and it kind of was going that way. I would imagine that a lot of them are avoiding this standard. Some of them. So for, it's the easy way out, right? It's just to say, okay, you know, some people followed it, some people didn't. We'll make it mandatory. You know, maybe high security systems don't, but I didn't know that for the new spec. That's, that's... Good information. Thank you. So, yeah, even when it was, like, you know, suggested, it was implemented everywhere. Now it's, like, mandated in the spec. So that's the key for all ZigBee devices from now until the end of time. So this allows, what this does is allows the initial connection. So I can do my initial authentication process, and there's nothing else to, like, give you as a, as a, as a device. Like, I'm a new node. It's the technical term. Okay. And I want to join your network. I use a key, and unless you have some secondary round which isn't in the standard, then that's it. I'm on your network. I'm a device. You don't know me from anything else. You just know that I have the correct key to join, and if every device has the same key across the board, then any, you know, you're seeing where this is going, that any device can create an initial connection to the central hub. So if, you know, as, as, if you're adding, like, a new sensor in, okay, whatever. But if you're an attacker coming in, pretending to be a sensor, emulating a sensor... Or a device, depending on what the, um, information, the control is, uh, then you've got this key. And that's, that's not all. Um, the, the, it's better. Additionally in the standard, uh, so the master key is built into the device normally, but it doesn't have to be static. The idea is to have a different one for every device. See, standards are fun. Boring until you get to the meat, and you're like, you read this through five different times. Like, does it really suggest that? Well, um, uh, there's a lot of algorithms in there to, uh, update the key. The problem with updating the key is that when you do that you've basically negated any other keys. So there's not, you have to be able to push it in some way, and it, er, from my reading of the standard, it's kind of left to an out-of-band option. They say you should do this in some way, but it doesn't really fall in our scope to add new keys. So there's an option in there to push new keys in basically an unencrypted stream. So encryption does exist, as I mentioned before. So when you're setting this up, you can create, you know, after the initial setup process, it can be an encrypted channel. And the device, the controller is talking to all the little nodes out there with encryption. That's great. But if, say, if two controllers want to all of a sudden mesh together, which is very common and can be done with this technology, you've got multiple ones because one's over here, one's over there. It's got a maximum of X number of nodes it can handle. This one has an X number. So you've got them coordinating amongst each other. Well, you've got a new master key to get set up, and you have to share it across. So if you're doing it over ZigBee, it just says, you can just send it and transmit it in clear text. So anytime it's changed or a new node, you know, we've got the technology to monitor these channels. They're unencrypted. So bam, we've got the master key. Then not only can we be the node, which we were originally, we can now pretend to be the master device with a valid key to trick new nodes into connecting to us or potentially decrypting them. So we can get the next round, which is the network key, which guess what? Set in clear text. Yep, you got it. This is a capture. I mentioned before the killer B suite. So A, it lets you capture traffic, and B, it also lets you pull out awesome bits of information, such as the network key. This is transmitted, again, only at the initial setup phase. 10? Okay, cool. Power through some of these pretty quick. Way too long in the first ones. In the initial setup phase, so this is only done one time typically, but it's sent in clear text because the encryption hasn't been set up yet the way they negotiate it. So in the end, we've got all three keys. This is another option, which just says whatever will connect. So not even bother with keys at all, period. This is the dummy option. So this will just, devices will connect. They'll never encrypt. There's no, knowing the node that they're controlling, it's all done outside. It's outside of the authentication process. So it's really easy to have a device that can potentially infiltrate these networks or pretend to be the controller for these networks in ZigBee. And there's a lot of other attack space out there, but that's the one I want to cover here. Z-Wave. Z-Wave is a bit different, mostly in that it's proprietary. Unlike the other one, which is an IEEE standard, resides on it. It's an open standard. This one is a closed standard. So the information you're pulling, it's through use or what's publicized online or stuff that gets posted on the forums, leaked out, whatever. It was amended about the same time for the same purpose. They have the Z-Wave alliance, but it's predominantly owned by this company, ZNC. As I mentioned before, it's proprietary. So they basically bought the band and said, we're going to buy a band. It's great for higher performance because we've got a different band than everybody else and we can make it work. And it varies depending on where you are in the world, exactly what band that is. It's about the same. It looks like it's half the amount of data. Oh, no. But for what it's being used for, it's about right. Same kind of encryption theory. You've got about the same range. So that's why they're very comparable. Some interesting tools to play with. This one's really great. So there is an open Z-Wave stack for Linux. I don't know how that meshes out. This Aeon Z-Stick is probably the coolest thing to play around with. It has flashable firmware, which is great for us. It has commercial-grade firmware testing. I haven't been able to play around with it. Because you have to buy into stuff. But being reflashable, it actually acts as a hub just by pressing the little button on top. It has its own power source in it. So it can act as its own hub. So in theory, in the future, I think this is the stick that people should, if they're going to do research in this area, play around with this. It's like 20, 30 bucks, something like that. It's not that expensive. It has reflashable firmware. It's got everything you need for all the bands. You can reflash the firmware for the different areas. So I have done that to make sure that it works. And it does. This is another controller. There's some hardware. Two interesting things with Z-Wave is they don't have the concept, really, of a master device. They don't know who to look for. There's no, like, I want to connect to that access point in Wi-Fi. What they do is they go, hey, I'm here. I'm here. I'm here. I'm here. I'm here. And somebody goes, yeah, I'll take you. Like, great. And that's it. There's no, like, I want to look for this device or I want to connect. So they just, whoever responds, is the first to say, yeah, you can come over here and join my network. That's who they join to. Permanently until you change them and dump them back off or modify it or realize, wait, why is this device not showing up on my home? Oh, wait, it might have gone somewhere else. And there's, you know, the reset, basically reconnect process. So there's no keys or anything like that. They just kind of connect to one another. So the idea of knowing who to connect to is interesting. And in the same way, they don't know exactly who, who controls them. So any disassociation message sent, like, you know, in Wi-Fi, we have to fake it, right? We have to say, oh, I'm from here and I'm going there and you should disconnect because I'm pretending to be the client. I'm pretending to be the server. So I'll craft a packet and I'll send it and I'm basically sending out this bit stream of faked information. This doesn't really have that concept. Z-Wave just says, anybody who says I should disconnect, they're probably right. So I'll do that. The caveats for those is that in general, they're supposed to be in a specific state and the state is like a connection state or a state that it periodically goes into for disassociation. So, you know, following standards and following protocols, this is where we get to the purest. If it does everything correct, it should be good, but nobody does everything correct. So that's why these sort of attacks work really well. There was an interesting Z-Wave talk a few years ago. If anybody knows the guys who did this talk, I'd be interested to, to learn more about it. I tried to get in touch with them a while back and couldn't and this one was to remaster a device so it was to kick it off and have it immediately associate to you as the master. So I'll probably, hopefully if somebody raises their hand at some point, I'd like to know more about it, but it was two separate controller, a transmitter and a receiver that were used and the talk showed that basically you can pop off any device and make them connect to you through the controller. So that way, you're kicking off devices and then running into the control. Just one slide left, which applies to all of these devices. How firm is your, is your wear? The updates to these, we have software updates, right? They're giving us information, we're giving us information. Back to the nodes, we say we need you to change a little bit. You can do, you know, configuration updates, but you're also pushing firmware to them because if you had to push new firmware and by having them, you know, oh, let me take, let me find the sensor, let me plug it in my laptop, let me push new firmware, that would never happen. Nobody's going to ever actually do that. So the firmware and software modifications to EEPROM, to firmware, to other settings is all done over these, as we have just discussed, potentially insecure settings. And because you have these weird trust relationships with their master device, you might not even need to break into the network to push this firmware out. Now, I'm sorry to say I haven't, like, had the time to be the person. This is the concept. I know in ways that it works from the hub itself, to push through. But as far as injecting it into these networks, everything we have here shows it's possible. If there's somebody who's seen research that has done this before, specifically over just the wireless portion, I'd be very interested. But I believe it's completely doable. It's just like injecting packets into a Wi-Fi stream. I mean, we have it there. But the firmware, you know, you can download the firmware, modify it, push it up, all of a sudden, you flash these devices in different ways. That is all time. I think I hit it pretty much dead on the head. This is a little bit of my information. I'll be around EFKON, and I really appreciate you guys coming in to the talk. Thanks. Thanks very much. Thank you very much. Thank you.