WEBVTT

00:00.000 --> 00:01.020
Hello, everyone.

00:01.020 --> 00:05.960
Welcome to our talk about the reverse engineering of and hacking of Equivax robots.

00:06.020 --> 00:07.800
Thank you for being here at this time.

00:07.960 --> 00:11.120
I know it's kind of loud, but I hope we figured it out.

00:11.180 --> 00:14.600
So before we start, I would like to introduce ourselves.

00:14.600 --> 00:20.660
So first, I'm Dennis, I'm a security researcher, or, you know, also a hardware hacker.

00:21.200 --> 00:25.220
And I'm primarily looking into wireless and embedded security and privacy.

00:25.220 --> 00:28.460
So I try to look at any device which kind of is interesting for me.

00:28.460 --> 00:31.420
So I try to reverse engineer everything which is kind of basically around us.

00:32.100 --> 00:36.560
You might know me as a vacuum and IoT collector.

00:36.560 --> 00:42.940
So I have over 600, 700 IoT devices and 60 or 70 vacuum robots to start counting.

00:43.480 --> 00:48.260
And my general goal is to get root access and root vacuum robots.

00:48.600 --> 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.

01:00.600 --> 01:01.480
Cool.

01:01.480 --> 01:03.000
Hi, I'm Braylin.

01:03.420 --> 01:06.820
I hack things for the Leviathan Security Group during the day.

01:06.820 --> 01:10.920
But this talk is entirely personal research and does not reflect their views.

01:11.420 --> 01:15.720
My general focus has been application security and APIs for quite a few years now.

01:15.720 --> 01:18.580
But I started robot hacking during COVID.

01:18.580 --> 01:23.240
Just for fun, I took apart a broken robot vacuum and tried to hack it.

01:23.240 --> 01:25.700
So now I am hardware hacking for fun.

01:25.840 --> 01:29.040
Mostly looking at robots, cameras, and smart locks.

01:30.880 --> 01:34.060
All right, so let's talk about the goals of this talk.

01:34.060 --> 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.

01:40.540 --> 01:44.160
We want to give you some overview on how we did vacuum robot hacking.

01:44.560 --> 01:48.200
We want to show you the vulnerabilities and how to find them.

01:48.220 --> 01:53.340
And typically, our general goal is to get somehow root access without having to disassemble the device.

01:54.060 --> 01:56.880
So there have been some past research on that.

01:56.880 --> 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.

02:03.020 --> 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.

02:10.840 --> 02:14.140
So if you find your niche product, just go ahead with that.

02:14.140 --> 02:15.840
This will be very rewarding.

02:16.120 --> 02:17.560
Some disclaimers.

02:17.840 --> 02:21.720
So we don't claim that vendors are using the sensors to spy on you.

02:21.720 --> 02:24.240
But, you know, they could technically do that.

02:24.800 --> 02:28.780
The other thing which we do is like we primarily cover physical attacks or proximity attacks.

02:29.180 --> 02:32.340
So we don't necessarily like attack devices through the cloud.

02:33.460 --> 02:37.060
One thing which we want to stress always is like many vendors have problems.

02:37.060 --> 02:40.060
And it's basically independent of origin, size, market share.

02:40.060 --> 02:43.460
But in this talk, we especially like focus on Ecovacs.

02:44.280 --> 02:47.580
And all this research is basically part of private projects.

02:47.580 --> 02:50.920
So there's no sponsorship by companies, there's no organizations behind that.

02:51.280 --> 02:55.120
Any statements are our own opinion, and we're not representing anyone.

02:55.860 --> 02:58.500
So what kind of devices are we covering in this talk?

02:58.500 --> 03:03.540
So basically, we're covering Ecovacs robots, which you see on the left side, up to the X2.

03:03.800 --> 03:09.120
And we're also covering lawn mowing robots and the air purifiers, so the AirBot series.

03:09.580 --> 03:17.240
Technically, all the stuff which we do also applies to Yeedi, because Yeedi is basically a sub-brand of Ecovacs.

03:17.240 --> 03:22.540
And we only focus on devices which run Linux, so no dumb robots, so only cool stuff.

03:23.100 --> 03:24.360
So about the Stark.

03:24.360 --> 03:27.880
Well, this is basically a result of five years of research and experiments.

03:27.880 --> 03:32.100
And technically, we're not the first ones or the only ones who do research on Ecovacs.

03:32.440 --> 03:35.160
The vendor knows about most of our findings.

03:35.180 --> 03:37.920
They tried to fix some of them, but failed.

03:37.920 --> 03:40.240
So they failed, very sadly.

03:40.640 --> 03:45.860
And for other vulnerabilities, which are really, really, really bad, they, for whatever reason, have chosen to ignore them.

