1 00:00:00,000 --> 00:00:09,140 Hello, my name is Lior Tzurlotan and today I want to talk to you about privacy in the automotive space or the lack thereof. 2 00:00:09,800 --> 00:00:11,740 So, a little about me. 3 00:00:11,740 --> 00:00:13,940 I work for Plexidity X. 4 00:00:13,940 --> 00:00:17,180 What we do is cyber security for automotive. 5 00:00:17,440 --> 00:00:25,040 I specifically try to find new ways to protect your cars from being taken over by malicious actors. 6 00:00:25,420 --> 00:00:32,620 I've been a developer, researcher and teacher in cyber security for the past 15 years. 7 00:00:32,640 --> 00:00:37,120 And before that, I worked for the intelligence community. 8 00:00:37,280 --> 00:00:53,180 Having worked for intelligence and cyber security, I'm naturally paranoid about private information, which is why I actually read the End User License Agreement, the EULA, before I let my toaster sample my fingerprints and sequence my cat's DNA. 9 00:00:53,420 --> 00:01:01,100 In recent years, I've focused more on the world of privacy in automotive. 10 00:01:01,100 --> 00:01:07,740 In privacy, we don't deal as much in malicious actors. 11 00:01:08,820 --> 00:01:16,380 Specifically, we look at a different kind of threat to your information, namely the vendor. 12 00:01:16,380 --> 00:01:24,140 While not exactly a malicious actor, the vendor is not exactly a benign actor as well. 13 00:01:25,540 --> 00:01:34,860 So, today I want to go over GDPR, what it is, what it does, how it does it, what are the penalties when things don't go right. 14 00:01:35,020 --> 00:01:42,180 And then I want to discuss how it compares with some other legislation around the world in privacy. 15 00:01:42,560 --> 00:01:53,440 And then I want to talk about a case study we did last year about what happens when cars know a bit too much about you. 16 00:01:54,060 --> 00:01:57,700 We actually found that the result is kind of horrible. 17 00:01:59,120 --> 00:02:01,520 So, what is GDPR? 18 00:02:01,520 --> 00:02:07,600 It's the first effective legislation in the privacy space for modern era. 19 00:02:07,600 --> 00:02:27,660 It was legislated by the EU in 2016 and its effect is so widespread because of its effectiveness that even companies that don't operate in the EU have adopted practices that evolved from the GDPR. 20 00:02:27,660 --> 00:02:30,840 For instance, those cookie consent forms you see all over the web today. 21 00:02:30,840 --> 00:02:38,300 You see them even on commercial sites for companies that don't deal in the EU, like Trader Joe's, for instance. 22 00:02:38,380 --> 00:02:47,940 Additionally, you also saw a whole new browser plugin category for the people who are annoyed by those consent prompts for cookies. 23 00:02:49,620 --> 00:03:02,460 So, GDPR first defines what private information is, then it defines what companies are allowed to do with private information, but more importantly, what they are required to allow you to do with that information. 24 00:03:03,360 --> 00:03:09,940 Basically, GDPR is there to define who owns the private information, namely the customers. 25 00:03:11,780 --> 00:03:24,680 GDPR defines private information as information relating to an identifiable person, such as me or you, and which relates to an identifiable trait, like a name or an identification number, etc. 26 00:03:24,960 --> 00:03:32,820 Additionally, GDPR defines a class of private information with elevated protections, that's sensitive information. 27 00:03:33,020 --> 00:03:39,300 Sensitive information is private information that relates to ethnic origins, religious beliefs, etc. 28 00:03:39,700 --> 00:03:43,580 Now, you might notice that these definitions are intuitive. 29 00:03:43,580 --> 00:03:47,880 They're not formal nor legal, and that's by design. 30 00:03:48,060 --> 00:03:51,860 GDPR doesn't try to define what private information is exactly. 31 00:03:51,860 --> 00:04:04,840 It defines what private information means, and it leaves it up to the courts to rule on individual cases, whether the information they are judging on is private or not. 32 00:04:04,840 --> 00:04:13,540 Once a court has ruled on a certain case, whether a piece of information is private information, then subsequent cases can be ruled based on that precedent. 33 00:04:15,840 --> 00:04:17,600 So, a few examples. 34 00:04:17,600 --> 00:04:29,560 While a phone recording of your conversation is obviously private information, the IMEI, the identifier for your phone, was ruled as not private information. 35 00:04:29,560 --> 00:04:38,320 The reasoning behind this is that the IMEI identifies your phone, or specifically the phone's modem, it doesn't identify you, the owner of the phone. 36 00:04:38,680 --> 00:04:40,140 Another example. 37 00:04:40,960 --> 00:04:54,540 While your location is obviously private information, the list of known BSS IDs, the list of Wi-Fi networks you've connected to in the past, that's not considered private information under GDPR. 38 00:04:54,540 --> 00:05:05,760 That's because that while we all know that you can use the list of networks around you to pinpoint your location, the location information is not inherent to the BSS IDs. 39 00:05:05,840 --> 00:05:19,220 Rather, the location provider maintains and owns a database that maps BSS IDs to their physical location, and that's how they can locate you using the Wi-Fi networks around you. 40 00:05:19,320 --> 00:05:30,400 Now, some would argue that this leaves a gaping hole in the legislation, and I'm just not going to touch on that hot potato of a topic for this talk. 41 00:05:30,400 --> 00:05:35,900 So, why does GDPR define private information this way? 42 00:05:35,900 --> 00:05:41,540 It's meant to allow the legislation to evolve and grow with the culture and technology. 43 00:05:41,620 --> 00:05:49,960 So, for instance, GDPR was legislated in 2016 when the legislators did not consider AI at all. 44 00:05:49,960 --> 00:05:54,040 It's not that AI was not a thing, it just wasn't a thing on their mind. 45 00:05:54,040 --> 00:06:08,140 And yet, without any amendments or further legislation, GDPR today can regulate the way AI companies scour the web to mine data for their AI models, for their LLMs and other models. 46 00:06:08,240 --> 00:06:17,500 So, this indirect way of defining private information has allowed GDPR to remain relevant. 47 00:06:18,700 --> 00:06:24,980 Where GDPR becomes a bit more straightforward is in the rights it grants you. 48 00:06:25,040 --> 00:06:27,820 It does this by defining a few principles. 49 00:06:27,820 --> 00:06:30,240 The first is the minimization principle. 50 00:06:30,300 --> 00:06:40,860 A company is only allowed to use the minimal set of information it requires for whatever product or service it offers you, and nothing more than that. 51 00:06:40,860 --> 00:06:46,120 Also, it's only allowed to use that information for the service it offers you. 52 00:06:46,360 --> 00:06:52,660 For instance, your contacts app on your phone doesn't need to request any permission before it stores names, emails, phone numbers. 53 00:06:52,660 --> 00:06:55,320 That's the core functionality of the app. 54 00:06:55,320 --> 00:07:13,920 Or another example, when you first boot up Waze on your phone, the application requests permission to activate the location API, but it doesn't request any permission to upload that data to Waze's backend for their crowdsource navigation algorithm. 55 00:07:13,920 --> 00:07:22,520 However, because of the minimization principle, Waze is not allowed to use that information for anything other than navigation. 56 00:07:22,800 --> 00:07:25,720 Otherwise, they'd be in violation of the minimization principle. 57 00:07:26,620 --> 00:07:28,600 A second principle is ownership. 58 00:07:28,600 --> 00:07:31,560 As I said, you are the owners of your information. 59 00:07:33,020 --> 00:07:46,460 As such, a few rights were born out of this law, namely the right to review your data, to amend your data, and to withhold your data, and to delete it. 60 00:07:46,460 --> 00:07:56,160 So, what that means is that just about every service you use today has some way for you to download the complete record that's associated with your login. 61 00:07:56,680 --> 00:08:00,240 Additionally, you also have an option to delete that record. 62 00:08:00,280 --> 00:08:07,240 For instance, on X in the account settings page, you can download your entire record, but you can also deactivate your account. 63 00:08:07,240 --> 00:08:13,180 Once you've deactivated your account, 30 days later, the entire record is expunged from the access servers. 64 00:08:13,180 --> 00:08:16,500 That's meant to comply with exactly this principle. 65 00:08:19,540 --> 00:08:25,200 Another principle is informed consent, with an emphasis on informed. 66 00:08:25,200 --> 00:08:35,610 That emphasis is demonstrated by the fact that EULAs, those checkboxes you mark whenever you sign up for your service, they are not considered informed consent for the purposes of privacy legislation. 67 00:08:38,190 --> 00:08:57,070 Anyone who's booted up a fresh install of Windows or Android, for instance, lately, was greeted with those privacy setup pages, where you can check off or on whichever data collection or transmission you consent for the operating system to perform. 68 00:08:57,750 --> 00:09:07,810 Now, those pages, those privacy setup pages, were designed specifically to collect informed consent. 69 00:09:07,810 --> 00:09:12,970 They tell you what you're consenting to, and you're allowed to reject that request. 70 00:09:12,970 --> 00:09:14,830 Now, that's an important point. 71 00:09:14,830 --> 00:09:31,470 As a result of the minimization principle, the ownership principle, and the informed consent principle, you are also allowed to withhold specific types of private information without losing access to the service or product you're using. 72 00:09:31,470 --> 00:09:43,370 That means that if you check off or remove the check from all those boxes in the privacy setup page, the legislation requires you to still have full access to the operating system. 73 00:09:46,930 --> 00:09:50,170 Now, there's one principle I didn't mention. 74 00:09:50,170 --> 00:09:51,530 Where are Alice and Bob? 75 00:09:51,530 --> 00:09:55,030 Is encryption not a part of privacy? 76 00:09:55,550 --> 00:10:11,350 Now, while GDPR does define a minimal standard for protecting private information, the focus in privacy is not to defend companies from attacks or even you from data leaks. 77 00:10:11,350 --> 00:10:14,630 Rather, the focus is on ownership. 78 00:10:15,170 --> 00:10:23,130 The fact is that hackers will hack, data will leak, and bugs will ruin a developer's Saturday evening plans. 79 00:10:23,290 --> 00:10:30,270 But ownership means you get to decide your level of exposure to that risk. 80 00:10:33,330 --> 00:10:37,590 So, what happens when companies don't play by the rules? 81 00:10:38,090 --> 00:10:41,910 GDPR defines two kinds of infractions. 82 00:10:41,910 --> 00:10:47,890 The first are the lesser infractions relating to data storage policies, certifications, etc. 83 00:10:48,930 --> 00:11:00,690 Violating these kinds of policies imposes a risk of fines up to 2% of the company's annual income or 10 million euros, whichever is higher. 84 00:11:01,050 --> 00:11:16,750 The more severe infractions, those relating to informed consent, the minimization principle, ownership, or those involving sensitive information, they impose risk of fines of up to 4% of the company's annual income or 20 million euros. 85 00:11:17,190 --> 00:11:22,370 Now, note that I keep saying up to these many percentages or millions. 86 00:11:22,490 --> 00:11:32,070 In reality, most fines issued under GDPR are much lower, especially in the case of lesser infractions. 87 00:11:32,930 --> 00:11:51,470 If we take a look at a database that tracks GDPR enforcement, we can see that in 2024, 216 fines were issued under GDPR, with just three of them making up over 75% of that sum issued to LinkedIn, Uber, and Meta. 88 00:11:51,670 --> 00:12:06,250 In 2025, by the end of the first half of the year, 0.6 billion euros were issued under GDPR in fines, with just one of them making up over 85% of the sum issued to TikTok. 89 00:12:06,970 --> 00:12:13,390 So we can see that while enforcement is active, most fines are rather small. 90 00:12:13,390 --> 00:12:19,170 But the point is that huge fines are correctly associated with GDPR. 91 00:12:19,170 --> 00:12:26,990 Essentially, violating these privacy laws is like playing roulette with a company's finances. 92 00:12:30,100 --> 00:12:38,880 So, as I said in the beginning, GDPR is the first effective legislation in the field, but it's by no means the only player in the field. 93 00:12:38,960 --> 00:12:55,000 Just about every other country has some law in the books meant to regulate private information, like India's Digital Personal Data Protection Act, Korea's Personal Information Protection Act, Israel's Privacy Protection Law, California's Consumer Rights Act, 94 00:12:55,000 --> 00:12:59,780 and China's Personal Information Protection Law, and the list goes on. 95 00:13:01,220 --> 00:13:10,540 I'd like to take a moment to compare and contrast GDPR with CCPA, the Californian legislation, and PIPL, the Chinese legislation. 96 00:13:10,600 --> 00:13:17,560 Because, as you'll see, GDPR sets the tone for the entire world these days. 97 00:13:18,900 --> 00:13:29,740 So, the Californian CCPA focuses on specific threats to Americans imposed by American companies. 98 00:13:29,740 --> 00:13:41,100 That means CCPA focuses on things like predatory business practices, like data brokerage, and it focuses on civil litigation for penalties. 99 00:13:41,880 --> 00:13:45,600 Now, CCPA defines private information similarly to GDPR. 100 00:13:45,600 --> 00:13:56,740 It applies to a similar group of people, except in California, but the fines usually associated with CCPA are much lower. 101 00:13:56,740 --> 00:14:09,500 Not those millions and hundreds of millions of GDPR, but rather hundreds or thousands of dollars per violation awarded to the person affected by the violation. 102 00:14:10,140 --> 00:14:15,560 Over the years, CCPA has been amended several times. 103 00:14:15,560 --> 00:14:23,220 One amendment that's noteworthy is CPRA, Californian Privacy Rights Act. 104 00:14:23,500 --> 00:14:37,800 The amendment introduced several principles, namely the minimization, ownership, and informed consent principles, and it also introduced a new class of private information, namely sensitive information. 105 00:14:37,800 --> 00:14:48,920 In a word, CPRA is a major shift for CCPA towards a GDPR-like legislation, focusing on ownership and rights for the customers. 106 00:14:51,780 --> 00:15:02,440 And while CCPA started out focused on specific American issues, the Chinese PIPL is essentially a Chinese rebranding of GDPR. 107 00:15:02,440 --> 00:15:09,040 It incurs the same fines, defines privacy in a similar, albeit a bit narrower way. 108 00:15:09,040 --> 00:15:13,600 It applies to a similar group of people, it defines the same rights. 109 00:15:13,600 --> 00:15:20,720 The biggest difference between GDPR and PIPL is in the way it is enforced. 110 00:15:21,140 --> 00:15:25,680 So GDPR is enforced in a rather distributed manner. 111 00:15:25,680 --> 00:15:34,520 Each EU member state defines a privacy authority, that authority then issues fines to companies who violate GDPR. 112 00:15:34,520 --> 00:15:44,530 In contrast, PIPL is enforced centrally by the Cyberspace Administration for China, essentially the Chinese Communist Party. 113 00:15:46,890 --> 00:15:50,170 So where does automotive fit in all this? 114 00:15:50,450 --> 00:15:55,010 Before I get into that, I want to point out the importance of cars. 115 00:15:55,110 --> 00:16:03,030 Cars are necessary for modern life, be it your personal car, a ride-share, Uber, or public transportation. 116 00:16:03,030 --> 00:16:06,810 In order to enjoy modern life, you need a vehicle today. 117 00:16:08,010 --> 00:16:23,250 And while in the past cars have been rather stagnant in the world of information technology, I mean they developed amazing stuff, they improved the car's reliability, efficiencies, power, all that, but they didn't focus so much on information technology. 118 00:16:23,370 --> 00:16:25,730 And that's changing fast. 119 00:16:25,730 --> 00:16:37,770 With AI, and self-driving, and hyper-connected cars, and advanced infotainment, cars today are leaning heavily into information technology. 120 00:16:37,850 --> 00:16:42,190 However, cars remain rather opaque. 121 00:16:42,190 --> 00:16:57,350 They are about... they're essentially a computer today, in today's standards, or rather 10 different computers packed together in a single machine, and yet you have almost no interface into those computers. 122 00:16:57,350 --> 00:16:59,430 You have no idea what's going on. 123 00:17:00,750 --> 00:17:26,950 And what's more troubling is when Mozilla took their privacy not included privacy not included initiative and pointed it towards the automotive sector, they noted that every single automotive vendor they reviewed failed at their inspection, and finally they concluded that cars were the worst category for privacy they've ever reviewed. 124 00:17:28,030 --> 00:17:29,790 And what about enforcement? 125 00:17:29,830 --> 00:17:31,930 Looking back at the GDP... 126 00:17:33,890 --> 00:17:42,930 Looking back at the enforcement database, we see that over the years only three fines were issued to automotive vendors. 127 00:17:42,930 --> 00:17:54,450 We have, in 2024, a Toyota subsidiary for leasing was fined for 18,000 euros for failing to report on a data leak within the required 72 hours. 128 00:17:54,550 --> 00:18:09,690 Another fine was issued to a Volkswagen leasing subsidiary for 40,000 euros for failing to give a customer their record, their information they hold, despite that customer's request. 129 00:18:09,690 --> 00:18:25,610 And a third fine was issued to Volkswagen back in 2022 for 1.1 million euros for using video footage of pedestrians to train their advanced driving assistance system without getting consent from those pedestrians. 130 00:18:26,450 --> 00:18:36,150 Now, consider for a second the huge used parts industry for cars. 131 00:18:36,170 --> 00:18:45,070 Those computers I mentioned before, it's almost certain that the computers in your cars, at some point, will be installed in another car. 132 00:18:45,070 --> 00:18:49,290 Or maybe a computer from another car will be installed in your car. 133 00:18:49,290 --> 00:18:51,750 That's just how the market works. 134 00:18:54,230 --> 00:18:56,250 So, a quick review. 135 00:18:57,050 --> 00:19:04,110 We talked about what GDPR is, what it does, how it does it, what are the penalties, what are some other legislation in the field. 136 00:19:04,470 --> 00:19:09,630 And we noticed that automotive has so far gone under the radar. 137 00:19:10,510 --> 00:19:18,730 So, let's go see what happens when your car treats your information like an all-you-can-eat buffet. 138 00:19:21,350 --> 00:19:28,930 When we started reviewing privacy, we realized that we can't just look at policies and legislation. 139 00:19:28,930 --> 00:19:30,490 We need to get our hands dirty. 140 00:19:30,710 --> 00:19:36,790 So, we went over to a local junkyard in hopes to find some used ECUs. 141 00:19:37,790 --> 00:19:42,570 We found a BYD Model 2023 Ato 3. 142 00:19:42,810 --> 00:19:45,370 The car was totaled in an accident. 143 00:19:45,370 --> 00:19:53,970 So, we believe it's highly likely that the ECU for the multimedia unit is unwiped and we can look at it. 144 00:19:54,170 --> 00:19:59,510 We bought the ECU and then we learned we can activate the debug mode on the ECU. 145 00:19:59,510 --> 00:20:07,110 Now, the BYD Ato 3 uses the D-Link 3.0 OS for its multimedia OS, which is Android-based. 146 00:20:07,110 --> 00:20:14,150 So, once we activated the debug mode, we quickly connected it to our test bench and started poking around with ADB. 147 00:20:14,530 --> 00:20:25,130 The goal was to find some thread, something to pull on to see maybe some app accidentally logged some private information to lock it or something like that. 148 00:20:25,130 --> 00:20:27,830 But what we found was way more. 149 00:20:28,890 --> 00:20:38,090 We found, I guess maybe the people in the first row can see it, but we found a cache of what appeared to be system dumps, lots of them. 150 00:20:39,270 --> 00:20:41,030 One of them stood out. 151 00:20:42,190 --> 00:20:47,650 At a first glance, you can see it's the oldest of the bunch, except for one with the default timestamp . 152 00:20:48,430 --> 00:20:55,570 But a deeper look told us that it's the only archive in this folder that isn't password protected. 153 00:20:55,810 --> 00:21:10,310 So, of course, we took it and we unpacked it and learned that it's essentially a comprehensive dump of every log buffer in the system and the output of every diagnostic tool. 154 00:21:10,950 --> 00:21:21,330 So that means if we can get our hands on the other archives, if we can unpack those zips, we can have a snapshot of the car across months. 155 00:21:22,590 --> 00:21:26,470 So let's see if we can get those zips. 156 00:21:26,610 --> 00:21:31,910 We used that unprotected archives to try and find who's creating the archives. 157 00:21:31,910 --> 00:21:38,510 We found a few lines in the logs that mentioned compressing archives and storing them in that folder. 158 00:21:38,510 --> 00:21:42,970 We found and we noticed the PID that does that is 3015. 159 00:21:43,010 --> 00:21:44,810 Who's 3015? 160 00:21:45,050 --> 00:21:54,610 Well, the same unprotected archive was very useful for telling us that it's actually the BYD log tool using the output of PS. 161 00:21:55,150 --> 00:22:12,150 So we naturally took the APK out of the unit, decompiled it with JDAX, and in it we found the zip helper class which matched the log tag we saw earlier in the logs. 162 00:22:12,310 --> 00:22:16,290 So naturally we looked into that file. 163 00:22:18,130 --> 00:22:39,650 Now, the people on the first row can probably see that in zip helper, we have a function called zip file which defines a file name that's built a file name format that's built out of a file name, base file name, then some number, a timestamp, a bit indicating success, 164 00:22:39,650 --> 00:22:42,150 followed by the zip suffix. 165 00:22:43,210 --> 00:22:49,450 And again, those on the first row can probably note the similarities to our archives. 166 00:22:49,630 --> 00:22:55,450 Our archives had a base file name which is similar to our unprotected archive. 167 00:22:55,450 --> 00:23:00,850 Then they had a short number, then a timestamp, and bit indicating success. 168 00:23:00,850 --> 00:23:03,750 In all the archives, it was one. 169 00:23:04,150 --> 00:23:09,730 So these are clearly our archives they're creating in this function. 170 00:23:09,730 --> 00:23:14,610 So we really wanted to know what the create password function does. 171 00:23:16,130 --> 00:23:18,710 So we reviewed it. 172 00:23:20,030 --> 00:23:22,690 Create password is rather simple. 173 00:23:22,690 --> 00:23:26,390 It uses a sub function called generate password by IMEI. 174 00:23:26,550 --> 00:23:30,810 And if that sub function works, then that's the zip password. 175 00:23:30,810 --> 00:23:32,090 That's it. 176 00:23:32,490 --> 00:23:38,130 So we really want to know how generate password by IMEI works. 177 00:23:38,170 --> 00:23:40,410 And it's a very simple function. 178 00:23:40,510 --> 00:23:43,910 It stores the current timestamp. 179 00:23:44,810 --> 00:23:48,750 And then it uses two encryption methods to generate the password. 180 00:23:48,750 --> 00:23:51,930 Because we all know that double the encryption means double the security. 181 00:23:52,850 --> 00:23:56,070 Well, let's look at the encryption scheme. 182 00:23:58,810 --> 00:24:04,350 I'm going to start with the second encryption method, which is actually not an encryption method. 183 00:24:04,350 --> 00:24:06,030 It's a string transformation. 184 00:24:06,050 --> 00:24:07,650 A rather simple one. 185 00:24:07,930 --> 00:24:15,810 So we start up with a loop that generates a bunch of indexes, specifically six indexes, by adding up digits from the IMEI and timestamp. 186 00:24:15,810 --> 00:24:27,290 Then there's a second loop that generates two lists of length six, which are samplings from the encrypted text generated by the first encryption function. 187 00:24:27,950 --> 00:24:41,650 Those samplings are taken based on the IMEI as the sampling function, which means if the first digit of your IMEI is five, then the first sampled character from encrypt text is the fifth character. 188 00:24:41,650 --> 00:24:47,090 And the second list is sampled according to the list we generated in the first loop. 189 00:24:47,470 --> 00:24:50,190 Those two lists are then stored together. 190 00:24:50,190 --> 00:24:52,710 The result is base 64 encoded. 191 00:24:52,710 --> 00:24:53,530 And that's it. 192 00:24:53,530 --> 00:24:54,810 That's the password. 193 00:24:54,810 --> 00:24:59,530 Now, all I've showed you so far is basically fluff. 194 00:24:59,530 --> 00:25:02,810 There's no rhyme or reason to this transformation. 195 00:25:03,270 --> 00:25:10,550 But most importantly, it's fluff we can easily recreate if we had the timestamp and IMEI used for the sampling. 196 00:25:11,590 --> 00:25:17,930 So let's go see how the ciphertext from the first method is created, the first encryption method. 197 00:25:17,970 --> 00:25:26,230 So the first encryption method actually uses an encryption algorithm, specifically AES with CBC and PKCS5. 198 00:25:26,310 --> 00:25:30,770 You have the initial vector hardcoded there, if you can see. 199 00:25:32,350 --> 00:25:39,630 But some of you may have noticed that encrypt doesn't take any input. 200 00:25:40,230 --> 00:25:45,370 Where is the sensitive text that we're supposed to be encrypting? 201 00:25:46,910 --> 00:25:52,170 What we're seeing here is actually an obfuscation method for the password generation process. 202 00:25:52,190 --> 00:25:54,350 This isn't an encryption scheme at all. 203 00:25:54,350 --> 00:26:07,150 The function generates clear text and then it generates a key and then it uses AES to generate the actual sensitive text the data used to create the password. 204 00:26:07,650 --> 00:26:09,650 So what's going on here? 205 00:26:09,650 --> 00:26:11,350 What are they doing? 206 00:26:14,800 --> 00:26:27,560 Back in 2023, a GitHub user by the name RainyMode began a responsible disclosure process with PYD for a CVE. 207 00:26:27,560 --> 00:26:33,080 The title of the CVE was Incorrect Access Control in BYD DI-Link OS. 208 00:26:33,120 --> 00:26:44,380 And the details of the CVE is mentioned that anyone with physical access to the car can access the sensitive information inside these logs because they are unprotected. 209 00:26:46,000 --> 00:26:51,990 So essentially what we're seeing here is BYD's response to that CVE. 210 00:26:54,550 --> 00:27:06,350 But using AES to generate some random string, then sampling it, slapping XOR and Base64 on the end, that's not a solution to that CVE. 211 00:27:06,350 --> 00:27:08,550 That's at best lip service. 212 00:27:08,970 --> 00:27:17,910 Which is why this year we're publishing a new CVE for the broken encryption scheme on the BYD DI-Link OS. 213 00:27:19,270 --> 00:27:29,190 So the timeline is back in 2023, RainyMode discovered the issue, reported it to BYD and they began working on it. 214 00:27:29,190 --> 00:27:34,190 In late 2024, we found the issue I just presented. 215 00:27:34,530 --> 00:27:41,810 And in January 2025, the original CVE was published, which confused us at first. 216 00:27:41,810 --> 00:27:50,290 We saw a CVE mentioning the same area in the car we're dealing with, but it's talking about a lack of encryption and we just cracked the encryption. 217 00:27:50,290 --> 00:27:51,070 What's going on? 218 00:27:51,070 --> 00:27:57,210 We realized the delta we're seeing is the fix to the original issue. 219 00:27:57,410 --> 00:27:59,870 So we reached out to BYD. 220 00:27:59,870 --> 00:28:06,670 We tried to contact them using three different email addresses several times and got no response. 221 00:28:07,010 --> 00:28:10,650 So then we reached out to ASRG. 222 00:28:10,650 --> 00:28:13,190 It's a CNA in the automotive world. 223 00:28:13,190 --> 00:28:21,050 And they too tried to reach BYD over yet a fourth email address several times and failed to get a response. 224 00:28:21,550 --> 00:28:32,930 So in July this year, we began coordinating with ASRG on a public disclosure of this issue and tomorrow the CVE will be published. 225 00:28:35,170 --> 00:28:44,370 In order to publish this CVE, we wanted to create a PLC to actually demonstrate that we can bypass this encryption scheme. 226 00:28:44,370 --> 00:28:51,350 But in order to do that, we had to figure out how the first encryption method generates the clear text and key. 227 00:28:55,170 --> 00:28:57,430 So we have the two methods here. 228 00:28:57,430 --> 00:28:58,430 They're pretty similar. 229 00:28:58,430 --> 00:29:00,670 They're actually almost exactly the same. 230 00:29:00,670 --> 00:29:04,250 They both concatenate the timestamp with the IMEI. 231 00:29:04,250 --> 00:29:07,070 The only difference is they do it in reverse order. 232 00:29:07,070 --> 00:29:10,510 Additionally, they also change the format of the timestamp. 233 00:29:10,510 --> 00:29:11,650 And that's it. 234 00:29:11,950 --> 00:29:17,570 Now, we can probably find the IMEI in the unprotected logs. 235 00:29:17,810 --> 00:29:20,050 But where are we going to find the timestamp? 236 00:29:20,110 --> 00:29:23,010 It's not going to be in the logs we have access to. 237 00:29:24,290 --> 00:29:29,010 Well, no, it's not going to be in the log, but it is right there in the file name for the archive. 238 00:29:29,650 --> 00:29:33,330 So we have the initial vector from the APK. 239 00:29:33,330 --> 00:29:37,190 We have the file name, which contains all the other ingredients for the password. 240 00:29:37,450 --> 00:29:40,370 So now we can create a PLC. 241 00:29:41,370 --> 00:29:42,610 So this is our PLC. 242 00:29:42,610 --> 00:29:46,670 This is actually a shortened form of the PLC that can fit on the slide. 243 00:29:46,670 --> 00:29:52,530 Naturally, we don't have a screen, so fitting on the slide didn't really matter. 244 00:29:52,650 --> 00:30:03,370 But the point is that we could now easily generate the password for every archive by fitting in the name of the file. 245 00:30:05,070 --> 00:30:14,050 So now we had access to snapshots of everything the multimedia knows across months. 246 00:30:14,150 --> 00:30:18,630 So let's get to know the previous owner of the car. 247 00:30:18,630 --> 00:30:19,940 Let's build a profile. 248 00:30:21,110 --> 00:30:26,710 The first thing we did was search for patterns for phone numbers. 249 00:30:26,710 --> 00:30:35,070 Now, the engineers working for BYD did try to redact this kind of information. 250 00:30:35,070 --> 00:30:37,310 However, they didn't catch all the instances. 251 00:30:37,310 --> 00:30:43,290 And what ended up was we had a bunch of unredacted numbers and a bunch of redacted numbers. 252 00:30:43,430 --> 00:30:46,410 We wanted to figure out who's the owner of the car. 253 00:30:46,510 --> 00:30:49,590 And what we did was use the unredacted instances. 254 00:30:49,590 --> 00:31:03,950 Then we mapped them over with the redacted instances to get essentially all the redacted instances allowed us to find which of the numbers is the owner. 255 00:31:03,950 --> 00:31:15,310 And the instances that weren't redacted allowed us to map over to the context of that redacted number, thus leading us to the phone number of the actual owner of the car. 256 00:31:15,630 --> 00:31:17,470 But what can I do with a phone number? 257 00:31:17,650 --> 00:31:20,790 Well, as you guys know, I can do a lot with a phone number. 258 00:31:20,790 --> 00:31:30,430 With small business websites, second-hand listings, and social media, a phone number immediately translates to a name and an image. 259 00:31:30,790 --> 00:31:42,050 Now, I want to point out that while just about everything you're seeing or maybe seeing in the slides is genuine information we took from the head unit. 260 00:31:42,050 --> 00:32:01,230 However, we did redact, include random information, false overlays, and straight-up deleted a bunch of data to make sure this previous owner, their information cannot be further violated by the failures of this car. 261 00:32:01,410 --> 00:32:07,420 So rest assured, no private information about the previous owner can even leak from this presentation. 262 00:32:08,810 --> 00:32:15,300 So now that we had a name, an image, and a phone, we turned our attention to location information. 263 00:32:15,860 --> 00:32:29,200 Due to a misconfiguration, the GPS of the head unit would log the location of the car, the coordinates of the car, every 30 minutes, again, across months. 264 00:32:29,200 --> 00:32:48,960 So we had the position of the car every 30 minutes for a month, which allowed us, using a bit of distribution analysis, to find her home address, a potential work address, and a very popular children's playground that she likes to take her then newborn baby to. 265 00:32:49,560 --> 00:32:53,340 And how do we know she had a newborn baby? 266 00:32:53,740 --> 00:33:07,900 Because of the SQL DB fragment we found, which included the number, name, and address of a neonatal doctor that matched a bunch of coordinates that the head unit had recorded. 267 00:33:10,340 --> 00:33:11,980 And it didn't stop there. 268 00:33:11,980 --> 00:33:29,160 We also found favorite radio stations, Spotify playlists, cellular identity, MAC addresses, contact information, including familial relationships and numbers, and her bank branch, and it just kept on going. 269 00:33:29,160 --> 00:33:35,480 Now, we didn't set out to actually perform any identity theft in this research. 270 00:33:35,480 --> 00:33:55,380 But an attacker could relatively easily take this information and elevate their penetration into this poor person's life with SIM hijacking, or maybe intercepting government issued IDs, or maybe accessing government services digitally. 271 00:33:55,500 --> 00:34:11,240 But it actually didn't stop there either, because we noticed at some point, logs and corresponding code that indicated that all this information was being periodically updated to the BYD backend. 272 00:34:14,400 --> 00:34:21,580 So having just reviewed GDPR, what does all this mean? 273 00:34:21,800 --> 00:34:25,080 Is this compliant with GDPR? 274 00:34:25,080 --> 00:34:26,360 No, of course not. 275 00:34:26,360 --> 00:34:34,680 I mean, the name of your neonatal doctor is not inherent to the use and function of a car. 276 00:34:37,680 --> 00:34:47,540 Before we wrapped up the investigation, we wanted to see whether the car would request consent from a user to perform this collection. 277 00:34:47,540 --> 00:34:51,120 So we factory reset the unit. 278 00:34:51,120 --> 00:35:00,440 And when we booted it up again, we did see that regular end-user license agreement and privacy statement you'd expect on a system. 279 00:35:00,980 --> 00:35:09,300 However, at no point were we prompted to consent for any sort of private information collection, let alone this invasive. 280 00:35:11,300 --> 00:35:20,400 And furthermore, when we tried, we couldn't find any way to opt out of this collection after the fact. 281 00:35:21,420 --> 00:35:31,980 Now, anyone who's ever worked on automotive development knows that cars are developed in a very distributed manner. 282 00:35:31,980 --> 00:35:43,140 That means that when BYD sets out to develop a new car, they will contact some tier one manufacturer like Continental or Bosch to develop their ECUs. 283 00:35:43,400 --> 00:35:52,300 That tier one manufacturer will then contact a subcontractor like Electrobeat or Alps Alpine to develop the software for that ECU. 284 00:35:52,300 --> 00:35:56,680 And that subcontractor will contact yet another subcontractor. 285 00:35:56,680 --> 00:36:04,820 At times, the hierarchy of subcontractors can reach as far as five companies removed from the original vendor. 286 00:36:05,500 --> 00:36:10,100 Who's responsible for maintaining the privacy of the customer? 287 00:36:10,100 --> 00:36:14,460 The answer is flat out the vendor, BYD in this case. 288 00:36:14,700 --> 00:36:23,240 BYD is the only entity in this game that can request consent from the customer. 289 00:36:23,240 --> 00:36:29,340 It's the only entity that can generate the prompt for consent. 290 00:36:29,340 --> 00:36:35,540 And it's the only entity that has a contractual relationship with you, the customer. 291 00:36:35,540 --> 00:36:44,280 So it's BYD's job to include privacy clauses in their contracts with their subcontractors. 292 00:36:44,280 --> 00:36:50,940 Additionally, it's their job to enforce those clauses during development and delivery. 293 00:36:53,610 --> 00:36:57,290 Having failed to do this, what does that mean? 294 00:36:57,590 --> 00:37:11,870 So if an EU privacy authority would elect to go after BYD for this, given the wide nature and severity of this violation, the fine would be huge. 295 00:37:11,870 --> 00:37:19,490 I mean, 1.7 million cars times 40,000 euros per car times 4%. 296 00:37:19,490 --> 00:37:24,090 That would mean the fines in the billions. 297 00:37:29,230 --> 00:37:32,250 So what should be done? 298 00:37:34,210 --> 00:37:39,050 So far, the automotive world has been unaffected by privacy legislation. 299 00:37:41,570 --> 00:37:47,910 Considering that even a savvy user can't opt out of this collection. 300 00:37:47,910 --> 00:38:03,270 Think for a second, if you were ever, God forbid, in a total loss accident or your car is foreclosed, those ECUs in the car with all your information, they're getting sold to someone else and you might not have a chance to wipe them. 301 00:38:06,750 --> 00:38:16,470 So this puts you at a risk of invasive tracking by unknown entities. 302 00:38:19,010 --> 00:38:21,290 And the issue isn't going away. 303 00:38:23,130 --> 00:38:35,970 Vendors need to collect information to improve their products and services, to troubleshoot the product, and yes, to develop new monetization avenues for their business. 304 00:38:35,970 --> 00:38:44,170 And on the flip side, the customers are willing to give that information provided they get something good in return. 305 00:38:48,070 --> 00:38:57,290 The answer to this issue is collecting consent at a lower level. 306 00:38:57,290 --> 00:39:01,990 We need standardization at the level of the operating system. 307 00:39:03,210 --> 00:39:16,930 Something similar to Android's dangerous permissions mechanism, where an app can't request a permission beforehand, but rather has to request the consent during the activation of the API. 308 00:39:17,090 --> 00:39:26,430 So it's easy to think about a method where the operating system requests consent when a piece of information is read. 309 00:39:26,510 --> 00:39:32,070 But you might say, identifying the information as private information is difficult. 310 00:39:32,070 --> 00:39:33,070 We talked about it. 311 00:39:33,070 --> 00:39:34,990 Private information is implicit. 312 00:39:35,950 --> 00:39:41,030 So my team developed a proof of concept. 313 00:39:41,050 --> 00:39:46,930 We wrote some code that ran on some ECUs. 314 00:39:46,930 --> 00:39:53,050 And that code would use a few AI models to identify private information on the fly. 315 00:39:53,050 --> 00:40:06,130 And we managed to identify it quickly, accurately, and without slowing down the regular function of the multimedia unit we ran this on, despite the limited hardware of a car's ECU. 316 00:40:06,610 --> 00:40:33,370 So until vendors and customers will start pushing for this, or enforcers will start demanding this, we will keep seeing companies that, whether knowingly or unknowingly, put your private information on the bottom of the priority list and exposing you to this level of invasion. 317 00:40:35,790 --> 00:40:39,090 Thank you, and I hope you found this talk interesting. 318 00:40:39,090 --> 00:40:40,550 Any questions? 319 00:40:46,160 --> 00:40:47,680 Yeah. 320 00:40:52,080 --> 00:40:59,320 Yeah, we didn't find any remote connections, but we didn't search for any. 321 00:41:05,570 --> 00:41:13,470 Yeah, those we did try to attack, and luckily, we couldn't find any cracks in that armor. 322 00:41:14,070 --> 00:41:14,890 Yeah. 323 00:41:19,910 --> 00:41:35,730 We have not tested it personally, but we did find a bunch of papers that mentioned other vendors with similar level of invasive data collection, including classical car manufacturers, not just modern ones. 324 00:41:35,730 --> 00:41:36,290 Yes. 325 00:41:38,750 --> 00:41:42,270 It's a very rising popularity brand. 326 00:41:43,590 --> 00:41:44,330 Yeah. 327 00:41:45,650 --> 00:41:47,000 Can you speak up, please? 328 00:41:49,810 --> 00:41:50,650 Yes. 329 00:41:50,650 --> 00:41:51,530 Yes, I did. 330 00:41:52,550 --> 00:41:55,990 You can wipe the data if you get a chance to. 331 00:41:56,410 --> 00:41:56,990 Yeah. 332 00:42:06,410 --> 00:42:07,790 Is it what? 333 00:42:20,760 --> 00:42:43,730 I'd reckon that would change by state to state and country to country, but I know for a fact that several countries will use data such as that, because the laws allow them to, or even in countries that are less... they're more focused on privacy rights. 334 00:42:43,730 --> 00:42:48,790 At the end of the day, you can issue a court order, and yeah, you get the data from the car. 335 00:42:55,370 --> 00:42:59,210 We're actually working on developing one because we couldn't find one. 336 00:43:02,130 --> 00:43:05,070 So how much of this data has been sent back? 337 00:43:05,150 --> 00:43:05,890 All of it. 338 00:43:05,890 --> 00:43:11,230 Literally the entire archives that we reviewed were all sent to BWaddy. 339 00:43:14,890 --> 00:43:17,090 That's the funny thing. 340 00:43:17,090 --> 00:43:19,130 The interval was inconsistent. 341 00:43:19,530 --> 00:43:27,450 The code mentioned 300,000, I think it was seconds, but it wouldn't send it all the time. 342 00:43:27,450 --> 00:43:40,190 I believe it's because the way the car would send the data to the backend was a built-in cellular modem with a pre-installed SIM card by, I'm guessing, the import company. 343 00:43:40,790 --> 00:43:44,630 And the range for that modem is pretty limited. 344 00:43:44,630 --> 00:43:55,610 So if you're in an area or just bad timing, the car tried to send it, failure to communicate, and it skipped the cycle and would send it the next one maybe. 345 00:43:56,830 --> 00:43:58,430 Yeah. 346 00:44:05,280 --> 00:44:06,640 Yes. 347 00:44:06,700 --> 00:44:12,720 Not only that, not every SIM could connect to the BWaddy backend. 348 00:44:12,720 --> 00:44:25,640 So not only can you prevent that, you can still retain connectivity while protecting yourself from that upload if you know where to find the SIM and how to swap it. 349 00:44:27,800 --> 00:44:28,780 Yeah. 350 00:44:29,820 --> 00:44:30,800 I'm sorry. 351 00:44:30,800 --> 00:44:32,020 Can you speak up? 352 00:44:35,890 --> 00:44:37,190 I can't hear you. 353 00:44:37,190 --> 00:44:38,070 Sorry. 354 00:44:41,140 --> 00:44:43,340 Oh, actually, no. 355 00:44:43,340 --> 00:44:52,620 We did find a bunch of issues with the multimedia unit following a fuzzing session we did with the CAN bus. 356 00:44:52,620 --> 00:45:02,760 The multimedia unit reacts very strangely when it is attacked via the CAN bus, but it had no impact on the collection and transmission of data. 357 00:45:02,760 --> 00:45:11,900 So we don't think the data is transmitted over the CAN bus, but we know for a fact that the multimedia unit is sensitive to some shenanigans on the bus. 358 00:45:17,630 --> 00:45:22,550 That specific model doesn't have cameras that we're aware of. 359 00:45:23,030 --> 00:45:25,570 Maybe a higher end one does. 360 00:45:25,770 --> 00:45:35,950 We do know that modern cars, especially from China, have this sort of features. 361 00:45:35,950 --> 00:45:39,490 For instance, there's a driver facing cameras. 362 00:45:40,570 --> 00:45:45,030 There are some cameras used for in-driving selfie features. 363 00:45:45,530 --> 00:45:46,190 Okay. 364 00:45:46,810 --> 00:45:52,350 And those do store their data on the Android OS. 365 00:45:52,350 --> 00:45:56,790 So they could be collected, they might not be, but they are stored there. 366 00:45:56,790 --> 00:46:03,290 And we did at one point run a pen test against such a car, and we did gain access to that data. 367 00:46:06,470 --> 00:46:08,710 We didn't check. 368 00:46:10,270 --> 00:46:11,030 Yeah. 369 00:46:26,130 --> 00:46:26,810 Definitely. 370 00:46:26,810 --> 00:46:27,150 Yeah. 371 00:46:27,150 --> 00:46:33,610 As I said earlier, it took cars quite a while to enter into the information space. 372 00:46:33,610 --> 00:46:40,490 So yeah, the newer cars, you buy the worst off they'll be in this specific regard. 373 00:46:41,150 --> 00:46:42,430 Yeah. 374 00:46:44,400 --> 00:46:46,800 Can you speak up? 375 00:46:54,970 --> 00:46:57,630 We used the GUI. 376 00:46:57,770 --> 00:46:58,870 Yeah. 377 00:47:00,740 --> 00:47:02,580 Yes. 378 00:47:08,610 --> 00:47:16,070 The secure boot system on this car is based on Continental's Denali platform. 379 00:47:16,070 --> 00:47:19,030 We didn't look much into it. 380 00:47:19,730 --> 00:47:20,430 Yeah. 381 00:47:26,630 --> 00:47:28,630 Sorry, I can't. 382 00:47:33,780 --> 00:47:36,900 Oh, yeah. 383 00:47:36,900 --> 00:47:44,780 The factory reset for an office user, I'm guessing it might be a bit much, but any technical user can find their way to it. 384 00:47:45,460 --> 00:47:49,620 It's an Android-based system with a similar interface. 385 00:47:53,260 --> 00:47:53,880 Okay. 386 00:47:53,880 --> 00:47:54,800 Thank you.