Hello, everyone. Welcome to our talk about the reverse engineering of and hacking of Equivax robots. Thank you for being here at this time. I know it's kind of loud, but I hope we figured it out. So before we start, I would like to introduce ourselves. So first, I'm Dennis, I'm a security researcher, or, you know, also a hardware hacker. And I'm primarily looking into wireless and embedded security and privacy. So I try to look at any device which kind of is interesting for me. So I try to reverse engineer everything which is kind of basically around us. You might know me as a vacuum and IoT collector. So I have over 600, 700 IoT devices and 60 or 70 vacuum robots to start counting. And my general goal is to get root access and root vacuum robots. I have also a website, which is called robotinfo.dev, where I try to document what kind of hardware is in the robots, what kind of software is running, and what kind of methods exist for routing. Cool. Hi, I'm Braylin. I hack things for the Leviathan Security Group during the day. But this talk is entirely personal research and does not reflect their views. My general focus has been application security and APIs for quite a few years now. But I started robot hacking during COVID. Just for fun, I took apart a broken robot vacuum and tried to hack it. So now I am hardware hacking for fun. Mostly looking at robots, cameras, and smart locks. All right, so let's talk about the goals of this talk. So generally, what we try to do is that we want to give you some understanding about the security and privacy risks of IoT devices. We want to give you some overview on how we did vacuum robot hacking. We want to show you the vulnerabilities and how to find them. And typically, our general goal is to get somehow root access without having to disassemble the device. So there have been some past research on that. So if you hack this kind of niche products, the good thing is you can probably get like every year or every two years like a nice DEF CON talk. So we basically over the last five, six years, we kind of like, you know, use the topic and it keeps giving. So if you find your niche product, just go ahead with that. This will be very rewarding. Some disclaimers. So we don't claim that vendors are using the sensors to spy on you. But, you know, they could technically do that. The other thing which we do is like we primarily cover physical attacks or proximity attacks. So we don't necessarily like attack devices through the cloud. One thing which we want to stress always is like many vendors have problems. And it's basically independent of origin, size, market share. But in this talk, we especially like focus on Ecovacs. And all this research is basically part of private projects. So there's no sponsorship by companies, there's no organizations behind that. Any statements are our own opinion, and we're not representing anyone. So what kind of devices are we covering in this talk? So basically, we're covering Ecovacs robots, which you see on the left side, up to the X2. And we're also covering lawn mowing robots and the air purifiers, so the AirBot series. Technically, all the stuff which we do also applies to Yeedi, because Yeedi is basically a sub-brand of Ecovacs. And we only focus on devices which run Linux, so no dumb robots, so only cool stuff. So about the Stark. Well, this is basically a result of five years of research and experiments. And technically, we're not the first ones or the only ones who do research on Ecovacs. The vendor knows about most of our findings. They tried to fix some of them, but failed. So they failed, very sadly. And for other vulnerabilities, which are really, really, really bad, they, for whatever reason, have chosen to ignore them. Also, here, I want to give a shout out to Chris Anderson, who also found, independently, all this stuff, and we, at some point, connected to each other. We're like, oh, wait, yeah, we know about this vulnerability, we know about this vulnerability. So there's probably way more people out there who know about that stuff. Typically, that kind of things are like a collaborative effort. So on the right, you see a picture where we were at CCC camp in Germany, and we're just, you know, messing with the lawn mowing robots, or we were hacking the cameras of the robots in India. So let's start with the motivation. Why do we want to root devices at all? Well, one of the things for us as hackers is, well, we want to play with cool hardware, because that stuff is kind of cheap. The other thing is, you want to obviously stop the devices from constantly phoning home. A lot of people have, like, a very good, like, smart home automation system, like Home Assistant, and they want to use that instead of the cloud. Also, one thing which becomes more and more important is, like, the rate to repair. So basically, if you, if the device is broken, we want to figure out what the reason is, and it's easier to, you know, figure it out if you have root access. Also, we want to verify the privacy claims of vendors, because vendors, you know, they say a lot of things, but it's not necessarily true. So why do we, don't we trust the companies? So one of the things with IoT devices is they are connected to your home network, and they have internet all the time. The communication to the cloud is typically encrypted, and you have no idea what they're actually sending out. From our own experience, we know that developing secure hardware and software is extremely difficult. And in the past, we caught vendors, basically, with some shady behavior. The other thing is, these devices, I mean, they not only have cameras, but nowadays, they more and more have microphones. So, and the question is, like, why do we need that? Generally, if you have cameras, well, there's some risk with that, and devices might store pictures indefinitely. And from our own research, we know, like, that some of them do, and both in the cloud and locally. And the other thing which we run into is, like, if you buy used devices from, you know, eBay or Amazon, you don't know if the previous owner installed, like, a rootkit onto that. So as a new owner, you have no way to verify the software, and as a result, you might have a malicious device in your home, like, which spies on you. So basically, root access is more or less the only way to kind of figure out that the device is clean. Speaking of vendors, there happened, like, this story around, I think, one and a half years ago, where basically iRobot got caught that they were, like, you know, making pictures of people and selling them to Venezuela from, you know, labeling them by gig workers. And the other thing is, well, this device contains a lot of data, so companies are very interested in, like, you know, collecting data about your homes. And one of the rumors was that Amazon was trying to buy iRobot, not because of the great robots, but because of the data. One question which we will answer later, if you can rely on certifications, because all the devices which we analyze, like, in the last two, three years, have certifications, including Equivax. So, um, I want to give you, like, a very brief overview of our hacking journey so far. And for me personally, everything started back in 2017. I was giving a talk at the CCC and at Defcon, and this was a work together back then with Danny Vigema, and we targeted the Xiaomi vacuum robots, the first generation and the Roborock. And the over-the-air update system was completely broken, so we were able to just push, like, local firmware updates. Then it became a little bit more complicated, so the vendors kind of locked on things. For the newer Roborock devices, we had to basically figure out a custom bootloader tool, which required teardown, and we were kind of, like, slightly annoyed about that. So, back then, we took a first look at Equivax, and after my CCC talk back then, some influencer gave me, like, a Equivax D-Bot 900, which she got from Equivax. And this had the very, very early firmware with the bug symbols in there, which was very, very helpful. One thing which I figured out back then is that the firmware is unprotected, TLS is completely broken, there's no integrity protections, you can route a device by a man in the middle, and you can just push, like, malicious OT updates. But one of the problems was the hardware was extremely weak, so it wasn't really interested for us. And as a result, we never published the results on that, because, I mean, why would we? So, over time, we had to develop new methods, because it became more and more difficult to route Roborock and Xiaomi devices. So, in 2021, I released a method for newer, like, Roborock devices, and also Dreamy. By the way, the CyberDog is a Dreamy device, technically, where we were able to bypass Secure Boot and some security features and be able to route it again. And it became, again, complicated in 2023. We were looking again at Dreamy, Roborock, Navel, and Shark, and figured out a secure bypass for, like, some bootloader magic. The issue with all of these is finding new routing methods become very annoying, and it takes a long time. For the last one, we need, like, basically, like, multiple months. So, we tried to find, like, a new vendor, which we, you know, would attack again. So, we went back to EchoVax. And by that time, EchoVax started to release more and more powerful devices. And they were very similar to other devices, but they were lower priced. So, this is, like, perfect. So, one of the first devices which I analyzed back then was the D-Bot X1. As soon as I unpacked it from the box, it took me 30 minutes to get root access and have a modified file system on it. So, this was a perfect target for future endeavours with that company. In the penalty of that, as mentioned before, Braylin was messing with EchoVax and Yeti robots, and so it found very similar things. One thing which I need to address is, like, a lot of vendors, they saw my talks, and they started to obfuscate or introducing countermeasures against our routing attempts. For example, Shark Robot, or, like, their contractor, they kind of just, like, we're hiding Vias and everything. So, they upgraded, we upgraded too. Basically, we got an X-ray machine, and now we started to just X-ray things because it's faster than, like, just measuring through, like, traces. All right. So, let's talk about the EchoVax ecosystem. So, why are we looking at EchoVax generally? It turns out that this company is fairly old. They were founded back then in 1998 in China, and they produced initially, like, OEM vacuum cleaners. They introduced their own brand of vacuum robot in 2007 with a D-Bot, and in 2020, we had the market share of 17 per cent, so this was basically the latest number which we were able to find. We couldn't find a newer number, and so back then, we were second to iRobot, but the global market share is way higher nowadays, so we assume that they're probably, like, probably the top two or top three manufacturers, so their market cap is, like, five times higher as iRobot. They produce a bunch of different products, so, for example, vacuum robots which is kind of, you know, what you would expect, but they have also window cleaners which, you know, clean your window. They have mobile air purifiers. They have lawn mowing robots, and they have some other products. So, let's take a look at the hardware. Well, so typically, if you look at the hardware, we kind of try to figure out, okay, what's going on on the device, and so what we have on one side is the SoC, which is basically running Linux. It's responsible for navigation, mapping, and connectivity, so it's connected to the storage. It has, like, access to sensors like LiDAR, camera, microphones. It does, like, the connectivity, so Wi-Fi, Bluetooth, and Ultra Wideband in some devices. On the other side, we have the MCU, the microcontroller, which is responsible for all the retail operation stuff, so controlling the wheels, infrared sensors, fans, and drop sensors. Typically, you want to have your drop sensors real-time operated, because you don't want to wait one second until the robot is already flying down the stairs, so you want to do that real-time. All right, so one of the first devices which I saw, I mentioned back in 2018, was the D-Bot 900 series. This was, like, basically like a rocket ship with one core, 128 megabytes of RAM, and 256 megabytes of NAND flash, so not great. Sensor-wise, we had back then LiDAR already, infrared sensors, but it was just too weak, so even if you have root access, there's literally nothing we can run on that, because it runs out of memory. Thankfully, later on, they started to kind of put, like, more performance chips into it, so the X1, in this case, was interesting and cheap, and they recycled from there on the hardware for multiple generations, so for us, it makes sense to kind of look into that, because we basically could repeat our knowledge, like, on newer models. In our example, the X1 was also interesting, because it had a station, so just both station and robot were creating their own Wi-Fi network. We had a voice assistant, so microphones, which is always good, and we had the remote view feature, so you could access the camera remotely, which is always great for hacking. If you take a look at the hardware, it's more or less the same hardware as the X2, so the newer generations, like, which we have here, and it's based on the Horizon X3 SoC, so this is a quad-core ARM Cortex-A with, like, a Cortex-R in it, and it has also AI acceleration on the same chip. They use 2GB of RAM, 512MB of SPI flash, and a GD32 MCU, which is basically like a copycat SDM32. The X2, by the way, they use eMMC flash, because they figured out they don't have enough flash, so we kind of needed more stuff. One chip which was especially interesting for us is they have a special chip for voice processing, which is the Baidu AI chip, and it has its own firmware, and they supposedly use it for regular detection, but who knows. So, let's talk about the sensors. Well, the X1 has a LiDAR sensor, which is kind of cool. It has a microphone array, for whatever reason, or for the voice assistant, but, I mean, why would you use it? And it has camera and line lasers, so basically to detect objects in front of it. And it has, obviously, a lot of infrared sensors to kind of detect if it runs into something, if it, like, drops from somewhere, or if it, you know, runs over your cat. A device which is very, very similar is the AirBot Z1, which we call the SpyBot, out of reasons. It was released last year. It's based on the same design, like, as the X1, but it has one additional camera and six microphones. And the features of that is, well, you can use it as a Bluetooth speaker, which follows you. It's an air filter and humidifier, and it has a home patrol mode, so it will drive around in your home, and if an intruder gets in, it will kind of alarm you. The thing is, you can also use it to talk to someone at home, and basically, if you walk away, the robot will kind of follow you and kind of focus on your face. The cool thing here is, you basically get two robots for the price of one. What they did is, they basically recycled their old robots, so the top part of the air purifier is basically an X1, a vacuum robot. The bottom part is an old 900 series device, and there's an Ethernet cable which runs through the whole big thing, which connects both of them via Ethernet. So, very efficient. So, let's talk about the lawn mowing robots. They have been released in 2023 in Europe, and this year, I think, recently post-CES, this year in the US. It's kind of cool because they're for navigation, GPS, but also they use visual and time-of-flight cameras, so they can kind of create a point cloud. And they use ultra-wide-band beacons to kind of navigate. And feature-wise, you know, you can put an LTE module into them, so you can connect them from, you know, even if the Wi-Fi doesn't have, you know, connectivity. And again, they have a remote view and patrol function, so they will patrol your garden. Now, you might be paranoid and say, like, wait, I don't want to, you know, accompany, like, watch my garden. Of course, don't worry, they say, like, yeah, you can watch your garden, patrol your garden, but your data stays safe, and we are certified because we use encryption and stuff. If you ever run into the issue to reverse-engineer devices like that, be prepared that you need a lot of space. So, this has been a lot of screws, and it took, like, hours and hours and hours to disassemble it, and even more hours to reassemble it, and two screws were missing, and I still don't know where they are. So, always keep track of your screws. So, if you take a look at the Lawn Mower, it has an octa-core Rockchip SoC with an AI accelerator, like a GPU, basically, 4 gigabyte of RAM, 16 gigabyte of eMMC flash, and it has multiple MCUs. So, it has a display, which you can control as its own, like, STM32-like display. I tried to run Doom, but it doesn't have enough flash, so... And also, even the knife assembly, which kind of controls, like, the cutting, it has also its own MCU. Sensor-wise, it has a 360-degree camera on top. It has a front camera, it has a time-of-flight sensor, has rain detectors, it has bump switches, so they kind of, like, put every sensor in there, which you can have. Thankfully, they gave us a lot of debug ports. So, all the models since 2019 have very similar debug ports, which gives you UART, 3.3V, SWG, and USB. And it's easy to debug, and you can root a device, or get a root shell, basically, without breaking any of the warranty seals. Cool. Now, let's talk about some of the software that EchoVax employs. So, these things run on Linux OS. They're basically just a mobile Linux server. They are using ROS, Melodic Merenia, for the robotics portion, or handling. They also have a custom, like, software suite called Medusa. And there's a couple of interesting software packages that are on the robot, including Python 2.7, which is very handy for hackers. They also use the AWS Kinesis SDK for remote camera access outside of China, and the Alibaba Alien SDK for remote camera access inside of China. So, the good thing is that there are little to no protections against rooting, which is what hackers like. So, let's briefly touch on some AI models that they're using. They use TensorFlow and OpenCV for detection. Some of the typical objects include furniture, cables, pets, and pet remains. The lawnmower also can detect small animals and face recon. But on the right is a screenshot of our favorite object that it can detect. So, just wanted to touch on firmware updates. We've been keeping track of their firmware updates since we've obtained the robot. The U.S. version was released in 2023. And they... why did that go so quick? They had been putting out monthly firmware updates since then. And they stopped in March 2024. So, we're kind of questioning if this is the end of life for this pretty new product. Their change logs are also not very informative. So, we have a theory that they're dropping device support very quickly, which is unfortunate. So, the mobile app structure, there's a... there's like a core app, the EchoVax home app. And then when you add robots, they're... plugins are downloaded dynamically every time you add one to your account. So, now we'll talk about security and privacy. So, when we first started researching EchoVax robots, we wanted to see if they had like a bug bounty program. And this is the only page that we found for their security program. They claim that they have like a public bulletin board if you report bugs to their just kind of email address. They want you to email bugs to them, which is not like a secure method to do that generally. So, yeah, there's no real collaborative bug bounty program. And they don't respond to our reports or emails. They just kind of ignore us. Some bugs are silently patched, we've noted. But their privacy policy, it doesn't... there's no guarantees that the data stays in your locale, which is kind of scary. Regional AWS services are used for the EU and US and China, of course. Some photos and videos are sent to Ali cloud video for AI analysis in certain models. They claim that you have to opt in. I'm not sure if they honor that, but more research is needed. But of course, lots of telemetry data is collected, as with most IoT devices these days. So, what are we concerned about? These vacuums have microphones and cameras. So, can they be enabled remotely without user notice? And where's the data sent to? And, of course, we need to be concerned with AI and privacy. So, why do these robots need face recon AI models? And is this telemetry data being used to train their AI? So, after Dennis' DEF CON talk last year about Roborock vacuums, they posted this really interesting blog post titled, Can Robot Vacuum Cameras Be Hacked? And they claim that their cameras are, like, encrypting all data gathered by the device. But who knows? So, they post a bunch of certifications from Tube Rhineland, which is... that costs quite a bit of money. And they claim to be meeting and exceeding all standards. They even have, like, a splash screen when you load their mobile app, claiming that they meet ISO standards. Again, not in line with our findings, which we will talk about now. So, data harvesting. The mobile apps and the just a lot of communication with the EchoVac servers. Their key data collection endpoints are called Big Data and Data Upload. So, it's not like they're hiding what they're doing. They're pretty upfront about it. So, some example of telemetry data that's collected are live coordinates of the robot location in your home. Wi-Fi access points, network data, and additional debug information is sent to EchoVac servers if the robot gets stuck somewhere. And possibly AI pictures, even if not opted in. So, what are they retaining in their cloud? Maps and pictures are stored in a NoSQL database. So, anyone who knows the object ID of the map can access that data. There's no access controls on these points of information, which is... I don't know. I don't want random people with an EchoVacs account to be able to see a map of my house. The maps associated with the robots, they seem to remain on servers, even if you do a factory reset or repair the device to a different account. Also, deleting your actual EchoVacs account has no effect. The map remains indefinitely on their servers, even if you supposedly remove all of your information from your account. So... oh, what's wrong? Oh, sorry. Skipped over one point. Oh, the JWTs that are used for authentication are also... they also remain valid after you delete your account. So, you can continue using your account, even though you deleted it. And access to the robot is still possible. So, not ideal security. So, what are they storing on the device? There's a user data partition, and it's not encrypted, of course. Why would they encrypt that? There's lots of logs, configs, maps, and pictures that are stored on this partition, including the live video pin, which is stored in an MD5 hash, and the robot lawnmower pin, which is stored in plain text. There's also Wi-Fi credentials and your neighbor's Wi-Fi access points. So, they're kind of just mapping the whole world with their robot vacuums. There's also the HelloYiku traffic logs, which are... that's their voice assistant. So, keeping track of what you say to your robot. So, always keep in mind that if you're selling a used device, that even if you factory reset it, there's a risk to your privacy. And, additionally, Flashware leveling will always be a problem, but that's for a different talk. So, one of our big findings was that they did not configure their TLS properly. So, the EchoVax home app mobile application correctly checks certificates, but the robot-specific plugins don't always do that. So, the plugins sometimes accept self-signed certificates, which is very risky to use on an insecure Wi-Fi network, like at an airport, hotel, or the DEF CON open Wi-Fi. Please don't do that. There's no warning or error shown in the app. And this traffic will leak your authentication tokens and will allow the attacker to have access to your account for up to seven days and access to video feeds, like everything. Here's an example of the traffic that we were able to intercept. We've redacted the authentication token just for good measure. And, additionally, they misconfigured TLS in their robots themselves as well. The MQTT and TLS connections, they accept self-signed certificates on some devices, which allows for man-in-the-middle attacks and over the OTA updates can be injected. The tool that we used for this is CertMidim by Oppo Oxman. I highly recommend it. It's pretty fun. And this is partially one of the reasons why this is happening. They are running bash scripts from the robot with no check certificate on WGIT. Not ideal. So, another thing that we found was that the robots have audio warnings when the camera is accessed from the mobile app at the start of access and every five minutes afterwards. A sound file is played. So, the problem is that local sound files are stored on the data partition, which isn't encrypted and can just generally be accessed. So, the sound files can be deleted and replaced. So, we can replace the warning audio with an empty file. So, nothing will happen when you access a live video feed, which we'll tell you why that's a huge problem in a second. So, this finding was reported at CCC last year, but they fixed it and then we broke it again. So, we're going to tell you about it again. So, the app allows for live video and audio access on the robot and this functionality is provided by AWS Kinesis. The owner and shared users of the EchoVax account can access this feature. It is protected by a PIN and the PIN will be asked for before connecting and it can only be changed and reset by the account owner and the reset requires account credentials. So, here's how the PIN works. Mobile app will ask the user for the PIN. The EchoVax cloud will act as a kind of broker. So, now we ask the robot, hey, does this PIN hash match with your local hash that's stored on the robot? If yes, the robot decides that it is correct, sends that response to the mobile app, and then the WebRTC session over AWS Kinesis will be started and both will join the AWS Kinesis session. So, what happens if the PIN is incorrect? We go through that same process, but with an incorrect PIN. Sorry, I don't know how to use PowerPoint. Okay. So, okay. Sorry about that. Okay. So, we asked ourselves, are the PIN verification and WebRTC session tied together? So, why is it... this is truly annoying. Why is it doing this? Okay. Sorry. Animations have a mind of their own right now. Turn off the animations. Oh. It's fine. Just go to animation. It's slides by themselves. I can't stop it. This is entirely automated. There's like a button that's pressed down right now automatically. Sorry for that. You need to turn animations off. I don't know how to. Okay. No, it's not. Anyway, the takeaway message here is we don't know why the animations are broken, but basically it doesn't matter if the PIN is correct or not correct. You can convince the app that the PIN is still correct and we'll just establish a session. And we have a demo here. Do you know how to disable it? Sorry. Dennis, disable the track. Sorry, that's where it worked before. Oh, my God. Why is it going automatically? Did everyone see that? We're just trying the slideshow again. I mean, they're fine. That starts from the beginning. Okay, we have automated slides for some reason, so we're just going to work with it. Okay, we can't work with this. Why is this happening? This is really awful. Okay, now it's working. Okay. Trust Microsoft. Sorry about that. Okay. So, right. So, as we were trying to go through... Oh, my God. Okay. So, we're trying to verify the PIN, but the PIN is incorrect. So, are these tied together? The WebRTC session. So, can we intercept this request or the response that PIN is incorrect and tell the app that the PIN is actually correct? And the answer was, yes, we were able to do that. So, now we have a malicious session. And we have an AWS Kinesis stream. So, can we bypass that all together and just patch the PIN query out of the app? And again, yes, we were able to do that. But we just want to make it abundantly clear that this is an issue with Echovax's implementation. This is not an issue with AWS. So, don't sue us, AWS, please. So, in short, the PIN protection is implemented in the app, but it's client-based authentication and ACL enforcement. So, the robot doesn't keep track of successful authentications. The log of the video stream access relies on the honesty of the app. And this is really bad in combination with the TLS issues that we just touched upon. And it's even worse if the sound files have been tampered with. So, here's just a video demo. This was reported in 2023. An unsuccessful fix was pushed. Some plugins were updated and no firmware fixes, which is where, like, the real problem was. So, we can downgrade the app with a bad plugin and it still works. So, here's just a quick video demo. This is just Burp Suite. We have some find and replace queries to simplify it. We enter a wrong PIN, 111, a couple of times. Not the right PIN. So, we continue. Then we enable our find and replace queries in Burp Suite, enter again the wrong PIN, and we are dropped into a video streaming session and successfully bypass the PIN mechanism. And here we are. Cool. So? All right. So, let's talk about free lawnmowers. Who wants a free lawnmower? Okay. Now you learned how. Actually, please don't. We're not free. So, the ECHO OS G1 has an anti-theft mechanism where, basically, if you pick up the robot and you, you know, you need and you don't trigger the alarm, basically, you need to enter a PIN to unlock it. As an owner, you can also enable alarms. So, basically, if you pick it up or someone picks it up, some alarm will go off. The problem here is, well, the PIN is implemented, basically, the SOC in the Linux operation system and the PIN is stored just on a plain text file on the robot. The thing, generally, with lawnmowers is that other lawnmowers have the same issue. So, as a general recommendation, do not keep your mowers outside unprotected. And, you know, we kind of hope that ECHOVACS and other vendors would somehow find a more secure location for the PIN, for example, like in one of the MCUs, so to kind of, you know, have a better locking mechanism. So, let's talk about our main point today and that's the Bluetooth remote code execution, which we found at some point last year, which we were hoping that we would patch until today, but we didn't. So, what's it about? So, newer vacuum robots and all lawnmowing robots so far use BLE, Bluetooth LE, basically, for their provisioning. So, if you initially, like, pushed your Wi-Fi credentials onto it, they have a mechanism for that. For lawnmowers, in particular, the Bluetooth is always active because we use it as a fallback way to control them. And for vacuums, it's typically active for the first 20 minutes after booting, and every time they reboot in the middle of the night for, like, memory cleaning purposes. There's also a different way to kind of force a robot to reboot remotely, but we don't want to talk about that yet. So, the communication between the app and the robots over Bluetooth is done by the GAT protocol, basically. And the payload is encrypted with a static AES key, which is something similar, it's not exactly that one, but it's like 1, 2, 3, 4, 5, 6, 7, 8, something of that nature. And the input validation of whatever happens with the data afterwards is, let's say, not great. And that's kind of bad if you think about that they kind of say, like, oh, hey, our robots have cameras, but trust us, because we have been certified by the truth. So, and as a quick reminder, these devices have cameras and microphones. So, let's create a payload. First, what do we want to execute is, basically, we want to play the boot music, which you heard before, on the robot. So, we take the command which causes that, be embedded in some JSON payload, and we generate an encrypted payload. The payload looks something like this. Basically, there's a bunch of hack stuff. What happens if you send it to one of the payloads, it will decrypt it. It will basically extract one particular argument from there, and will generate a command line and put the argument which is extracted into the environment variable there. So, the command line which we get at the end of the day is something like this. As you see, we basically use command injection there. And then it will happily execute a thing as root. And we tested this attack basically over a 50 meters distance and even longer, 100 meters for lawn mowers because they have a more powerful Bluetooth antenna. And we have a demo here for the G1, which is the lawn mowing robot. What we do here is we send the payload from an Android phone, and you will see that we will get a session back in a second. So, we're sending a payload now. You saw it connected back to us, a reverse shell. And now we can type on the robot, and, you know, we see that we are root. We see what kind of version we're running, so the robot basically connected back to us. We have also another demo, you know, more of the robot, but I will skip that out of timing issues. And we have also a live demo potentially, which takes one. Okay, I skipped that too. I will do it. Okay, we have three minutes left. So, what can you do with that if you have a BLE code execution thing? So, what we thought about is like, hey, how can we chain that? So, generally, if you live in a very close populated area, there might be more Ecovacs users, because especially like Ecovacs is like one of the market leaders. So, what we can do is like, we just attack an initial object, like a vacuum robot, sorry, lawnmowing robot, put a payload onto that, and then the robot has all the tools which it needs to talk to other devices. So, it can infect the next robot, which has some distance, and that one can infect again the next one. And then it becomes a problem, because the third one might start to infect back the lawnmower. So, we just had it as a proof of concept. We didn't want to have a whole routing protocol to figure it out. So, you know, sorry about that. Let's talk about routing very, very quickly. So, there is a lot of countermeasures in there, in the software. They use a lot of XOR and byte shifting to hide strings. They have a lot of anti-debugging features. For example, they detect a deep reload in debuggers. And they use, for some of the devices, not all of them, Secure Boot and Android Verified Boot. So, to get a root shell, well, you can connect to the UART, but the problem is every device has a different password, and it's hard-coded. Sorry, it's not hard-coded. It's set at boot time. And the function is very obfuscated. But there's one particular tool which generates that, and this is how it's basically generated. So, they take a bunch of, like, random MAC addresses probably from the developer's computer at some point, put the serial number in there, the model number, create a SHA-256, and then make it base64, and that's the root password. If you want to generate it for your own robot, there's a tool. You can just go there, just enter your serial number. It will kind of give you a password. For firmware updates, they're encrypted but not signed. The key is kind of dynamically generated, and it was kind of very difficult to reverse-engineer it, but it's basically AS128. And this is the format string which we use to generate the key, which is someone's random email address. So, we use a bunch of random stuff, mix it together, and that's the AS key. So, as mentioned, some root file systems are not protected, so we can just modify them, especially on X1 and Z1. We can just repack it and have our own system. One thing which was kind of interesting for us is we can get persistence in autostart. We left the debugging feature on some of the devices where if there's autostart folder exists on data which is not protected, you can put a shell file into it, it will just happily execute it next time. So, it's not protected in any way, so it's persistent forever. The problem is, for whatever reason, on some of the devices we disabled it, on some of them not. I mean, it's kind of random. If you want to be persistent over factory sets, well, they only delete the files. So, the thing you can do is, basically, because we don't recreate a file system, just make files immutable with Chatter, and that way we will stay there forever. I will talk really quick about the takeaway lessons. First, can you rely on certifications? No, you can't. Bad news. If you have vulnerable devices, like the lawnmower, make sure that you turn it off until they push a fix. Don't use them. Turn them off if you don't use them. For devices which don't have BLE, just don't update them if you want to keep root access. For vulnerable apps, don't connect to Defcon Open. Bad idea. Use devices. Be very careful with used devices. They might come with a compromised firmware. It's very difficult to verify. If you do factory set before selling, do that definitely, but be aware that it might not help against everything. One thing, choose your partners wisely. You can use the Sphinx as stalker tools. I will skip that real quick and just finish with the summary. We have root access on most of the released, or I think actually all of the released Ecovacs robots. We can use the UART interface and authentication to get into the device. We can use the BLE remote code execution right now to get initial access on devices remotely, hopefully your own. You can get persistence and run some custom firmware on some of the devices which don't have protections. We were able to verify the claims of the vendors and we found a lot of security and privacy issues. This applies to the app, robots, cloud, and the certification for whatever reason didn't prevent that. I'm not a firm believer in certifications nowadays. But this allows you to look further into IoT devices and into AI, and so hopefully this will be for our security, for everyone's security. Some quick acknowledgements. I would like to thank Daniel, Tris, Azuran, Timster, and Apo. And if you have any questions, I think we have time. Maybe we have time. Actually, okay, you can ask those questions over here. Basically, don't. Sorry for the problems. Thank you for being here. If you have any other questions, like a remote, there's our email addresses. Feel free to reach out. Yeah. Thank you very much.