Good morning, DEF CON. We are going to be hacking some baby monitors and Wi-Fi cameras today. So, a little bit about me. My name is Mark Mager. I'm senior manager of security research at Elastic. My background is primarily in Windows malware research and reverse engineering. So, what do we need to know about Wi-Fi cameras and baby monitors today? Basically, we're going to assume they're the exact same thing because they pretty much have the same feature set. They're literally marketed and sold as equivalent devices. So, what we're talking about is the $10 cameras you can find on Amazon that require internet connectivity to that specific vendor's cloud platform. And there's very basic operations, pan, tilt, zoom, things along those lines, motion detection, whatever. But yeah, that's what we're talking about when we say Wi-Fi cameras for today. So, why Wi-Fi cameras? Well, there's literally almost 125 million households across the world that have these cameras installed within their house. So, these things are everywhere. And they're obviously going anywhere and they're super cheap. So, you're going to find them everywhere. The attacks that are typically associated with these cameras, what you're probably going to hear about usually is people spying on babies and families, terrorizing them, that sort of thing. A bit upsetting there. And even things like Russians performing reconnaissance on targets within Ukraine. So, when we set out to evaluate the attack surface for Wi-Fi cameras, we wanted to break things down into a few different common attack vectors that broke down primarily into leak credentials and cloud vulnerabilities. Those seem to be the most common attack vectors, the most frequently seen ones in more of the attacks that we kind of see across the board. But yeah, so, kind of focusing on those two, that's certainly what we wanted to kind of dig into was any vulnerabilities specific to the cloud platforms, the applications that control the cameras, and the camera hardware itself. Hello, DEF CON. I'm Eric Forte and I'm doing the presentation with Mark. And I'm a security research engineer at Elastic. I'm on the Threat Research and Detection Engineering team, otherwise known as TRADE. And my background is in Linux software development, IoT systems, UAVs, civil space sector, and then also doing some threat research. And so when we're talking about these cameras, for the purposes of this talk, we looked at a number of different cameras, but we're going to primarily focus on the WandsView Q5 and the WandsView Q6. And as far as why we picked these cameras, it was sort of clear to see on the Amazon reviews that they might have something for us to look at, some vulnerabilities that other people had just come across because they were readily hacked enough that it took notice. So these cameras are made by WandsView, but there are other vendors that also produce cameras, such as Sonado and some others as well, which we'll touch on a little bit more in a little bit. But they're primarily under the AJ Cloud management infrastructure. And so this is going to be the cloud services that provide you with the apps, with the way of connecting to it. So the WandsView versus Sonado versus others may have their own little differences in the apps themselves. But primarily, this cloud interface is with AJ Cloud, and we'll get into a lot more of that in a minute. So when we were first with these cameras, we kind of looked at a few different approaches for how we were going to try and see if we could get some of those similar Amazon review results. So first, we were looking at remote access. So this is going to be accessing the camera through whatever companion app that ships with the camera. We also were going to look at some local attacks. So going to be some active and passive networking recon, in addition to seeing what else other services and things were running there. Also looking at some device physical manipulation, which obviously these are Wi-Fi cameras. They're not necessarily like closed circuit TV cameras. So we're expecting that there's going to be some physical attacks, which there are. We'll get to that. But this is still, again, as an attack vector, can enable some other aspects. Then finally, looking at the hardware itself. So looking at the chip and seeing what we can use, what we can either get the firmware off, what we can do to kind of, again, extend that vulnerability process, look for serial communications and things like that. Which, spoiler alert, we found some over UART. So for our lab setup, we have a number of different things that we wanted to look at, right? So we've got different apps. So we want to have a very controlled environment, because we know, say, one, they're easy to hack. So we don't want to be hacked ourselves. But on top of that, we know as these are largely, say, Chinese make cameras, that they may also want to be watching what we're doing. So we wanted to have a completely different setup. And so we have a mobile hotspot. I like the T-Mobile T9s. They're cheap. You can get them for about 20 bucks, and they do the job great. We have the camera, of course, itself. Then we needed, say, Windows and Linux operating systems. You don't actually need Linux, except I would argue that you do. But practically speaking, you don't need Linux to be able to run any of these things. But we used that. But we did need Windows to also look at the companion Windows app, in addition to the iOS and Android apps, which we had phones and virtual machines set up for as well. From a software side, we use a number of different tools, including, say, Wireshark, running Android Studio to try and see what we could find out from the app, various other sort of decompiling mechanisms, and also using the Elastic Stack to look at the network communication logs and how we can parse some of the different protocols that we saw. And we will, again, we'll talk to that more in a some peer-to-peer traffic there. From a hardware standpoint, since we wanted to do the full gamut of going from complete hardware takedown as well as looking at all the software, we had some hardware teardown tools. I like what iFixit has, but of course you can take your pick. Then we needed some USB TTY connector, right? So in this case, you know, it's just your typical Adafruit USB TTY serial connector there. We also have a, and we'll get to it more in a minute, but using the GreatFET 1 as a logic analyzer, and to be able to read voltages and things like that in case we needed to actually hard pull something off of the chip, solder something or things like that. Ultimately, we didn't need to do that, but we were prepared for that nonetheless. Raspberry Pi, because it's image and distribute, so for doing cross compilation and things like that, cheap, easy to come by. And then also, we used Alpha Wi-Fi, just a USB Wi-Fi NIC, which for us, why this was important and why you'll need some NIC that you can get active, or rather passive sniffing on, is because you're going to want to capture all of the traffic going from the camera to the cloud, and not just what will appear as network traffic, and we'll get to that in a little bit, because you're going to, to follow along, you'll need to parse some other additional protocols. So, getting a little bit into our remote and local recon, initial attacks were limited. They had a fairly locked down attack surface. The active network and local reconnaissance doesn't reveal too much or too much interesting as far as running on the traffic, or rather running on the camera. The network traffic itself is fairly mundane. It uses encrypted web sockets, which is a good sign, right, that they are at least using encryption, things like that. So, we tried to do some man-in-the-middle attacks, but ultimately, we weren't particularly successful with that. Looking at the apps themselves, they were likely obfuscated with ProGuard. We couldn't, just from the, from being, unpacking the APK, get too far there. But, so those APKs were just not easily that debuggable. But just as a quick note, ultimately, there's three lines of communication. We're going from the mobile app to the cloud, the mobile app to the camera, and then also from the camera to the cloud, and then the mobile app. And that, just as a sort of primer, we'll get into that more in a little bit. Just as far as the physical device itself, again, we weren't really expecting it to be that secure. It has an exposed reset button, so if you had this sitting, like, let's say, up here on stage, if you were to walk by, hit the reset button, and then flash a QR code, you could steal the camera, and then now it's yours. You have full control over it. Again, that's not particularly surprising, because that's part of the expected setup process. So, in that sense, there's no, so there's also an exposed SD card slot. So, as we came to discover later, this can be used to load alternative firmware as well. We'll get into what the bootloader looks like in a minute, too, but this, if you were to craft a malicious SD card, you could go plug it into the camera, and then also have a field day there, too. The hardware recon starts to get a little bit more interesting. So, when we look at the chip, it's an Experse T31 SoC. It's primarily a MIPS processor, but it also has a companion RISC-V processor. But the primary thing I want you to focus on, for the sake of the demonstration, is that we have an I2C and UART bus that we should, could be looking for, right, on the hardware, on the chip itself. We also have a secure boot, which may, you know, that could throw a wrench into things. And then we also have a hardware watchdog supported by this chip. Doesn't necessarily mean they're using it, but again, these are things that we can look for in our hardware recon. So, in tearing down hard the camera, we found a potential UART, UN access ports there. And so we connected a logic analyzer, the great FET1, looked at the voltages, used some of the protocol detection, saw that it appears to be UART. And if we look at the actual signal, we saw that it indeed was. So, we go ahead and use screen, but you can use, again, whatever your favorite tool is to connect over default baud rate to UART. And lo and behold, on boot, we have UBOOT. So that, of course, is useful for us. But also, we, in further expecting this, that secure boot is not enabled by default, as far on the camera, even though the chip supports it. So, we can just do a quick boot into single user mode and get a root shell so that we can start poking around further. Now, this camera was particularly easy to do this because you could just straight set the environment variables for UBOOT to be able to boot into single user mode and get root. Other cameras that we looked at were not as simple as this. And sometimes you have to use memory offsets and things like that, but this one in particular was fairly straightforward. So, again, we can hit boot and then just drop into our root shell and then be able to poke around on the camera. So, now that we're there, a few things that we want to then do to go forward. First off, we may want to try and establish persistence. But if you've done this type of attack before, going to single user mode, especially on embedded devices, and just embedded devices in general, you might see that you're on a read-only file system. Well, many times this is only read-only ish. It's not quite truly read-only. So, if we take a look at fstab, we can see that a number of these mount points are separated, but then also they are tempfs shares. So, we can then make our own tempfs partition or just mount a tempfs partition for read-write access, modify the desired settings, and we can run whatever we want, of course, and have persistence. Which, largely, for these type of devices, you will need this type of interface, whether it be for... there's other methods for logging, but again, when Linux is running, it often needs to be able to make some level modifications. So, this is just walking through one way of doing that, of saying, hey, I want to create a tempfs share for dev, and then go ahead and mount it, and then also then mount Etsy, such that I can make Etsy read-write as well, which, of course, gives us access to some other things. And so, just demonstrating there that if I run... that if I just create a file, then it does, in fact, show up, as opposed to when it didn't before. So, if you want... so, that's just one way, of course, then you can go and do whatever you want from that perspective. But if you want to go log into the existing root user, of course, you can pull Etsy password, and then go and just use John the Ripper or something to crack that hash, and go from there. But for our purposes, again, we want to keep looking for the other software vulnerabilities. So, this gives us an easy way to pull the firmware over the serial connection. So, we... and in addition to the firmware, we're pulling a JFS to read-write partition containing any log data, again, just might be useful for us. So, this is just demonstrating how you can... one way of pulling the firmware. There are a number of different ways, but this is just how we did it using... using binwalk, and then, of course, just echoing the bytes out in the appropriate format over the serial connection. So, with that, I'm going to hand it over to Mark to see what he did with the firmware. All right. So, as Eric mentioned earlier, we definitely were running into issues with the iOS and Android apps for WandsView specifically, right? So, we're hitting our heads against the wall a little bit. So, we kind of backed things up a little bit and went directly to WandsView's site, and they host a version of WandsView Cloud that is for older versions of Windows. I think it says Windows 7 specifically on their site. But the main takeaways from that is that that app is still compatible with all WandsView devices. It does have a limited feature set. I mean, they're still trying to push you towards using the apps. You know, that's totally, you know, their sort of thing because they want everybody to sign up for their cloud plan so they can make more money off of everybody, not just the $10 sales, you know, from the device itself, right? A couple other things related to that, this Windows app, is it does generate a significantly less amount of network traffic. That's going to come in handy later. And the binaries are not packed. Eric mentioned that the APKs look like they're probably packed with ProGuard. So, you know, definitely being able to disassemble and decompile and debug pretty easily. That helps out quite a bit. And then last, but certainly not least, is that it does generate a very, very verbose debug log file, which I'm going to dig into right now. And the first thing we noticed when we ran it the first time, it logs user account credentials in clear text. That's obviously terrible. So, yeah, not a great sign of things. And as Eric mentioned before, we had significant difficulties trying to man the middle of any of the app traffic before, so we had no visibility into that. But helpfully, their developers decided to actually log all post request and response data so it's all there in the clear. Who needs to man the middle of anything when you have it in the clear on a file on disk? So, yeah. So, digging into it, yeah, we could definitely get a ton of insight into the sign-on process that we did not have before, including the actual endpoint APIs, as well as, you know, all the fields that are involved both in the requests and responses. So, it's not really a ton there. It's more just initial setup. This check is more just to see if this is a valid account that you're attempting to sign on. And then this here is where the actual, let's see, yeah, is an initial account where, but, yeah, challenge involved where the token's generated for that specific client application, and then there's a little bit of key exchange that happens. But, yeah, not too much else going on there. This is where the sign-on really begins. Assaulted and, yeah, your password is at least assaulted and hashed, so it's not set in the clear, thank God. And then, yeah, I mean, it's mostly just to initialize the session and to confirm that you are allowed to log into this account. From there, we, things really start to get interesting because now we can, now that we're logged in, we can request a list of devices that are associated with that specific account. And as you can see here, there's a specific device ID, along with some more configuration information, primarily endpoint URIs. And then there's another device configuration API endpoint that's hit. This is very notable, we're going to refer back to this later, but this is where a device ID is first transmitted from the application to the cloud. And, you know, more configuration information comes through. We'll dig into that a bit. And then the last request we really dig into is fetch infos. And this provides a much, much larger picture of the data that is stored for that specific device. And there's a lot to kind of dig into, but what you'll want to really highlight on is there's a snapshot URL that's provided. And that just happens to be publicly accessible. And that's a picture of my kitchen. So from back in April. So digging further into more of the response data, there's a few things certainly to note here that are a bit concerning, right? The firmware version, the very specific firmware version that is running on the device itself, that's referenced there, along with the next firmware version they're supposed to upgrade to, along with the actual SSID that the device is currently signed onto, along with some other network configuration information including its MAC address. And then we also have, you know, geolocation data, you know, in the form of, you know, time zone data and things like that. So going back to the device configuration request, what we tried to do first is we wanted to see if we could actually access other devices that weren't associated with our particular account. So we tried a very naive approach where all we wanted to do was simply just replace the device ID in that particular request. And without really doing a significant amount of reverse engineering, we can locate that pretty easily based off of the verbose log data because if we just look up post request, we can, you know, we can see how many times that's specifically logged to the log file. And then we can cross-reference that with the disassembly in IDA in order to target the specific device configuration post request to get a better idea of where we would want to jump in. And so digging further into the particular function, what we decided to do is we needed to set a breakpoint at this particular address, which would be before the post request actually goes out, before the JSON is fully formed as well. You know, we're going to swap out the device IDs and memory and then resume execution. So pretty straightforward. What this ends up kind of looking like is, you know, I wrote up maybe a 60-line Python script that does this all for us, which we will dig into right now. Okay, so what we have right here is, well, first I'll demonstrate that this account is... So we already have one specific camera that is tied to this account. And it's offline at the moment, so it's not really concerning that, right? We'll attempt to connect to it, but nothing's going to happen. Now, if we kick off the exploit script, what it's going to do is it's going to launch the same WandsView cloud for Windows app. We'll proceed to sign in as expected. And once we hit our breakpoint, we will swap out the device ID in memory. And then once it has finished here, it will resume execution. And we're online. So the thing is... So yeah, we can do everything in the app. We can pan and tilt. Yeah, I mean, like I said, it is a bit more limited feature set compared to the mobile apps. But basically, right, we've proven we can get access to an account or a device that's not associated with our account. It's obviously a very, very significant access control vulnerability. So yeah, you know, certainly that was a pretty big discovery, you know, right off the bat. So you might have seen in the background that there was, you know, certainly a lot of network traffic being generated in the background. It was all primarily UDP, but we hadn't really no idea what it is in particular. Now, doing research before we submitted to DEF CON, we did come across a particular IoT peer-to-peer protocol called PPPP that was pretty significantly researched and detailed by Polymer PC. His website, he presented at DEF CON 28 in 2020, fully tearing down the protocol and all that. So ideally, this was going to be something that, you know, maybe that was going to be in use here too. So we kind of set out to explore that by just looking for references to P2P and PPPPP. And yeah, sure enough, within the Wandscape Cloud binary itself, as well as the DLLs, we found, you know, numerous references, even references to their specific PDBs, which reference both, you know, multiple peer-to-peer terms. So yeah, we're pretty sure that we're dealing with the same protocol. And going from there then, there is a excellent dissector for this peer-to-peer protocol that is available and posted on GitHub as of last year. You know, we load it in and all of a sudden that UDP traffic, we have no idea what it is, turns into a very recognizable messaging sequence that's associated with peer-to-peer. So very, very briefly, the peer-to-peer protocol is used by a ton of IoT devices across hundreds of vendors. It's been in use for, you know, the better part of the last decade, if not longer. It uses UDP hole punching in order to circumvent restrictive network configurations. And it allows you, you know, these apps to connect to the cameras from anywhere in the world, right? They want it to be as accessible as possible, right? That's the whole point of these devices. And yeah, sometimes the connections are either direct to the camera, depending on the configuration, or they go through a relay if they have to, you know, get around certain restrictions. So now we have established some initial access, right? So we also have, as we looked at a little bit before, the firmware, which we can now go into some of that static reverse engineering. We have packet capture for the camera and the app network communications. We have log files from both the windows and the camera logs. The logs, as when we logged in before under root, we of course have access to all of the D message logs and things like that as well. And then we can get the camera logs from any of its hardware mechanisms as well for the audio and camera, pan, tilt, zoom, et cetera. So now we want to kind of establish some more advanced access for looking for some additional exploits. So one, or first, we're going to look for that live log output for some immediate feedback to determine some of the control flow. Again, from the windows app, right, we were able to see that some of the, they are logging the post request and responses. So we're hopeful that they're going to do something similar on the camera, but we also want to establish a, we want to have a debugger running on that camera so we can look at some of these applications and see what we can do. So first for live log output, it's very, very simple, very easy. You plug the serial, you just get your serial shell over, you aren't plugged into say in this case, a Raspberry Pi, but again, you could use whatever you like and it spits out the logs over serial by default. So you don't even necessarily need to use the root access or boot the single user mode to just get the logs. But again, that's just one way of doing it. But one thing that we'll quickly run into is the kernel watch dog. So if the watch dog is not written to, it reboots the camera. So this, what we're seeing here is if you try to kill the init, the primary app, or in this case, we'll get to it in a minute, but if you start to kill off things in the camera to go look at them or pause things, it will trigger the, the, the kernel watchdog process, which will then reboot the camera. This isn't the only say security mechanism. This is just the one that the primary one that you would have to get around to be able to run a debugger, to be able to look at the primary application that they're running on the camera, which they call init app, which, which handles all of the connection to the AJ cloud, providing all of the video streaming and the rest of the control of the camera. They wrap this init app in a daemon.sh script, which is just a simple while loop that says, Hey, keep kicking off the init app. If I have to kick it off more than X number of times, reboot it again, acting sort of like a, again, a catch all in case something went really wrong, but that init app is reporting into the watchdog. And so this is, that's, so if you either kill the init app or again, kill the daemon and then kill the init app, that's where you're going to end up rebooting the device. And so if you're using single user mode to get root, you're going to lose that. And I, and some of the, unless you have set up some level of persistence, you're going to lose any of the edits as well. So of course, next step is to defeat the watchdog. So there are a couple of approaches here, right? That you could do. So the first one, um, which you can actually get this example right off from the, uh, the kernel watchdog API, um, information from the, the Linux kernel, you could just simply write some C code to keep sending a live messages to the watchdog, right? And so since we have root access, we could do something like that. However, this approach is not necessarily what we want to do and not what we wanted to do either, because the problem, the fundamental problem with this is that while you could keep sending the messages, or you could even use like take hold of the kernel semaphores and keep it open just for yourself. So init app can't write to it. That doesn't necessarily help you because init app, if it can't write to it, then it's going to know that you're here and know that you're now disabling its ability to operate. And then it may change the way that it's going to operate. In this case, we know say that it, that it does, but again, that's not necessarily the approach you want to use, even though it might work for, for your environment. So there's another way. Um, there's, there's other ways other than these two, but these are just the ones we're going to talk through today. Um, there's the magic close feature, which if you go look in the Linux kernel driver, uh, what the watchdog driver API from Linux kernel 2.4.18, you can see that there, if you write a magic character, in this case, an uppercase V, there's another character that'll work as well. But if you write that to dev watchdog, and that's the last thing that gets written to dev watchdog, it then can cleanly disable the watchdog, uh, the, the kernel watchdog. Now, as a note, the camera is not running Linux kernel 2.4.18, but it does still work. Um, so your mileage may vary. It's running a three dot kernel, but, um, again, it's still, still may work. So you could write a simple script such as this, or again, however you would like to do it to just simply continuously write V. And the reason why you may want to do something like this instead of just write V and stop is something, some other process, especially as you're doing your reverse engineering might come along and reactivate the watchdog. So if you want to try and keep making it such that, that you're not going to be rebooted, or at least as have some protection against that, you, you might want to continuously write to it. So now with the watchdog generally defeated, we need to be able to run a debugger on the camera, which means we need to be able to compile binaries that can run on the camera. Um, so in this case, we discovered that our, our camera is a little Indian MIPS. Um, so just as a quick, um, example, we can compile arbitrary C code using just out of the box, um, like the MIPS Linux GCC compilers. We can run a quick hello MIPS and see. So I did not know this at the time when I was doing it. I built a tool chain and compiled, uh, compiled GDB server myself using that tool chain. But later on, we found that there is a prebuilt one that works that that's the link to be able to get to it again, again, that will be available, but what you'll need to do to be able to run GDB server, you'll need to make sure that you're exporting the proper paths to get the proper libraries that an app needs, then expose it over some port. It could be, it works over serial. I would recommend if you can use it, doing it over networking, just because the serial debugging can be very slow when you're using this many libraries. Um, and again, just an example of how to do that. Um, so we can then connect to our, um, use, and this is actually one important note. When you're using GDB to connect to GDB server, you will likely, you very likely need to use the multi-architecture version. Otherwise it will not work unless you happen to be running, um, little Indian MIPS on your laptop, which at least for me, I'm not. Um, but once you get there, again, we know that an in-app is calling out to the watchdog. So we need to overwrite those functions in memory with no ops to be able to have it not call to the watchdog at all. Is this absolutely necessary? Maybe not, but it will make it a lot cleaner for us if we just don't have to worry about it. So that's, that's what we did. And you can, at least in our case, we were able to find that, that, that those locations were where those functions were and, uh, we just overwrote them. Sure. So I'll hand it over to Mark. All right. Uh, so yeah, we're going to skip over the, the, this second demo, uh, and just kind of jump right into it. So, uh, with the peer-to-peer discovery, what we wanted to do is build a client so we could actually connect directly to our camera, uh, and, uh, issue commands to it in order to, uh, attack and exploit it, right? Uh, so the peer-to-peer, uh, servers, you can discover them, uh, using Nmap or Masscan, uh, and delivering that 4-byte payload, uh, to UDP port 607222. Um, and yeah, so very briefly how to establish a peer-to-peer connection, uh, you need to send it a hello message from the client, uh, it'll, it'll act back, uh, you need to query for a specific device ID if this peer-to-peer server has any idea of it, uh, those are device IDs are also serial numbers that are found on the bottom or on the back of these devices, um, and hopefully the peer-to-peer server will say that it knows how to access the device, uh, and then instruct you, uh, to punch a hole to a specific IP and port, um, and then once we have the idea of where we're supposed to go to, uh, we can query that specific relay server or the device itself, uh, you know, if we can connect to it, um, it should hopefully say yes, uh, and then it'll send its packets back and then, yeah, your peer-to-peer connection is ready. Uh, so yeah, there, there's a good exploit script that we kind of based some of our work on, uh, definitely check that out when you get a chance. Um, but yeah, basically, uh, in order to prove things out, uh, we, we looked at how the camera panned initially over Wireshark, uh, it was very easy to tell which specific, uh, packet belonged to a pan operation, uh, then we trace that back to, uh, debug, debug log messages from the firmware, uh, and then actually dug into the firmware itself specifically to find where, uh, where that log, uh, message is being generated and what function is primarily handling, um, a lot of the comms and all that. So, uh, very brief, uh, demo and we're gonna just kind of jump ahead to our more compelling demo of essentially what you can do, um, with our discovery of, of how to build a peer-to-peer client. So, um, what we can see here is there is a, uh, there's an INI file on the camera itself that has the serial number. And what we find out is that that's, that is the only way that the device knows what its own device ID is. And so there is actually a command through peer-to-peer that allows us to overwrite the contents of that INI file. So what we're trying to do is overwrite, uh, the, the serial number itself to an arbitrary value that's just going to completely brick this machine and make it completely inaccessible to the internet. And essentially the user's gonna have to throw it away because there's no way to restore that unless you have access like we do. Uh, and so we send our packets, uh, and what we can see here is we pulled up the same INI file and now it's full of garbage. And we actually have another command we're going to send to it that's going to crash and reboot the cam. Uh, and from there, uh, what we can see is, you know, things are kind of already going haywire a little bit. Uh, the camera is attempting to reboot right now, but what we'll find out pretty shortly here is that it has, uh, it will attempt to issue requests to AJ Cloud's infrastructure, but ultimately it's going to be unsuccessful because it's sending along absolute garbage, uh, in its curl requests. And if we kind of like skip ahead a little bit here, this is a press for time. Um, what we can see here, yeah, if you, if you kind of highlight that, there's not much there. Ah, yes. So yeah, that doesn't really look like a good curl request. Okay. So very, very briefly, um, what devices are actually affected by this, right? Uh, so Wansview, every single device associated with Wansview is affected, including pet feeders, light bulbs, indoor and outdoor cameras. Uh, Galu as well, since they're, uh, you know, an affiliate company of Wansview, uh, and Sonato as well. Um, and then also Philemi is another, uh, manufacturer that, that we, uh, were able to experiment with. Um, but ultimately the affected vendors, uh, it all stems from AJ Cloud. It's whoever's running their device firmware on their cloud platform. And this ultimately affects seven different vendors, possibly even more. We weren't able to confirm all of these. So just real quick, what are some things that the vendors did right? They have certificate web-based authentication. It was fairly difficult to do some man-in-the-middle attacks from that. They have signed and obfuscated APKs, another good thing. They have a pared-down local operating system that at least attempts to be read-only. They could have had secure boot, but again, they have a read-only-ish file system. So you have to do some work even with physical access to be able to go and attack the machine. What they did wrong, of course, unauthenticated cloud access. The demos that we showed you, again, did not require any authentication. We have significant verbose debugging in the log app, the vulnerable peer-to-peer access, and again, no secure boot despite the SoC supporting it. And it's very easy to manipulate when you have physical access. So mitigations, of course, if you want to use them, segment them off your network. The critical vulnerabilities in the cloud infrastructure will put your data at risk. So we would just recommend not using them at all. Again, restrict the inbound, outbound comms. You basically just want to block all of the different traffic that you have. You could also flash it with a different operating system. For sake of time, I'm going to kind of run through this really fast. OpenIPC, I would recommend you checking it out. At least the Q5 is directly supported. So you could flash it with that, but it supports a lot of different SoCs. So our tools that we used for this demo, we'll be releasing them shortly on GitHub. And feel free to follow along with the demo. There's some other future research opportunities. Again, apologies for having to run through this real quick. But thank you so much for coming to our talk. Special thanks to, of course, the following here, and definitely follow us on Twitter, and Elastic Security Labs. So again, thank you very much, DEF CON.