1 00:00:00,000 --> 00:00:01,880 It didn't warn me it was going to be bright. 2 00:00:01,880 --> 00: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. 3 00:00:10,100 --> 00:00:12,900 So while everybody comes in, we'll get to the meat of it. 4 00:00:12,900 --> 00:00:14,460 So welcome. 5 00:00:14,880 --> 00:00:16,940 Everybody's having a great, great convention. 6 00:00:16,940 --> 00:00:18,020 Thanks for showing up. 7 00:00:18,020 --> 00:00:19,000 This is fantastic. 8 00:00:19,000 --> 00:00:23,440 We're really excited to talk about some of this stuff because it's fresh off the presses. 9 00:00:23,440 --> 00:00:33,240 So we're going to be talking about photovoltaics and some of the findings that are recent for us. 10 00:00:33,240 --> 00:00:40,000 So I have here with me, Alexander Lauser, as one of our senior security researchers. 11 00:00:40,000 --> 00:00:44,120 We both work for a company called Bitdefender, you may have heard of. 12 00:00:44,960 --> 00:00:50,920 I added a link here to our work so you can refer to it later. 13 00:00:50,940 --> 00:00:54,740 Some of the vulnerability research that we do. 14 00:00:54,740 --> 00: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. 15 00:01:12,600 --> 00: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. 16 00:01:23,480 --> 00:01:32,780 This is a pretty small team, but it's been really lucrative and exciting on our academic and educational side. 17 00:01:32,780 --> 00:01:39,380 So I want to quote a couple of high profile cases that we covered, findings that we had. 18 00:01:39,380 --> 00: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. 19 00:01:55,800 --> 00: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. 20 00:02:09,160 --> 00:02:12,040 And to our contact, then we try to reach out to them. 21 00:02:12,040 --> 00:02:17,960 And it takes, 180 days to do so. 22 00:02:18,040 --> 00: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. 23 00:02:32,240 --> 00: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. 24 00:02:47,680 --> 00:02:48,980 I can't stress that enough. 25 00:02:48,980 --> 00: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. 26 00:03:05,860 --> 00:03:07,920 And it's called SQRL terrorism. 27 00:03:07,920 --> 00:03:11,300 There is a SQRL index on Wikipedia. 28 00:03:11,580 --> 00:03:13,180 And we have a couple of quotes here. 29 00:03:13,180 --> 00: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. 30 00:03:25,040 --> 00: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. 31 00:03:34,120 --> 00: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. 32 00:03:52,120 --> 00:03:56,920 In general, the grid is really highly regulated and protected and secured. 33 00:03:56,920 --> 00: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. 34 00:04:04,540 --> 00:04:08,320 So to that, enter solar. 35 00:04:09,340 --> 00:04:11,780 And this is what we're going to talk quickly about today. 36 00:04:11,780 --> 00:04:15,220 So obviously, green energy is the forefront of everything that we do. 37 00:04:15,220 --> 00: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. 38 00:04:30,340 --> 00: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. 39 00:04:46,920 --> 00:04:52,580 So as the capacity increases, the question is, you know, is security keeping up? 40 00:04:53,020 --> 00:04:59,400 As both businesses and consumers are starting to add solar panels to their portfolios. 41 00:04:59,400 --> 00:05:08,920 Now, again, this space, solar is less hardened and regulated by, as legacy power generation. 42 00:05:09,160 --> 00:05:16,000 So to that point, we investigated a manufacturer called Day and a management platform called SolarMint to find out. 43 00:05:16,560 --> 00:05:17,680 Why? 44 00:05:17,960 --> 00:05:22,800 It's because these are smart systems and they can be obviously controlled remotely. 45 00:05:23,520 --> 00:05:29,760 Someone in our office noticed something that was interesting after installation, so we decided to keep digging. 46 00:05:30,080 --> 00: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. 47 00:05:42,800 --> 00:05:44,680 You just needed the serial number. 48 00:05:44,740 --> 00:05:46,860 So it was interesting enough. 49 00:05:46,860 --> 00:05:50,320 So here's a diagram of a system and trying to understand how it works. 50 00:05:50,320 --> 00:05:56,260 This applies for both residential customers, but also larger platforms as well. 51 00:05:56,260 --> 00:06:02,620 So you have the solar panels, let's say you have solar panels on top, you know, on your home. 52 00:06:02,680 --> 00:06:05,800 These connect to an inverter that feeds the grid. 53 00:06:05,800 --> 00:06:13,100 The inverter is connected to a data logger that's a bridge between all these systems. 54 00:06:13,480 --> 00:06:21,200 And the data logger sends information to a cloud platform that feeds into various application and management systems as well. 55 00:06:21,200 --> 00: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. 56 00:06:33,620 --> 00:06:41,120 In general, these will be connected and they won't be because they won't work otherwise with a grid. 57 00:06:41,260 --> 00: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. 58 00:06:48,620 --> 00:06:53,840 And I'm going to invite Alex to discuss and walk us through how we investigated the platform. 59 00:06:56,740 --> 00:07:02,280 Okay, so we started with a man-in-the-middle attack on the day cloud app. 60 00:07:02,360 --> 00:07:06,780 We only use the user certificate, no need to pass the application. 61 00:07:07,180 --> 00:07:12,280 Among the traffic, we found a suspicion login request using hard-coded credentials. 62 00:07:12,280 --> 00: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. 63 00:07:24,800 --> 00:07:27,540 Okay, what is the account used for? 64 00:07:27,660 --> 00:07:34,460 It gets information about a user's device, for example, the model, the version, and a password. 65 00:07:34,840 --> 00:07:41,680 This account is not linked to any user account, so it works for any device no matter who owns them. 66 00:07:42,200 --> 00:07:44,020 Now, I mentioned the password. 67 00:07:44,260 --> 00:07:48,660 A logger, while it is running, has an access point active. 68 00:07:48,940 --> 00:07:53,060 The SSID of the access point has a convenient naming scheme. 69 00:07:53,060 --> 00:07:56,680 It starts with AP underscore serial number. 70 00:07:57,080 --> 00:08:01,680 So, if we have the serial number of the logger, we can get into the access point. 71 00:08:01,820 --> 00:08:04,200 Let's see how an attack would look. 72 00:08:04,580 --> 00:08:08,880 First, we find an access point that corresponds to the naming scheme. 73 00:08:09,180 --> 00:08:15,760 Then, we get the serial number, we use the hard-coded account to make the request and get the password. 74 00:08:16,180 --> 00:08:19,220 Connect to the access point and just profit. 75 00:08:19,560 --> 00: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. 76 00:08:38,060 --> 00:08:40,500 Now, there are some downsides to this attack. 77 00:08:40,500 --> 00:08:43,220 First of all, you need physical proximity. 78 00:08:43,220 --> 00:08:46,800 Then, you need to maintain said physical proximity. 79 00:08:47,060 --> 00: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. 80 00:08:53,580 --> 00:08:54,840 I think we can do better. 81 00:08:56,240 --> 00:09:05,680 Now, we looked at other platform features, and we saw that users can only view statistics and information about their system. 82 00:09:05,900 --> 00:09:11,220 To make changes, they require to add a business account as a guest. 83 00:09:11,580 --> 00:09:12,880 How is this done? 84 00:09:12,880 --> 00:09:19,280 Well, there is a search API that returns data about all users and organizations. 85 00:09:19,300 --> 00: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. 86 00:09:30,520 --> 00: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. 87 00:09:45,340 --> 00:09:50,360 By itself, it's not really exploitable, at most being a privacy issue. 88 00:09:50,560 --> 00: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. 89 00:10:00,940 --> 00:10:04,720 We'll keep this in mind, as it might be useful later. 90 00:10:05,600 --> 00: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. 91 00:10:16,680 --> 00:10:22,420 But recently, Dey built its own data center and migrated its user to a new database. 92 00:10:22,420 --> 00:10:25,980 The code also runs on their new data center. 93 00:10:25,980 --> 00:10:30,660 But we wondered, maybe the code is still pretty similar. 94 00:10:31,820 --> 00:10:34,520 And it turns out it's very similar. 95 00:10:34,660 --> 00:10:38,500 A token from Dey will work on SolrMan. 96 00:10:38,500 --> 00:10:43,580 It gives access to an account that has the same user ID, but the users were migrated. 97 00:10:43,580 --> 00:10:50,520 So now a user from Dey has a different user ID from the one on SolrMan. 98 00:10:51,160 --> 00:10:54,560 So the user IDs are also incremental. 99 00:10:54,660 --> 00:11:01,260 A new account gets an ID of about 14 million on SolrMan, and it's about 30 million on Dey. 100 00:11:01,540 --> 00:11:08,040 This means that by creating new accounts on Dey, you could take over over 1 million accounts. 101 00:11:08,500 --> 00:11:11,200 That's good, but I think we can do even better. 102 00:11:12,480 --> 00:11:17,640 Now, I keep talking about the JVT tokens, and let's see how they are obtained. 103 00:11:17,860 --> 00:11:20,200 For a normal user, it's pretty straightforward. 104 00:11:20,760 --> 00: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. 105 00:11:31,080 --> 00:11:33,460 A business account is a bit different. 106 00:11:34,040 --> 00:11:41,280 One account can manage multiple organizations, and when logging in, an admin will choose which business to manage. 107 00:11:41,280 --> 00:11:46,620 The server creates a token that specifies the organization's ID. 108 00:11:47,820 --> 00:11:49,380 Let's see the steps. 109 00:11:49,380 --> 00: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. 110 00:12:02,460 --> 00: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. 111 00:12:13,120 --> 00: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. 112 00:12:25,740 --> 00:12:31,320 And in the post body, we also have the same token together with the organization ID. 113 00:12:31,840 --> 00:12:39,740 The server responds and completes the fields that I highlighted earlier and pertain to the user organization. 114 00:12:40,500 --> 00:12:42,220 Now, what is the issue? 115 00:12:42,460 --> 00: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. 116 00:12:52,580 --> 00:12:57,440 So we thought, let's just change the user ID and email and the token we sent. 117 00:12:57,440 --> 00:12:59,000 And it just worked. 118 00:12:59,060 --> 00:13:04,200 No signature checks, no errors, didn't even need alg none. 119 00:13:05,640 --> 00:13:08,680 The endpoint didn't even need the authorization header. 120 00:13:08,680 --> 00:13:12,580 We could use it just like that. 121 00:13:12,920 --> 00:13:18,820 This is a request with a manufactured token that we sent and the one we received. 122 00:13:19,640 --> 00:13:22,040 The tokens here look pretty similar. 123 00:13:22,040 --> 00:13:24,580 The one on the left is the one we manufactured. 124 00:13:24,920 --> 00: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. 125 00:13:31,920 --> 00:13:38,200 But the one on the right is signed by the server and it gives us access to any account we want. 126 00:13:39,080 --> 00:13:43,300 I mentioned that we need the ID and email to create this token. 127 00:13:43,300 --> 00:13:50,760 But if you remember earlier, we have some endpoint which gives us this information for all accounts. 128 00:13:51,080 --> 00:13:56,360 So this time, all three and a half million accounts were risking takeover. 129 00:13:57,500 --> 00:13:58,320 Kudos to them. 130 00:13:58,320 --> 00:14:01,920 They fixed this in 24 hours since we contacted them. 131 00:14:02,840 --> 00:14:06,940 Now I'll let Dan talk about the impact. 132 00:14:09,020 --> 00:14:10,420 Thanks, Alex. 133 00:14:10,480 --> 00:14:15,160 So this context, I'll show this more in the timeline. 134 00:14:15,160 --> 00:14:16,140 So this is very fresh. 135 00:14:16,140 --> 00:14:19,420 We published the findings just a couple of days ago. 136 00:14:19,420 --> 00:14:25,860 So take this list of vendors with a little bit of a grain of salt. 137 00:14:25,860 --> 00: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. 138 00:14:38,920 --> 00: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. 139 00:14:55,120 --> 00:15:01,400 So some of these vendors also patched right away and informed the users about the existing patches. 140 00:15:01,400 --> 00:15:10,120 Now let's talk a little bit about the actual impact in terms of users. 141 00:15:10,560 --> 00: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. 142 00:15:22,680 --> 00:15:25,200 All these control multiple systems. 143 00:15:25,880 --> 00: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. 144 00:15:39,140 --> 00: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. 145 00:15:53,420 --> 00:15:58,280 So basically user imagination of what could have been done here. 146 00:15:58,280 --> 00:16:07,400 Also, it's worth mentioning that the platform serves about a fifth of the world's total solar generation capacity. 147 00:16:07,400 --> 00:16:10,400 So it's quite an impressive number. 148 00:16:10,680 --> 00:16:15,760 Kind of put that into perspective, it's larger than what the U.S. 149 00:16:15,760 --> 00:16:18,780 generates through photovoltaics alone. 150 00:16:18,900 --> 00:16:24,100 So the question is, does this finally beat the squirrels now? 151 00:16:25,100 --> 00:16:32,260 Because, and of course, the echoes of national security follow. 152 00:16:32,260 --> 00: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. 153 00:16:42,540 --> 00: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. 154 00:16:52,900 --> 00:16:55,440 And I think it warrants a little more attention. 155 00:16:55,840 --> 00:16:57,780 I have the timeline here. 156 00:16:57,780 --> 00:17:01,520 We contacted the companies sometime in mid-May. 157 00:17:01,540 --> 00:17:08,380 They've been fairly responsive at both acknowledging and fixing the vulnerabilities. 158 00:17:08,620 --> 00:17:13,840 And we actually closed disclosure to these findings just a few days ago. 159 00:17:14,100 --> 00:17:19,140 With that said, I'm inviting you to ask whatever questions there might be. 160 00:17:19,140 --> 00:17:22,280 You can also find us at the IoT Village. 161 00:17:22,280 --> 00:17:24,500 We have a little table there. 162 00:17:24,500 --> 00:17:27,780 I know we have a challenge to hack a TV. 163 00:17:28,860 --> 00: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. 164 00:17:46,860 --> 00:17:48,740 So with that said, thank you for coming. 165 00:17:48,740 --> 00:17:50,460 We're open for questions. 166 00:17:56,440 --> 00:18:00,780 And if there's no questions, just come by the Village and we can talk more. 167 00:18:00,780 --> 00:18:02,220 So thanks so much for your time. 168 00:18:02,260 --> 00:18:03,000 We'll see you guys there. 169 00:18:03,000 --> 00:18:03,620 Thank you.