WEBVTT

00:00.000 --> 00:01.880
It didn't warn me it was going to be bright.

00:01.880 --> 00:10.100
So we still got people coming in, but so this is going to start doing a little bit of the intro we're talking about.

00:10.100 --> 00:12.900
So while everybody comes in, we'll get to the meat of it.

00:12.900 --> 00:14.460
So welcome.

00:14.880 --> 00:16.940
Everybody's having a great, great convention.

00:16.940 --> 00:18.020
Thanks for showing up.

00:18.020 --> 00:19.000
This is fantastic.

00:19.000 --> 00:23.440
We're really excited to talk about some of this stuff because it's fresh off the presses.

00:23.440 --> 00:33.240
So we're going to be talking about photovoltaics and some of the findings that are recent for us.

00:33.240 --> 00:40.000
So I have here with me, Alexander Lauser, as one of our senior security researchers.

00:40.000 --> 00:44.120
We both work for a company called Bitdefender, you may have heard of.

00:44.960 --> 00:50.920
I added a link here to our work so you can refer to it later.

00:50.940 --> 00:54.740
Some of the vulnerability research that we do.

00:54.740 --> 01:12.600
So we've been doing, among other things, we've been doing IOT vulnerability research for the last 10 plus years on normally and typically consumer grade devices that are popular or interesting or something that we find just interesting to look at.

01:12.600 --> 01:23.380
So during this time, we've published over 25 high profile cases and findings, and we have dozens of white papers that came out of that research.

01:23.480 --> 01:32.780
This is a pretty small team, but it's been really lucrative and exciting on our academic and educational side.

01:32.780 --> 01:39.380
So I want to quote a couple of high profile cases that we covered, findings that we had.

01:39.380 --> 01:55.100
So I'll say Ring Doorbell, for example, LG TVs, this is something that's as fresh as a month old, maybe, you know, the Fire Stick from Amazon, maybe the August Lock, Ring a Bell, Wyze, Owlet, U5, Vizaviz cameras and more.

01:55.800 --> 02:08.440
What's interesting that through our research, what we found, obviously, besides vulnerabilities, is that more than 30% of the vendors never reply or they don't reply timely.

02:09.160 --> 02:12.040
And to our contact, then we try to reach out to them.

02:12.040 --> 02:17.960
And it takes, 180 days to do so.

02:18.040 --> 02:32.240
And what's even more concerning is that 20% of these people take more than a year to fix the vulnerabilities that we are trying to communicate to them or never actually patch these, sometimes or most of the times exceeding the end of life cycle of that product.

02:32.240 --> 02:47.680
So here's a PSA to all the vendors, if you could pass on the word, appoint a permanent contact, set up a vulnerability disclosure program, add a URL for it, put a PGP key on it and monitor that inbox.

02:47.680 --> 02:48.980
I can't stress that enough.

02:48.980 --> 03:04.500
So this has been for the last decade and a half or more the most wanted terrorist in the United States and abroad when it comes to the power grid, the SQRL.

03:05.860 --> 03:07.920
And it's called SQRL terrorism.

03:07.920 --> 03:11.300
There is a SQRL index on Wikipedia.

03:11.580 --> 03:13.180
And we have a couple of quotes here.

03:13.180 --> 03:24.780
For example, we have a former deputy director of the NSA that said, frankly, the number one threat today to the grid is SQRLs.

03:25.040 --> 03:34.120
And then the threat to the internet infrastructure services posed by SQRLs may exceed the one posed by cyber attacks and so on.

03:34.120 --> 03:52.120
So basically, the narrative here is in general, that cybersecurity is not really potential straight up concern when it comes to the power grid, because most of the actual attacks were of natural causes, SQRLs, fires, whatever have you.

03:52.120 --> 03:56.920
In general, the grid is really highly regulated and protected and secured.

03:56.920 --> 04:04.540
So a lot of the cyber attack woes don't really apply, even though we have, you know, warnings from CIA with examples and NSA and all this stuff.

04:04.540 --> 04:08.320
So to that, enter solar.

04:09.340 --> 04:11.780
And this is what we're going to talk quickly about today.

04:11.780 --> 04:15.220
So obviously, green energy is the forefront of everything that we do.

