[00:00.000 --> 00:05.800] It didn't warn me it was going to be bright. So we still got people coming in, but so this is [00:06.880 --> 00:11.280] going to start doing a little bit of the intro we're talking about. So while everybody comes [00:11.280 --> 00:16.940] in, we'll get to the meat of it. So welcome. Everybody's having a great, great convention. [00:16.940 --> 00:22.040] Thanks for showing up. This is fantastic. We're really excited to talk about some of this stuff [00:22.040 --> 00:27.960] because it's fresh off the presses. So we're going to be talking about photovoltaics [00:29.340 --> 00:36.420] and some of the findings that are recent for us. So I have here with me, Alexander Lauser, [00:36.420 --> 00:42.340] as one of our senior security researchers. We both work for a company called Bitdefender, [00:42.340 --> 00:51.520] you may have heard of. I added a link here to our work so you can refer to it later. Some of the [00:52.980 --> 00:58.420] vulnerability research that we do. So we've been doing, among other things, [00:58.420 --> 01:05.360] we've been doing IOT vulnerability research for the last 10 plus years on normally and typically [01:05.360 --> 01:10.900] consumer grade devices that are popular or interesting or something that we find just [01:10.900 --> 01:17.600] interesting to look at. So during this time, we've published over 25 high profile cases [01:18.240 --> 01:24.640] and findings, and we have dozens of white papers that came out of that research. This is a pretty [01:24.640 --> 01:32.780] small team, but it's been really lucrative and exciting on our academic and educational side. [01:32.780 --> 01:39.960] So I want to quote a couple of high profile cases that we covered, findings that we had. So I'll say [01:39.960 --> 01:45.360] Ring Doorbell, for example, LG TVs, this is something that's as fresh as a month old, maybe, [01:45.360 --> 01:50.200] you know, the Fire Stick from Amazon, maybe the August Lock, Ring a Bell, [01:50.200 --> 01:58.100] Wyze, Owlet, U5, Vizaviz cameras and more. What's interesting that through our research, [01:58.100 --> 02:05.860] what we found, obviously, besides vulnerabilities, is that more than 30% of the vendors never reply [02:05.860 --> 02:15.320] or they don't reply timely. And to our contact, then we try to reach out to them. And it takes, [02:15.320 --> 02:22.700] 180 days to do so. And what's even more concerning is that 20% of these people take [02:22.700 --> 02:26.780] more than a year to fix the vulnerabilities that we are trying to communicate to them or never [02:26.780 --> 02:31.500] actually patch these, sometimes or most of the times exceeding the end of life cycle of that [02:31.500 --> 02:39.000] product. So here's a PSA to all the vendors, if you could pass on the word, appoint a permanent [02:39.000 --> 02:45.700] contact, set up a vulnerability disclosure program, add a URL for it, put a PGP key on it [02:45.700 --> 02:56.500] and monitor that inbox. I can't stress that enough. So this has been for the last decade and a half [02:56.500 --> 03:03.640] or more the most wanted terrorist in the United States and abroad when it comes to the power grid, [03:03.640 --> 03:12.540] the SQRL. And it's called SQRL terrorism. There is a SQRL index on Wikipedia. And we have a couple [03:12.540 --> 03:19.940] of quotes here. For example, we have a former deputy director of the NSA that said, frankly, [03:19.940 --> 03:28.300] the number one threat today to the grid is SQRLs. And then the threat to the internet infrastructure [03:28.300 --> 03:34.840] services posed by SQRLs may exceed the one posed by cyber attacks and so on. So basically, the [03:34.840 --> 03:42.980] narrative here is in general, that cybersecurity is not really potential straight up concern when [03:42.980 --> 03:51.160] it comes to the power grid, because most of the actual attacks were of natural causes, SQRLs, [03:51.160 --> 03:56.920] fires, whatever have you. In general, the grid is really highly regulated and protected and secured. [03:56.920 --> 04:01.820] So a lot of the cyber attack woes don't really apply, even though we have, you know, warnings [04:01.820 --> 04:10.360] from CIA with examples and NSA and all this stuff. So to that, enter solar. And this is what we're [04:10.360 --> 04:14.640] going to talk quickly about today. So obviously, green energy is the forefront of everything that [04:14.640 --> 04:20.260] we do. So as it's transforming the global landscape, we're seeing just, you know, last year, [04:20.900 --> 04:29.600] over 500 gigawatts of capacity added by solar, just last year, which is three quarters. [04:30.340 --> 04:37.780] It's an explosive growth, which obviously is fantastic for us, but at the same time brings, [04:37.780 --> 04:42.000] you know, they, you know, the growing number of systems obviously brings [04:42.000 --> 04:48.860] more interest and more focus to them, to potential attackers. So as the capacity increases, [04:48.860 --> 04:55.440] the question is, you know, is security keeping up? As both businesses and consumers are starting to [04:55.440 --> 05:02.780] add solar panels to their portfolios. Now, again, this space, solar is less [05:03.420 --> 05:11.340] hardened and regulated by, as legacy power generation. So to that point, we investigated [05:11.560 --> 05:16.000] a manufacturer called Day and a management platform called SolarMint to find out. [05:16.560 --> 05:22.800] Why? It's because these are smart systems and they can be obviously controlled remotely. [05:23.520 --> 05:27.700] Someone in our office noticed something that was interesting after installation, [05:27.700 --> 05:35.980] so we decided to keep digging. An inverter, and I'll show you a [05:35.980 --> 05:40.300] sketch just to see how the stuff works out, could be added on both these platforms [05:41.140 --> 05:47.420] using their apps. You just needed the serial number. So it was interesting enough. So here's [05:47.560 --> 05:52.700] a diagram of a system and trying to understand how it works. This applies for both residential [05:53.280 --> 06:00.540] customers, but also larger platforms as well. So you have the solar panels, let's say you have [06:00.540 --> 06:05.800] solar panels on top, you know, on your home. These connect to an inverter that feeds the grid. [06:05.800 --> 06:13.100] The inverter is connected to a data logger that's a bridge between all these systems. [06:13.480 --> 06:19.080] And the data logger sends information to a cloud platform that feeds into various application and [06:19.080 --> 06:26.180] management systems as well. So again, the logger is the conduit that connects everything to the [06:26.180 --> 06:32.240] internet and is responsible for the settings and the data collection and updates of the whole system. [06:33.620 --> 06:39.080] In general, these will be connected and they won't be because they won't work [06:39.080 --> 06:44.900] otherwise with a grid. So obviously end users can control the system from the [06:44.900 --> 06:48.280] internet from their phones or just another platform and they can talk directly to the [06:48.280 --> 06:53.840] platform. And I'm going to invite Alex to discuss and walk us through how we investigated the platform. [06:56.740 --> 07:04.380] Okay, so we started with a man-in-the-middle attack on the day cloud app. We only use the user [07:04.380 --> 07:10.200] certificate, no need to pass the application. Among the traffic, we found a suspicion login request [07:10.200 --> 07:15.800] using hard-coded credentials. I don't know if you can see them, but it is smartconfigurator [07:15.800 --> 07:23.640] at solarmanpv.com and the password 123456, first place on the rocket list. [07:24.800 --> 07:31.600] Okay, what is the account used for? It gets information about a user's device, for example, [07:31.600 --> 07:39.000] the model, the version, and a password. This account is not linked to any user account, so it works for [07:39.000 --> 07:46.380] any device no matter who owns them. Now, I mentioned the password. A logger, while it is running, [07:46.380 --> 07:53.460] has an access point active. The SSID of the access point has a convenient naming scheme. It starts [07:53.460 --> 08:00.440] with AP underscore serial number. So, if we have the serial number of the logger, we can get into [08:00.440 --> 08:07.280] the access point. Let's see how an attack would look. First, we find an access point that corresponds [08:07.280 --> 08:14.120] to the naming scheme. Then, we get the serial number, we use the hard-coded account to make [08:14.120 --> 08:20.640] the request and get the password. Connect to the access point and just profit. Okay, those question [08:20.640 --> 08:26.780] marks do some heavy lifting, but it basically boils down to sending 80 commands to the logger [08:26.780 --> 08:34.980] to get access to the user interface, to get access to the user's Wi-Fi network, and just send commands [08:34.980 --> 08:42.300] to the logger. Now, there are some downsides to this attack. First of all, you need physical [08:42.300 --> 08:49.300] proximity. Then, you need to maintain said physical proximity. You also only get one device at a time, [08:49.300 --> 08:54.840] and as much fun as war driving is, it's not very efficient. I think we can do better. [08:56.240 --> 09:03.540] Now, we looked at other platform features, and we saw that users can only view statistics and [09:03.540 --> 09:11.220] information about their system. To make changes, they require to add a business account as a guest. [09:11.580 --> 09:19.280] How is this done? Well, there is a search API that returns data about all users and organizations. [09:19.300 --> 09:24.360] In the front end, we only see the name of the business when we search for them, [09:24.360 --> 09:32.780] but in the back end, we have emails, phone numbers, addresses, user IDs. For example, we have a vote, [09:32.780 --> 09:38.840] an endpoint for a business, we have the administration name, the admin's phone number, [09:38.840 --> 09:44.220] and for the users, we get the last login IP, we get their address if they put it there. [09:45.340 --> 09:52.120] By itself, it's not really exploitable, at most being a privacy issue. But it gives us a ballpark [09:52.120 --> 09:58.460] for the total number of users, about three and a half millions, and the total number of businesses, [09:58.460 --> 10:04.720] over 300,000. We'll keep this in mind, as it might be useful later. [10:05.600 --> 10:14.060] Now, I talked about SolrMan and Dey, and that's because until recently, Dey was using the SolrMan [10:14.060 --> 10:20.680] infrastructure to run its code. But recently, Dey built its own data center and migrated its [10:20.680 --> 10:27.340] user to a new database. The code also runs on their new data center. But we wondered, [10:27.340 --> 10:36.400] maybe the code is still pretty similar. And it turns out it's very similar. A token from Dey [10:36.940 --> 10:41.740] will work on SolrMan. It gives access to an account that has the same user ID, [10:41.740 --> 10:49.660] but the users were migrated. So now a user from Dey has a different user ID from the one on [10:49.660 --> 10:57.480] SolrMan. So the user IDs are also incremental. A new account gets an ID of about 14 million on [10:57.480 --> 11:04.340] SolrMan, and it's about 30 million on Dey. This means that by creating new accounts on Dey, [11:04.340 --> 11:11.200] you could take over over 1 million accounts. That's good, but I think we can do even better. [11:12.480 --> 11:18.380] Now, I keep talking about the JVT tokens, and let's see how they are obtained. For a normal [11:18.380 --> 11:25.060] user, it's pretty straightforward. You send the email address, the password, the hash password, [11:25.060 --> 11:32.280] and you get back a JVT token containing your email and your user ID. A business account is [11:32.380 --> 11:39.300] a bit different. One account can manage multiple organizations, and when logging in, an admin will [11:39.300 --> 11:45.660] choose which business to manage. The server creates a token that specifies the organization's [11:45.660 --> 11:53.980] ID. Let's see the steps. The first step is basically identical to a normal user, [11:54.360 --> 11:58.960] and I highlighted in the decoded token the fields that pertain to the organization, [11:58.960 --> 12:06.080] the organization ID and the group ID. At the second step, using the token from the first one, [12:06.080 --> 12:12.160] we get a list of organizations that an admin can manage. [12:13.120 --> 12:19.840] And in the third step, we have another login request to the same endpoint, but this time it [12:19.840 --> 12:27.380] uses an authorization header with the barrier token we got from the first step. And in the [12:27.380 --> 12:32.980] post body, we also have the same token together with the organization ID. The server responds [12:32.980 --> 12:39.740] and completes the fields that I highlighted earlier and pertain to the user organization. [12:40.500 --> 12:47.640] Now, what is the issue? In the third step, the endpoint uses data from the token we sent in the [12:47.640 --> 12:54.040] post body and creates the new token that has access to the organization. So we thought, let's [12:54.040 --> 13:00.820] just change the user ID and email and the token we sent. And it just worked. No signature checks, [13:00.820 --> 13:08.120] no errors, didn't even need alg none. The endpoint didn't even need the authorization [13:08.120 --> 13:16.720] header. We could use it just like that. This is a request with a manufactured token that we sent [13:16.720 --> 13:23.180] and the one we received. The tokens here look pretty similar. The one on the left is the one [13:23.180 --> 13:28.200] we manufactured. And the difference between them is that the one on the left has a bad signature [13:28.200 --> 13:33.300] because obviously we don't know the key to sign the token. But the one on the right is signed by [13:33.300 --> 13:41.660] the server and it gives us access to any account we want. I mentioned that we need the ID and email [13:41.660 --> 13:48.500] to create this token. But if you remember earlier, we have some endpoint which gives us this [13:48.500 --> 13:55.260] information for all accounts. So this time, all three and a half million accounts were risking [13:55.260 --> 14:04.700] takeover. Kudos to them. They fixed this in 24 hours since we contacted them. Now I'll let Dan [14:04.700 --> 14:15.160] talk about the impact. Thanks, Alex. So this context, I'll show this more in the timeline. [14:15.160 --> 14:23.640] So this is very fresh. We published the findings just a couple of days ago. So take this list of [14:23.640 --> 14:29.160] vendors with a little bit of a grain of salt. It's mostly inferred, but it's a highly, let's just say, [14:29.160 --> 14:34.400] highly informed chance that these vendors were also impacted because they do share the [14:34.400 --> 14:41.140] SolarMoon platform and potentially use the same database. And we can additionally infer [14:42.280 --> 14:49.600] their potential impact by the fact that we were seeing stuff like this popping up around [14:49.600 --> 14:57.320] the same time we informed the vendors of the findings. So some of these vendors also [14:57.320 --> 15:04.140] patched right away and informed the users about the existing patches. Now let's talk a little bit [15:04.140 --> 15:13.260] about the actual impact in terms of users. So we're seeing, we estimated [15:13.260 --> 15:16.420] about three and a half million users could have been impacted by the vulnerabilities [15:18.020 --> 15:25.200] exemplified here, and more than 330,000 businesses. All these control multiple systems. [15:25.880 --> 15:31.880] Of course, there's a PII component, so having access to the platform could enable a malicious [15:31.880 --> 15:39.940] actor to obtain information about the user's location and so on and so forth. So that's bad [15:39.940 --> 15:45.260] in itself, bad enough in itself, but at the same time, having access and controlling, being [15:45.260 --> 15:52.100] able to control the inverters through the management platform could also either overload [15:52.100 --> 15:58.280] or under load the grid. So basically user imagination of what could have been done here. [15:58.280 --> 16:05.480] Also, it's worth mentioning that the platform serves about a fifth of the world's total [16:05.480 --> 16:11.720] solar generation capacity. So it's quite an impressive number. Kind of put that into [16:11.720 --> 16:19.040] perspective, it's larger than what the U.S. generates through photovoltaics alone. So [16:19.800 --> 16:28.300] the question is, does this finally beat the squirrels now? Because, and of course, [16:28.300 --> 16:36.820] the echoes of national security follow. The idea here being that the conversation generally [16:36.820 --> 16:42.540] around the grid is that, as I said earlier, it's either the squirrels or natural causes. [16:42.540 --> 16:50.800] We're not here to place FUD around about solar, but kind of trying to shine a light that the [16:50.800 --> 16:55.440] situation might be changing for the future. And I think it warrants a little more attention. [16:55.840 --> 17:01.940] I have the timeline here. We contacted the companies sometime in mid-May. They've been [17:01.940 --> 17:09.580] fairly responsive at both acknowledging and fixing the vulnerabilities. And we actually [17:09.580 --> 17:17.040] closed disclosure to these findings just a few days ago. With that said, I'm inviting you to [17:17.040 --> 17:23.460] ask whatever questions there might be. You can also find us at the IoT Village. We have a little [17:23.460 --> 17:31.020] table there. I know we have a challenge to hack a TV. And please do not forget, [17:31.020 --> 17:38.020] if you know a vendor, remind them to appoint a permanent contact for vulnerability [17:40.040 --> 17:45.300] findings, to set up a program for vulnerabilities, a URL for it, put a PGP key on it, [17:45.300 --> 17:50.460] and monitor that inbox, please. So with that said, thank you for coming. We're open for questions. [17:56.440 --> 18:00.780] And if there's no questions, just come by the Village and we can talk more. [18:00.780 --> 18:03.620] So thanks so much for your time. We'll see you guys there. Thank you.