03:46.600 --> 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.

03:53.060 --> 03:56.040
We're like, oh, wait, yeah, we know about this vulnerability, we know about this vulnerability.

03:56.360 --> 03:59.980
So there's probably way more people out there who know about that stuff.

04:00.940 --> 04:03.360
Typically, that kind of things are like a collaborative effort.

04:03.360 --> 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.

04:14.300 --> 04:16.300
So let's start with the motivation.

04:16.300 --> 04:18.720
Why do we want to root devices at all?

04:18.820 --> 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.

04:24.040 --> 04:29.200
The other thing is, you want to obviously stop the devices from constantly phoning home.

04:29.700 --> 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.

04:37.320 --> 04:40.740
Also, one thing which becomes more and more important is, like, the rate to repair.

04:40.740 --> 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.

04:48.680 --> 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.

04:55.960 --> 04:58.360
So why do we, don't we trust the companies?

04:58.540 --> 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.

05:04.680 --> 05:08.780
The communication to the cloud is typically encrypted, and you have no idea what they're actually sending out.

05:09.540 --> 05:14.400
From our own experience, we know that developing secure hardware and software is extremely difficult.

05:15.100 --> 05:18.460
And in the past, we caught vendors, basically, with some shady behavior.

05:19.280 --> 05:25.020
The other thing is, these devices, I mean, they not only have cameras, but nowadays, they more and more have microphones.

05:25.020 --> 05:26.880
So, and the question is, like, why do we need that?

05:27.780 --> 05:34.140
Generally, if you have cameras, well, there's some risk with that, and devices might store pictures indefinitely.

05:34.460 --> 05:39.820
And from our own research, we know, like, that some of them do, and both in the cloud and locally.

05:40.620 --> 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.

05:47.980 --> 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.

05:54.880 --> 05:59.940
So basically, root access is more or less the only way to kind of figure out that the device is clean.

06:01.000 --> 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.

06:14.160 --> 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.

06:20.760 --> 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.

06:27.320 --> 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.

06:39.200 --> 06:44.260
So, um, I want to give you, like, a very brief overview of our hacking journey so far.

06:44.400 --> 06:47.640
And for me personally, everything started back in 2017.

06:47.740 --> 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.

06:57.100 --> 07:02.380
And the over-the-air update system was completely broken, so we were able to just push, like, local firmware updates.

07:03.120 --> 07:06.940
Then it became a little bit more complicated, so the vendors kind of locked on things.

07:07.060 --> 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.

07:15.860 --> 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.

07:24.820 --> 07:29.340
And this had the very, very early firmware with the bug symbols in there, which was very, very helpful.

07:29.940 --> 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.

07:40.040 --> 07:44.260
But one of the problems was the hardware was extremely weak, so it wasn't really interested for us.

07:44.480 --> 07:48.340
And as a result, we never published the results on that, because, I mean, why would we?

07:48.960 --> 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.

07:56.660 --> 08:03.700
So, in 2021, I released a method for newer, like, Roborock devices, and also Dreamy.

08:03.700 --> 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.

08:10.940 --> 08:13.840
And it became, again, complicated in 2023.

08:14.440 --> 08:21.320
We were looking again at Dreamy, Roborock, Navel, and Shark, and figured out a secure bypass for, like, some bootloader magic.

08:21.760 --> 08:27.800
The issue with all of these is finding new routing methods become very annoying, and it takes a long time.

08:27.800 --> 08:30.120
For the last one, we need, like, basically, like, multiple months.

08:30.120 --> 08:33.900
So, we tried to find, like, a new vendor, which we, you know, would attack again.

08:34.040 --> 08:36.080
So, we went back to EchoVax.

08:36.560 --> 08:40.540
And by that time, EchoVax started to release more and more powerful devices.

08:41.020 --> 08:44.660
And they were very similar to other devices, but they were lower priced.

08:44.660 --> 08:45.860
So, this is, like, perfect.

08:46.000 --> 08:50.180
So, one of the first devices which I analyzed back then was the D-Bot X1.

08:50.740 --> 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.

08:57.220 --> 09:01.960
So, this was a perfect target for future endeavours with that company.

09:02.460 --> 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.

09:11.080 --> 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.

09:19.220 --> 09:24.440
For example, Shark Robot, or, like, their contractor, they kind of just, like, we're hiding Vias and everything.

09:24.540 --> 09:26.720
So, they upgraded, we upgraded too.

09:26.720 --> 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.

09:33.600 --> 09:34.320
All right.

09:34.320 --> 09:38.260
So, let's talk about the EchoVax ecosystem.

09:38.480 --> 09:40.860
So, why are we looking at EchoVax generally?