04:15.220 --> 04:29.600
So as it's transforming the global landscape, we're seeing just, you know, last year, over 500 gigawatts of capacity added by solar, just last year, which is three quarters.

04:30.340 --> 04:46.920
It's an explosive growth, which obviously is fantastic for us, but at the same time brings, you know, they, you know, the growing number of systems obviously brings more interest and more focus to them, to potential attackers.

04:46.920 --> 04:52.580
So as the capacity increases, the question is, you know, is security keeping up?

04:53.020 --> 04:59.400
As both businesses and consumers are starting to add solar panels to their portfolios.

04:59.400 --> 05:08.920
Now, again, this space, solar is less hardened and regulated by, as legacy power generation.

05:09.160 --> 05:16.000
So to that point, we investigated a manufacturer called Day and a management platform called SolarMint to find out.

05:16.560 --> 05:17.680
Why?

05:17.960 --> 05:22.800
It's because these are smart systems and they can be obviously controlled remotely.

05:23.520 --> 05:29.760
Someone in our office noticed something that was interesting after installation, so we decided to keep digging.

05:30.080 --> 05:42.700
An inverter, and I'll show you a sketch just to see how the stuff works out, could be added on both these platforms using their apps.

05:42.800 --> 05:44.680
You just needed the serial number.

05:44.740 --> 05:46.860
So it was interesting enough.

05:46.860 --> 05:50.320
So here's a diagram of a system and trying to understand how it works.

05:50.320 --> 05:56.260
This applies for both residential customers, but also larger platforms as well.

05:56.260 --> 06:02.620
So you have the solar panels, let's say you have solar panels on top, you know, on your home.

06:02.680 --> 06:05.800
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:21.200
And the data logger sends information to a cloud platform that feeds into various application and management systems as well.

06:21.200 --> 06:32.240
So again, the logger is the conduit that connects everything to the internet and is responsible for the settings and the data collection and updates of the whole system.

06:33.620 --> 06:41.120
In general, these will be connected and they won't be because they won't work otherwise with a grid.

06:41.260 --> 06:48.620
So obviously end users can control the system from the internet from their phones or just another platform and they can talk directly to the platform.

06:48.620 --> 06:53.840
And I'm going to invite Alex to discuss and walk us through how we investigated the platform.

06:56.740 --> 07:02.280
Okay, so we started with a man-in-the-middle attack on the day cloud app.

07:02.360 --> 07:06.780
We only use the user certificate, no need to pass the application.

07:07.180 --> 07:12.280
Among the traffic, we found a suspicion login request using hard-coded credentials.

07:12.280 --> 07:23.640
I don't know if you can see them, but it is smartconfigurator at solarmanpv.com and the password 123456, first place on the rocket list.

07:24.800 --> 07:27.540
Okay, what is the account used for?

07:27.660 --> 07:34.460
It gets information about a user's device, for example, the model, the version, and a password.

07:34.840 --> 07:41.680
This account is not linked to any user account, so it works for any device no matter who owns them.

07:42.200 --> 07:44.020
Now, I mentioned the password.

07:44.260 --> 07:48.660
A logger, while it is running, has an access point active.

07:48.940 --> 07:53.060
The SSID of the access point has a convenient naming scheme.

07:53.060 --> 07:56.680
It starts with AP underscore serial number.

07:57.080 --> 08:01.680
So, if we have the serial number of the logger, we can get into the access point.

08:01.820 --> 08:04.200
Let's see how an attack would look.

08:04.580 --> 08:08.880
First, we find an access point that corresponds to the naming scheme.

08:09.180 --> 08:15.760
Then, we get the serial number, we use the hard-coded account to make the request and get the password.

08:16.180 --> 08:19.220
Connect to the access point and just profit.

08:19.560 --> 08:37.960
Okay, those question marks do some heavy lifting, but it basically boils down to sending 80 commands to the logger to get access to the user interface, to get access to the user's Wi-Fi network, and just send commands to the logger.

08:38.060 --> 08:40.500
Now, there are some downsides to this attack.

08:40.500 --> 08:43.220
First of all, you need physical proximity.

08:43.220 --> 08:46.800
Then, you need to maintain said physical proximity.

08:47.060 --> 08:53.580
You also only get one device at a time, and as much fun as war driving is, it's not very efficient.

08:53.580 --> 08:54.840
I think we can do better.

