start	end	text
0	4680	Hello, everyone. Welcome to our talk about the reverse engineering of and hacking of
4680	9640	Equivax robots. Thank you for being here at this time. I know it's kind of loud, but I
9640	15680	hope we figured it out. So before we start, I would like to introduce ourselves. So first,
15680	21820	I'm Dennis, I'm a security researcher, or, you know, also a hardware hacker. And I'm
21820	26400	primarily looking into wireless and embedded security and privacy. So I try to look at
26400	29680	any device which kind of is interesting for me. So I try to reverse engineer everything
29680	36560	which is kind of basically around us. You might know me as a vacuum and IoT collector.
36560	43700	So I have over 600, 700 IoT devices and 60 or 70 vacuum robots to start counting. And
43700	49780	my general goal is to get root access and root vacuum robots. I have also a website,
49780	53980	which is called robotinfo.dev, where I try to document what kind of hardware is in the
53980	57980	robots, what kind of software is running, and what kind of methods exist for routing.
60600	66820	Cool. Hi, I'm Braylin. I hack things for the Leviathan Security Group during the day.
66820	72160	But this talk is entirely personal research and does not reflect their views. My general
72160	77400	focus has been application security and APIs for quite a few years now. But I started robot
77400	82700	hacking during COVID. Just for fun, I took apart a broken robot vacuum and tried to hack
82700	88320	it. So now I am hardware hacking for fun. Mostly looking at robots, cameras, and smart
88320	94900	locks. All right, so let's talk about the goals of this talk. So generally, what we
94900	98940	try to do is that we want to give you some understanding about the security and privacy
98940	104160	risks of IoT devices. We want to give you some overview on how we did vacuum robot hacking.
104560	109660	We want to show you the vulnerabilities and how to find them. And typically, our general
109660	114800	goal is to get somehow root access without having to disassemble the device. So there
114800	119580	have been some past research on that. So if you hack this kind of niche products, the good
119580	123020	thing is you can probably get like every year or every two years like a nice DEF CON talk. So
123020	129880	we basically over the last five, six years, we kind of like, you know, use the topic and it
129880	134840	keeps giving. So if you find your niche product, just go ahead with that. This will be
134840	141120	very rewarding. Some disclaimers. So we don't claim that vendors are using the sensors to
141120	145740	spy on you. But, you know, they could technically do that. The other thing which we do is
145740	150820	like we primarily cover physical attacks or proximity attacks. So we don't necessarily like
150820	155820	attack devices through the cloud. One thing which we want to stress always is like many
155820	160480	vendors have problems. And it's basically independent of origin, size, market share. But in
160480	166140	this talk, we especially like focus on Ecovacs. And all this research is basically part of
166140	170460	private projects. So there's no sponsorship by companies, there's no organizations behind
170460	176780	that. Any statements are our own opinion, and we're not representing anyone. So what kind of
176780	181080	devices are we covering in this talk? So basically, we're covering Ecovacs robots, which
181080	186580	you see on the left side, up to the X2. And we're also covering lawn mowing robots and the
186580	192600	air purifiers, so the AirBot series. Technically, all the stuff which we do also applies to
192600	199080	Yeedi, because Yeedi is basically a sub-brand of Ecovacs. And we only focus on devices which
199080	205260	run Linux, so no dumb robots, so only cool stuff. So about the Stark. Well, this is
205260	209280	basically a result of five years of research and experiments. And technically, we're not the
209280	214380	first ones or the only ones who do research on Ecovacs. The vendor knows about most of our
214380	221320	findings. They tried to fix some of them, but failed. So they failed, very sadly. And for
221320	224700	other vulnerabilities, which are really, really, really bad, they, for whatever reason, have
224700	229600	chosen to ignore them. Also, here, I want to give a shout out to Chris Anderson, who also
229600	233080	found, independently, all this stuff, and we, at some point, connected to each other. We're
233080	236560	like, oh, wait, yeah, we know about this vulnerability, we know about this vulnerability. So
236560	241680	there's probably way more people out there who know about that stuff. Typically, that kind of
241680	245460	things are like a collaborative effort. So on the right, you see a picture where we were at
245460	250220	CCC camp in Germany, and we're just, you know, messing with the lawn mowing robots, or we
250220	256880	were hacking the cameras of the robots in India. So let's start with the motivation. Why do we
256880	261400	want to root devices at all? Well, one of the things for us as hackers is, well, we want to
261400	265840	play with cool hardware, because that stuff is kind of cheap. The other thing is, you want to
265840	271640	obviously stop the devices from constantly phoning home. A lot of people have, like, a very
271640	275460	good, like, smart home automation system, like Home Assistant, and they want to use that
275460	279840	instead of the cloud. Also, one thing which becomes more and more important is, like, the
279840	283860	rate to repair. So basically, if you, if the device is broken, we want to figure out what the
283860	289380	reason is, and it's easier to, you know, figure it out if you have root access. Also, we want to
289380	293440	verify the privacy claims of vendors, because vendors, you know, they say a lot of things,
293440	299580	but it's not necessarily true. So why do we, don't we trust the companies? So one of the
299580	303280	things with IoT devices is they are connected to your home network, and they have internet all
303280	307580	the time. The communication to the cloud is typically encrypted, and you have no idea what
307580	312300	they're actually sending out. From our own experience, we know that developing secure
312300	317120	hardware and software is extremely difficult. And in the past, we caught vendors, basically,
317120	321900	with some shady behavior. The other thing is, these devices, I mean, they not only have
321900	325980	cameras, but nowadays, they more and more have microphones. So, and the question is, like, why
325980	332080	do we need that? Generally, if you have cameras, well, there's some risk with that, and devices
332080	337000	might store pictures indefinitely. And from our own research, we know, like, that some of
337000	342200	them do, and both in the cloud and locally. And the other thing which we run into is, like, if
342200	346660	you buy used devices from, you know, eBay or Amazon, you don't know if the previous owner
346660	349900	installed, like, a rootkit onto that. So as a new owner, you have no way to verify the
349900	353120	software, and as a result, you might have a malicious device in your home, like, which
353120	358660	spies on you. So basically, root access is more or less the only way to kind of figure out
358660	364040	that the device is clean. Speaking of vendors, there happened, like, this story around, I
364040	367680	think, one and a half years ago, where basically iRobot got caught that they were, like, you know,
367680	372960	making pictures of people and selling them to Venezuela from, you know, labeling them by
372960	377660	gig workers. And the other thing is, well, this device contains a lot of data, so companies
377660	381320	are very interested in, like, you know, collecting data about your homes. And one of the
381320	385680	rumors was that Amazon was trying to buy iRobot, not because of the great robots, but because
385680	392540	of the data. One question which we will answer later, if you can rely on certifications,
392540	396180	because all the devices which we analyze, like, in the last two, three years, have
396180	402280	certifications, including Equivax. So, um, I want to give you, like, a very brief overview
402280	408140	of our hacking journey so far. And for me personally, everything started back in 2017. I
408140	413060	was giving a talk at the CCC and at Defcon, and this was a work together back then with
413060	416240	Danny Vigema, and we targeted the Xiaomi vacuum robots, the first generation and the
416240	420540	Roborock. And the over-the-air update system was completely broken, so we were able to
420540	425240	just push, like, local firmware updates. Then it became a little bit more complicated, so
425240	429240	the vendors kind of locked on things. For the newer Roborock devices, we had to basically
429240	434080	figure out a custom bootloader tool, which required teardown, and we were kind of, like,
434080	439480	slightly annoyed about that. So, back then, we took a first look at Equivax, and after my
439480	443840	CCC talk back then, some influencer gave me, like, a Equivax D-Bot 900, which she got
443840	447980	from Equivax. And this had the very, very early firmware with the bug symbols in there,
447980	451980	which was very, very helpful. One thing which I figured out back then is that the firmware is
451980	456300	unprotected, TLS is completely broken, there's no integrity protections, you can route a
456300	460660	device by a man in the middle, and you can just push, like, malicious OT updates. But one of
460660	464980	the problems was the hardware was extremely weak, so it wasn't really interested for us. And
465080	470080	as a result, we never published the results on that, because, I mean, why would we? So, over
470080	473760	time, we had to develop new methods, because it became more and more difficult to route
474820	481240	Roborock and Xiaomi devices. So, in 2021, I released a method for newer, like, Roborock
481740	486360	devices, and also Dreamy. By the way, the CyberDog is a Dreamy device, technically, where
486360	490080	we were able to bypass Secure Boot and some security features and be able to route it
490080	496520	again. And it became, again, complicated in 2023. We were looking again at Dreamy,
496520	500700	Roborock, Navel, and Shark, and figured out a secure bypass for, like, some bootloader
500700	506920	magic. The issue with all of these is finding new routing methods become very annoying,
506920	509420	and it takes a long time. For the last one, we need, like, basically, like, multiple
509420	513260	months. So, we tried to find, like, a new vendor, which we, you know, would attack
513260	519120	again. So, we went back to EchoVax. And by that time, EchoVax started to release more
519120	524120	and more powerful devices. And they were very similar to other devices, but they were
524120	527520	lower priced. So, this is, like, perfect. So, one of the first devices which I analyzed
527520	533800	back then was the D-Bot X1. As soon as I unpacked it from the box, it took me 30 minutes
533800	538860	to get root access and have a modified file system on it. So, this was a perfect target
538860	544500	for future endeavours with that company. In the penalty of that, as mentioned before,
544500	550400	Braylin was messing with EchoVax and Yeti robots, and so it found very similar things.
551080	554960	One thing which I need to address is, like, a lot of vendors, they saw my talks, and they
554960	559660	started to obfuscate or introducing countermeasures against our routing attempts. For example,
559660	563740	Shark Robot, or, like, their contractor, they kind of just, like, we're hiding Vias and
563740	568440	everything. So, they upgraded, we upgraded too. Basically, we got an X-ray machine, and
568440	572160	now we started to just X-ray things because it's faster than, like, just measuring through,
572160	579880	like, traces. All right. So, let's talk about the EchoVax ecosystem. So, why are we looking
579880	584340	at EchoVax generally? It turns out that this company is fairly old. They were founded back
584340	591460	then in 1998 in China, and they produced initially, like, OEM vacuum cleaners. They introduced
591460	597280	their own brand of vacuum robot in 2007 with a D-Bot, and in 2020, we had the market share
597280	601460	of 17 per cent, so this was basically the latest number which we were able to find.
601540	606180	We couldn't find a newer number, and so back then, we were second to iRobot, but the global
606180	610360	market share is way higher nowadays, so we assume that they're probably, like, probably
610360	616200	the top two or top three manufacturers, so their market cap is, like, five times higher
616200	622020	as iRobot. They produce a bunch of different products, so, for example, vacuum robots which
622020	625200	is kind of, you know, what you would expect, but they have also window cleaners which,
625200	629460	you know, clean your window. They have mobile air purifiers. They have lawn mowing robots,
629460	634800	and they have some other products. So, let's take a look at the hardware. Well, so typically,
634800	637360	if you look at the hardware, we kind of try to figure out, okay, what's going on on the
637360	643060	device, and so what we have on one side is the SoC, which is basically running Linux.
643060	647020	It's responsible for navigation, mapping, and connectivity, so it's connected to the
647020	651360	storage. It has, like, access to sensors like LiDAR, camera, microphones. It does, like,
651360	655720	the connectivity, so Wi-Fi, Bluetooth, and Ultra Wideband in some devices. On the other
655720	660060	side, we have the MCU, the microcontroller, which is responsible for all the retail operation
660060	665760	stuff, so controlling the wheels, infrared sensors, fans, and drop sensors. Typically,
665760	670240	you want to have your drop sensors real-time operated, because you don't want to wait one
670240	674200	second until the robot is already flying down the stairs, so you want to do that real-time.
675420	680520	All right, so one of the first devices which I saw, I mentioned back in 2018, was the D-Bot
680520	685640	900 series. This was, like, basically like a rocket ship with one core, 128 megabytes of RAM,
685640	691380	and 256 megabytes of NAND flash, so not great. Sensor-wise, we had back then LiDAR already,
691380	695420	infrared sensors, but it was just too weak, so even if you have root access, there's literally
695420	700520	nothing we can run on that, because it runs out of memory. Thankfully, later on, they started to
700520	707000	kind of put, like, more performance chips into it, so the X1, in this case, was interesting and
707000	712960	cheap, and they recycled from there on the hardware for multiple generations, so for us, it makes
712960	716060	sense to kind of look into that, because we basically could repeat our knowledge, like,
716060	723940	on newer models. In our example, the X1 was also interesting, because it had a station,
723940	728380	so just both station and robot were creating their own Wi-Fi network. We had a voice assistant,
728380	732840	so microphones, which is always good, and we had the remote view feature, so you could access the
732840	737050	camera remotely, which is always great for hacking. If you take a look at the hardware,
737980	741980	it's more or less the same hardware as the X2, so the newer generations, like, which we have here,
741980	749640	and it's based on the Horizon X3 SoC, so this is a quad-core ARM Cortex-A with, like, a Cortex-R
749640	757360	in it, and it has also AI acceleration on the same chip. They use 2GB of RAM, 512MB of SPI flash,
757360	763880	and a GD32 MCU, which is basically like a copycat SDM32. The X2, by the way, they use eMMC flash,
763880	767140	because they figured out they don't have enough flash, so we kind of needed more stuff.
767400	771220	One chip which was especially interesting for us is they have a special chip for voice
772000	777540	processing, which is the Baidu AI chip, and it has its own firmware, and they supposedly use it
777540	785680	for regular detection, but who knows. So, let's talk about the sensors. Well, the X1 has a
785680	789880	LiDAR sensor, which is kind of cool. It has a microphone array, for whatever reason, or for the
789880	795160	voice assistant, but, I mean, why would you use it? And it has camera and line lasers, so basically
795160	799360	to detect objects in front of it. And it has, obviously, a lot of infrared sensors to kind of
799360	802360	detect if it runs into something, if it, like, drops from somewhere, or if it, you know, runs
802360	809080	over your cat. A device which is very, very similar is the AirBot Z1, which we call the
809080	816060	SpyBot, out of reasons. It was released last year. It's based on the same design, like, as the X1,
816060	820640	but it has one additional camera and six microphones. And the features of that is, well,
820640	826960	you can use it as a Bluetooth speaker, which follows you. It's an air filter and humidifier,
826960	832900	and it has a home patrol mode, so it will drive around in your home, and if an intruder gets in,
832900	837900	it will kind of alarm you. The thing is, you can also use it to talk to someone at home,
837900	841340	and basically, if you walk away, the robot will kind of follow you and kind of focus on your face.
842000	846940	The cool thing here is, you basically get two robots for the price of one. What they did is,
846940	853120	they basically recycled their old robots, so the top part of the air purifier is basically an X1,
853340	859500	a vacuum robot. The bottom part is an old 900 series device, and there's an Ethernet cable which
859500	866100	runs through the whole big thing, which connects both of them via Ethernet. So, very efficient.
866860	873920	So, let's talk about the lawn mowing robots. They have been released in 2023 in Europe,
873920	879240	and this year, I think, recently post-CES, this year in the US. It's kind of cool because
879240	884000	they're for navigation, GPS, but also they use visual and time-of-flight cameras, so they can
884000	889680	kind of create a point cloud. And they use ultra-wide-band beacons to kind of navigate.
890100	894260	And feature-wise, you know, you can put an LTE module into them, so you can connect them from,
894260	898740	you know, even if the Wi-Fi doesn't have, you know, connectivity. And again, they have a remote
898740	904000	view and patrol function, so they will patrol your garden. Now, you might be paranoid and say,
904000	908900	like, wait, I don't want to, you know, accompany, like, watch my garden. Of course, don't worry,
908900	914700	they say, like, yeah, you can watch your garden, patrol your garden, but your data stays safe,
914700	919960	and we are certified because we use encryption and stuff. If you ever run into the issue to
919960	926400	reverse-engineer devices like that, be prepared that you need a lot of space. So, this has been
926740	932340	a lot of screws, and it took, like, hours and hours and hours to disassemble it, and even more
932340	936220	hours to reassemble it, and two screws were missing, and I still don't know where they are.
936220	944100	So, always keep track of your screws. So, if you take a look at the Lawn Mower, it has an
944100	950580	octa-core Rockchip SoC with an AI accelerator, like a GPU, basically, 4 gigabyte of RAM,
950580	955800	16 gigabyte of eMMC flash, and it has multiple MCUs. So, it has a display, which you can control
955800	960960	as its own, like, STM32-like display. I tried to run Doom, but it doesn't have enough flash, so...
962140	966740	And also, even the knife assembly, which kind of controls, like, the cutting, it has also its own
966740	972780	MCU. Sensor-wise, it has a 360-degree camera on top. It has a front camera, it has a time-of-flight
972780	978140	sensor, has rain detectors, it has bump switches, so they kind of, like, put every sensor in there,
978140	984140	which you can have. Thankfully, they gave us a lot of debug ports. So, all the models since
984140	991880	2019 have very similar debug ports, which gives you UART, 3.3V, SWG, and USB. And it's easy to
991880	997000	debug, and you can root a device, or get a root shell, basically, without breaking any of the
997000	1005990	warranty seals. Cool. Now, let's talk about some of the software that EchoVax employs. So,
1005990	1010770	these things run on Linux OS. They're basically just a mobile Linux server.
1011490	1016810	They are using ROS, Melodic Merenia, for the robotics portion, or handling. They also have
1016910	1022150	a custom, like, software suite called Medusa. And there's a couple of interesting software packages
1022150	1030470	that are on the robot, including Python 2.7, which is very handy for hackers. They also use the AWS
1030470	1038070	Kinesis SDK for remote camera access outside of China, and the Alibaba Alien SDK for remote camera
1038070	1043210	access inside of China. So, the good thing is that there are little to no protections against
1043210	1048550	rooting, which is what hackers like. So, let's briefly touch on some AI models that they're
1048550	1055230	using. They use TensorFlow and OpenCV for detection. Some of the typical objects include furniture,
1055690	1062830	cables, pets, and pet remains. The lawnmower also can detect small animals and face recon. But
1062830	1069490	on the right is a screenshot of our favorite object that it can detect.
1071370	1076350	So, just wanted to touch on firmware updates. We've been keeping track of their firmware updates
1076350	1082970	since we've obtained the robot. The U.S. version was released in 2023.
1084890	1093210	And they... why did that go so quick? They had been putting out monthly firmware updates
1093210	1100890	since then. And they stopped in March 2024. So, we're kind of questioning if this is the end of
1100890	1107570	life for this pretty new product. Their change logs are also not very informative. So,
1107570	1111890	we have a theory that they're dropping device support very quickly, which is unfortunate.
1113330	1120410	So, the mobile app structure, there's a... there's like a core app, the EchoVax home app.
1120790	1126590	And then when you add robots, they're... plugins are downloaded dynamically every time you add
1126590	1133350	one to your account. So, now we'll talk about security and privacy. So, when we first started
1133350	1138030	researching EchoVax robots, we wanted to see if they had like a bug bounty program. And
1138590	1143630	this is the only page that we found for their security program. They claim that they have like
1143730	1148510	a public bulletin board if you report bugs to their just kind of email address. They want you
1148510	1154930	to email bugs to them, which is not like a secure method to do that generally. So, yeah, there's no
1154930	1159270	real collaborative bug bounty program. And they don't respond to our reports or emails. They
1159270	1167450	just kind of ignore us. Some bugs are silently patched, we've noted. But their privacy policy,
1167450	1172190	it doesn't... there's no guarantees that the data stays in your locale, which is kind of scary.
1173470	1179970	Regional AWS services are used for the EU and US and China, of course. Some photos and videos
1179970	1185450	are sent to Ali cloud video for AI analysis in certain models. They claim that you have to opt
1185450	1190730	in. I'm not sure if they honor that, but more research is needed. But of course, lots of
1190730	1196730	telemetry data is collected, as with most IoT devices these days. So, what are we concerned
1196730	1202450	about? These vacuums have microphones and cameras. So, can they be enabled remotely without user
1202450	1208830	notice? And where's the data sent to? And, of course, we need to be concerned with AI and
1208830	1215450	privacy. So, why do these robots need face recon AI models? And is this telemetry data being used
1215450	1227210	to train their AI? So, after Dennis' DEF CON talk last year about Roborock vacuums, they posted
1227210	1233070	this really interesting blog post titled, Can Robot Vacuum Cameras Be Hacked? And they claim
1233070	1241830	that their cameras are, like, encrypting all data gathered by the device. But who knows?
1243090	1248890	So, they post a bunch of certifications from Tube Rhineland, which is... that costs quite a bit of
1248890	1254190	money. And they claim to be meeting and exceeding all standards. They even have, like, a splash
1254190	1260870	screen when you load their mobile app, claiming that they meet ISO standards. Again, not in line
1260870	1269110	with our findings, which we will talk about now. So, data harvesting. The mobile apps and the
1269110	1274710	just a lot of communication with the EchoVac servers. Their key data collection endpoints
1274710	1279850	are called Big Data and Data Upload. So, it's not like they're hiding what they're doing.
1279850	1285430	They're pretty upfront about it. So, some example of telemetry data that's collected are live
1285430	1291670	coordinates of the robot location in your home. Wi-Fi access points, network data, and additional
1291670	1297990	debug information is sent to EchoVac servers if the robot gets stuck somewhere. And possibly AI
1297990	1303590	pictures, even if not opted in. So, what are they retaining in their cloud? Maps and pictures are
1303590	1310090	stored in a NoSQL database. So, anyone who knows the object ID of the map can access that data.
1310090	1315610	There's no access controls on these points of information, which is... I don't know. I don't
1315610	1320370	want random people with an EchoVacs account to be able to see a map of my house. The maps
1320370	1326730	associated with the robots, they seem to remain on servers, even if you do a factory reset or
1326730	1331250	repair the device to a different account. Also, deleting your actual EchoVacs account has no
1331250	1337770	effect. The map remains indefinitely on their servers, even if you supposedly remove all of
1337770	1347270	your information from your account. So... oh, what's wrong? Oh, sorry. Skipped over one point.
1347810	1353890	Oh, the JWTs that are used for authentication are also... they also remain valid after you delete
1353890	1358130	your account. So, you can continue using your account, even though you deleted it.
1359310	1364070	And access to the robot is still possible. So, not ideal security.
1365170	1370370	So, what are they storing on the device? There's a user data partition, and it's not encrypted,
1370370	1375730	of course. Why would they encrypt that? There's lots of logs, configs, maps, and pictures that
1375730	1381270	are stored on this partition, including the live video pin, which is stored in an MD5 hash,
1381270	1387710	and the robot lawnmower pin, which is stored in plain text. There's also Wi-Fi credentials
1387710	1392610	and your neighbor's Wi-Fi access points. So, they're kind of just mapping the whole world
1392610	1400290	with their robot vacuums. There's also the HelloYiku traffic logs, which are... that's their
1400290	1406570	voice assistant. So, keeping track of what you say to your robot. So, always keep in mind that
1406570	1411130	if you're selling a used device, that even if you factory reset it, there's a risk to your privacy.
1412110	1419410	And, additionally, Flashware leveling will always be a problem, but that's for a different talk.
1419990	1428210	So, one of our big findings was that they did not configure their TLS properly. So, the EchoVax
1428210	1433410	home app mobile application correctly checks certificates, but the robot-specific plugins
1433410	1440410	don't always do that. So, the plugins sometimes accept self-signed certificates, which is very
1440410	1446710	risky to use on an insecure Wi-Fi network, like at an airport, hotel, or the DEF CON open Wi-Fi.
1446710	1453970	Please don't do that. There's no warning or error shown in the app. And this traffic
1453970	1459050	will leak your authentication tokens and will allow the attacker to have access to your account
1459050	1465870	for up to seven days and access to video feeds, like everything. Here's an example of the traffic
1465870	1473750	that we were able to intercept. We've redacted the authentication token just for good measure.
1475290	1481310	And, additionally, they misconfigured TLS in their robots themselves as well. The MQTT and TLS
1481310	1489150	connections, they accept self-signed certificates on some devices, which allows for man-in-the-middle
1489150	1497910	attacks and over the OTA updates can be injected. The tool that we used for this is CertMidim by
1497910	1505890	Oppo Oxman. I highly recommend it. It's pretty fun. And this is partially one of the reasons
1505890	1511490	why this is happening. They are running bash scripts from the robot with no check certificate
1511490	1521710	on WGIT. Not ideal. So, another thing that we found was that the robots have audio warnings
1521710	1525630	when the camera is accessed from the mobile app at the start of access and every five minutes
1525630	1533350	afterwards. A sound file is played. So, the problem is that local sound files are stored on the data
1533350	1538390	partition, which isn't encrypted and can just generally be accessed. So, the sound files can
1538390	1547270	be deleted and replaced. So, we can replace the warning audio with an empty file. So, nothing
1547270	1551190	will happen when you access a live video feed, which we'll tell you why that's a huge problem
1551190	1562630	in a second. So, this finding was reported at CCC last year, but they fixed it and then we broke it
1562630	1568010	again. So, we're going to tell you about it again. So, the app allows for live video and audio access
1568010	1574170	on the robot and this functionality is provided by AWS Kinesis. The owner and shared users of the
1574170	1580310	EchoVax account can access this feature. It is protected by a PIN and the PIN will be asked for
1580310	1585770	before connecting and it can only be changed and reset by the account owner and the reset requires
1585770	1592690	account credentials. So, here's how the PIN works. Mobile app will ask the user for the PIN.
1593430	1599030	The EchoVax cloud will act as a kind of broker. So, now we ask the robot, hey,
1599030	1604010	does this PIN hash match with your local hash that's stored on the robot? If yes,
1604010	1609550	the robot decides that it is correct, sends that response to the mobile app,
1609550	1618670	and then the WebRTC session over AWS Kinesis will be started and both will join the AWS Kinesis
1618670	1625050	session. So, what happens if the PIN is incorrect? We go through that same process,
1625050	1638790	but with an incorrect PIN. Sorry, I don't know how to use PowerPoint. Okay. So,
1650790	1656910	okay. Sorry about that. Okay. So, we asked ourselves,
1656910	1663290	are the PIN verification and WebRTC session tied together? So,
1663290	1668790	why is it... this is truly annoying. Why is it doing this?
1673100	1676840	Okay. Sorry. Animations have a mind of their own right now.
1676840	1681220	Turn off the animations. Oh.
1681560	1687240	It's fine. Just go to animation. It's slides by themselves. I can't stop it.
1688680	1693320	This is entirely automated. There's like a button that's pressed down right now automatically.
1693980	1695300	Sorry for that.
1705750	1708410	You need to turn animations off. I don't know how to.
1715100	1717480	Okay. No, it's not.
1725880	1729700	Anyway, the takeaway message here is we don't know why the animations are broken, but
1730760	1734980	basically it doesn't matter if the PIN is correct or not correct. You can convince the app that the
1734980	1739180	PIN is still correct and we'll just establish a session. And we have a demo here.
1743470	1746090	Do you know how to disable it? Sorry.
1760230	1763270	Dennis, disable the track. Sorry, that's where it worked before.
1775320	1779900	Oh, my God. Why is it going automatically? Did everyone see that?
1784220	1788340	We're just trying the slideshow again.
1790120	1791300	I mean, they're fine.
1796760	1798600	That starts from the beginning.
1806070	1810170	Okay, we have automated slides for some reason, so we're just going to work with it.
1810170	1815370	Okay, we can't work with this. Why is this happening?
1815370	1817470	This is really awful.
1833100	1836980	Okay, now it's working. Okay. Trust Microsoft.
1838300	1845320	Sorry about that. Okay. So, right. So, as we were trying to go through...
1848920	1864970	Oh, my God. Okay. So, we're trying to verify the PIN, but the PIN is incorrect.
1864970	1871210	So, are these tied together? The WebRTC session. So, can we intercept this request
1871910	1877910	or the response that PIN is incorrect and tell the app that the PIN is actually correct?
1878170	1882630	And the answer was, yes, we were able to do that. So, now we have a malicious session.
1882930	1889450	And we have an AWS Kinesis stream. So, can we bypass that all together and just patch
1889450	1894350	the PIN query out of the app? And again, yes, we were able to do that. But we just want to make it
1894350	1899230	abundantly clear that this is an issue with Echovax's implementation. This is not an issue
1899230	1907170	with AWS. So, don't sue us, AWS, please. So, in short, the PIN protection is implemented in the
1907170	1912030	app, but it's client-based authentication and ACL enforcement. So, the robot doesn't keep track of
1912030	1917370	successful authentications. The log of the video stream access relies on the honesty of the app.
1917370	1922970	And this is really bad in combination with the TLS issues that we just touched upon. And it's
1922970	1927710	even worse if the sound files have been tampered with. So, here's just a video demo. This was
1927710	1935170	reported in 2023. An unsuccessful fix was pushed. Some plugins were updated and no firmware fixes,
1935170	1942450	which is where, like, the real problem was. So, we can downgrade the app with a bad plugin and
1942450	1947210	it still works. So, here's just a quick video demo. This is just Burp Suite. We have some find
1947210	1953390	and replace queries to simplify it. We enter a wrong PIN, 111, a couple of times.
1954370	1960450	Not the right PIN. So, we continue. Then we enable our find and replace queries in Burp Suite,
1961470	1966230	enter again the wrong PIN, and we are dropped into a video streaming session
1966970	1973810	and successfully bypass the PIN mechanism. And here we are.
1975490	1977030	Cool. So?
1978530	1982350	All right. So, let's talk about free lawnmowers. Who wants a free lawnmower?
1983030	1989530	Okay. Now you learned how. Actually, please don't. We're not free. So, the ECHO OS G1 has
1989530	1995110	an anti-theft mechanism where, basically, if you pick up the robot and you, you know, you need
1995110	1999930	and you don't trigger the alarm, basically, you need to enter a PIN to unlock it. As an owner,
1999930	2002850	you can also enable alarms. So, basically, if you pick it up or someone picks it up,
2002850	2006970	some alarm will go off. The problem here is, well, the PIN is implemented, basically,
2006970	2012010	the SOC in the Linux operation system and the PIN is stored just on a plain text file on the robot.
2012530	2018170	The thing, generally, with lawnmowers is that other lawnmowers have the same issue.
2018310	2024570	So, as a general recommendation, do not keep your mowers outside unprotected. And, you know,
2024570	2029630	we kind of hope that ECHOVACS and other vendors would somehow find a more secure location for the
2029630	2034590	PIN, for example, like in one of the MCUs, so to kind of, you know, have a better locking mechanism.
2035150	2040410	So, let's talk about our main point today and that's the Bluetooth remote code execution,
2040410	2045070	which we found at some point last year, which we were hoping that we would patch until today, but
2045570	2051570	we didn't. So, what's it about? So, newer vacuum robots and all lawnmowing robots so far
2051570	2055970	use BLE, Bluetooth LE, basically, for their provisioning. So, if you initially, like,
2055970	2061570	pushed your Wi-Fi credentials onto it, they have a mechanism for that. For lawnmowers,
2061570	2065450	in particular, the Bluetooth is always active because we use it as a fallback way to control
2065450	2070010	them. And for vacuums, it's typically active for the first 20 minutes after booting,
2070010	2076010	and every time they reboot in the middle of the night for, like, memory cleaning purposes.
2076110	2079350	There's also a different way to kind of force a robot to reboot remotely, but we don't want to
2079350	2085870	talk about that yet. So, the communication between the app and the robots over Bluetooth is done
2085870	2091410	by the GAT protocol, basically. And the payload is encrypted with a static AES key, which is
2091410	2096250	something similar, it's not exactly that one, but it's like 1, 2, 3, 4, 5, 6, 7, 8, something
2096970	2102930	of that nature. And the input validation of whatever happens with the data afterwards is,
2102930	2108070	let's say, not great. And that's kind of bad if you think about that they kind of say, like,
2108070	2113150	oh, hey, our robots have cameras, but trust us, because we have been certified by the truth.
2114190	2117530	So, and as a quick reminder, these devices have cameras and microphones.
2118150	2123090	So, let's create a payload. First, what do we want to execute is, basically, we want to play
2123090	2128790	the boot music, which you heard before, on the robot. So, we take the command which causes that,
2128790	2134830	be embedded in some JSON payload, and we generate an encrypted payload. The payload looks something
2134830	2143130	like this. Basically, there's a bunch of hack stuff. What happens if you send it to one of the
2143130	2150010	payloads, it will decrypt it. It will basically extract one particular argument from there,
2150010	2155450	and will generate a command line and put the argument which is extracted into the environment
2155450	2159170	variable there. So, the command line which we get at the end of the day is something like this.
2159170	2163450	As you see, we basically use command injection there. And then it will happily execute a thing
2163450	2169890	as root. And we tested this attack basically over a 50 meters distance and even longer,
2169890	2173990	100 meters for lawn mowers because they have a more powerful Bluetooth antenna.
2174290	2182430	And we have a demo here for the G1, which is the lawn mowing robot. What we do here is we send the
2182430	2188090	payload from an Android phone, and you will see that we will get a session back in a second. So,
2188090	2192730	we're sending a payload now. You saw it connected back to us, a reverse shell. And now we can type
2192730	2198190	on the robot, and, you know, we see that we are root. We see what kind of version we're running,
2198190	2204430	so the robot basically connected back to us. We have also another demo, you know,
2204430	2210530	more of the robot, but I will skip that out of timing issues. And we have also a live demo
2210530	2215950	potentially, which takes one. Okay, I skipped that too. I will do it. Okay, we have three minutes
2215950	2223330	left. So, what can you do with that if you have a BLE code execution thing? So, what we thought
2223330	2227490	about is like, hey, how can we chain that? So, generally, if you live in a very close populated
2227490	2231150	area, there might be more Ecovacs users, because especially like Ecovacs is like one of the market
2231150	2235790	leaders. So, what we can do is like, we just attack an initial object, like a vacuum robot,
2235790	2240290	sorry, lawnmowing robot, put a payload onto that, and then the robot has all the tools which it
2240290	2244490	needs to talk to other devices. So, it can infect the next robot, which has some distance, and that
2244490	2248630	one can infect again the next one. And then it becomes a problem, because the third one might
2248630	2254050	start to infect back the lawnmower. So, we just had it as a proof of concept. We didn't want to
2254050	2258430	have a whole routing protocol to figure it out. So, you know, sorry about that.
2259230	2264330	Let's talk about routing very, very quickly. So, there is a lot of countermeasures in there,
2264330	2268550	in the software. They use a lot of XOR and byte shifting to hide strings. They have a lot of
2268550	2272930	anti-debugging features. For example, they detect a deep reload in debuggers. And they use, for some
2272930	2278770	of the devices, not all of them, Secure Boot and Android Verified Boot. So, to get a root shell,
2278770	2282670	well, you can connect to the UART, but the problem is every device has a different password,
2282670	2286770	and it's hard-coded. Sorry, it's not hard-coded. It's set at boot time.
2287370	2291850	And the function is very obfuscated. But there's one particular tool which generates that,
2291850	2295270	and this is how it's basically generated. So, they take a bunch of, like, random MAC addresses
2295270	2298510	probably from the developer's computer at some point, put the serial number in there,
2298510	2302870	the model number, create a SHA-256, and then make it base64, and that's the root password.
2303670	2307090	If you want to generate it for your own robot, there's a tool. You can just go there,
2307090	2310970	just enter your serial number. It will kind of give you a password. For firmware updates,
2310970	2315590	they're encrypted but not signed. The key is kind of dynamically generated,
2315590	2320090	and it was kind of very difficult to reverse-engineer it, but it's basically AS128.
2320330	2325210	And this is the format string which we use to generate the key, which is someone's random
2325210	2329350	email address. So, we use a bunch of random stuff, mix it together, and that's the AS key.
2330390	2335490	So, as mentioned, some root file systems are not protected, so we can just modify them,
2335490	2340490	especially on X1 and Z1. We can just repack it and have our own system. One thing which
2340490	2345690	was kind of interesting for us is we can get persistence in autostart. We left the debugging
2345690	2350170	feature on some of the devices where if there's autostart folder exists on data which is not
2350170	2354130	protected, you can put a shell file into it, it will just happily execute it next time.
2354230	2360010	So, it's not protected in any way, so it's persistent forever. The problem is, for whatever
2360010	2364030	reason, on some of the devices we disabled it, on some of them not. I mean, it's kind of random.
2364670	2370230	If you want to be persistent over factory sets, well, they only delete the files. So,
2370230	2375070	the thing you can do is, basically, because we don't recreate a file system, just make files
2375070	2381490	immutable with Chatter, and that way we will stay there forever. I will talk really quick about the
2381490	2386670	takeaway lessons. First, can you rely on certifications? No, you can't. Bad news.
2386950	2391830	If you have vulnerable devices, like the lawnmower, make sure that you turn it off until
2391830	2397390	they push a fix. Don't use them. Turn them off if you don't use them. For devices which don't
2397390	2402330	have BLE, just don't update them if you want to keep root access. For vulnerable apps, don't
2402330	2408190	connect to Defcon Open. Bad idea. Use devices. Be very careful with used devices. They might
2408190	2412870	come with a compromised firmware. It's very difficult to verify. If you do factory set
2412870	2418190	before selling, do that definitely, but be aware that it might not help against everything.
2419190	2423410	One thing, choose your partners wisely. You can use the Sphinx as stalker tools. I will skip that
2423410	2429370	real quick and just finish with the summary. We have root access on most of the released, or I
2429370	2433490	think actually all of the released Ecovacs robots. We can use the UART interface and authentication
2433490	2438610	to get into the device. We can use the BLE remote code execution right now to get initial access
2438610	2444990	on devices remotely, hopefully your own. You can get persistence and run some custom firmware on
2444990	2450050	some of the devices which don't have protections. We were able to verify the claims of the vendors
2450610	2457310	and we found a lot of security and privacy issues. This applies to the app, robots, cloud,
2457310	2462550	and the certification for whatever reason didn't prevent that. I'm not a firm believer in
2462550	2469310	certifications nowadays. But this allows you to look further into IoT devices and into AI,
2469310	2474370	and so hopefully this will be for our security, for everyone's security. Some quick
2474370	2479030	acknowledgements. I would like to thank Daniel, Tris, Azuran, Timster, and Apo. And if you have
2479030	2483330	any questions, I think we have time. Maybe we have time. Actually, okay, you can ask those
2483330	2487990	questions over here. Basically, don't. Sorry for the problems. Thank you for being here.
2488590	2493230	If you have any other questions, like a remote, there's our email addresses. Feel free to reach
2493230	2495930	out. Yeah. Thank you very much.
