[00:00.000 --> 00:04.680] Hello, everyone. Welcome to our talk about the reverse engineering of and hacking of [00:04.680 --> 00:09.640] Equivax robots. Thank you for being here at this time. I know it's kind of loud, but I [00:09.640 --> 00:15.680] hope we figured it out. So before we start, I would like to introduce ourselves. So first, [00:15.680 --> 00:21.820] I'm Dennis, I'm a security researcher, or, you know, also a hardware hacker. And I'm [00:21.820 --> 00:26.400] primarily looking into wireless and embedded security and privacy. So I try to look at [00:26.400 --> 00:29.680] any device which kind of is interesting for me. So I try to reverse engineer everything [00:29.680 --> 00:36.560] which is kind of basically around us. You might know me as a vacuum and IoT collector. [00:36.560 --> 00:43.700] So I have over 600, 700 IoT devices and 60 or 70 vacuum robots to start counting. And [00:43.700 --> 00:49.780] my general goal is to get root access and root vacuum robots. I have also a website, [00:49.780 --> 00:53.980] which is called robotinfo.dev, where I try to document what kind of hardware is in the [00:53.980 --> 00:57.980] robots, what kind of software is running, and what kind of methods exist for routing. [01:00.600 --> 01:06.820] Cool. Hi, I'm Braylin. I hack things for the Leviathan Security Group during the day. [01:06.820 --> 01:12.160] But this talk is entirely personal research and does not reflect their views. My general [01:12.160 --> 01:17.400] focus has been application security and APIs for quite a few years now. But I started robot [01:17.400 --> 01:22.700] hacking during COVID. Just for fun, I took apart a broken robot vacuum and tried to hack [01:22.700 --> 01:28.320] it. So now I am hardware hacking for fun. Mostly looking at robots, cameras, and smart [01:28.320 --> 01:34.900] locks. All right, so let's talk about the goals of this talk. So generally, what we [01:34.900 --> 01:38.940] try to do is that we want to give you some understanding about the security and privacy [01:38.940 --> 01:44.160] risks of IoT devices. We want to give you some overview on how we did vacuum robot hacking. [01:44.560 --> 01:49.660] We want to show you the vulnerabilities and how to find them. And typically, our general [01:49.660 --> 01:54.800] goal is to get somehow root access without having to disassemble the device. So there [01:54.800 --> 01:59.580] have been some past research on that. So if you hack this kind of niche products, the good [01:59.580 --> 02:03.020] thing is you can probably get like every year or every two years like a nice DEF CON talk. So [02:03.020 --> 02:09.880] we basically over the last five, six years, we kind of like, you know, use the topic and it [02:09.880 --> 02:14.840] keeps giving. So if you find your niche product, just go ahead with that. This will be [02:14.840 --> 02:21.120] very rewarding. Some disclaimers. So we don't claim that vendors are using the sensors to [02:21.120 --> 02:25.740] spy on you. But, you know, they could technically do that. The other thing which we do is [02:25.740 --> 02:30.820] like we primarily cover physical attacks or proximity attacks. So we don't necessarily like [02:30.820 --> 02:35.820] attack devices through the cloud. One thing which we want to stress always is like many [02:35.820 --> 02:40.480] vendors have problems. And it's basically independent of origin, size, market share. But in [02:40.480 --> 02:46.140] this talk, we especially like focus on Ecovacs. And all this research is basically part of [02:46.140 --> 02:50.460] private projects. So there's no sponsorship by companies, there's no organizations behind [02:50.460 --> 02:56.780] that. Any statements are our own opinion, and we're not representing anyone. So what kind of [02:56.780 --> 03:01.080] devices are we covering in this talk? So basically, we're covering Ecovacs robots, which [03:01.080 --> 03:06.580] you see on the left side, up to the X2. And we're also covering lawn mowing robots and the [03:06.580 --> 03:12.600] air purifiers, so the AirBot series. Technically, all the stuff which we do also applies to [03:12.600 --> 03:19.080] Yeedi, because Yeedi is basically a sub-brand of Ecovacs. And we only focus on devices which [03:19.080 --> 03:25.260] run Linux, so no dumb robots, so only cool stuff. So about the Stark. Well, this is [03:25.260 --> 03:29.280] basically a result of five years of research and experiments. And technically, we're not the [03:29.280 --> 03:34.380] first ones or the only ones who do research on Ecovacs. The vendor knows about most of our [03:34.380 --> 03:41.320] findings. They tried to fix some of them, but failed. So they failed, very sadly. And for [03:41.320 --> 03:44.700] other vulnerabilities, which are really, really, really bad, they, for whatever reason, have [03:44.700 --> 03:49.600] chosen to ignore them. Also, here, I want to give a shout out to Chris Anderson, who also [03:49.600 --> 03:53.080] found, independently, all this stuff, and we, at some point, connected to each other. We're [03:53.080 --> 03:56.560] like, oh, wait, yeah, we know about this vulnerability, we know about this vulnerability. So [03:56.560 --> 04:01.680] there's probably way more people out there who know about that stuff. Typically, that kind of [04:01.680 --> 04:05.460] things are like a collaborative effort. So on the right, you see a picture where we were at [04:05.460 --> 04:10.220] CCC camp in Germany, and we're just, you know, messing with the lawn mowing robots, or we [04:10.220 --> 04:16.880] were hacking the cameras of the robots in India. So let's start with the motivation. Why do we [04:16.880 --> 04:21.400] want to root devices at all? Well, one of the things for us as hackers is, well, we want to [04:21.400 --> 04:25.840] play with cool hardware, because that stuff is kind of cheap. The other thing is, you want to [04:25.840 --> 04:31.640] obviously stop the devices from constantly phoning home. A lot of people have, like, a very [04:31.640 --> 04:35.460] good, like, smart home automation system, like Home Assistant, and they want to use that [04:35.460 --> 04:39.840] instead of the cloud. Also, one thing which becomes more and more important is, like, the [04:39.840 --> 04:43.860] rate to repair. So basically, if you, if the device is broken, we want to figure out what the [04:43.860 --> 04:49.380] reason is, and it's easier to, you know, figure it out if you have root access. Also, we want to [04:49.380 --> 04:53.440] verify the privacy claims of vendors, because vendors, you know, they say a lot of things, [04:53.440 --> 04:59.580] but it's not necessarily true. So why do we, don't we trust the companies? So one of the [04:59.580 --> 05:03.280] things with IoT devices is they are connected to your home network, and they have internet all [05:03.280 --> 05:07.580] the time. The communication to the cloud is typically encrypted, and you have no idea what [05:07.580 --> 05:12.300] they're actually sending out. From our own experience, we know that developing secure [05:12.300 --> 05:17.120] hardware and software is extremely difficult. And in the past, we caught vendors, basically, [05:17.120 --> 05:21.900] with some shady behavior. The other thing is, these devices, I mean, they not only have [05:21.900 --> 05:25.980] cameras, but nowadays, they more and more have microphones. So, and the question is, like, why [05:25.980 --> 05:32.080] do we need that? Generally, if you have cameras, well, there's some risk with that, and devices [05:32.080 --> 05:37.000] might store pictures indefinitely. And from our own research, we know, like, that some of [05:37.000 --> 05:42.200] them do, and both in the cloud and locally. And the other thing which we run into is, like, if [05:42.200 --> 05:46.660] you buy used devices from, you know, eBay or Amazon, you don't know if the previous owner [05:46.660 --> 05:49.900] installed, like, a rootkit onto that. So as a new owner, you have no way to verify the [05:49.900 --> 05:53.120] software, and as a result, you might have a malicious device in your home, like, which [05:53.120 --> 05:58.660] spies on you. So basically, root access is more or less the only way to kind of figure out [05:58.660 --> 06:04.040] that the device is clean. Speaking of vendors, there happened, like, this story around, I [06:04.040 --> 06:07.680] think, one and a half years ago, where basically iRobot got caught that they were, like, you know, [06:07.680 --> 06:12.960] making pictures of people and selling them to Venezuela from, you know, labeling them by [06:12.960 --> 06:17.660] gig workers. And the other thing is, well, this device contains a lot of data, so companies [06:17.660 --> 06:21.320] are very interested in, like, you know, collecting data about your homes. And one of the [06:21.320 --> 06:25.680] rumors was that Amazon was trying to buy iRobot, not because of the great robots, but because [06:25.680 --> 06:32.540] of the data. One question which we will answer later, if you can rely on certifications, [06:32.540 --> 06:36.180] because all the devices which we analyze, like, in the last two, three years, have [06:36.180 --> 06:42.280] certifications, including Equivax. So, um, I want to give you, like, a very brief overview [06:42.280 --> 06:48.140] of our hacking journey so far. And for me personally, everything started back in 2017. I [06:48.140 --> 06:53.060] was giving a talk at the CCC and at Defcon, and this was a work together back then with [06:53.060 --> 06:56.240] Danny Vigema, and we targeted the Xiaomi vacuum robots, the first generation and the [06:56.240 --> 07:00.540] Roborock. And the over-the-air update system was completely broken, so we were able to [07:00.540 --> 07:05.240] just push, like, local firmware updates. Then it became a little bit more complicated, so [07:05.240 --> 07:09.240] the vendors kind of locked on things. For the newer Roborock devices, we had to basically [07:09.240 --> 07:14.080] figure out a custom bootloader tool, which required teardown, and we were kind of, like, [07:14.080 --> 07:19.480] slightly annoyed about that. So, back then, we took a first look at Equivax, and after my [07:19.480 --> 07:23.840] CCC talk back then, some influencer gave me, like, a Equivax D-Bot 900, which she got [07:23.840 --> 07:27.980] from Equivax. And this had the very, very early firmware with the bug symbols in there, [07:27.980 --> 07:31.980] which was very, very helpful. One thing which I figured out back then is that the firmware is [07:31.980 --> 07:36.300] unprotected, TLS is completely broken, there's no integrity protections, you can route a [07:36.300 --> 07:40.660] device by a man in the middle, and you can just push, like, malicious OT updates. But one of [07:40.660 --> 07:44.980] the problems was the hardware was extremely weak, so it wasn't really interested for us. And [07:45.080 --> 07:50.080] as a result, we never published the results on that, because, I mean, why would we? So, over [07:50.080 --> 07:53.760] time, we had to develop new methods, because it became more and more difficult to route [07:54.820 --> 08:01.240] Roborock and Xiaomi devices. So, in 2021, I released a method for newer, like, Roborock [08:01.740 --> 08:06.360] devices, and also Dreamy. By the way, the CyberDog is a Dreamy device, technically, where [08:06.360 --> 08:10.080] we were able to bypass Secure Boot and some security features and be able to route it [08:10.080 --> 08:16.520] again. And it became, again, complicated in 2023. We were looking again at Dreamy, [08:16.520 --> 08:20.700] Roborock, Navel, and Shark, and figured out a secure bypass for, like, some bootloader [08:20.700 --> 08:26.920] magic. The issue with all of these is finding new routing methods become very annoying, [08:26.920 --> 08:29.420] and it takes a long time. For the last one, we need, like, basically, like, multiple [08:29.420 --> 08:33.260] months. So, we tried to find, like, a new vendor, which we, you know, would attack [08:33.260 --> 08:39.120] again. So, we went back to EchoVax. And by that time, EchoVax started to release more [08:39.120 --> 08:44.120] and more powerful devices. And they were very similar to other devices, but they were [08:44.120 --> 08:47.520] lower priced. So, this is, like, perfect. So, one of the first devices which I analyzed [08:47.520 --> 08:53.800] back then was the D-Bot X1. As soon as I unpacked it from the box, it took me 30 minutes [08:53.800 --> 08:58.860] to get root access and have a modified file system on it. So, this was a perfect target [08:58.860 --> 09:04.500] for future endeavours with that company. In the penalty of that, as mentioned before, [09:04.500 --> 09:10.400] Braylin was messing with EchoVax and Yeti robots, and so it found very similar things. [09:11.080 --> 09:14.960] One thing which I need to address is, like, a lot of vendors, they saw my talks, and they [09:14.960 --> 09:19.660] started to obfuscate or introducing countermeasures against our routing attempts. For example, [09:19.660 --> 09:23.740] Shark Robot, or, like, their contractor, they kind of just, like, we're hiding Vias and [09:23.740 --> 09:28.440] everything. So, they upgraded, we upgraded too. Basically, we got an X-ray machine, and [09:28.440 --> 09:32.160] now we started to just X-ray things because it's faster than, like, just measuring through, [09:32.160 --> 09:39.880] like, traces. All right. So, let's talk about the EchoVax ecosystem. So, why are we looking [09:39.880 --> 09:44.340] at EchoVax generally? It turns out that this company is fairly old. They were founded back [09:44.340 --> 09:51.460] then in 1998 in China, and they produced initially, like, OEM vacuum cleaners. They introduced [09:51.460 --> 09:57.280] their own brand of vacuum robot in 2007 with a D-Bot, and in 2020, we had the market share [09:57.280 --> 10:01.460] of 17 per cent, so this was basically the latest number which we were able to find. [10:01.540 --> 10:06.180] We couldn't find a newer number, and so back then, we were second to iRobot, but the global [10:06.180 --> 10:10.360] market share is way higher nowadays, so we assume that they're probably, like, probably [10:10.360 --> 10:16.200] the top two or top three manufacturers, so their market cap is, like, five times higher [10:16.200 --> 10:22.020] as iRobot. They produce a bunch of different products, so, for example, vacuum robots which [10:22.020 --> 10:25.200] is kind of, you know, what you would expect, but they have also window cleaners which, [10:25.200 --> 10:29.460] you know, clean your window. They have mobile air purifiers. They have lawn mowing robots, [10:29.460 --> 10:34.800] and they have some other products. So, let's take a look at the hardware. Well, so typically, [10:34.800 --> 10:37.360] if you look at the hardware, we kind of try to figure out, okay, what's going on on the [10:37.360 --> 10:43.060] device, and so what we have on one side is the SoC, which is basically running Linux. [10:43.060 --> 10:47.020] It's responsible for navigation, mapping, and connectivity, so it's connected to the [10:47.020 --> 10:51.360] storage. It has, like, access to sensors like LiDAR, camera, microphones. It does, like, [10:51.360 --> 10:55.720] the connectivity, so Wi-Fi, Bluetooth, and Ultra Wideband in some devices. On the other [10:55.720 --> 11:00.060] side, we have the MCU, the microcontroller, which is responsible for all the retail operation [11:00.060 --> 11:05.760] stuff, so controlling the wheels, infrared sensors, fans, and drop sensors. Typically, [11:05.760 --> 11:10.240] you want to have your drop sensors real-time operated, because you don't want to wait one [11:10.240 --> 11:14.200] second until the robot is already flying down the stairs, so you want to do that real-time. [11:15.420 --> 11:20.520] All right, so one of the first devices which I saw, I mentioned back in 2018, was the D-Bot [11:20.520 --> 11:25.640] 900 series. This was, like, basically like a rocket ship with one core, 128 megabytes of RAM, [11:25.640 --> 11:31.380] and 256 megabytes of NAND flash, so not great. Sensor-wise, we had back then LiDAR already, [11:31.380 --> 11:35.420] infrared sensors, but it was just too weak, so even if you have root access, there's literally [11:35.420 --> 11:40.520] nothing we can run on that, because it runs out of memory. Thankfully, later on, they started to [11:40.520 --> 11:47.000] kind of put, like, more performance chips into it, so the X1, in this case, was interesting and [11:47.000 --> 11:52.960] cheap, and they recycled from there on the hardware for multiple generations, so for us, it makes [11:52.960 --> 11:56.060] sense to kind of look into that, because we basically could repeat our knowledge, like, [11:56.060 --> 12:03.940] on newer models. In our example, the X1 was also interesting, because it had a station, [12:03.940 --> 12:08.380] so just both station and robot were creating their own Wi-Fi network. We had a voice assistant, [12:08.380 --> 12:12.840] so microphones, which is always good, and we had the remote view feature, so you could access the [12:12.840 --> 12:17.050] camera remotely, which is always great for hacking. If you take a look at the hardware, [12:17.980 --> 12:21.980] it's more or less the same hardware as the X2, so the newer generations, like, which we have here, [12:21.980 --> 12:29.640] and it's based on the Horizon X3 SoC, so this is a quad-core ARM Cortex-A with, like, a Cortex-R [12:29.640 --> 12:37.360] in it, and it has also AI acceleration on the same chip. They use 2GB of RAM, 512MB of SPI flash, [12:37.360 --> 12:43.880] and a GD32 MCU, which is basically like a copycat SDM32. The X2, by the way, they use eMMC flash, [12:43.880 --> 12:47.140] because they figured out they don't have enough flash, so we kind of needed more stuff. [12:47.400 --> 12:51.220] One chip which was especially interesting for us is they have a special chip for voice [12:52.000 --> 12:57.540] processing, which is the Baidu AI chip, and it has its own firmware, and they supposedly use it [12:57.540 --> 13:05.680] for regular detection, but who knows. So, let's talk about the sensors. Well, the X1 has a [13:05.680 --> 13:09.880] LiDAR sensor, which is kind of cool. It has a microphone array, for whatever reason, or for the [13:09.880 --> 13:15.160] voice assistant, but, I mean, why would you use it? And it has camera and line lasers, so basically [13:15.160 --> 13:19.360] to detect objects in front of it. And it has, obviously, a lot of infrared sensors to kind of [13:19.360 --> 13:22.360] detect if it runs into something, if it, like, drops from somewhere, or if it, you know, runs [13:22.360 --> 13:29.080] over your cat. A device which is very, very similar is the AirBot Z1, which we call the [13:29.080 --> 13:36.060] SpyBot, out of reasons. It was released last year. It's based on the same design, like, as the X1, [13:36.060 --> 13:40.640] but it has one additional camera and six microphones. And the features of that is, well, [13:40.640 --> 13:46.960] you can use it as a Bluetooth speaker, which follows you. It's an air filter and humidifier, [13:46.960 --> 13:52.900] and it has a home patrol mode, so it will drive around in your home, and if an intruder gets in, [13:52.900 --> 13:57.900] it will kind of alarm you. The thing is, you can also use it to talk to someone at home, [13:57.900 --> 14:01.340] and basically, if you walk away, the robot will kind of follow you and kind of focus on your face. [14:02.000 --> 14:06.940] The cool thing here is, you basically get two robots for the price of one. What they did is, [14:06.940 --> 14:13.120] they basically recycled their old robots, so the top part of the air purifier is basically an X1, [14:13.340 --> 14:19.500] a vacuum robot. The bottom part is an old 900 series device, and there's an Ethernet cable which [14:19.500 --> 14:26.100] runs through the whole big thing, which connects both of them via Ethernet. So, very efficient. [14:26.860 --> 14:33.920] So, let's talk about the lawn mowing robots. They have been released in 2023 in Europe, [14:33.920 --> 14:39.240] and this year, I think, recently post-CES, this year in the US. It's kind of cool because [14:39.240 --> 14:44.000] they're for navigation, GPS, but also they use visual and time-of-flight cameras, so they can [14:44.000 --> 14:49.680] kind of create a point cloud. And they use ultra-wide-band beacons to kind of navigate. [14:50.100 --> 14:54.260] And feature-wise, you know, you can put an LTE module into them, so you can connect them from, [14:54.260 --> 14:58.740] you know, even if the Wi-Fi doesn't have, you know, connectivity. And again, they have a remote [14:58.740 --> 15:04.000] view and patrol function, so they will patrol your garden. Now, you might be paranoid and say, [15:04.000 --> 15:08.900] like, wait, I don't want to, you know, accompany, like, watch my garden. Of course, don't worry, [15:08.900 --> 15:14.700] they say, like, yeah, you can watch your garden, patrol your garden, but your data stays safe, [15:14.700 --> 15:19.960] and we are certified because we use encryption and stuff. If you ever run into the issue to [15:19.960 --> 15:26.400] reverse-engineer devices like that, be prepared that you need a lot of space. So, this has been [15:26.740 --> 15:32.340] a lot of screws, and it took, like, hours and hours and hours to disassemble it, and even more [15:32.340 --> 15:36.220] hours to reassemble it, and two screws were missing, and I still don't know where they are. [15:36.220 --> 15:44.100] So, always keep track of your screws. So, if you take a look at the Lawn Mower, it has an [15:44.100 --> 15:50.580] octa-core Rockchip SoC with an AI accelerator, like a GPU, basically, 4 gigabyte of RAM, [15:50.580 --> 15:55.800] 16 gigabyte of eMMC flash, and it has multiple MCUs. So, it has a display, which you can control [15:55.800 --> 16:00.960] as its own, like, STM32-like display. I tried to run Doom, but it doesn't have enough flash, so... [16:02.140 --> 16:06.740] And also, even the knife assembly, which kind of controls, like, the cutting, it has also its own [16:06.740 --> 16:12.780] MCU. Sensor-wise, it has a 360-degree camera on top. It has a front camera, it has a time-of-flight [16:12.780 --> 16:18.140] sensor, has rain detectors, it has bump switches, so they kind of, like, put every sensor in there, [16:18.140 --> 16:24.140] which you can have. Thankfully, they gave us a lot of debug ports. So, all the models since [16:24.140 --> 16:31.880] 2019 have very similar debug ports, which gives you UART, 3.3V, SWG, and USB. And it's easy to [16:31.880 --> 16:37.000] debug, and you can root a device, or get a root shell, basically, without breaking any of the [16:37.000 --> 16:45.990] warranty seals. Cool. Now, let's talk about some of the software that EchoVax employs. So, [16:45.990 --> 16:50.770] these things run on Linux OS. They're basically just a mobile Linux server. [16:51.490 --> 16:56.810] They are using ROS, Melodic Merenia, for the robotics portion, or handling. They also have [16:56.910 --> 17:02.150] a custom, like, software suite called Medusa. And there's a couple of interesting software packages [17:02.150 --> 17:10.470] that are on the robot, including Python 2.7, which is very handy for hackers. They also use the AWS [17:10.470 --> 17:18.070] Kinesis SDK for remote camera access outside of China, and the Alibaba Alien SDK for remote camera [17:18.070 --> 17:23.210] access inside of China. So, the good thing is that there are little to no protections against [17:23.210 --> 17:28.550] rooting, which is what hackers like. So, let's briefly touch on some AI models that they're [17:28.550 --> 17:35.230] using. They use TensorFlow and OpenCV for detection. Some of the typical objects include furniture, [17:35.690 --> 17:42.830] cables, pets, and pet remains. The lawnmower also can detect small animals and face recon. But [17:42.830 --> 17:49.490] on the right is a screenshot of our favorite object that it can detect. [17:51.370 --> 17:56.350] So, just wanted to touch on firmware updates. We've been keeping track of their firmware updates [17:56.350 --> 18:02.970] since we've obtained the robot. The U.S. version was released in 2023. [18:04.890 --> 18:13.210] And they... why did that go so quick? They had been putting out monthly firmware updates [18:13.210 --> 18:20.890] since then. And they stopped in March 2024. So, we're kind of questioning if this is the end of [18:20.890 --> 18:27.570] life for this pretty new product. Their change logs are also not very informative. So, [18:27.570 --> 18:31.890] we have a theory that they're dropping device support very quickly, which is unfortunate. [18:33.330 --> 18:40.410] So, the mobile app structure, there's a... there's like a core app, the EchoVax home app. [18:40.790 --> 18:46.590] And then when you add robots, they're... plugins are downloaded dynamically every time you add [18:46.590 --> 18:53.350] one to your account. So, now we'll talk about security and privacy. So, when we first started [18:53.350 --> 18:58.030] researching EchoVax robots, we wanted to see if they had like a bug bounty program. And [18:58.590 --> 19:03.630] this is the only page that we found for their security program. They claim that they have like [19:03.730 --> 19:08.510] a public bulletin board if you report bugs to their just kind of email address. They want you [19:08.510 --> 19:14.930] to email bugs to them, which is not like a secure method to do that generally. So, yeah, there's no [19:14.930 --> 19:19.270] real collaborative bug bounty program. And they don't respond to our reports or emails. They [19:19.270 --> 19:27.450] just kind of ignore us. Some bugs are silently patched, we've noted. But their privacy policy, [19:27.450 --> 19:32.190] it doesn't... there's no guarantees that the data stays in your locale, which is kind of scary. [19:33.470 --> 19:39.970] Regional AWS services are used for the EU and US and China, of course. Some photos and videos [19:39.970 --> 19:45.450] are sent to Ali cloud video for AI analysis in certain models. They claim that you have to opt [19:45.450 --> 19:50.730] in. I'm not sure if they honor that, but more research is needed. But of course, lots of [19:50.730 --> 19:56.730] telemetry data is collected, as with most IoT devices these days. So, what are we concerned [19:56.730 --> 20:02.450] about? These vacuums have microphones and cameras. So, can they be enabled remotely without user [20:02.450 --> 20:08.830] notice? And where's the data sent to? And, of course, we need to be concerned with AI and [20:08.830 --> 20:15.450] privacy. So, why do these robots need face recon AI models? And is this telemetry data being used [20:15.450 --> 20:27.210] to train their AI? So, after Dennis' DEF CON talk last year about Roborock vacuums, they posted [20:27.210 --> 20:33.070] this really interesting blog post titled, Can Robot Vacuum Cameras Be Hacked? And they claim [20:33.070 --> 20:41.830] that their cameras are, like, encrypting all data gathered by the device. But who knows? [20:43.090 --> 20:48.890] So, they post a bunch of certifications from Tube Rhineland, which is... that costs quite a bit of [20:48.890 --> 20:54.190] money. And they claim to be meeting and exceeding all standards. They even have, like, a splash [20:54.190 --> 21:00.870] screen when you load their mobile app, claiming that they meet ISO standards. Again, not in line [21:00.870 --> 21:09.110] with our findings, which we will talk about now. So, data harvesting. The mobile apps and the [21:09.110 --> 21:14.710] just a lot of communication with the EchoVac servers. Their key data collection endpoints [21:14.710 --> 21:19.850] are called Big Data and Data Upload. So, it's not like they're hiding what they're doing. [21:19.850 --> 21:25.430] They're pretty upfront about it. So, some example of telemetry data that's collected are live [21:25.430 --> 21:31.670] coordinates of the robot location in your home. Wi-Fi access points, network data, and additional [21:31.670 --> 21:37.990] debug information is sent to EchoVac servers if the robot gets stuck somewhere. And possibly AI [21:37.990 --> 21:43.590] pictures, even if not opted in. So, what are they retaining in their cloud? Maps and pictures are [21:43.590 --> 21:50.090] stored in a NoSQL database. So, anyone who knows the object ID of the map can access that data. [21:50.090 --> 21:55.610] There's no access controls on these points of information, which is... I don't know. I don't [21:55.610 --> 22:00.370] want random people with an EchoVacs account to be able to see a map of my house. The maps [22:00.370 --> 22:06.730] associated with the robots, they seem to remain on servers, even if you do a factory reset or [22:06.730 --> 22:11.250] repair the device to a different account. Also, deleting your actual EchoVacs account has no [22:11.250 --> 22:17.770] effect. The map remains indefinitely on their servers, even if you supposedly remove all of [22:17.770 --> 22:27.270] your information from your account. So... oh, what's wrong? Oh, sorry. Skipped over one point. [22:27.810 --> 22:33.890] Oh, the JWTs that are used for authentication are also... they also remain valid after you delete [22:33.890 --> 22:38.130] your account. So, you can continue using your account, even though you deleted it. [22:39.310 --> 22:44.070] And access to the robot is still possible. So, not ideal security. [22:45.170 --> 22:50.370] So, what are they storing on the device? There's a user data partition, and it's not encrypted, [22:50.370 --> 22:55.730] of course. Why would they encrypt that? There's lots of logs, configs, maps, and pictures that [22:55.730 --> 23:01.270] are stored on this partition, including the live video pin, which is stored in an MD5 hash, [23:01.270 --> 23:07.710] and the robot lawnmower pin, which is stored in plain text. There's also Wi-Fi credentials [23:07.710 --> 23:12.610] and your neighbor's Wi-Fi access points. So, they're kind of just mapping the whole world [23:12.610 --> 23:20.290] with their robot vacuums. There's also the HelloYiku traffic logs, which are... that's their [23:20.290 --> 23:26.570] voice assistant. So, keeping track of what you say to your robot. So, always keep in mind that [23:26.570 --> 23:31.130] if you're selling a used device, that even if you factory reset it, there's a risk to your privacy. [23:32.110 --> 23:39.410] And, additionally, Flashware leveling will always be a problem, but that's for a different talk. [23:39.990 --> 23:48.210] So, one of our big findings was that they did not configure their TLS properly. So, the EchoVax [23:48.210 --> 23:53.410] home app mobile application correctly checks certificates, but the robot-specific plugins [23:53.410 --> 24:00.410] don't always do that. So, the plugins sometimes accept self-signed certificates, which is very [24:00.410 --> 24:06.710] risky to use on an insecure Wi-Fi network, like at an airport, hotel, or the DEF CON open Wi-Fi. [24:06.710 --> 24:13.970] Please don't do that. There's no warning or error shown in the app. And this traffic [24:13.970 --> 24:19.050] will leak your authentication tokens and will allow the attacker to have access to your account [24:19.050 --> 24:25.870] for up to seven days and access to video feeds, like everything. Here's an example of the traffic [24:25.870 --> 24:33.750] that we were able to intercept. We've redacted the authentication token just for good measure. [24:35.290 --> 24:41.310] And, additionally, they misconfigured TLS in their robots themselves as well. The MQTT and TLS [24:41.310 --> 24:49.150] connections, they accept self-signed certificates on some devices, which allows for man-in-the-middle [24:49.150 --> 24:57.910] attacks and over the OTA updates can be injected. The tool that we used for this is CertMidim by [24:57.910 --> 25:05.890] Oppo Oxman. I highly recommend it. It's pretty fun. And this is partially one of the reasons [25:05.890 --> 25:11.490] why this is happening. They are running bash scripts from the robot with no check certificate [25:11.490 --> 25:21.710] on WGIT. Not ideal. So, another thing that we found was that the robots have audio warnings [25:21.710 --> 25:25.630] when the camera is accessed from the mobile app at the start of access and every five minutes [25:25.630 --> 25:33.350] afterwards. A sound file is played. So, the problem is that local sound files are stored on the data [25:33.350 --> 25:38.390] partition, which isn't encrypted and can just generally be accessed. So, the sound files can [25:38.390 --> 25:47.270] be deleted and replaced. So, we can replace the warning audio with an empty file. So, nothing [25:47.270 --> 25:51.190] will happen when you access a live video feed, which we'll tell you why that's a huge problem [25:51.190 --> 26:02.630] in a second. So, this finding was reported at CCC last year, but they fixed it and then we broke it [26:02.630 --> 26:08.010] again. So, we're going to tell you about it again. So, the app allows for live video and audio access [26:08.010 --> 26:14.170] on the robot and this functionality is provided by AWS Kinesis. The owner and shared users of the [26:14.170 --> 26:20.310] EchoVax account can access this feature. It is protected by a PIN and the PIN will be asked for [26:20.310 --> 26:25.770] before connecting and it can only be changed and reset by the account owner and the reset requires [26:25.770 --> 26:32.690] account credentials. So, here's how the PIN works. Mobile app will ask the user for the PIN. [26:33.430 --> 26:39.030] The EchoVax cloud will act as a kind of broker. So, now we ask the robot, hey, [26:39.030 --> 26:44.010] does this PIN hash match with your local hash that's stored on the robot? If yes, [26:44.010 --> 26:49.550] the robot decides that it is correct, sends that response to the mobile app, [26:49.550 --> 26:58.670] and then the WebRTC session over AWS Kinesis will be started and both will join the AWS Kinesis [26:58.670 --> 27:05.050] session. So, what happens if the PIN is incorrect? We go through that same process, [27:05.050 --> 27:18.790] but with an incorrect PIN. Sorry, I don't know how to use PowerPoint. Okay. So, [27:30.790 --> 27:36.910] okay. Sorry about that. Okay. So, we asked ourselves, [27:36.910 --> 27:43.290] are the PIN verification and WebRTC session tied together? So, [27:43.290 --> 27:48.790] why is it... this is truly annoying. Why is it doing this? [27:53.100 --> 27:56.840] Okay. Sorry. Animations have a mind of their own right now. [27:56.840 --> 28:01.220] Turn off the animations. Oh. [28:01.560 --> 28:07.240] It's fine. Just go to animation. It's slides by themselves. I can't stop it. [28:08.680 --> 28:13.320] This is entirely automated. There's like a button that's pressed down right now automatically. [28:13.980 --> 28:15.300] Sorry for that. [28:25.750 --> 28:28.410] You need to turn animations off. I don't know how to. [28:35.100 --> 28:37.480] Okay. No, it's not. [28:45.880 --> 28:49.700] Anyway, the takeaway message here is we don't know why the animations are broken, but [28:50.760 --> 28:54.980] basically it doesn't matter if the PIN is correct or not correct. You can convince the app that the [28:54.980 --> 28:59.180] PIN is still correct and we'll just establish a session. And we have a demo here. [29:03.470 --> 29:06.090] Do you know how to disable it? Sorry. [29:20.230 --> 29:23.270] Dennis, disable the track. Sorry, that's where it worked before. [29:35.320 --> 29:39.900] Oh, my God. Why is it going automatically? Did everyone see that? [29:44.220 --> 29:48.340] We're just trying the slideshow again. [29:50.120 --> 29:51.300] I mean, they're fine. [29:56.760 --> 29:58.600] That starts from the beginning. [30:06.070 --> 30:10.170] Okay, we have automated slides for some reason, so we're just going to work with it. [30:10.170 --> 30:15.370] Okay, we can't work with this. Why is this happening? [30:15.370 --> 30:17.470] This is really awful. [30:33.100 --> 30:36.980] Okay, now it's working. Okay. Trust Microsoft. [30:38.300 --> 30:45.320] Sorry about that. Okay. So, right. So, as we were trying to go through... [30:48.920 --> 31:04.970] Oh, my God. Okay. So, we're trying to verify the PIN, but the PIN is incorrect. [31:04.970 --> 31:11.210] So, are these tied together? The WebRTC session. So, can we intercept this request [31:11.910 --> 31:17.910] or the response that PIN is incorrect and tell the app that the PIN is actually correct? [31:18.170 --> 31:22.630] And the answer was, yes, we were able to do that. So, now we have a malicious session. [31:22.930 --> 31:29.450] And we have an AWS Kinesis stream. So, can we bypass that all together and just patch [31:29.450 --> 31:34.350] the PIN query out of the app? And again, yes, we were able to do that. But we just want to make it [31:34.350 --> 31:39.230] abundantly clear that this is an issue with Echovax's implementation. This is not an issue [31:39.230 --> 31:47.170] with AWS. So, don't sue us, AWS, please. So, in short, the PIN protection is implemented in the [31:47.170 --> 31:52.030] app, but it's client-based authentication and ACL enforcement. So, the robot doesn't keep track of [31:52.030 --> 31:57.370] successful authentications. The log of the video stream access relies on the honesty of the app. [31:57.370 --> 32:02.970] And this is really bad in combination with the TLS issues that we just touched upon. And it's [32:02.970 --> 32:07.710] even worse if the sound files have been tampered with. So, here's just a video demo. This was [32:07.710 --> 32:15.170] reported in 2023. An unsuccessful fix was pushed. Some plugins were updated and no firmware fixes, [32:15.170 --> 32:22.450] which is where, like, the real problem was. So, we can downgrade the app with a bad plugin and [32:22.450 --> 32:27.210] it still works. So, here's just a quick video demo. This is just Burp Suite. We have some find [32:27.210 --> 32:33.390] and replace queries to simplify it. We enter a wrong PIN, 111, a couple of times. [32:34.370 --> 32:40.450] Not the right PIN. So, we continue. Then we enable our find and replace queries in Burp Suite, [32:41.470 --> 32:46.230] enter again the wrong PIN, and we are dropped into a video streaming session [32:46.970 --> 32:53.810] and successfully bypass the PIN mechanism. And here we are. [32:55.490 --> 32:57.030] Cool. So? [32:58.530 --> 33:02.350] All right. So, let's talk about free lawnmowers. Who wants a free lawnmower? [33:03.030 --> 33:09.530] Okay. Now you learned how. Actually, please don't. We're not free. So, the ECHO OS G1 has [33:09.530 --> 33:15.110] an anti-theft mechanism where, basically, if you pick up the robot and you, you know, you need [33:15.110 --> 33:19.930] and you don't trigger the alarm, basically, you need to enter a PIN to unlock it. As an owner, [33:19.930 --> 33:22.850] you can also enable alarms. So, basically, if you pick it up or someone picks it up, [33:22.850 --> 33:26.970] some alarm will go off. The problem here is, well, the PIN is implemented, basically, [33:26.970 --> 33:32.010] the SOC in the Linux operation system and the PIN is stored just on a plain text file on the robot. [33:32.530 --> 33:38.170] The thing, generally, with lawnmowers is that other lawnmowers have the same issue. [33:38.310 --> 33:44.570] So, as a general recommendation, do not keep your mowers outside unprotected. And, you know, [33:44.570 --> 33:49.630] we kind of hope that ECHOVACS and other vendors would somehow find a more secure location for the [33:49.630 --> 33:54.590] PIN, for example, like in one of the MCUs, so to kind of, you know, have a better locking mechanism. [33:55.150 --> 34:00.410] So, let's talk about our main point today and that's the Bluetooth remote code execution, [34:00.410 --> 34:05.070] which we found at some point last year, which we were hoping that we would patch until today, but [34:05.570 --> 34:11.570] we didn't. So, what's it about? So, newer vacuum robots and all lawnmowing robots so far [34:11.570 --> 34:15.970] use BLE, Bluetooth LE, basically, for their provisioning. So, if you initially, like, [34:15.970 --> 34:21.570] pushed your Wi-Fi credentials onto it, they have a mechanism for that. For lawnmowers, [34:21.570 --> 34:25.450] in particular, the Bluetooth is always active because we use it as a fallback way to control [34:25.450 --> 34:30.010] them. And for vacuums, it's typically active for the first 20 minutes after booting, [34:30.010 --> 34:36.010] and every time they reboot in the middle of the night for, like, memory cleaning purposes. [34:36.110 --> 34:39.350] There's also a different way to kind of force a robot to reboot remotely, but we don't want to [34:39.350 --> 34:45.870] talk about that yet. So, the communication between the app and the robots over Bluetooth is done [34:45.870 --> 34:51.410] by the GAT protocol, basically. And the payload is encrypted with a static AES key, which is [34:51.410 --> 34:56.250] something similar, it's not exactly that one, but it's like 1, 2, 3, 4, 5, 6, 7, 8, something [34:56.970 --> 35:02.930] of that nature. And the input validation of whatever happens with the data afterwards is, [35:02.930 --> 35:08.070] let's say, not great. And that's kind of bad if you think about that they kind of say, like, [35:08.070 --> 35:13.150] oh, hey, our robots have cameras, but trust us, because we have been certified by the truth. [35:14.190 --> 35:17.530] So, and as a quick reminder, these devices have cameras and microphones. [35:18.150 --> 35:23.090] So, let's create a payload. First, what do we want to execute is, basically, we want to play [35:23.090 --> 35:28.790] the boot music, which you heard before, on the robot. So, we take the command which causes that, [35:28.790 --> 35:34.830] be embedded in some JSON payload, and we generate an encrypted payload. The payload looks something [35:34.830 --> 35:43.130] like this. Basically, there's a bunch of hack stuff. What happens if you send it to one of the [35:43.130 --> 35:50.010] payloads, it will decrypt it. It will basically extract one particular argument from there, [35:50.010 --> 35:55.450] and will generate a command line and put the argument which is extracted into the environment [35:55.450 --> 35:59.170] variable there. So, the command line which we get at the end of the day is something like this. [35:59.170 --> 36:03.450] As you see, we basically use command injection there. And then it will happily execute a thing [36:03.450 --> 36:09.890] as root. And we tested this attack basically over a 50 meters distance and even longer, [36:09.890 --> 36:13.990] 100 meters for lawn mowers because they have a more powerful Bluetooth antenna. [36:14.290 --> 36:22.430] And we have a demo here for the G1, which is the lawn mowing robot. What we do here is we send the [36:22.430 --> 36:28.090] payload from an Android phone, and you will see that we will get a session back in a second. So, [36:28.090 --> 36:32.730] we're sending a payload now. You saw it connected back to us, a reverse shell. And now we can type [36:32.730 --> 36:38.190] on the robot, and, you know, we see that we are root. We see what kind of version we're running, [36:38.190 --> 36:44.430] so the robot basically connected back to us. We have also another demo, you know, [36:44.430 --> 36:50.530] more of the robot, but I will skip that out of timing issues. And we have also a live demo [36:50.530 --> 36:55.950] potentially, which takes one. Okay, I skipped that too. I will do it. Okay, we have three minutes [36:55.950 --> 37:03.330] left. So, what can you do with that if you have a BLE code execution thing? So, what we thought [37:03.330 --> 37:07.490] about is like, hey, how can we chain that? So, generally, if you live in a very close populated [37:07.490 --> 37:11.150] area, there might be more Ecovacs users, because especially like Ecovacs is like one of the market [37:11.150 --> 37:15.790] leaders. So, what we can do is like, we just attack an initial object, like a vacuum robot, [37:15.790 --> 37:20.290] sorry, lawnmowing robot, put a payload onto that, and then the robot has all the tools which it [37:20.290 --> 37:24.490] needs to talk to other devices. So, it can infect the next robot, which has some distance, and that [37:24.490 --> 37:28.630] one can infect again the next one. And then it becomes a problem, because the third one might [37:28.630 --> 37:34.050] start to infect back the lawnmower. So, we just had it as a proof of concept. We didn't want to [37:34.050 --> 37:38.430] have a whole routing protocol to figure it out. So, you know, sorry about that. [37:39.230 --> 37:44.330] Let's talk about routing very, very quickly. So, there is a lot of countermeasures in there, [37:44.330 --> 37:48.550] in the software. They use a lot of XOR and byte shifting to hide strings. They have a lot of [37:48.550 --> 37:52.930] anti-debugging features. For example, they detect a deep reload in debuggers. And they use, for some [37:52.930 --> 37:58.770] of the devices, not all of them, Secure Boot and Android Verified Boot. So, to get a root shell, [37:58.770 --> 38:02.670] well, you can connect to the UART, but the problem is every device has a different password, [38:02.670 --> 38:06.770] and it's hard-coded. Sorry, it's not hard-coded. It's set at boot time. [38:07.370 --> 38:11.850] And the function is very obfuscated. But there's one particular tool which generates that, [38:11.850 --> 38:15.270] and this is how it's basically generated. So, they take a bunch of, like, random MAC addresses [38:15.270 --> 38:18.510] probably from the developer's computer at some point, put the serial number in there, [38:18.510 --> 38:22.870] the model number, create a SHA-256, and then make it base64, and that's the root password. [38:23.670 --> 38:27.090] If you want to generate it for your own robot, there's a tool. You can just go there, [38:27.090 --> 38:30.970] just enter your serial number. It will kind of give you a password. For firmware updates, [38:30.970 --> 38:35.590] they're encrypted but not signed. The key is kind of dynamically generated, [38:35.590 --> 38:40.090] and it was kind of very difficult to reverse-engineer it, but it's basically AS128. [38:40.330 --> 38:45.210] And this is the format string which we use to generate the key, which is someone's random [38:45.210 --> 38:49.350] email address. So, we use a bunch of random stuff, mix it together, and that's the AS key. [38:50.390 --> 38:55.490] So, as mentioned, some root file systems are not protected, so we can just modify them, [38:55.490 --> 39:00.490] especially on X1 and Z1. We can just repack it and have our own system. One thing which [39:00.490 --> 39:05.690] was kind of interesting for us is we can get persistence in autostart. We left the debugging [39:05.690 --> 39:10.170] feature on some of the devices where if there's autostart folder exists on data which is not [39:10.170 --> 39:14.130] protected, you can put a shell file into it, it will just happily execute it next time. [39:14.230 --> 39:20.010] So, it's not protected in any way, so it's persistent forever. The problem is, for whatever [39:20.010 --> 39:24.030] reason, on some of the devices we disabled it, on some of them not. I mean, it's kind of random. [39:24.670 --> 39:30.230] If you want to be persistent over factory sets, well, they only delete the files. So, [39:30.230 --> 39:35.070] the thing you can do is, basically, because we don't recreate a file system, just make files [39:35.070 --> 39:41.490] immutable with Chatter, and that way we will stay there forever. I will talk really quick about the [39:41.490 --> 39:46.670] takeaway lessons. First, can you rely on certifications? No, you can't. Bad news. [39:46.950 --> 39:51.830] If you have vulnerable devices, like the lawnmower, make sure that you turn it off until [39:51.830 --> 39:57.390] they push a fix. Don't use them. Turn them off if you don't use them. For devices which don't [39:57.390 --> 40:02.330] have BLE, just don't update them if you want to keep root access. For vulnerable apps, don't [40:02.330 --> 40:08.190] connect to Defcon Open. Bad idea. Use devices. Be very careful with used devices. They might [40:08.190 --> 40:12.870] come with a compromised firmware. It's very difficult to verify. If you do factory set [40:12.870 --> 40:18.190] before selling, do that definitely, but be aware that it might not help against everything. [40:19.190 --> 40:23.410] One thing, choose your partners wisely. You can use the Sphinx as stalker tools. I will skip that [40:23.410 --> 40:29.370] real quick and just finish with the summary. We have root access on most of the released, or I [40:29.370 --> 40:33.490] think actually all of the released Ecovacs robots. We can use the UART interface and authentication [40:33.490 --> 40:38.610] to get into the device. We can use the BLE remote code execution right now to get initial access [40:38.610 --> 40:44.990] on devices remotely, hopefully your own. You can get persistence and run some custom firmware on [40:44.990 --> 40:50.050] some of the devices which don't have protections. We were able to verify the claims of the vendors [40:50.610 --> 40:57.310] and we found a lot of security and privacy issues. This applies to the app, robots, cloud, [40:57.310 --> 41:02.550] and the certification for whatever reason didn't prevent that. I'm not a firm believer in [41:02.550 --> 41:09.310] certifications nowadays. But this allows you to look further into IoT devices and into AI, [41:09.310 --> 41:14.370] and so hopefully this will be for our security, for everyone's security. Some quick [41:14.370 --> 41:19.030] acknowledgements. I would like to thank Daniel, Tris, Azuran, Timster, and Apo. And if you have [41:19.030 --> 41:23.330] any questions, I think we have time. Maybe we have time. Actually, okay, you can ask those [41:23.330 --> 41:27.990] questions over here. Basically, don't. Sorry for the problems. Thank you for being here. [41:28.590 --> 41:33.230] If you have any other questions, like a remote, there's our email addresses. Feel free to reach [41:33.230 --> 41:35.930] out. Yeah. Thank you very much.