09:40.860 --> 09:43.400
It turns out that this company is fairly old.

09:43.400 --> 09:50.180
They were founded back then in 1998 in China, and they produced initially, like, OEM vacuum cleaners.

09:50.700 --> 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.

10:01.540 --> 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.

10:18.460 --> 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.

10:26.360 --> 10:28.040
They have mobile air purifiers.

10:28.520 --> 10:31.060
They have lawn mowing robots, and they have some other products.

10:32.180 --> 10:33.760
So, let's take a look at the hardware.

10:33.880 --> 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.

10:43.060 --> 10:47.420
It's responsible for navigation, mapping, and connectivity, so it's connected to the storage.

10:47.420 --> 10:50.460
It has, like, access to sensors like LiDAR, camera, microphones.

10:50.740 --> 10:55.240
It does, like, the connectivity, so Wi-Fi, Bluetooth, and Ultra Wideband in some devices.

10:55.360 --> 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.

11:05.300 --> 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.

11:15.420 --> 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.

11:21.300 --> 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.

11:29.580 --> 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.

11:39.100 --> 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,

11:54.100 --> 11:57.040
because we basically could repeat our knowledge, like, on newer models.

11:57.880 --> 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.

12:07.460 --> 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.

12:15.760 --> 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.

12:33.740 --> 12:41.540
They use 2GB of RAM, 512MB of SPI flash, and a GD32 MCU, which is basically like a copycat SDM32.

12:41.860 --> 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.

12:47.400 --> 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.

13:01.880 --> 13:03.380
So, let's talk about the sensors.

13:04.100 --> 13:06.760
Well, the X1 has a LiDAR sensor, which is kind of cool.

13:06.760 --> 13:11.500
It has a microphone array, for whatever reason, or for the voice assistant, but, I mean, why would you use it?

13:12.160 --> 13:16.080
And it has camera and line lasers, so basically to detect objects in front of it.

13:16.780 --> 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.

13:24.380 --> 13:31.220
A device which is very, very similar is the AirBot Z1, which we call the SpyBot, out of reasons.

13:31.240 --> 13:32.980
It was released last year.

13:33.200 --> 13:38.760
It's based on the same design, like, as the X1, but it has one additional camera and six microphones.

13:39.140 --> 13:43.760
And the features of that is, well, you can use it as a Bluetooth speaker, which follows you.

13:44.160 --> 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.

13:54.580 --> 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.

14:02.000 --> 14:06.260
The cool thing here is, you basically get two robots for the price of one.

14:06.320 --> 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.

14:14.380 --> 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.

14:24.240 --> 14:26.100
So, very efficient.

14:26.860 --> 14:30.540
So, let's talk about the lawn mowing robots.

14:30.720 --> 14:37.660
They have been released in 2023 in Europe, and this year, I think, recently post-CES, this year in the US.

14:38.320 --> 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.

14:45.600 --> 14:49.680
And they use ultra-wide-band beacons to kind of navigate.

14:50.100 --> 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.

14:57.580 --> 15:01.500
And again, they have a remote view and patrol function, so they will patrol your garden.

15:02.420 --> 15:07.800
Now, you might be paranoid and say, like, wait, I don't want to, you know, accompany, like, watch my garden.

15:07.800 --> 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.

15:18.540 --> 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.

15:25.200 --> 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.

15:36.220 --> 15:39.520
So, always keep track of your screws.

15:39.960 --> 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.

15:54.040 --> 15:58.420
So, it has a display, which you can control as its own, like, STM32-like display.

15:58.420 --> 16:00.960
I tried to run Doom, but it doesn't have enough flash, so...

16:02.140 --> 16:07.380
And also, even the knife assembly, which kind of controls, like, the cutting, it has also its own MCU.

16:08.360 --> 16:11.180
Sensor-wise, it has a 360-degree camera on top.

16:11.400 --> 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.

16:19.820 --> 16:22.820
Thankfully, they gave us a lot of debug ports.

16:22.820 --> 16:30.300
So, all the models since 2019 have very similar debug ports, which gives you UART, 3.3V, SWG, and USB.

16:30.740 --> 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.

16:41.430 --> 16:42.050
Cool.

16:42.050 --> 16:45.370
Now, let's talk about some of the software that EchoVax employs.

16:45.570 --> 16:47.910
So, these things run on Linux OS.

16:47.910 --> 16:50.770
They're basically just a mobile Linux server.

16:51.490 --> 16:56.110
They are using ROS, Melodic Merenia, for the robotics portion, or handling.

16:56.230 --> 16:59.430
They also have a custom, like, software suite called Medusa.

16:59.830 --> 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.

17:09.010 --> 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.