08:56.240 --> 09:05.680
Now, we looked at other platform features, and we saw that users can only view statistics and information about their system.

09:05.900 --> 09:11.220
To make changes, they require to add a business account as a guest.

09:11.580 --> 09:12.880
How is this done?

09:12.880 --> 09:19.280
Well, there is a search API that returns data about all users and organizations.

09:19.300 --> 09:29.500
In the front end, we only see the name of the business when we search for them, but in the back end, we have emails, phone numbers, addresses, user IDs.

09:30.520 --> 09:44.220
For example, we have a vote, an endpoint for a business, we have the administration name, the admin's phone number, and for the users, we get the last login IP, we get their address if they put it there.

09:45.340 --> 09:50.360
By itself, it's not really exploitable, at most being a privacy issue.

09:50.560 --> 10:00.340
But it gives us a ballpark for the total number of users, about three and a half millions, and the total number of businesses, over 300,000.

10:00.940 --> 10:04.720
We'll keep this in mind, as it might be useful later.

10:05.600 --> 10:16.280
Now, I talked about SolrMan and Dey, and that's because until recently, Dey was using the SolrMan infrastructure to run its code.

10:16.680 --> 10:22.420
But recently, Dey built its own data center and migrated its user to a new database.

10:22.420 --> 10:25.980
The code also runs on their new data center.

10:25.980 --> 10:30.660
But we wondered, maybe the code is still pretty similar.

10:31.820 --> 10:34.520
And it turns out it's very similar.

10:34.660 --> 10:38.500
A token from Dey will work on SolrMan.

10:38.500 --> 10:43.580
It gives access to an account that has the same user ID, but the users were migrated.

10:43.580 --> 10:50.520
So now a user from Dey has a different user ID from the one on SolrMan.

10:51.160 --> 10:54.560
So the user IDs are also incremental.

10:54.660 --> 11:01.260
A new account gets an ID of about 14 million on SolrMan, and it's about 30 million on Dey.

11:01.540 --> 11:08.040
This means that by creating new accounts on Dey, you could take over over 1 million accounts.

11:08.500 --> 11:11.200
That's good, but I think we can do even better.

11:12.480 --> 11:17.640
Now, I keep talking about the JVT tokens, and let's see how they are obtained.

11:17.860 --> 11:20.200
For a normal user, it's pretty straightforward.

11:20.760 --> 11:29.900
You send the email address, the password, the hash password, and you get back a JVT token containing your email and your user ID.

11:31.080 --> 11:33.460
A business account is a bit different.

11:34.040 --> 11:41.280
One account can manage multiple organizations, and when logging in, an admin will choose which business to manage.

11:41.280 --> 11:46.620
The server creates a token that specifies the organization's ID.

11:47.820 --> 11:49.380
Let's see the steps.

11:49.380 --> 12:01.360
The first step is basically identical to a normal user, and I highlighted in the decoded token the fields that pertain to the organization, the organization ID and the group ID.

12:02.460 --> 12:12.160
At the second step, using the token from the first one, we get a list of organizations that an admin can manage.

12:13.120 --> 12:25.120
And in the third step, we have another login request to the same endpoint, but this time it uses an authorization header with the barrier token we got from the first step.

12:25.740 --> 12:31.320
And in the post body, we also have the same token together with the organization ID.

12:31.840 --> 12:39.740
The server responds and completes the fields that I highlighted earlier and pertain to the user organization.

12:40.500 --> 12:42.220
Now, what is the issue?

12:42.460 --> 12:52.280
In the third step, the endpoint uses data from the token we sent in the post body and creates the new token that has access to the organization.

12:52.580 --> 12:57.440
So we thought, let's just change the user ID and email and the token we sent.

12:57.440 --> 12:59.000
And it just worked.

12:59.060 --> 13:04.200
No signature checks, no errors, didn't even need alg none.

13:05.640 --> 13:08.680
The endpoint didn't even need the authorization header.

13:08.680 --> 13:12.580
We could use it just like that.

13:12.920 --> 13:18.820
This is a request with a manufactured token that we sent and the one we received.

13:19.640 --> 13:22.040
The tokens here look pretty similar.

13:22.040 --> 13:24.580
The one on the left is the one we manufactured.

