1 00:00:00,000 --> 00:00:01,020 Hello, everyone. 2 00:00:01,020 --> 00:00:05,960 Welcome to our talk about the reverse engineering of and hacking of Equivax robots. 3 00:00:06,020 --> 00:00:07,800 Thank you for being here at this time. 4 00:00:07,960 --> 00:00:11,120 I know it's kind of loud, but I hope we figured it out. 5 00:00:11,180 --> 00:00:14,600 So before we start, I would like to introduce ourselves. 6 00:00:14,600 --> 00:00:20,660 So first, I'm Dennis, I'm a security researcher, or, you know, also a hardware hacker. 7 00:00:21,200 --> 00:00:25,220 And I'm primarily looking into wireless and embedded security and privacy. 8 00:00:25,220 --> 00:00:28,460 So I try to look at any device which kind of is interesting for me. 9 00:00:28,460 --> 00:00:31,420 So I try to reverse engineer everything which is kind of basically around us. 10 00:00:32,100 --> 00:00:36,560 You might know me as a vacuum and IoT collector. 11 00:00:36,560 --> 00:00:42,940 So I have over 600, 700 IoT devices and 60 or 70 vacuum robots to start counting. 12 00:00:43,480 --> 00:00:48,260 And my general goal is to get root access and root vacuum robots. 13 00:00:48,600 --> 00:00:57,980 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. 14 00:01:00,600 --> 00:01:01,480 Cool. 15 00:01:01,480 --> 00:01:03,000 Hi, I'm Braylin. 16 00:01:03,420 --> 00:01:06,820 I hack things for the Leviathan Security Group during the day. 17 00:01:06,820 --> 00:01:10,920 But this talk is entirely personal research and does not reflect their views. 18 00:01:11,420 --> 00:01:15,720 My general focus has been application security and APIs for quite a few years now. 19 00:01:15,720 --> 00:01:18,580 But I started robot hacking during COVID. 20 00:01:18,580 --> 00:01:23,240 Just for fun, I took apart a broken robot vacuum and tried to hack it. 21 00:01:23,240 --> 00:01:25,700 So now I am hardware hacking for fun. 22 00:01:25,840 --> 00:01:29,040 Mostly looking at robots, cameras, and smart locks. 23 00:01:30,880 --> 00:01:34,060 All right, so let's talk about the goals of this talk. 24 00:01:34,060 --> 00:01:40,540 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. 25 00:01:40,540 --> 00:01:44,160 We want to give you some overview on how we did vacuum robot hacking. 26 00:01:44,560 --> 00:01:48,200 We want to show you the vulnerabilities and how to find them. 27 00:01:48,220 --> 00:01:53,340 And typically, our general goal is to get somehow root access without having to disassemble the device. 28 00:01:54,060 --> 00:01:56,880 So there have been some past research on that. 29 00:01:56,880 --> 00:02:03,020 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. 30 00:02:03,020 --> 00:02:10,840 So we basically over the last five, six years, we kind of like, you know, use the topic and it keeps giving. 31 00:02:10,840 --> 00:02:14,140 So if you find your niche product, just go ahead with that. 32 00:02:14,140 --> 00:02:15,840 This will be very rewarding. 33 00:02:16,120 --> 00:02:17,560 Some disclaimers. 34 00:02:17,840 --> 00:02:21,720 So we don't claim that vendors are using the sensors to spy on you. 35 00:02:21,720 --> 00:02:24,240 But, you know, they could technically do that. 36 00:02:24,800 --> 00:02:28,780 The other thing which we do is like we primarily cover physical attacks or proximity attacks. 37 00:02:29,180 --> 00:02:32,340 So we don't necessarily like attack devices through the cloud. 38 00:02:33,460 --> 00:02:37,060 One thing which we want to stress always is like many vendors have problems. 39 00:02:37,060 --> 00:02:40,060 And it's basically independent of origin, size, market share. 40 00:02:40,060 --> 00:02:43,460 But in this talk, we especially like focus on Ecovacs. 41 00:02:44,280 --> 00:02:47,580 And all this research is basically part of private projects. 42 00:02:47,580 --> 00:02:50,920 So there's no sponsorship by companies, there's no organizations behind that. 43 00:02:51,280 --> 00:02:55,120 Any statements are our own opinion, and we're not representing anyone. 44 00:02:55,860 --> 00:02:58,500 So what kind of devices are we covering in this talk? 45 00:02:58,500 --> 00:03:03,540 So basically, we're covering Ecovacs robots, which you see on the left side, up to the X2. 46 00:03:03,800 --> 00:03:09,120 And we're also covering lawn mowing robots and the air purifiers, so the AirBot series. 47 00:03:09,580 --> 00:03:17,240 Technically, all the stuff which we do also applies to Yeedi, because Yeedi is basically a sub-brand of Ecovacs. 48 00:03:17,240 --> 00:03:22,540 And we only focus on devices which run Linux, so no dumb robots, so only cool stuff. 49 00:03:23,100 --> 00:03:24,360 So about the Stark. 50 00:03:24,360 --> 00:03:27,880 Well, this is basically a result of five years of research and experiments. 51 00:03:27,880 --> 00:03:32,100 And technically, we're not the first ones or the only ones who do research on Ecovacs. 52 00:03:32,440 --> 00:03:35,160 The vendor knows about most of our findings. 53 00:03:35,180 --> 00:03:37,920 They tried to fix some of them, but failed. 54 00:03:37,920 --> 00:03:40,240 So they failed, very sadly. 55 00:03:40,640 --> 00:03:45,860 And for other vulnerabilities, which are really, really, really bad, they, for whatever reason, have chosen to ignore them. 56 00:03:46,600 --> 00:03:53,060 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. 57 00:03:53,060 --> 00:03:56,040 We're like, oh, wait, yeah, we know about this vulnerability, we know about this vulnerability. 58 00:03:56,360 --> 00:03:59,980 So there's probably way more people out there who know about that stuff. 59 00:04:00,940 --> 00:04:03,360 Typically, that kind of things are like a collaborative effort. 60 00:04:03,360 --> 00:04:13,520 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. 61 00:04:14,300 --> 00:04:16,300 So let's start with the motivation. 62 00:04:16,300 --> 00:04:18,720 Why do we want to root devices at all? 63 00:04:18,820 --> 00:04:23,620 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. 64 00:04:24,040 --> 00:04:29,200 The other thing is, you want to obviously stop the devices from constantly phoning home. 65 00:04:29,700 --> 00:04:36,660 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. 66 00:04:37,320 --> 00:04:40,740 Also, one thing which becomes more and more important is, like, the rate to repair. 67 00:04:40,740 --> 00:04:47,820 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. 68 00:04:48,680 --> 00:04:54,900 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. 69 00:04:55,960 --> 00:04:58,360 So why do we, don't we trust the companies? 70 00:04:58,540 --> 00:05:03,920 So one of the things with IoT devices is they are connected to your home network, and they have internet all the time. 71 00:05:04,680 --> 00:05:08,780 The communication to the cloud is typically encrypted, and you have no idea what they're actually sending out. 72 00:05:09,540 --> 00:05:14,400 From our own experience, we know that developing secure hardware and software is extremely difficult. 73 00:05:15,100 --> 00:05:18,460 And in the past, we caught vendors, basically, with some shady behavior. 74 00:05:19,280 --> 00:05:25,020 The other thing is, these devices, I mean, they not only have cameras, but nowadays, they more and more have microphones. 75 00:05:25,020 --> 00:05:26,880 So, and the question is, like, why do we need that? 76 00:05:27,780 --> 00:05:34,140 Generally, if you have cameras, well, there's some risk with that, and devices might store pictures indefinitely. 77 00:05:34,460 --> 00:05:39,820 And from our own research, we know, like, that some of them do, and both in the cloud and locally. 78 00:05:40,620 --> 00:05:47,980 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. 79 00:05:47,980 --> 00:05:53,940 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. 80 00:05:54,880 --> 00:05:59,940 So basically, root access is more or less the only way to kind of figure out that the device is clean. 81 00:06:01,000 --> 00:06:13,820 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. 82 00:06:14,160 --> 00:06:20,760 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. 83 00:06:20,760 --> 00:06:26,500 And one of the rumors was that Amazon was trying to buy iRobot, not because of the great robots, but because of the data. 84 00:06:27,320 --> 00:06:38,180 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. 85 00:06:39,200 --> 00:06:44,260 So, um, I want to give you, like, a very brief overview of our hacking journey so far. 86 00:06:44,400 --> 00:06:47,640 And for me personally, everything started back in 2017. 87 00:06:47,740 --> 00:06:57,000 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. 88 00:06:57,100 --> 00:07:02,380 And the over-the-air update system was completely broken, so we were able to just push, like, local firmware updates. 89 00:07:03,120 --> 00:07:06,940 Then it became a little bit more complicated, so the vendors kind of locked on things. 90 00:07:07,060 --> 00:07:15,420 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. 91 00:07:15,860 --> 00:07:24,820 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. 92 00:07:24,820 --> 00:07:29,340 And this had the very, very early firmware with the bug symbols in there, which was very, very helpful. 93 00:07:29,940 --> 00:07:40,000 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. 94 00:07:40,040 --> 00:07:44,260 But one of the problems was the hardware was extremely weak, so it wasn't really interested for us. 95 00:07:44,480 --> 00:07:48,340 And as a result, we never published the results on that, because, I mean, why would we? 96 00:07:48,960 --> 00:07:56,300 So, over time , we had to develop new methods, because it became more and more difficult to route Roborock and Xiaomi devices. 97 00:07:56,660 --> 00:08:03,700 So, in 2021, I released a method for newer, like, Roborock devices, and also Dreamy. 98 00:08:03,700 --> 00:08:10,740 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. 99 00:08:10,940 --> 00:08:13,840 And it became, again, complicated in 2023. 100 00:08:14,440 --> 00:08:21,320 We were looking again at Dreamy, Roborock, Navel, and Shark, and figured out a secure bypass for, like, some bootloader magic. 101 00:08:21,760 --> 00:08:27,800 The issue with all of these is finding new routing methods become very annoying, and it takes a long time. 102 00:08:27,800 --> 00:08:30,120 For the last one, we need, like, basically, like, multiple months. 103 00:08:30,120 --> 00:08:33,900 So, we tried to find, like, a new vendor, which we, you know, would attack again. 104 00:08:34,040 --> 00:08:36,080 So, we went back to EchoVax. 105 00:08:36,560 --> 00:08:40,540 And by that time, EchoVax started to release more and more powerful devices. 106 00:08:41,020 --> 00:08:44,660 And they were very similar to other devices, but they were lower priced. 107 00:08:44,660 --> 00:08:45,860 So, this is, like, perfect. 108 00:08:46,000 --> 00:08:50,180 So, one of the first devices which I analyzed back then was the D-Bot X1. 109 00:08:50,740 --> 00:08:56,960 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. 110 00:08:57,220 --> 00:09:01,960 So, this was a perfect target for future endeavours with that company. 111 00:09:02,460 --> 00:09:10,400 In the penalty of that, as mentioned before, Braylin was messing with EchoVax and Yeti robots, and so it found very similar things. 112 00:09:11,080 --> 00:09:19,180 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. 113 00:09:19,220 --> 00:09:24,440 For example, Shark Robot, or, like, their contractor, they kind of just, like, we're hiding Vias and everything. 114 00:09:24,540 --> 00:09:26,720 So, they upgraded, we upgraded too. 115 00:09:26,720 --> 00:09:32,860 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. 116 00:09:33,600 --> 00:09:34,320 All right. 117 00:09:34,320 --> 00:09:38,260 So, let's talk about the EchoVax ecosystem. 118 00:09:38,480 --> 00:09:40,860 So, why are we looking at EchoVax generally? 119 00:09:40,860 --> 00:09:43,400 It turns out that this company is fairly old. 120 00:09:43,400 --> 00:09:50,180 They were founded back then in 1998 in China, and they produced initially, like, OEM vacuum cleaners. 121 00:09:50,700 --> 00:10:01,460 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. 122 00:10:01,540 --> 00:10:17,560 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. 123 00:10:18,460 --> 00:10:26,160 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. 124 00:10:26,360 --> 00:10:28,040 They have mobile air purifiers. 125 00:10:28,520 --> 00:10:31,060 They have lawn mowing robots, and they have some other products. 126 00:10:32,180 --> 00:10:33,760 So, let's take a look at the hardware. 127 00:10:33,880 --> 00:10:43,060 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. 128 00:10:43,060 --> 00:10:47,420 It's responsible for navigation, mapping, and connectivity, so it's connected to the storage. 129 00:10:47,420 --> 00:10:50,460 It has, like, access to sensors like LiDAR, camera, microphones. 130 00:10:50,740 --> 00:10:55,240 It does, like, the connectivity, so Wi-Fi, Bluetooth, and Ultra Wideband in some devices. 131 00:10:55,360 --> 00:11:05,300 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. 132 00:11:05,300 --> 00:11:14,200 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. 133 00:11:15,420 --> 00:11:21,300 All right, so one of the first devices which I saw, I mentioned back in 2018, was the D-Bot 900 series. 134 00:11:21,300 --> 00:11:29,340 This was, like, basically like a rocket ship with one core, 128 megabytes of RAM, and 256 megabytes of NAND flash, so not great. 135 00:11:29,580 --> 00:11:37,960 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. 136 00:11:39,100 --> 00:11:54,100 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, 137 00:11:54,100 --> 00:11:57,040 because we basically could repeat our knowledge, like, on newer models. 138 00:11:57,880 --> 00:12:07,460 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. 139 00:12:07,460 --> 00:12:15,000 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. 140 00:12:15,760 --> 00:12:33,220 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. 141 00:12:33,740 --> 00:12:41,540 They use 2GB of RAM, 512MB of SPI flash, and a GD32 MCU, which is basically like a copycat SDM32. 142 00:12:41,860 --> 00:12:47,140 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. 143 00:12:47,400 --> 00:13:00,840 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. 144 00:13:01,880 --> 00:13:03,380 So, let's talk about the sensors. 145 00:13:04,100 --> 00:13:06,760 Well, the X1 has a LiDAR sensor, which is kind of cool. 146 00:13:06,760 --> 00:13:11,500 It has a microphone array, for whatever reason, or for the voice assistant, but, I mean, why would you use it? 147 00:13:12,160 --> 00:13:16,080 And it has camera and line lasers, so basically to detect objects in front of it. 148 00:13:16,780 --> 00:13:23,420 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. 149 00:13:24,380 --> 00:13:31,220 A device which is very, very similar is the AirBot Z1, which we call the SpyBot, out of reasons. 150 00:13:31,240 --> 00:13:32,980 It was released last year. 151 00:13:33,200 --> 00:13:38,760 It's based on the same design, like, as the X1, but it has one additional camera and six microphones. 152 00:13:39,140 --> 00:13:43,760 And the features of that is, well, you can use it as a Bluetooth speaker, which follows you. 153 00:13:44,160 --> 00:13:54,280 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. 154 00:13:54,580 --> 00:14:01,340 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. 155 00:14:02,000 --> 00:14:06,260 The cool thing here is, you basically get two robots for the price of one. 156 00:14:06,320 --> 00:14:14,360 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. 157 00:14:14,380 --> 00:14:23,760 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. 158 00:14:24,240 --> 00:14:26,100 So, very efficient. 159 00:14:26,860 --> 00:14:30,540 So, let's talk about the lawn mowing robots. 160 00:14:30,720 --> 00:14:37,660 They have been released in 2023 in Europe, and this year, I think, recently post-CES, this year in the US. 161 00:14:38,320 --> 00:14:45,400 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. 162 00:14:45,600 --> 00:14:49,680 And they use ultra-wide-band beacons to kind of navigate. 163 00:14:50,100 --> 00:14:57,180 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. 164 00:14:57,580 --> 00:15:01,500 And again, they have a remote view and patrol function, so they will patrol your garden. 165 00:15:02,420 --> 00:15:07,800 Now, you might be paranoid and say, like, wait, I don't want to, you know, accompany, like, watch my garden. 166 00:15:07,800 --> 00:15:17,780 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. 167 00:15:18,540 --> 00:15:24,900 If you ever run into the issue to reverse-engineer devices like that, be prepared that you need a lot of space. 168 00:15:25,200 --> 00:15:36,220 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. 169 00:15:36,220 --> 00:15:39,520 So, always keep track of your screws. 170 00:15:39,960 --> 00:15:54,040 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. 171 00:15:54,040 --> 00:15:58,420 So, it has a display, which you can control as its own, like, STM32-like display. 172 00:15:58,420 --> 00:16:00,960 I tried to run Doom, but it doesn't have enough flash, so... 173 00:16:02,140 --> 00:16:07,380 And also, even the knife assembly, which kind of controls, like, the cutting, it has also its own MCU. 174 00:16:08,360 --> 00:16:11,180 Sensor-wise, it has a 360-degree camera on top. 175 00:16:11,400 --> 00:16:19,040 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. 176 00:16:19,820 --> 00:16:22,820 Thankfully, they gave us a lot of debug ports. 177 00:16:22,820 --> 00:16:30,300 So, all the models since 2019 have very similar debug ports, which gives you UART, 3.3V, SWG, and USB. 178 00:16:30,740 --> 00:16:38,020 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. 179 00:16:41,430 --> 00:16:42,050 Cool. 180 00:16:42,050 --> 00:16:45,370 Now, let's talk about some of the software that EchoVax employs. 181 00:16:45,570 --> 00:16:47,910 So, these things run on Linux OS. 182 00:16:47,910 --> 00:16:50,770 They're basically just a mobile Linux server. 183 00:16:51,490 --> 00:16:56,110 They are using ROS, Melodic Merenia, for the robotics portion, or handling. 184 00:16:56,230 --> 00:16:59,430 They also have a custom, like, software suite called Medusa. 185 00:16:59,830 --> 00:17:08,910 And there's a couple of interesting software packages that are on the robot, including Python 2.7, which is very handy for hackers. 186 00:17:09,010 --> 00:17:19,770 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. 187 00:17:19,850 --> 00:17:25,410 So, the good thing is that there are little to no protections against rooting, which is what hackers like. 188 00:17:26,050 --> 00:17:29,050 So, let's briefly touch on some AI models that they're using. 189 00:17:29,050 --> 00:17:32,030 They use TensorFlow and OpenCV for detection. 190 00:17:32,410 --> 00:17:39,210 Some of the typical objects include furniture, cables, pets, and pet remains. 191 00:17:39,710 --> 00:17:42,690 The lawnmower also can detect small animals and face recon. 192 00:17:42,690 --> 00:17:49,490 But on the right is a screenshot of our favorite object that it can detect. 193 00:17:51,370 --> 00:17:54,650 So, just wanted to touch on firmware updates. 194 00:17:54,710 --> 00:17:58,770 We've been keeping track of their firmware updates since we've obtained the robot. 195 00:17:59,590 --> 00:18:00,570 The U.S. 196 00:18:00,570 --> 00:18:02,970 version was released in 2023. 197 00:18:04,890 --> 00:18:08,350 And they... why did that go so quick? 198 00:18:08,990 --> 00:18:15,310 They had been putting out monthly firmware updates since then. 199 00:18:15,310 --> 00:18:18,090 And they stopped in March 2024. 200 00:18:18,090 --> 00:18:23,890 So, we're kind of questioning if this is the end of life for this pretty new product. 201 00:18:24,270 --> 00:18:26,670 Their change logs are also not very informative. 202 00:18:26,670 --> 00:18:31,890 So, we have a theory that they're dropping device support very quickly, which is unfortunate. 203 00:18:33,330 --> 00:18:40,410 So, the mobile app structure, there's a... there's like a core app, the EchoVax home app. 204 00:18:40,790 --> 00:18:47,830 And then when you add robots, they're... plugins are downloaded dynamically every time you add one to your account. 205 00:18:48,290 --> 00:18:51,890 So, now we'll talk about security and privacy. 206 00:18:51,890 --> 00:18:57,750 So, when we first started researching EchoVax robots, we wanted to see if they had like a bug bounty program. 207 00:18:57,750 --> 00:19:02,310 And this is the only page that we found for their security program. 208 00:19:02,610 --> 00:19:08,170 They claim that they have like a public bulletin board if you report bugs to their just kind of email address. 209 00:19:08,170 --> 00:19:12,650 They want you to email bugs to them, which is not like a secure method to do that generally. 210 00:19:13,030 --> 00:19:16,690 So, yeah, there's no real collaborative bug bounty program. 211 00:19:16,690 --> 00:19:19,150 And they don't respond to our reports or emails. 212 00:19:19,150 --> 00:19:21,050 They just kind of ignore us. 213 00:19:21,410 --> 00:19:25,130 Some bugs are silently patched, we've noted. 214 00:19:25,490 --> 00:19:32,190 But their privacy policy, it doesn't... there's no guarantees that the data stays in your locale, which is kind of scary. 215 00:19:33,470 --> 00:19:38,370 Regional AWS services are used for the EU and US and China, of course. 216 00:19:38,730 --> 00:19:44,090 Some photos and videos are sent to Ali cloud video for AI analysis in certain models. 217 00:19:44,090 --> 00:19:45,970 They claim that you have to opt in. 218 00:19:45,970 --> 00:19:49,450 I'm not sure if they honor that, but more research is needed. 219 00:19:49,450 --> 00:19:54,690 But of course, lots of telemetry data is collected, as with most IoT devices these days. 220 00:19:55,290 --> 00:19:57,270 So, what are we concerned about? 221 00:19:57,410 --> 00:20:00,190 These vacuums have microphones and cameras. 222 00:20:00,530 --> 00:20:03,170 So, can they be enabled remotely without user notice? 223 00:20:03,170 --> 00:20:05,870 And where's the data sent to? 224 00:20:06,470 --> 00:20:09,530 And, of course, we need to be concerned with AI and privacy. 225 00:20:09,530 --> 00:20:13,090 So, why do these robots need face recon AI models? 226 00:20:13,330 --> 00:20:16,910 And is this telemetry data being used to train their AI? 227 00:20:18,850 --> 00:20:32,050 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? 228 00:20:32,190 --> 00:20:37,730 And they claim that their cameras are, like, encrypting all data gathered by the device. 229 00:20:37,730 --> 00:20:41,830 But who knows? 230 00:20:43,090 --> 00:20:49,410 So, they post a bunch of certifications from Tube Rhineland, which is... that costs quite a bit of money. 231 00:20:49,410 --> 00:20:52,710 And they claim to be meeting and exceeding all standards. 232 00:20:52,770 --> 00:20:58,490 They even have, like, a splash screen when you load their mobile app, claiming that they meet ISO standards. 233 00:20:58,490 --> 00:21:03,190 Again, not in line with our findings, which we will talk about now. 234 00:21:03,830 --> 00:21:05,710 So, data harvesting. 235 00:21:06,390 --> 00:21:12,770 The mobile apps and the just a lot of communication with the EchoVac servers. 236 00:21:12,770 --> 00:21:17,150 Their key data collection endpoints are called Big Data and Data Upload. 237 00:21:17,150 --> 00:21:19,850 So, it's not like they're hiding what they're doing. 238 00:21:19,850 --> 00:21:21,790 They're pretty upfront about it. 239 00:21:22,290 --> 00:21:28,250 So, some example of telemetry data that's collected are live coordinates of the robot location in your home. 240 00:21:28,250 --> 00:21:36,010 Wi-Fi access points, network data, and additional debug information is sent to EchoVac servers if the robot gets stuck somewhere. 241 00:21:36,590 --> 00:21:39,970 And possibly AI pictures, even if not opted in. 242 00:21:40,330 --> 00:21:42,690 So, what are they retaining in their cloud? 243 00:21:42,690 --> 00:21:45,450 Maps and pictures are stored in a NoSQL database. 244 00:21:45,450 --> 00:21:50,090 So, anyone who knows the object ID of the map can access that data. 245 00:21:50,090 --> 00:21:55,450 There's no access controls on these points of information, which is... I don't know. 246 00:21:55,450 --> 00:21:59,150 I don't want random people with an EchoVacs account to be able to see a map of my house. 247 00:21:59,770 --> 00:22:08,770 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. 248 00:22:08,990 --> 00:22:11,790 Also, deleting your actual EchoVacs account has no effect. 249 00:22:11,790 --> 00:22:20,290 The map remains indefinitely on their servers, even if you supposedly remove all of your information from your account. 250 00:22:21,530 --> 00:22:23,990 So... oh, what's wrong? 251 00:22:24,750 --> 00:22:26,050 Oh, sorry. 252 00:22:26,050 --> 00:22:27,270 Skipped over one point. 253 00:22:27,810 --> 00:22:34,530 Oh, the JWTs that are used for authentication are also... they also remain valid after you delete your account. 254 00:22:34,530 --> 00:22:38,130 So, you can continue using your account, even though you deleted it. 255 00:22:39,310 --> 00:22:41,750 And access to the robot is still possible. 256 00:22:41,910 --> 00:22:44,070 So, not ideal security. 257 00:22:45,170 --> 00:22:47,510 So, what are they storing on the device? 258 00:22:47,510 --> 00:22:50,910 There's a user data partition, and it's not encrypted, of course. 259 00:22:50,910 --> 00:22:52,370 Why would they encrypt that? 260 00:22:52,710 --> 00:23:06,170 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. 261 00:23:06,350 --> 00:23:10,890 There's also Wi-Fi credentials and your neighbor's Wi-Fi access points. 262 00:23:10,890 --> 00:23:14,490 So, they're kind of just mapping the whole world with their robot vacuums. 263 00:23:14,810 --> 00:23:21,390 There's also the HelloYiku traffic logs, which are... that's their voice assistant. 264 00:23:21,590 --> 00:23:24,410 So, keeping track of what you say to your robot. 265 00:23:24,990 --> 00:23:31,130 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. 266 00:23:32,110 --> 00:23:39,410 And, additionally, Flashware leveling will always be a problem, but that's for a different talk. 267 00:23:39,990 --> 00:23:46,870 So, one of our big findings was that they did not configure their TLS properly. 268 00:23:47,250 --> 00:23:55,530 So, the EchoVax home app mobile application correctly checks certificates, but the robot-specific plugins don't always do that. 269 00:23:55,630 --> 00:24:06,710 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. 270 00:24:06,710 --> 00:24:08,070 Please don't do that. 271 00:24:08,650 --> 00:24:11,070 There's no warning or error shown in the app. 272 00:24:11,890 --> 00:24:23,710 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. 273 00:24:24,490 --> 00:24:27,490 Here's an example of the traffic that we were able to intercept. 274 00:24:27,490 --> 00:24:33,750 We've redacted the authentication token just for good measure. 275 00:24:35,290 --> 00:24:40,150 And, additionally, they misconfigured TLS in their robots themselves as well. 276 00:24:40,150 --> 00:24:53,970 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. 277 00:24:55,430 --> 00:24:58,910 The tool that we used for this is CertMidim by Oppo Oxman. 278 00:24:58,910 --> 00:25:00,310 I highly recommend it. 279 00:25:00,310 --> 00:25:01,870 It's pretty fun. 280 00:25:03,570 --> 00:25:06,970 And this is partially one of the reasons why this is happening. 281 00:25:06,970 --> 00:25:13,230 They are running bash scripts from the robot with no check certificate on WGIT. 282 00:25:14,190 --> 00:25:15,590 Not ideal. 283 00:25:16,650 --> 00:25:26,730 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. 284 00:25:27,150 --> 00:25:28,910 A sound file is played. 285 00:25:29,590 --> 00:25:37,170 So, the problem is that local sound files are stored on the data partition, which isn't encrypted and can just generally be accessed. 286 00:25:37,170 --> 00:25:40,070 So, the sound files can be deleted and replaced. 287 00:25:41,430 --> 00:25:46,050 So, we can replace the warning audio with an empty file. 288 00:25:46,430 --> 00:25:52,050 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. 289 00:25:52,850 --> 00:26:02,970 So, this finding was reported at CCC last year, but they fixed it and then we broke it again. 290 00:26:02,970 --> 00:26:04,890 So, we're going to tell you about it again. 291 00:26:05,050 --> 00:26:12,130 So, the app allows for live video and audio access on the robot and this functionality is provided by AWS Kinesis. 292 00:26:12,330 --> 00:26:16,450 The owner and shared users of the EchoVax account can access this feature. 293 00:26:16,650 --> 00:26:26,970 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. 294 00:26:27,630 --> 00:26:29,610 So, here's how the PIN works. 295 00:26:29,770 --> 00:26:32,690 Mobile app will ask the user for the PIN. 296 00:26:33,430 --> 00:26:36,550 The EchoVax cloud will act as a kind of broker. 297 00:26:37,030 --> 00:26:43,110 So, now we ask the robot, hey, does this PIN hash match with your local hash that's stored on the robot? 298 00:26:43,110 --> 00:26:59,470 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. 299 00:27:01,090 --> 00:27:03,770 So, what happens if the PIN is incorrect? 300 00:27:03,770 --> 00:27:06,610 We go through that same process, but with an incorrect PIN. 301 00:27:09,670 --> 00:27:13,230 Sorry, I don't know how to use PowerPoint. 302 00:27:16,150 --> 00:27:17,030 Okay. 303 00:27:17,130 --> 00:27:18,790 So, 304 00:27:30,790 --> 00:27:31,990 okay. 305 00:27:32,290 --> 00:27:33,890 Sorry about that. 306 00:27:33,890 --> 00:27:34,350 Okay. 307 00:27:34,350 --> 00:27:39,990 So, we asked ourselves, are the PIN verification and WebRTC session tied together? 308 00:27:40,450 --> 00:27:46,410 So, why is it... this is truly annoying. 309 00:27:46,950 --> 00:27:48,790 Why is it doing this? 310 00:27:53,100 --> 00:27:53,800 Okay. 311 00:27:53,800 --> 00:27:54,240 Sorry. 312 00:27:54,240 --> 00:27:56,840 Animations have a mind of their own right now. 313 00:27:56,840 --> 00:27:58,560 Turn off the animations. 314 00:28:00,300 --> 00:28:01,220 Oh. 315 00:28:01,560 --> 00:28:02,220 It's fine. 316 00:28:02,220 --> 00:28:03,220 Just go to animation. 317 00:28:03,840 --> 00:28:05,960 It's slides by themselves. 318 00:28:05,960 --> 00:28:07,240 I can't stop it. 319 00:28:08,680 --> 00:28:10,520 This is entirely automated. 320 00:28:10,520 --> 00:28:13,320 There's like a button that's pressed down right now automatically. 321 00:28:13,980 --> 00:28:15,300 Sorry for that. 322 00:28:25,750 --> 00:28:27,450 You need to turn animations off. 323 00:28:27,450 --> 00:28:28,410 I don't know how to. 324 00:28:35,100 --> 00:28:35,760 Okay. 325 00:28:36,040 --> 00:28:37,480 No, it's not. 326 00:28:45,880 --> 00:28:53,580 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. 327 00:28:53,580 --> 00:28:57,280 You can convince the app that the PIN is still correct and we'll just establish a session. 328 00:28:57,840 --> 00:28:59,180 And we have a demo here. 329 00:29:03,470 --> 00:29:05,050 Do you know how to disable it? 330 00:29:05,450 --> 00:29:06,090 Sorry. 331 00:29:20,230 --> 00:29:21,630 Dennis, disable the track. 332 00:29:21,630 --> 00:29:23,270 Sorry, that's where it worked before. 333 00:29:35,320 --> 00:29:36,960 Oh, my God. 334 00:29:37,280 --> 00:29:38,680 Why is it going automatically? 335 00:29:38,900 --> 00:29:39,900 Did everyone see that? 336 00:29:44,220 --> 00:29:48,340 We're just trying the slideshow again. 337 00:29:50,120 --> 00:29:51,300 I mean, they're fine. 338 00:29:56,760 --> 00:29:58,600 That starts from the beginning. 339 00:30:06,070 --> 00:30:10,170 Okay, we have automated slides for some reason, so we're just going to work with it. 340 00:30:10,170 --> 00:30:12,110 Okay, we can't work with this. 341 00:30:13,730 --> 00:30:15,370 Why is this happening? 342 00:30:15,370 --> 00:30:17,470 This is really awful. 343 00:30:33,100 --> 00:30:34,880 Okay, now it's working. 344 00:30:34,880 --> 00:30:35,540 Okay. 345 00:30:35,560 --> 00:30:36,980 Trust Microsoft. 346 00:30:38,300 --> 00:30:39,640 Sorry about that. 347 00:30:39,640 --> 00:30:40,140 Okay. 348 00:30:40,140 --> 00:30:42,660 So, right. 349 00:30:42,660 --> 00:30:45,320 So, as we were trying to go through... 350 00:30:48,920 --> 00:30:50,900 Oh, my God. 351 00:31:01,470 --> 00:31:02,110 Okay. 352 00:31:02,110 --> 00:31:04,970 So, we're trying to verify the PIN, but the PIN is incorrect. 353 00:31:04,970 --> 00:31:07,790 So, are these tied together? 354 00:31:07,890 --> 00:31:09,270 The WebRTC session. 355 00:31:09,330 --> 00:31:17,910 So, can we intercept this request or the response that PIN is incorrect and tell the app that the PIN is actually correct? 356 00:31:18,170 --> 00:31:20,770 And the answer was, yes, we were able to do that. 357 00:31:20,770 --> 00:31:22,630 So, now we have a malicious session. 358 00:31:22,930 --> 00:31:25,650 And we have an AWS Kinesis stream. 359 00:31:26,310 --> 00:31:30,930 So, can we bypass that all together and just patch the PIN query out of the app? 360 00:31:30,930 --> 00:31:33,210 And again, yes, we were able to do that. 361 00:31:33,210 --> 00:31:38,490 But we just want to make it abundantly clear that this is an issue with Echovax's implementation. 362 00:31:38,490 --> 00:31:40,250 This is not an issue with AWS. 363 00:31:40,310 --> 00:31:42,490 So, don't sue us, AWS, please. 364 00:31:43,210 --> 00:31:50,610 So, in short, the PIN protection is implemented in the app, but it's client-based authentication and ACL enforcement. 365 00:31:50,650 --> 00:31:53,650 So, the robot doesn't keep track of successful authentications. 366 00:31:53,690 --> 00:31:57,370 The log of the video stream access relies on the honesty of the app. 367 00:31:57,370 --> 00:32:02,350 And this is really bad in combination with the TLS issues that we just touched upon. 368 00:32:02,550 --> 00:32:05,370 And it's even worse if the sound files have been tampered with. 369 00:32:05,670 --> 00:32:07,370 So, here's just a video demo. 370 00:32:07,370 --> 00:32:09,290 This was reported in 2023. 371 00:32:09,550 --> 00:32:11,670 An unsuccessful fix was pushed. 372 00:32:11,810 --> 00:32:17,330 Some plugins were updated and no firmware fixes, which is where, like, the real problem was. 373 00:32:17,510 --> 00:32:23,670 So, we can downgrade the app with a bad plugin and it still works. 374 00:32:23,710 --> 00:32:25,190 So, here's just a quick video demo. 375 00:32:25,190 --> 00:32:26,450 This is just Burp Suite. 376 00:32:26,470 --> 00:32:29,530 We have some find and replace queries to simplify it. 377 00:32:29,770 --> 00:32:33,390 We enter a wrong PIN, 111, a couple of times. 378 00:32:34,370 --> 00:32:36,170 Not the right PIN. 379 00:32:36,170 --> 00:32:37,490 So, we continue. 380 00:32:37,510 --> 00:32:49,750 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. 381 00:32:51,650 --> 00:32:53,810 And here we are. 382 00:32:55,490 --> 00:32:56,210 Cool. 383 00:32:56,430 --> 00:32:57,030 So? 384 00:32:58,530 --> 00:32:59,330 All right. 385 00:32:59,330 --> 00:33:01,150 So, let's talk about free lawnmowers. 386 00:33:01,150 --> 00:33:02,350 Who wants a free lawnmower? 387 00:33:03,030 --> 00:33:03,490 Okay. 388 00:33:03,490 --> 00:33:04,390 Now you learned how. 389 00:33:04,410 --> 00:33:05,670 Actually, please don't. 390 00:33:05,810 --> 00:33:06,650 We're not free. 391 00:33:07,150 --> 00:33:18,950 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. 392 00:33:19,270 --> 00:33:21,130 As an owner, you can also enable alarms. 393 00:33:21,130 --> 00:33:24,310 So, basically, if you pick it up or someone picks it up, some alarm will go off. 394 00:33:24,490 --> 00:33:32,010 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. 395 00:33:32,530 --> 00:33:38,170 The thing, generally, with lawnmowers is that other lawnmowers have the same issue. 396 00:33:38,310 --> 00:33:42,530 So, as a general recommendation, do not keep your mowers outside unprotected. 397 00:33:42,930 --> 00:33:54,590 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. 398 00:33:55,150 --> 00:34:06,670 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. 399 00:34:06,810 --> 00:34:08,630 So, what's it about? 400 00:34:08,630 --> 00:34:14,930 So, newer vacuum robots and all lawnmowing robots so far use BLE, Bluetooth LE, basically, for their provisioning. 401 00:34:14,930 --> 00:34:19,330 So, if you initially, like, pushed your Wi-Fi credentials onto it, they have a mechanism for that. 402 00:34:20,070 --> 00:34:26,110 For lawnmowers, in particular, the Bluetooth is always active because we use it as a fallback way to control them. 403 00:34:26,350 --> 00:34:36,010 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. 404 00:34:36,110 --> 00:34:40,770 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. 405 00:34:41,130 --> 00:34:48,610 So, the communication between the app and the robots over Bluetooth is done by the GAT protocol, basically. 406 00:34:48,950 --> 00:34:58,170 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. 407 00:34:58,930 --> 00:35:04,530 And the input validation of whatever happens with the data afterwards is, let's say, not great. 408 00:35:04,990 --> 00:35:13,150 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. 409 00:35:14,190 --> 00:35:17,530 So, and as a quick reminder, these devices have cameras and microphones. 410 00:35:18,150 --> 00:35:20,230 So, let's create a payload. 411 00:35:20,270 --> 00:35:26,710 First, what do we want to execute is, basically, we want to play the boot music, which you heard before, on the robot. 412 00:35:26,710 --> 00:35:33,410 So, we take the command which causes that, be embedded in some JSON payload, and we generate an encrypted payload. 413 00:35:33,850 --> 00:35:35,610 The payload looks something like this. 414 00:35:35,610 --> 00:35:37,830 Basically, there's a bunch of hack stuff. 415 00:35:38,370 --> 00:35:45,250 What happens if you send it to one of the payloads, it will decrypt it. 416 00:35:45,410 --> 00:35:56,530 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. 417 00:35:56,530 --> 00:35:59,170 So, the command line which we get at the end of the day is something like this. 418 00:35:59,170 --> 00:36:01,550 As you see, we basically use command injection there. 419 00:36:01,730 --> 00:36:04,510 And then it will happily execute a thing as root. 420 00:36:05,390 --> 00:36:13,990 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. 421 00:36:14,290 --> 00:36:19,730 And we have a demo here for the G1, which is the lawn mowing robot. 422 00:36:19,830 --> 00:36:27,890 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. 423 00:36:27,890 --> 00:36:29,270 So, we're sending a payload now. 424 00:36:29,290 --> 00:36:31,430 You saw it connected back to us, a reverse shell. 425 00:36:31,590 --> 00:36:35,910 And now we can type on the robot, and, you know, we see that we are root. 426 00:36:36,230 --> 00:36:40,410 We see what kind of version we're running, so the robot basically connected back to us. 427 00:36:41,170 --> 00:36:48,250 We have also another demo, you know, more of the robot, but I will skip that out of timing issues. 428 00:36:48,930 --> 00:36:53,310 And we have also a live demo potentially, which takes one. 429 00:36:53,310 --> 00:36:54,270 Okay, I skipped that too. 430 00:36:54,270 --> 00:36:55,170 I will do it. 431 00:36:55,290 --> 00:36:56,590 Okay, we have three minutes left. 432 00:36:56,730 --> 00:37:02,130 So, what can you do with that if you have a BLE code execution thing? 433 00:37:02,290 --> 00:37:05,410 So, what we thought about is like, hey, how can we chain that? 434 00:37:05,410 --> 00:37:11,750 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. 435 00:37:12,050 --> 00:37:21,570 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. 436 00:37:21,570 --> 00:37:26,250 So, it can infect the next robot, which has some distance, and that one can infect again the next one. 437 00:37:26,490 --> 00:37:31,310 And then it becomes a problem, because the third one might start to infect back the lawnmower. 438 00:37:31,330 --> 00:37:33,610 So, we just had it as a proof of concept. 439 00:37:33,610 --> 00:37:36,290 We didn't want to have a whole routing protocol to figure it out. 440 00:37:36,290 --> 00:37:38,430 So, you know, sorry about that. 441 00:37:39,230 --> 00:37:41,270 Let's talk about routing very, very quickly. 442 00:37:41,610 --> 00:37:45,010 So, there is a lot of countermeasures in there, in the software. 443 00:37:45,010 --> 00:37:47,770 They use a lot of XOR and byte shifting to hide strings. 444 00:37:48,090 --> 00:37:49,570 They have a lot of anti-debugging features. 445 00:37:49,570 --> 00:37:51,910 For example, they detect a deep reload in debuggers. 446 00:37:52,070 --> 00:37:56,890 And they use, for some of the devices, not all of them, Secure Boot and Android Verified Boot. 447 00:37:57,390 --> 00:38:03,850 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. 448 00:38:04,230 --> 00:38:05,370 Sorry, it's not hard-coded. 449 00:38:05,370 --> 00:38:06,770 It's set at boot time. 450 00:38:07,370 --> 00:38:09,050 And the function is very obfuscated. 451 00:38:09,810 --> 00:38:13,210 But there's one particular tool which generates that, and this is how it's basically generated. 452 00:38:13,210 --> 00:38:22,870 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. 453 00:38:23,670 --> 00:38:26,270 If you want to generate it for your own robot, there's a tool. 454 00:38:26,270 --> 00:38:28,070 You can just go there, just enter your serial number. 455 00:38:28,070 --> 00:38:29,230 It will kind of give you a password. 456 00:38:30,030 --> 00:38:32,750 For firmware updates, they're encrypted but not signed. 457 00:38:33,030 --> 00:38:40,090 The key is kind of dynamically generated, and it was kind of very difficult to reverse-engineer it, but it's basically AS128. 458 00:38:40,330 --> 00:38:45,930 And this is the format string which we use to generate the key, which is someone's random email address. 459 00:38:45,930 --> 00:38:49,350 So, we use a bunch of random stuff, mix it together, and that's the AS key. 460 00:38:50,390 --> 00:38:57,190 So, as mentioned, some root file systems are not protected, so we can just modify them, especially on X1 and Z1. 461 00:38:57,470 --> 00:38:59,810 We can just repack it and have our own system. 462 00:39:00,050 --> 00:39:04,370 One thing which was kind of interesting for us is we can get persistence in autostart. 463 00:39:04,750 --> 00:39:14,130 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. 464 00:39:14,230 --> 00:39:17,870 So, it's not protected in any way, so it's persistent forever. 465 00:39:18,670 --> 00:39:22,830 The problem is, for whatever reason, on some of the devices we disabled it, on some of them not. 466 00:39:22,830 --> 00:39:24,030 I mean, it's kind of random. 467 00:39:24,670 --> 00:39:30,110 If you want to be persistent over factory sets, well, they only delete the files. 468 00:39:30,110 --> 00:39:39,730 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. 469 00:39:40,070 --> 00:39:42,550 I will talk really quick about the takeaway lessons. 470 00:39:42,630 --> 00:39:44,730 First, can you rely on certifications? 471 00:39:44,810 --> 00:39:45,770 No, you can't. 472 00:39:45,770 --> 00:39:46,670 Bad news. 473 00:39:46,950 --> 00:39:53,130 If you have vulnerable devices, like the lawnmower, make sure that you turn it off until they push a fix. 474 00:39:53,930 --> 00:39:54,810 Don't use them. 475 00:39:54,810 --> 00:39:56,590 Turn them off if you don't use them. 476 00:39:56,590 --> 00:40:01,290 For devices which don't have BLE, just don't update them if you want to keep root access. 477 00:40:01,290 --> 00:40:03,630 For vulnerable apps, don't connect to Defcon Open. 478 00:40:04,010 --> 00:40:04,930 Bad idea. 479 00:40:05,510 --> 00:40:06,430 Use devices. 480 00:40:06,430 --> 00:40:07,930 Be very careful with used devices. 481 00:40:07,930 --> 00:40:09,930 They might come with a compromised firmware. 482 00:40:09,930 --> 00:40:11,470 It's very difficult to verify. 483 00:40:11,910 --> 00:40:18,190 If you do factory set before selling, do that definitely, but be aware that it might not help against everything. 484 00:40:19,190 --> 00:40:20,910 One thing, choose your partners wisely. 485 00:40:20,910 --> 00:40:22,830 You can use the Sphinx as stalker tools. 486 00:40:22,830 --> 00:40:25,410 I will skip that real quick and just finish with the summary. 487 00:40:25,870 --> 00:40:31,350 We have root access on most of the released, or I think actually all of the released Ecovacs robots. 488 00:40:31,350 --> 00:40:35,030 We can use the UART interface and authentication to get into the device. 489 00:40:35,030 --> 00:40:41,370 We can use the BLE remote code execution right now to get initial access on devices remotely, hopefully your own. 490 00:40:41,410 --> 00:40:46,930 You can get persistence and run some custom firmware on some of the devices which don't have protections. 491 00:40:47,130 --> 00:40:54,610 We were able to verify the claims of the vendors and we found a lot of security and privacy issues. 492 00:40:54,610 --> 00:41:00,510 This applies to the app, robots, cloud, and the certification for whatever reason didn't prevent that. 493 00:41:00,990 --> 00:41:03,930 I'm not a firm believer in certifications nowadays. 494 00:41:04,330 --> 00:41:13,790 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. 495 00:41:13,910 --> 00:41:15,210 Some quick acknowledgements. 496 00:41:15,210 --> 00:41:18,510 I would like to thank Daniel, Tris, Azuran, Timster, and Apo. 497 00:41:18,650 --> 00:41:21,230 And if you have any questions, I think we have time. 498 00:41:21,230 --> 00:41:22,150 Maybe we have time. 499 00:41:22,250 --> 00:41:24,190 Actually, okay, you can ask those questions over here. 500 00:41:24,190 --> 00:41:25,170 Basically, don't. 501 00:41:25,210 --> 00:41:26,410 Sorry for the problems. 502 00:41:26,650 --> 00:41:27,990 Thank you for being here. 503 00:41:28,590 --> 00:41:32,670 If you have any other questions, like a remote, there's our email addresses. 504 00:41:32,670 --> 00:41:33,830 Feel free to reach out. 505 00:41:34,590 --> 00:41:35,050 Yeah. 506 00:41:35,050 --> 00:41:35,930 Thank you very much.