17:19.850 --> 17:25.410
So, the good thing is that there are little to no protections against rooting, which is what hackers like.

17:26.050 --> 17:29.050
So, let's briefly touch on some AI models that they're using.

17:29.050 --> 17:32.030
They use TensorFlow and OpenCV for detection.

17:32.410 --> 17:39.210
Some of the typical objects include furniture, cables, pets, and pet remains.

17:39.710 --> 17:42.690
The lawnmower also can detect small animals and face recon.

17:42.690 --> 17:49.490
But on the right is a screenshot of our favorite object that it can detect.

17:51.370 --> 17:54.650
So, just wanted to touch on firmware updates.

17:54.710 --> 17:58.770
We've been keeping track of their firmware updates since we've obtained the robot.

17:59.590 --> 18:00.570
The U.S.

18:00.570 --> 18:02.970
version was released in 2023.

18:04.890 --> 18:08.350
And they... why did that go so quick?

18:08.990 --> 18:15.310
They had been putting out monthly firmware updates since then.

18:15.310 --> 18:18.090
And they stopped in March 2024.

18:18.090 --> 18:23.890
So, we're kind of questioning if this is the end of life for this pretty new product.

18:24.270 --> 18:26.670
Their change logs are also not very informative.

18:26.670 --> 18:31.890
So, 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:47.830
And then when you add robots, they're... plugins are downloaded dynamically every time you add one to your account.

18:48.290 --> 18:51.890
So, now we'll talk about security and privacy.

18:51.890 --> 18:57.750
So, when we first started researching EchoVax robots, we wanted to see if they had like a bug bounty program.

18:57.750 --> 19:02.310
And this is the only page that we found for their security program.

19:02.610 --> 19:08.170
They claim that they have like a public bulletin board if you report bugs to their just kind of email address.

19:08.170 --> 19:12.650
They want you to email bugs to them, which is not like a secure method to do that generally.

19:13.030 --> 19:16.690
So, yeah, there's no real collaborative bug bounty program.

19:16.690 --> 19:19.150
And they don't respond to our reports or emails.

19:19.150 --> 19:21.050
They just kind of ignore us.

19:21.410 --> 19:25.130
Some bugs are silently patched, we've noted.

19:25.490 --> 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.

19:33.470 --> 19:38.370
Regional AWS services are used for the EU and US and China, of course.

19:38.730 --> 19:44.090
Some photos and videos are sent to Ali cloud video for AI analysis in certain models.

19:44.090 --> 19:45.970
They claim that you have to opt in.

19:45.970 --> 19:49.450
I'm not sure if they honor that, but more research is needed.

19:49.450 --> 19:54.690
But of course, lots of telemetry data is collected, as with most IoT devices these days.

19:55.290 --> 19:57.270
So, what are we concerned about?

19:57.410 --> 20:00.190
These vacuums have microphones and cameras.

20:00.530 --> 20:03.170
So, can they be enabled remotely without user notice?

20:03.170 --> 20:05.870
And where's the data sent to?

20:06.470 --> 20:09.530
And, of course, we need to be concerned with AI and privacy.

20:09.530 --> 20:13.090
So, why do these robots need face recon AI models?

20:13.330 --> 20:16.910
And is this telemetry data being used to train their AI?

20:18.850 --> 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?

20:32.190 --> 20:37.730
And they claim that their cameras are, like, encrypting all data gathered by the device.

20:37.730 --> 20:41.830
But who knows?

20:43.090 --> 20:49.410
So, they post a bunch of certifications from Tube Rhineland, which is... that costs quite a bit of money.

20:49.410 --> 20:52.710
And they claim to be meeting and exceeding all standards.

20:52.770 --> 20:58.490
They even have, like, a splash screen when you load their mobile app, claiming that they meet ISO standards.

20:58.490 --> 21:03.190
Again, not in line with our findings, which we will talk about now.

21:03.830 --> 21:05.710
So, data harvesting.

21:06.390 --> 21:12.770
The mobile apps and the just a lot of communication with the EchoVac servers.

21:12.770 --> 21:17.150
Their key data collection endpoints are called Big Data and Data Upload.

21:17.150 --> 21:19.850
So, it's not like they're hiding what they're doing.

21:19.850 --> 21:21.790
They're pretty upfront about it.

21:22.290 --> 21:28.250
So, some example of telemetry data that's collected are live coordinates of the robot location in your home.

21:28.250 --> 21:36.010
Wi-Fi access points, network data, and additional debug information is sent to EchoVac servers if the robot gets stuck somewhere.

21:36.590 --> 21:39.970
And possibly AI pictures, even if not opted in.

21:40.330 --> 21:42.690
So, what are they retaining in their cloud?

