So I'm Caleb. This is entitled, Insti on, Insti off, Insti open, maybe? We're going to get into it. Who am I? I'm a researcher, computer science background. I'm really new with all the signals stuff. So it kind of intimidates me a little bit, but it's interesting, and I'm getting better. Kind of a tech hobbyist. I like fiddling with things sometimes. More of a soccer enthusiast, actually, but that's OK. So prior work, net admin and project manager, currently doing network security, evaluating Insti on. So Ben is the other person who's supposed to be here. He had surgery recently to have his appendix removed. So that kind of stinks. PhD in computer science, wireless geek. A lot of Z-Wave stuff from him, DerbyCon, SmooCon, POC, GTFO. You can go see all those things. So if you want to see those things, go ahead and check I'm going to share the videos today. So if you want to see the data about the rest of this presentation, I'm going to put it up here on YouTube. and then I'm going to see how it's going to go down. And then I'm going to show you the relevant aspects, So for some of you who are not already here, I feel like we're going to need a little bit of time. And I'm going to give you a one-minute time. And then I'm going to cut some minutes and then we can wrap things up. So I'm going to take a minute and then we're If you want to use the clip-on mic, go ahead and take off your badge. There's a mute button. There we are. There you go. Alright. I guess we'll get going here then. YouTube videos. All that stuff. It's good stuff. So real quick overview of the presentation. Lay out some goals for what I was looking to do. Review what Incyon is. Look at what's been done before. How I made some of it better. Quick demo and questions. The main goal is to validate and prove any previous work. I was just, what's out there? What's been done before? How is it working or doesn't work? Whatever it is. Out of that came, I wanted to make it Wireshark 2. I'm not sure what it's capable of. Make sort of a network enumerator scanner type of tool. Even though I don't like goals, right? Thank you, Yogi, for that one. What is Incyon? Incyon. Home automation devices. Brand, really. They have lots of stuff. Some of their documentation goes really in-depth with what they can do. Not all their products. I don't think they really maxed out the product capabilities, but whatever. When you set up your network, it actually creates a mesh network. Both RF and power line. You can connect to anywhere. Anybody have the app on their watch? I assume all the phones, right? You can 3G it back to your home. See if your garage is open. See if your sprinklers are on. See whatever you want to see. It integrates with a lot of third parties. The Amazon Echo. This is on their website. Alexa, turn on the lights. The lights will come on. It's pretty cool. All right. Next. In about three clicks on their website, you can find their public protocol information. Go through all that. 915, Manchester, whatever. Find their package structure. What it looks like. See the standard and extended, whatever. Really fast, you can find that stuff. Well, that seemed all good to me. I was like, man, this seems pretty easy. I'm going to plug this into the SDR and start going. But number four. Well, yes, actually. About the time I started this, Peter Sibley's talk was put on YouTube and everything. It was great. Fantastic. Okay. So there's a tool. So he presented this, right? Anybody remember this? Anybody seen this YouTube? It's a great one. He was like mad at Insteon. Insteon lied to him personally about their documentation. Bullshit, he said. Not 915. Not really Manchester. All the deviation's wrong. It's great. Here's what he said. Just tune down just a little bit. Tokenize Manchester. It's not really just, you know, a 1, 0 is not really a 1. 0, 1 is not really 0. Whatever. FSK's inverted all this stuff. Okay? He was angry. Can I do that? Yeah. So the actual packet order is 915. Mix around. Peter found this out. The tokenized Manchester comes from the bit at the bottom. They kind of, each of those Xs, each of the bytes gets chopped up a little bit and a 1, 1 followed by some other stuff and then somehow it comes to be the byte. So interesting stuff. Great stuff. So after some pretty heavy frequency testing, this, we strapped up some stuff to a really frequency tester in it. I'm sorry, Peter, it's 915. That's all right. I got to give credit to him. His parser, most of this stuff is fantastic. Great stuff. But we were actually able to find that his code, I didn't check this morning, but as of like last week, his code had 91495. And so using the Yardsticks, which I'm using, we were able to tell that I was only getting like maybe 50% with the Yardsticks. And then fixing the frequency, we got to about 80% packet reception. So that's awesome. So fixing the frequency, that was kind of the first main fix. Okay. So here are our packet structure. Just kind of a, not really a correction, kind of an addendum to the packet structure. So you see on advertise, source, then destination, flags, et cetera, et cetera. Those are flags and source are switched, as it turns out, on most of the packets. I completely agree. I validated that. So there's another packet, another type of packet that I don't, Peter didn't address in his slides or his talk, but there's some devices you can set up, rooms or scenes in your devices, so that this is actually set up how my setup is. The sensor not only tells the hub that is open, but it also tells the light to turn on, right? So I can turn on the light from the sensor. That's how you get Alexa to turn on all the kitchen lights, right? You tell. These devices to work together. And that's done with a group broadcast command. And so the destination of the group address actually gets moved to the third step there. And so it's, again, kind of flipping the bytes around. Cool. So kind of an addendum, not really a correction, but an addendum, I'm going to say. So that was, so here we are. We've fixed frequency, corrected some packet structure details. So goal number one is done. How can we make it better? Well, Peter, Peter did, like I said, great, great stuff. He did a lot of great stuff as far as reversing it. There's all command line. And I, like, like I mentioned, I'm computer science. I, I like command line. It's good. But I want something that's kind of de facto gold standard. I want, I want this in Wireshark and I'm going to start making a network enumerator. I want to know what, it's good that I know the device IDs, right? I can just see those in the listen packet and the listener. But I want to know what those, what are those devices? What are they? So has anybody made a program to output to Wireshark or included that in any way? You did it. Cool. Anybody else? No? Sweet. So there's kind of two, two methods of doing it. I guess you can make some C code and redo your make files and rebuild Wireshark altogether. Or you can modify the init Lua and make a new Lua file and incorporate, incorporate the detector that way. That's the, that's the route I decided to go. It seemed pretty easy. It's a little simple protocol. It's not a huge detector file. So then you got to tell Wireshark that when you see this kind of packet, treat it like an instant packet. So here's, here's what you got to do. Go to the edit preferences, use your DLT table. And when you see the little green box with your protocol, you know that it's going to work. Okay. So that's just converting the, the data, this string of packets or packet string, whatever, into PCAP data format. My code is on GitHub. I'm not going to show you the code here, but it's on there. I'm on the GitHub that works fantastically. So I can write data to a file or a named pipe, which is how I'm going to get it into Wireshark later. The code at the bottom is kind of what my code is based on. So I want to give credit to there. Okay. So output Wireshark. Awesome. So I really want to know, okay. Like I said, what I can see these devices communicating when they communicate, they're kind of bursty. What, what are they, you know, This, I have a lamp up here, but it could be anything. It could be someone's thermostat. They want to open the door, turn the thermostat down, right? So yeah, I need those device IDs, but I can definitely enumerate your devices, OK? So to go about doing this, I needed some commands that would be helpful to do that, right? So not just on or off, but ping and ID. That sounds like a great start, don't you think? So ping is just what you'd expect. The device responds. ID request kind of starts off like ping. It responds with the same command. But then it also sends this standard broadcast set button press response, whatever that means, standard broadcast message, OK? And we talked about the broadcast message has some information about the source, actually. So the broadcast message contains a two byte device type and a firmware version byte. This is from their documentation. So that sounds like a great start. That's a great way to go about this. Device type, firmware version type, OK. So there it is. That was, I found this as of 2007, circa 2007. So this still works. These devices do it right now. So I can see that this is device type 3, subtype 33, firmware version right there. OK, that's cool. I don't know what device type 3 means. It's just a number to me. Well, not anymore. As of 2008. They had some categories of the devices. So I can know what my hub is, this guy right here. I can see what the light is. I can see what the thermostat, if I had that hooked up, see what the thermostat is. Climate control, good stuff. So that's what I do. I wait. I can't really inject anything onto this network until I have some IDs. Those are hard coded onto each device. Spoof. The ping and ID request to really get the relationships, the controller-responder relationships, and start generating a map by tracking and labeling these devices. So I have a couple more devices I didn't bring, but I have done this for my network. So great. So here's copyright stuff, credits. Obviously, Peter Shipley was huge in getting this started. And then their documentation is fantastic. So I'm going to cut over to a wireless demo real fast. This is totally going to work. So first thing, like I said, I have to create a named pipe, make FIFO, create a named pipe. I'm going to do that right now. Oh, it already exists. Hold on. I'm going to do that real fast anyways. All right. Wireshark. Wireshark-i live capture. Here comes Wireshark. And I'm going to start. I'm going to start this guy up. So this is the listener command. I have two yardsticks up here. So dash-i 0 is for the first one. Let me do that. That's a good call. Thank you very much. I'm going to make it a, yeah. Is that better? OK. Dash-l for live and dash-p live capture. So here we go. So we're listening. We're listening. So I'm going to create a scene. Here we are. We're listening. So I can see this is the map side of it over here. So I can see who the controllers are, who the responders are. I don't yet know what is what. That's the top part. I don't yet know what is what. We're going to start filling that in. So minimize that. Over to the scanner, the different interface 0 and 0 we're going to use a 1. Is that over there? No. So you can see that. All right. So like I said, we're going to spoof these commands between devices. And I'm going to start filling this in. Send, send, send. All right. Here we are. There's your hub. And there's your light. I can see who exactly responds to who and who controls who. Everything make sense? Pretty cool. So that's it. That's pretty much it. That's in about 13 minutes. That's what I did. Cool. Any questions? That's all I had. There's the close up there. Any questions at all? Yeah. So in terms of security, there's basically none existing. Whether it's any wireless device from the light bulbs to the door locks to anything at all. Correct. From what I can tell. Like they advertise encryption. But I don't have any devices that use it. Yeah. It's all in the payload. It's all in the payload and not in the devices itself. So not in the device IDs. Something I am going to start looking to is how fast can I spoof any device ID or if there's a hidden ID on all devices that they have responded to. I don't know. So that's kind of the next way forward. Any other questions? What about the other hubs and stuff? Are they all vulnerable to the same thing? Like sampling hub or? So the documentation does have a subtype. There's a main device type and subtype. Like I said, the documentation's old. So this thing says it's subtype 33. It's not listed on their 2008 documentation. So I didn't want to incorporate that into this tool. But those would each have, I assume, their own device subtype. But if they're a hub or a network bridge, is what they call them, then it would be that main type 3. But it's not changing the security app right now? It's not. You can still tell it's a hub. It converted or changes between two networks somehow. Another question over here? I saw the device listed things including on the keyboard and mouse and the computer. Yeah, some of those things I haven't actually seen products. Like they've made these categories, but I haven't seen any products for it. So things like car starters and stuff, I don't know. Maybe they had it back in the day, and they don't seem to have it anymore now. Yeah, that's open ID . Yeah, exactly, right? So you can turn your thermostat, like if I did this, and sat outside your house, and watched you open your door and turn your thermostat down, well, now I can go turn your thermostat up and run your heat up or run your AC on for all day, right? So it's not that hard. I have not tested a lot of distance. Obviously, you could get a directional antenna and set up shop quite a ways away. They advertise 100 meters for 915 megahertz. So I have not. I have not touched the power line directly. I think as long as it's going to jump from power line to RF, I'll get it anyways. I was about to say, even if you only are power line only, a lot of the dual-band devices will translate power line only devices into a wireless. Into the RF side. And vice versa, you can then inject wireless to power line. Onto the power line, right. So it's very accessible that way, but it's completely open. Any other questions? So I did have a sender. I didn't show off the sending specific, but yeah, I can turn on the light. As long as I know a controller to it, I can turn on that light or turn down your thermostat or whatever it would be. So a lot of houses have external power jacks. Right. So how do you have to get into your Wi-Fi? No. If you were to set up a power line version of this. Right. It's not even Wi-Fi. That's not Wi-Fi. That's its own proprietary thing. Right. Right. And then I went back. Is there anything sexual in what you're doing on the whole thing? So on the user's interface, like in the apps, no. This is all behind the scenes happening. It does not show up on the apps at all. Sorry? Do you use an ISY as a host? I think that's what it is. It's the Insteon brand hub that I got. But you could use the ISY. There's no difference. The controller is just like their own. OK. I only use the ISY when we were in the . Oh, OK. It keeps a log of all. So I'm not adding devices to the network, though. I'm just simply using the spoofed addresses. So it's nothing new to the network. But each of the devices will still report a change in state. So if you are controlling a device, that change in state is still seen by . Gotcha. So interesting stuff. Good questions. Thank you.