13:24.920 --> 13:31.920
And the difference between them is that the one on the left has a bad signature because obviously we don't know the key to sign the token.

13:31.920 --> 13:38.200
But the one on the right is signed by the server and it gives us access to any account we want.

13:39.080 --> 13:43.300
I mentioned that we need the ID and email to create this token.

13:43.300 --> 13:50.760
But if you remember earlier, we have some endpoint which gives us this information for all accounts.

13:51.080 --> 13:56.360
So this time, all three and a half million accounts were risking takeover.

13:57.500 --> 13:58.320
Kudos to them.

13:58.320 --> 14:01.920
They fixed this in 24 hours since we contacted them.

14:02.840 --> 14:06.940
Now I'll let Dan talk about the impact.

14:09.020 --> 14:10.420
Thanks, Alex.

14:10.480 --> 14:15.160
So this context, I'll show this more in the timeline.

14:15.160 --> 14:16.140
So this is very fresh.

14:16.140 --> 14:19.420
We published the findings just a couple of days ago.

14:19.420 --> 14:25.860
So take this list of vendors with a little bit of a grain of salt.

14:25.860 --> 14:38.920
It's mostly inferred, but it's a highly, let's just say, highly informed chance that these vendors were also impacted because they do share the SolarMoon platform and potentially use the same database.

14:38.920 --> 14:55.080
And we can additionally infer their potential impact by the fact that we were seeing stuff like this popping up around the same time we informed the vendors of the findings.

14:55.120 --> 15:01.400
So some of these vendors also patched right away and informed the users about the existing patches.

15:01.400 --> 15:10.120
Now let's talk a little bit about the actual impact in terms of users.

15:10.560 --> 15:22.260
So we're seeing, we estimated about three and a half million users could have been impacted by the vulnerabilities exemplified here, and more than 330,000 businesses.

15:22.680 --> 15:25.200
All these control multiple systems.

15:25.880 --> 15:39.140
Of course, there's a PII component, so having access to the platform could enable a malicious actor to obtain information about the user's location and so on and so forth.

15:39.140 --> 15:53.420
So that's bad in itself, bad enough in itself, but at the same time, having access and controlling, being able to control the inverters through the management platform could also either overload or under load the grid.

15:53.420 --> 15:58.280
So basically user imagination of what could have been done here.

15:58.280 --> 16:07.400
Also, it's worth mentioning that the platform serves about a fifth of the world's total solar generation capacity.

16:07.400 --> 16:10.400
So it's quite an impressive number.

16:10.680 --> 16:15.760
Kind of put that into perspective, it's larger than what the U.S.

16:15.760 --> 16:18.780
generates through photovoltaics alone.

16:18.900 --> 16:24.100
So the question is, does this finally beat the squirrels now?

16:25.100 --> 16:32.260
Because, and of course, the echoes of national security follow.

16:32.260 --> 16:42.540
The idea here being that the conversation generally around the grid is that, as I said earlier, it's either the squirrels or natural causes.

16:42.540 --> 16:52.900
We're not here to place FUD around about solar, but kind of trying to shine a light that the situation might be changing for the future.

16:52.900 --> 16:55.440
And I think it warrants a little more attention.

16:55.840 --> 16:57.780
I have the timeline here.

16:57.780 --> 17:01.520
We contacted the companies sometime in mid-May.

17:01.540 --> 17:08.380
They've been fairly responsive at both acknowledging and fixing the vulnerabilities.

17:08.620 --> 17:13.840
And we actually closed disclosure to these findings just a few days ago.

17:14.100 --> 17:19.140
With that said, I'm inviting you to ask whatever questions there might be.

17:19.140 --> 17:22.280
You can also find us at the IoT Village.

17:22.280 --> 17:24.500
We have a little table there.

17:24.500 --> 17:27.780
I know we have a challenge to hack a TV.

17:28.860 --> 17:46.860
And please do not forget, if you know a vendor, remind them to appoint a permanent contact for vulnerability findings, to set up a program for vulnerabilities, a URL for it, put a PGP key on it, and monitor that inbox, please.

17:46.860 --> 17:48.740
So with that said, thank you for coming.

17:48.740 --> 17:50.460
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:02.220
So thanks so much for your time.

18:02.260 --> 18:03.000
We'll see you guys there.

18:03.000 --> 18:03.620
Thank you.