21:42.690 --> 21:45.450
Maps and pictures are stored in a NoSQL database.

21:45.450 --> 21:50.090
So, anyone who knows the object ID of the map can access that data.

21:50.090 --> 21:55.450
There's no access controls on these points of information, which is... I don't know.

21:55.450 --> 21:59.150
I don't want random people with an EchoVacs account to be able to see a map of my house.

21:59.770 --> 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.

22:08.990 --> 22:11.790
Also, deleting your actual EchoVacs account has no effect.

22:11.790 --> 22:20.290
The map remains indefinitely on their servers, even if you supposedly remove all of your information from your account.

22:21.530 --> 22:23.990
So... oh, what's wrong?

22:24.750 --> 22:26.050
Oh, sorry.

22:26.050 --> 22:27.270
Skipped over one point.

22:27.810 --> 22:34.530
Oh, the JWTs that are used for authentication are also... they also remain valid after you delete your account.

22:34.530 --> 22:38.130
So, you can continue using your account, even though you deleted it.

22:39.310 --> 22:41.750
And access to the robot is still possible.

22:41.910 --> 22:44.070
So, not ideal security.

22:45.170 --> 22:47.510
So, what are they storing on the device?

22:47.510 --> 22:50.910
There's a user data partition, and it's not encrypted, of course.

22:50.910 --> 22:52.370
Why would they encrypt that?

22:52.710 --> 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.

23:06.350 --> 23:10.890
There's also Wi-Fi credentials and your neighbor's Wi-Fi access points.

23:10.890 --> 23:14.490
So, they're kind of just mapping the whole world with their robot vacuums.

23:14.810 --> 23:21.390
There's also the HelloYiku traffic logs, which are... that's their voice assistant.

23:21.590 --> 23:24.410
So, keeping track of what you say to your robot.

23:24.990 --> 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.

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:46.870
So, one of our big findings was that they did not configure their TLS properly.

23:47.250 --> 23:55.530
So, the EchoVax home app mobile application correctly checks certificates, but the robot-specific plugins don't always do that.

23:55.630 --> 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.

24:06.710 --> 24:08.070
Please don't do that.

24:08.650 --> 24:11.070
There's no warning or error shown in the app.

24:11.890 --> 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.

24:24.490 --> 24:27.490
Here's an example of the traffic that we were able to intercept.

24:27.490 --> 24:33.750
We've redacted the authentication token just for good measure.

24:35.290 --> 24:40.150
And, additionally, they misconfigured TLS in their robots themselves as well.

24:40.150 --> 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.

24:55.430 --> 24:58.910
The tool that we used for this is CertMidim by Oppo Oxman.

24:58.910 --> 25:00.310
I highly recommend it.

25:00.310 --> 25:01.870
It's pretty fun.

25:03.570 --> 25:06.970
And this is partially one of the reasons why this is happening.

25:06.970 --> 25:13.230
They are running bash scripts from the robot with no check certificate on WGIT.

25:14.190 --> 25:15.590
Not ideal.

25:16.650 --> 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.

25:27.150 --> 25:28.910
A sound file is played.

25:29.590 --> 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.

25:37.170 --> 25:40.070
So, the sound files can be deleted and replaced.

25:41.430 --> 25:46.050
So, we can replace the warning audio with an empty file.

25:46.430 --> 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.

25:52.850 --> 26:02.970
So, this finding was reported at CCC last year, but they fixed it and then we broke it again.

26:02.970 --> 26:04.890
So, we're going to tell you about it again.

26:05.050 --> 26:12.130
So, the app allows for live video and audio access on the robot and this functionality is provided by AWS Kinesis.

26:12.330 --> 26:16.450
The owner and shared users of the EchoVax account can access this feature.

26:16.650 --> 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.

26:27.630 --> 26:29.610
So, here's how the PIN works.

26:29.770 --> 26:32.690
Mobile app will ask the user for the PIN.

26:33.430 --> 26:36.550
The EchoVax cloud will act as a kind of broker.

26:37.030 --> 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?

26:43.110 --> 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.

27:01.090 --> 27:03.770
So, what happens if the PIN is incorrect?

27:03.770 --> 27:06.610
We go through that same process, but with an incorrect PIN.

27:09.670 --> 27:13.230
Sorry, I don't know how to use PowerPoint.

27:16.150 --> 27:17.030
Okay.

27:17.130 --> 27:18.790
So,

27:30.790 --> 27:31.990
okay.

27:32.290 --> 27:33.890
Sorry about that.

27:33.890 --> 27:34.350
Okay.

27:34.350 --> 27:39.990
So, we asked ourselves, are the PIN verification and WebRTC session tied together?

27:40.450 --> 27:46.410
So, why is it... this is truly annoying.

27:46.950 --> 27:48.790
Why is it doing this?

27:53.100 --> 27:53.800
Okay.

27:53.800 --> 27:54.240
Sorry.

27:54.240 --> 27:56.840
Animations have a mind of their own right now.

27:56.840 --> 27:58.560
Turn off the animations.

28:00.300 --> 28:01.220
Oh.

28:01.560 --> 28:02.220
It's fine.

28:02.220 --> 28:03.220
Just go to animation.

28:03.840 --> 28:05.960
It's slides by themselves.

28:05.960 --> 28:07.240
I can't stop it.

28:08.680 --> 28:10.520
This is entirely automated.

28:10.520 --> 28:13.320
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:27.450
You need to turn animations off.

28:27.450 --> 28:28.410
I don't know how to.

28:35.100 --> 28:35.760
Okay.

28:36.040 --> 28:37.480
No, it's not.

28:45.880 --> 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.

28:53.580 --> 28:57.280
You can convince the app that the PIN is still correct and we'll just establish a session.

28:57.840 --> 28:59.180
And we have a demo here.

29:03.470 --> 29:05.050
Do you know how to disable it?

29:05.450 --> 29:06.090
Sorry.

29:20.230 --> 29:21.630
Dennis, disable the track.

29:21.630 --> 29:23.270
Sorry, that's where it worked before.

29:35.320 --> 29:36.960
Oh, my God.

29:37.280 --> 29:38.680
Why is it going automatically?

29:38.900 --> 29:39.900
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:12.110
Okay, we can't work with this.

30:13.730 --> 30:15.370
Why is this happening?

30:15.370 --> 30:17.470
This is really awful.

30:33.100 --> 30:34.880
Okay, now it's working.

30:34.880 --> 30:35.540
Okay.

30:35.560 --> 30:36.980
Trust Microsoft.

30:38.300 --> 30:39.640
Sorry about that.

30:39.640 --> 30:40.140
Okay.

30:40.140 --> 30:42.660
So, right.

30:42.660 --> 30:45.320
So, as we were trying to go through...

30:48.920 --> 30:50.900
Oh, my God.

31:01.470 --> 31:02.110
Okay.

31:02.110 --> 31:04.970
So, we're trying to verify the PIN, but the PIN is incorrect.

31:04.970 --> 31:07.790
So, are these tied together?

31:07.890 --> 31:09.270
The WebRTC session.

31:09.330 --> 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?

31:18.170 --> 31:20.770
And the answer was, yes, we were able to do that.

31:20.770 --> 31:22.630
So, now we have a malicious session.

31:22.930 --> 31:25.650
And we have an AWS Kinesis stream.

31:26.310 --> 31:30.930
So, can we bypass that all together and just patch the PIN query out of the app?

31:30.930 --> 31:33.210
And again, yes, we were able to do that.

31:33.210 --> 31:38.490
But we just want to make it abundantly clear that this is an issue with Echovax's implementation.

31:38.490 --> 31:40.250
This is not an issue with AWS.

31:40.310 --> 31:42.490
So, don't sue us, AWS, please.

31:43.210 --> 31:50.610
So, in short, the PIN protection is implemented in the app, but it's client-based authentication and ACL enforcement.

31:50.650 --> 31:53.650
So, the robot doesn't keep track of successful authentications.

31:53.690 --> 31:57.370
The log of the video stream access relies on the honesty of the app.

31:57.370 --> 32:02.350
And this is really bad in combination with the TLS issues that we just touched upon.

32:02.550 --> 32:05.370
And it's even worse if the sound files have been tampered with.

32:05.670 --> 32:07.370
So, here's just a video demo.

32:07.370 --> 32:09.290
This was reported in 2023.

32:09.550 --> 32:11.670
An unsuccessful fix was pushed.

32:11.810 --> 32:17.330
Some plugins were updated and no firmware fixes, which is where, like, the real problem was.

32:17.510 --> 32:23.670
So, we can downgrade the app with a bad plugin and it still works.

32:23.710 --> 32:25.190
So, here's just a quick video demo.

32:25.190 --> 32:26.450
This is just Burp Suite.

32:26.470 --> 32:29.530
We have some find and replace queries to simplify it.

32:29.770 --> 32:33.390
We enter a wrong PIN, 111, a couple of times.

32:34.370 --> 32:36.170
Not the right PIN.

32:36.170 --> 32:37.490
So, we continue.

32:37.510 --> 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.

32:51.650 --> 32:53.810
And here we are.

32:55.490 --> 32:56.210
Cool.

32:56.430 --> 32:57.030
So?

32:58.530 --> 32:59.330
All right.

32:59.330 --> 33:01.150
So, let's talk about free lawnmowers.

33:01.150 --> 33:02.350
Who wants a free lawnmower?

33:03.030 --> 33:03.490
Okay.

33:03.490 --> 33:04.390
Now you learned how.

33:04.410 --> 33:05.670
Actually, please don't.

33:05.810 --> 33:06.650
We're not free.

33:07.150 --> 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.

33:19.270 --> 33:21.130
As an owner, you can also enable alarms.

33:21.130 --> 33:24.310
So, basically, if you pick it up or someone picks it up, some alarm will go off.

33:24.490 --> 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.

33:32.530 --> 33:38.170
The thing, generally, with lawnmowers is that other lawnmowers have the same issue.

33:38.310 --> 33:42.530
So, as a general recommendation, do not keep your mowers outside unprotected.

33:42.930 --> 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.

33:55.150 --> 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.

34:06.810 --> 34:08.630
So, what's it about?

34:08.630 --> 34:14.930
So, newer vacuum robots and all lawnmowing robots so far use BLE, Bluetooth LE, basically, for their provisioning.

34:14.930 --> 34:19.330
So, if you initially, like, pushed your Wi-Fi credentials onto it, they have a mechanism for that.

34:20.070 --> 34:26.110
For lawnmowers, in particular, the Bluetooth is always active because we use it as a fallback way to control them.

34:26.350 --> 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.

34:36.110 --> 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.

34:41.130 --> 34:48.610
So, the communication between the app and the robots over Bluetooth is done by the GAT protocol, basically.

34:48.950 --> 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.

34:58.930 --> 35:04.530
And the input validation of whatever happens with the data afterwards is, let's say, not great.

35:04.990 --> 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.

35:14.190 --> 35:17.530
So, and as a quick reminder, these devices have cameras and microphones.

35:18.150 --> 35:20.230
So, let's create a payload.

35:20.270 --> 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.

35:26.710 --> 35:33.410
So, we take the command which causes that, be embedded in some JSON payload, and we generate an encrypted payload.

35:33.850 --> 35:35.610
The payload looks something like this.

35:35.610 --> 35:37.830
Basically, there's a bunch of hack stuff.

35:38.370 --> 35:45.250
What happens if you send it to one of the payloads, it will decrypt it.

35:45.410 --> 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.

35:56.530 --> 35:59.170
So, the command line which we get at the end of the day is something like this.

35:59.170 --> 36:01.550
As you see, we basically use command injection there.

36:01.730 --> 36:04.510
And then it will happily execute a thing as root.

36:05.390 --> 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.

36:14.290 --> 36:19.730
And we have a demo here for the G1, which is the lawn mowing robot.

36:19.830 --> 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.

36:27.890 --> 36:29.270
So, we're sending a payload now.

36:29.290 --> 36:31.430
You saw it connected back to us, a reverse shell.

36:31.590 --> 36:35.910
And now we can type on the robot, and, you know, we see that we are root.

36:36.230 --> 36:40.410
We see what kind of version we're running, so the robot basically connected back to us.

36:41.170 --> 36:48.250
We have also another demo, you know, more of the robot, but I will skip that out of timing issues.

36:48.930 --> 36:53.310
And we have also a live demo potentially, which takes one.

36:53.310 --> 36:54.270
Okay, I skipped that too.

36:54.270 --> 36:55.170
I will do it.

36:55.290 --> 36:56.590
Okay, we have three minutes left.

36:56.730 --> 37:02.130
So, what can you do with that if you have a BLE code execution thing?

37:02.290 --> 37:05.410
So, what we thought about is like, hey, how can we chain that?

37:05.410 --> 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.

37:12.050 --> 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.

37:21.570 --> 37:26.250
So, it can infect the next robot, which has some distance, and that one can infect again the next one.

37:26.490 --> 37:31.310
And then it becomes a problem, because the third one might start to infect back the lawnmower.

37:31.330 --> 37:33.610
So, we just had it as a proof of concept.

37:33.610 --> 37:36.290
We didn't want to have a whole routing protocol to figure it out.

37:36.290 --> 37:38.430
So, you know, sorry about that.

37:39.230 --> 37:41.270
Let's talk about routing very, very quickly.

37:41.610 --> 37:45.010
So, there is a lot of countermeasures in there, in the software.

37:45.010 --> 37:47.770
They use a lot of XOR and byte shifting to hide strings.

37:48.090 --> 37:49.570
They have a lot of anti-debugging features.

37:49.570 --> 37:51.910
For example, they detect a deep reload in debuggers.

37:52.070 --> 37:56.890
And they use, for some of the devices, not all of them, Secure Boot and Android Verified Boot.

37:57.390 --> 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.

38:04.230 --> 38:05.370
Sorry, it's not hard-coded.

38:05.370 --> 38:06.770
It's set at boot time.

38:07.370 --> 38:09.050
And the function is very obfuscated.

38:09.810 --> 38:13.210
But there's one particular tool which generates that, and this is how it's basically generated.

38:13.210 --> 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.

38:23.670 --> 38:26.270
If you want to generate it for your own robot, there's a tool.

38:26.270 --> 38:28.070
You can just go there, just enter your serial number.

38:28.070 --> 38:29.230
It will kind of give you a password.

38:30.030 --> 38:32.750
For firmware updates, they're encrypted but not signed.

38:33.030 --> 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.

38:40.330 --> 38:45.930
And this is the format string which we use to generate the key, which is someone's random email address.

38:45.930 --> 38:49.350
So, we use a bunch of random stuff, mix it together, and that's the AS key.

38:50.390 --> 38:57.190
So, as mentioned, some root file systems are not protected, so we can just modify them, especially on X1 and Z1.

38:57.470 --> 38:59.810
We can just repack it and have our own system.

39:00.050 --> 39:04.370
One thing which was kind of interesting for us is we can get persistence in autostart.

39:04.750 --> 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.

39:14.230 --> 39:17.870
So, it's not protected in any way, so it's persistent forever.

39:18.670 --> 39:22.830
The problem is, for whatever reason, on some of the devices we disabled it, on some of them not.

39:22.830 --> 39:24.030
I mean, it's kind of random.

39:24.670 --> 39:30.110
If you want to be persistent over factory sets, well, they only delete the files.

39:30.110 --> 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.

39:40.070 --> 39:42.550
I will talk really quick about the takeaway lessons.

39:42.630 --> 39:44.730
First, can you rely on certifications?

39:44.810 --> 39:45.770
No, you can't.

39:45.770 --> 39:46.670
Bad news.

39:46.950 --> 39:53.130
If you have vulnerable devices, like the lawnmower, make sure that you turn it off until they push a fix.

39:53.930 --> 39:54.810
Don't use them.

39:54.810 --> 39:56.590
Turn them off if you don't use them.

39:56.590 --> 40:01.290
For devices which don't have BLE, just don't update them if you want to keep root access.

40:01.290 --> 40:03.630
For vulnerable apps, don't connect to Defcon Open.

40:04.010 --> 40:04.930
Bad idea.

40:05.510 --> 40:06.430
Use devices.

40:06.430 --> 40:07.930
Be very careful with used devices.

40:07.930 --> 40:09.930
They might come with a compromised firmware.

40:09.930 --> 40:11.470
It's very difficult to verify.

40:11.910 --> 40:18.190
If you do factory set before selling, do that definitely, but be aware that it might not help against everything.

40:19.190 --> 40:20.910
One thing, choose your partners wisely.

40:20.910 --> 40:22.830
You can use the Sphinx as stalker tools.

40:22.830 --> 40:25.410
I will skip that real quick and just finish with the summary.

40:25.870 --> 40:31.350
We have root access on most of the released, or I think actually all of the released Ecovacs robots.

40:31.350 --> 40:35.030
We can use the UART interface and authentication to get into the device.

40:35.030 --> 40:41.370
We can use the BLE remote code execution right now to get initial access on devices remotely, hopefully your own.

40:41.410 --> 40:46.930
You can get persistence and run some custom firmware on some of the devices which don't have protections.

40:47.130 --> 40:54.610
We were able to verify the claims of the vendors and we found a lot of security and privacy issues.

40:54.610 --> 41:00.510
This applies to the app, robots, cloud, and the certification for whatever reason didn't prevent that.

41:00.990 --> 41:03.930
I'm not a firm believer in certifications nowadays.

41:04.330 --> 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.

41:13.910 --> 41:15.210
Some quick acknowledgements.

41:15.210 --> 41:18.510
I would like to thank Daniel, Tris, Azuran, Timster, and Apo.

41:18.650 --> 41:21.230
And if you have any questions, I think we have time.

41:21.230 --> 41:22.150
Maybe we have time.

41:22.250 --> 41:24.190
Actually, okay, you can ask those questions over here.

41:24.190 --> 41:25.170
Basically, don't.

41:25.210 --> 41:26.410
Sorry for the problems.

41:26.650 --> 41:27.990
Thank you for being here.

41:28.590 --> 41:32.670
If you have any other questions, like a remote, there's our email addresses.

41:32.670 --> 41:33.830
Feel free to reach out.

41:34.590 --> 41:35.050
Yeah.

41:35.050 --> 41:35.930
Thank you very much.

