[00:00.000 --> 00:05.820] Hi, everyone. Welcome to DEF CON. We're going to talk about [00:05.820 --> 00:08.080] something that has been talked about before, but not talked [00:08.080 --> 00:12.100] about in ways that I think have been as useful or as helpful as [00:12.100 --> 00:13.520] they should have been. We're going to look at the crash [00:13.520 --> 00:16.420] override event from 2016, but reevaluate it from the [00:16.420 --> 00:19.760] perspective, not just in terms of what happened, but based upon [00:19.760 --> 00:22.920] what was involved and deployed in the environment, what the [00:22.920 --> 00:25.660] adversary was actually trying to do, which is a protection [00:25.660 --> 00:29.240] focused attack on electric transmission. So first off, who [00:29.240 --> 00:32.640] the hell am I? My name is Joe Slowik. I have an interesting [00:32.640 --> 00:36.320] background in that I do not have a computer science background or [00:36.320 --> 00:39.500] whatnot. I actually dropped out of philosophy graduate school at [00:39.500 --> 00:43.800] the University of Chicago way back in 2005. Since then, I've [00:43.800 --> 00:48.240] bounced around. I was a US Naval officer going back to 2009, then [00:48.240 --> 00:50.740] went to the Department of Energy working at Los Alamos National [00:50.740 --> 00:54.440] Laboratory for a few years. And now I work at Dragos, which is [00:54.440 --> 00:57.700] an ICS security product company. We got some stuff set up over [00:57.700 --> 01:00.060] here. We can meet there after this if anyone wants to ask [01:00.060 --> 01:02.360] questions. But really, throughout all of that [01:02.360 --> 01:05.700] transitioning from a more offensive minded to a very much [01:05.700 --> 01:08.680] focused defensive minded role over the years. But enough about [01:08.680 --> 01:10.800] me because y'all don't care about me, you care about what [01:10.800 --> 01:13.860] we're talking about here today. So first, just as a point of [01:13.860 --> 01:16.500] background, we'll go over the crash override event in review. [01:16.500 --> 01:19.040] So we're all on the same page as far as that's concerned. And [01:19.040 --> 01:21.620] then talk a little bit about what process integrity means in [01:21.620 --> 01:23.900] an electric transmission environment within the context [01:23.900 --> 01:28.240] of protective relaying for electric operations. And based [01:28.240 --> 01:31.080] upon that, we'll reevaluate crash override as a protection [01:31.080 --> 01:35.500] focused attack, focusing on protective relay operations, and [01:35.500 --> 01:38.480] then what the implications of that event are for future [01:38.480 --> 01:41.920] defense and future attacker behaviors. So first off, crash [01:41.920 --> 01:46.760] override. So everyone knows more or less about the string of [01:46.760 --> 01:49.780] Ukraine attacks or whatever, or just how often Russia has been [01:49.780 --> 01:52.820] making Ukrainians feel miserable. Going back many [01:52.820 --> 01:56.000] years now, including back to back electric disruption [01:56.000 --> 02:02.580] operations in 2015 and 2016. 2016 featured a more automated [02:02.580 --> 02:06.260] mechanism in order to enable that disruption through a piece [02:06.260 --> 02:10.300] of malware called crash override by Dregos and destroyer by ESET [02:10.300 --> 02:12.400] because God forbid we all have the same fucking name for [02:12.400 --> 02:16.860] things. Yeah, so it was interesting because crash [02:16.860 --> 02:19.840] override really represented one of the few instances or so it [02:19.840 --> 02:22.500] seemed of an adversary completing the entire kill [02:22.500 --> 02:27.160] chain for an ICS attack operation. So what we had was a [02:27.160 --> 02:30.100] penetration of the ICS environment from Enterprise IT [02:30.100 --> 02:34.280] that then resulted in the adversary getting sustained [02:34.280 --> 02:37.320] controlled access to the control system environment. And from [02:37.320 --> 02:41.360] that access, they were able to pivot out and gain the ability [02:41.360 --> 02:45.400] to implant malware on the SCADA environment, on the control [02:45.400 --> 02:48.240] systems for the actual transmission gear, and time it [02:48.240 --> 02:52.180] to cause breakers to open at a specified point in time to [02:52.180 --> 02:55.640] induce an outage. Paired with that, there was a wipe and [02:55.640 --> 02:58.220] system disabling event that was somewhat similar to what [02:58.220 --> 03:01.800] happened in 2015 that looked like it was designed to inhibit [03:01.800 --> 03:04.460] recovery and make recovery more difficult by wiping project [03:04.460 --> 03:06.940] files, among other items, and then rendering the machines [03:06.940 --> 03:11.100] unusable. And then finally there was an attempt at a denial of [03:11.100 --> 03:14.760] service against the Siemens SuperTech protective relays in [03:14.760 --> 03:16.840] the environment, but no one really bothered to look at that [03:16.840 --> 03:20.400] in very much detail, which in hindsight was a very grievous [03:20.400 --> 03:23.380] mistake on our end. But didn't we already fucking talk about [03:23.380 --> 03:25.720] this like a couple years ago? And the answer is like, yeah, we [03:25.720 --> 03:27.920] kind of did. There was, there was a Black Hat presentation on [03:27.920 --> 03:30.040] this a couple years ago when this happened, and it kind of [03:30.040 --> 03:32.340] provided the highlights or whatever, but we really didn't [03:32.340 --> 03:35.520] get too deep into this, which is why I've done a lot of work on [03:35.520 --> 03:38.560] this since then. Uh, I did a presentation at Virus Bulletin [03:38.560 --> 03:41.020] last year with a follow-up paper that went into the [03:41.020 --> 03:43.620] methodologies leading up to the deployment and execution of [03:43.620 --> 03:45.780] crash override that can provide you with some of the [03:45.780 --> 03:48.380] methodology behind how the attack was enabled. So if [03:48.380 --> 03:51.200] you're interested in this topic, I recommend reading that. Uh, [03:51.200 --> 03:53.600] but there's still a lot about this that, you know, this isn't [03:53.600 --> 03:55.440] something that we just closed the book on and we shouldn't [03:55.440 --> 03:58.640] have just closed the book on that. This is really a seminal [03:58.640 --> 04:01.800] event for electric utility operations in terms of cyber [04:01.800 --> 04:06.620] attack scenarios. Because while crash override is interesting, [04:06.620 --> 04:08.820] people sort of discounted it because like, well, it didn't [04:08.820 --> 04:11.880] seem like it was that much bigger of a deal in 2015. And [04:11.880 --> 04:14.520] there were some failures as we started to get access to actual [04:14.520 --> 04:18.360] data and malware samples involved in the event. So the [04:18.360 --> 04:21.220] event itself targeted hundreds of RTUs for manipulation [04:21.220 --> 04:24.120] whereas it seemed like it only impacted a handful. Because it [04:24.120 --> 04:26.200] seemed like a lot of the communication that was deployed [04:26.200 --> 04:30.500] by the adversary in this case either ignored or was ignorant [04:30.500 --> 04:34.360] of specific implementations by the, uh, vendors that produced [04:34.360 --> 04:37.140] the targeted equipment in question such as stateful [04:37.140 --> 04:39.560] protocol analysis and stateful protocol behavior. Something [04:39.560 --> 04:42.300] that my colleague, Dan Michaud-Soussi, has presented on [04:42.300 --> 04:44.180] with another one of my colleagues. So talk to him about [04:44.180 --> 04:47.120] that afterwards. And it all kind of resulted in a smaller [04:47.120 --> 04:49.520] impact. So you had a lot of press reporting about like, oh, [04:49.520 --> 04:51.940] like this is just a test or, you know, it's kind of like a damp [04:51.940 --> 04:56.280] squid. No big deal. And if we look at 2015 compared to 2016, [04:56.280 --> 04:58.960] we can see, you know, sort of overlaps. But again, like [04:58.960 --> 05:01.540] there's some fundamental differences between how these [05:01.540 --> 05:05.880] developed. So in 2015, we had very manual interaction with the [05:05.880 --> 05:08.220] control systems in question where the adversaries harvested [05:08.220 --> 05:11.580] credentials, VNC'd into workstations, and then manually [05:11.580 --> 05:13.920] manipulated gear in the environment. And you can pull up [05:13.920 --> 05:17.160] the YouTube video of the Ukrainian operator freaking out [05:17.160 --> 05:20.060] and taking a video with his phone of the mouse moving and [05:20.060 --> 05:24.800] people opening breakers and whatnot. In 2016, this is a [05:24.800 --> 05:27.780] pretty big fucking deal. The interactions, instead of being [05:27.780 --> 05:30.040] manual, are encoded in the software itself. And the reason [05:30.120 --> 05:32.960] that's a big deal is because when you start doing that and do [05:32.960 --> 05:35.780] it properly, you can get attacks that can scale. That means that [05:35.780 --> 05:39.440] I can deploy, set, and forget, and do that across tens, [05:39.440 --> 05:41.420] hundreds of sites nearly simultaneously where I don't [05:41.420 --> 05:44.480] have to have one operator per operation, but rather one team [05:44.480 --> 05:47.540] deploying in advance for later execution. But then when it came [05:47.540 --> 05:51.220] to attack impact, so in 2015, you know, disrupt electricity [05:51.220 --> 05:54.400] distribution across three companies in Ukraine and then [05:54.400 --> 05:58.500] inhibit recovery. 2016 went after electric transmission, [05:58.500 --> 06:01.840] which implicitly should be a much bigger impact, but as we'll [06:01.840 --> 06:04.600] see in a second, didn't actually amount that way, and then [06:04.600 --> 06:08.000] attempt to inhibit recovery and impact protection systems, but a [06:08.000 --> 06:10.680] lot of that didn't work out as intended. And so from a success [06:10.680 --> 06:14.200] standpoint, you know, 2015 was kind of a bigger deal in that [06:14.200 --> 06:16.480] you had, you know, from a traditional battle damage [06:16.480 --> 06:20.440] assessment standpoint, more customers were impacted for a [06:20.440 --> 06:23.460] longer period of time than in 2016. So if you're comparing the [06:23.460 --> 06:26.820] two just on a simple metric standpoint, it could look, it [06:26.820 --> 06:30.460] almost looks like 2016 was a regression from what 2015 was [06:30.460 --> 06:33.880] able to accomplish. But if we look at it that way, we're [06:33.880 --> 06:36.720] missing some of the point. Because in a lot of ways, there [06:36.720 --> 06:40.700] was silence in the post attack scenario, as far as what [06:40.700 --> 06:42.880] actually was achieved and what it meant. So while there was [06:42.880 --> 06:45.640] significant attention to the malware, you know, from a sexy [06:45.640 --> 06:48.480] reverse engineer standpoint, like, whoo, we got ICS malware, [06:48.480 --> 06:51.920] let's see what it does. And the immediate impact of like, oh, [06:51.920 --> 06:54.300] the lights went out in Ukraine in December, again, there was [06:54.300 --> 06:58.100] very little exploration of what crash override really meant in [06:58.100 --> 07:00.720] terms of possibilities and intentions, irrespective of [07:00.720 --> 07:03.220] what the adversary was able to achieve. And so that's what [07:03.220 --> 07:05.720] we're kind of here to talk about today. Because we look at the [07:05.720 --> 07:08.920] post attack comparison, things actually are quite distinct [07:08.920 --> 07:12.080] between what was attempted between the two. So in 2015, we [07:12.080 --> 07:15.980] had some asshole actions like modifying the firmware on serial [07:15.980 --> 07:19.880] to Ethernet connections in order to disrupt communication, and [07:19.880 --> 07:22.040] then deploying a fairly commodity wiper that used the [07:22.040 --> 07:25.180] kill disk framework to wipe workstations and HMIs for the [07:25.180 --> 07:28.160] purposes of inhibiting recovery. So manipulate the distribution [07:28.160 --> 07:31.120] environment, wipe the workstations and back off and the [07:31.120 --> 07:33.440] Ukrainians will, you know, start buzzing around, although they [07:33.440 --> 07:36.580] went to a manual restoration to get operations back online. And [07:36.580 --> 07:38.320] there's a chair on the aisle open right there in case [07:38.320 --> 07:43.120] anyone needs a seat. In 2016, things worked out a little bit [07:43.120 --> 07:45.600] differently, because we had a file and service wiper on the [07:45.600 --> 07:49.300] impacted SCADA workstations. But in the way in which it was [07:50.100 --> 07:52.760] launched, and in the greater context of the event itself, it [07:52.760 --> 07:55.160] wasn't so much that the adversaries were looking to [07:55.160 --> 07:58.140] inhibit recovery, but based upon the workstations that were [07:58.140 --> 08:01.140] targeted, it gets into a loss of view and a loss of control [08:01.140 --> 08:04.640] condition on the ICS monitoring environment, which we'll get [08:04.640 --> 08:07.640] into in a second. And then finally, an attempted protective [08:07.640 --> 08:12.080] relay of, uh, protective relay denial of service. So I've said [08:12.080 --> 08:14.440] protective relay a number of times, and unless you're a power [08:14.440 --> 08:15.980] engineer or working in a utility, you're probably [08:15.980 --> 08:17.960] wondering, like, what the fuck is he talking about? So [08:17.960 --> 08:21.440] protective relays get into an aspect of process safety and [08:21.440 --> 08:24.380] protection and fundamental process integrity in industrial [08:24.380 --> 08:28.080] control environments. So process integrity, you'll hear people [08:28.080 --> 08:30.900] say things like, availability is the most important part of the [08:30.900 --> 08:34.860] CIA triangle in ICS. That's bullshit. And I will happily, [08:34.860 --> 08:36.740] like, arm wrestle or argue with people out in the hallway about [08:36.740 --> 08:40.820] this one, because you can't operate, no sane operator will [08:40.820 --> 08:43.420] operate, generate, produce whatever if they can't verify [08:43.420 --> 08:45.960] the integrity and safety of their operations. Because when [08:45.960 --> 08:48.380] you start talking about what it is that's actually existing in [08:48.380 --> 08:51.120] my environment, we're talking about validating output so that [08:51.120 --> 08:52.740] the widgets are actually coming out in the way that they're [08:52.740 --> 08:55.980] supposed to. We're talking about long term operational stability [08:55.980 --> 08:58.740] that I know that I'm going to fall within scheduled [08:58.740 --> 09:01.160] maintenance windows and that process wear and tear is going [09:01.160 --> 09:04.100] to be around what I'm expecting. But most importantly of all is [09:04.100 --> 09:07.800] safety, that I know that I'm not going to overpressurize a line [09:07.800 --> 09:12.460] or overcurrent a line in my electric distribution or [09:12.460 --> 09:15.440] transmission environment so that I can maintain the overall [09:15.440 --> 09:18.520] integrity of that operational environment and either not cost [09:18.520 --> 09:22.540] myself a lot of money, or result in potentially killing someone. [09:22.680 --> 09:24.440] Because the thing is, is that as we look at the popular [09:24.440 --> 09:27.440] conception of ICS attacks, and what gets posted in crappy New [09:27.440 --> 09:29.940] York Times or Bloomberg articles, is that everyone wants [09:29.940 --> 09:32.280] to look at an ICS attack as like you turn off the power, you [09:32.280 --> 09:34.920] blow up the planter, you destroy centrifuges. And I'm going to [09:34.920 --> 09:37.760] have a much deeper dive into all this coming up in October for [09:37.760 --> 09:40.200] those that are really interested in this topic. Because the thing [09:40.200 --> 09:43.180] is, is that that's like amateur hour shit. What you really are [09:43.180 --> 09:47.220] after for a very potent cyber attack in an ICS realm is a more [09:47.220 --> 09:50.460] subtle effect where you're undermining operator integrity [09:50.460 --> 09:53.220] and understanding of what's going on in the control system [09:53.220 --> 09:55.660] environment, leading to potential catastrophic and [09:55.660 --> 09:59.000] difficult to diagnose and fix outcomes. So that degrading the [09:59.000 --> 10:01.800] process in a hard to diagnose condition, you know, why are my [10:01.800 --> 10:03.980] widgets not coming out like they're supposed to anymore? Or [10:03.980 --> 10:06.940] why are the centrifuges failing at an increased rate? You know, [10:06.940 --> 10:10.560] how do you investigate that if you've had a environment lacking [10:10.560 --> 10:13.100] integrity and monitoring or inducing defects or lack of [10:13.100 --> 10:16.860] reliability in the environment? Or as we saw, it's an attempt in [10:16.860 --> 10:20.680] 2017, the crisis Triton event, targeting process safety within [10:20.680 --> 10:23.680] the control system environment. So how does that relate to [10:23.680 --> 10:25.540] electric transmission operations? We don't have [10:25.540 --> 10:28.360] spinning turbines, or you know, oil and gas flaring or whatever [10:28.360 --> 10:31.900] well, but we do have lots of power flowing over lines. And [10:31.900 --> 10:35.000] one of the major sort of revolutions in electric [10:35.000 --> 10:37.940] operations over the last 20-30 years is the introduction of [10:37.940 --> 10:42.360] digital protective relays, which are able to autonomously and at [10:42.360 --> 10:46.440] machine speeds, monitor and control electric transmission [10:46.440 --> 10:50.140] operations to prevent things like a fault in the electric [10:50.140 --> 10:53.620] line due to overcurrent phase out of whack or other sorts of [10:53.620 --> 10:57.200] scenarios popping up from resulting in physical damage or [10:57.200 --> 11:00.500] potential cascading outages as a result of propagating defects [11:00.500 --> 11:03.320] within the grid environment. So if you look at what the [11:03.320 --> 11:06.780] implementations and the implications are of targeting [11:07.400 --> 11:10.440] protective relays as part of overall electric operations, and [11:10.440 --> 11:13.920] primarily at a transmission or generation level, is that we can [11:13.920 --> 11:16.720] create a hazardous situation for personnel and equipment, you can [11:16.720 --> 11:18.580] burn through transformers because you got too much power [11:18.580 --> 11:21.240] flowing, or cause lines to sag because of that overcurrent [11:21.240 --> 11:24.160] situation resulting in a fault when it hits a tree. You laugh [11:24.160 --> 11:28.140] about this, but that's exactly how the 2003 Italian and [11:28.140 --> 11:31.860] Northeastern blackouts happened was lines were overloaded, sagged [11:31.940 --> 11:34.280] a little bit, hit a tree and then cascaded on from there when [11:34.940 --> 11:37.720] individual stations started going to self protection mode. [11:37.820 --> 11:40.420] But you can also induce along those lines islanding among [11:40.420 --> 11:42.940] affected substations as every single substation starts [11:42.940 --> 11:46.040] entering into a man woman or electric substation for [11:46.040 --> 11:48.940] themselves scenario to try and protect local assets, but then [11:48.940 --> 11:51.020] cutting themselves off from the rest of the grid resulting in [11:51.020 --> 11:53.900] more load being shed onto the remaining infrastructure, which [11:53.900 --> 11:56.900] then results in a, you know, even more stress on them [11:56.900 --> 12:00.280] producing potential situations where another fault increases [12:00.280 --> 12:03.600] and then cascading onward at that point. Or the really scary [12:03.600 --> 12:06.080] scenario if you start getting into protective relays at [12:06.080 --> 12:09.240] generation is that manipulation of protective relays from a [12:09.240 --> 12:12.500] generation environment starts getting you into a spot where [12:12.500 --> 12:16.500] you can induce an Aurora like effect on generating equipment. [12:16.500 --> 12:20.340] So Aurora was a manipulation in frequency relative to electric [12:20.340 --> 12:23.400] generation operations that results in a generator rocking [12:23.400 --> 12:26.140] back and forth between frequency extremes inducing physical [12:26.140 --> 12:28.580] damage. Again, these are topics that we can talk hours on [12:28.580 --> 12:31.980] elsewhere. So we can go into detail later. But in looking at [12:31.980 --> 12:36.080] crash override then, well, okay, we actually had a far more [12:36.080 --> 12:40.860] complex attack attempted to be executed than what we observed [12:40.860 --> 12:44.100] within the environment because what we had was like, okay, we [12:44.100 --> 12:47.300] had an outage. But if you look at the malware itself, the [12:47.300 --> 12:50.920] outage was intended to be across the entirety of the [12:50.920 --> 12:54.420] victim transmission station. So the goal was to create a [12:54.420 --> 12:57.360] widespread transmission outage, wiping transmission completely [12:57.360 --> 13:02.720] from the targeted substation. After that, we had a attack on [13:02.720 --> 13:05.560] the SCADA, the workstations that were controlling the field [13:05.560 --> 13:08.860] devices in question, not just to wipe them to make recovery more [13:08.860 --> 13:13.240] difficult, because from 2015, the Russians or whoever attacked [13:13.240 --> 13:16.240] the substation knew that the Ukrainian operators would go [13:16.240 --> 13:18.760] out to the field to restore operations. So wiping the [13:18.760 --> 13:21.000] workstations wasn't going to inhibit recovery because they [13:21.000 --> 13:23.920] knew what the Ukrainians would do. Instead, in this case, the [13:23.920 --> 13:27.260] wiper wasn't designed to make recovery harder, it was designed [13:27.260 --> 13:31.480] to prevent the operators in Ukraine from accurately gauging [13:31.480 --> 13:33.840] and understanding the state of the system at the time of the [13:33.840 --> 13:38.200] outage, while they were rushing to repair it. Thus, right after [13:38.200 --> 13:41.080] you have that wiping operation take place, the Siemens [13:41.080 --> 13:43.860] SuperTech denial of service that was criminally ignored in past [13:43.860 --> 13:47.180] analysis becomes very important, because the way in [13:47.180 --> 13:51.160] which the SuperTech denial of service works is that it is a [13:51.160 --> 13:53.980] semi-legitimate function designed to place the victim [13:54.360 --> 13:57.720] SuperTech into a firmware update mode. So you clear underlying [13:57.720 --> 14:00.660] logic from the device, but it still appears from physical [14:00.660 --> 14:02.780] observation as powered on, network accessible, and for all [14:02.780 --> 14:05.200] intents and purposes, functioning, if you don't [14:05.200 --> 14:07.580] actually have you into the device itself, which if all of [14:07.580 --> 14:11.480] your workstations are no longer accessible, you don't. So we [14:11.480 --> 14:12.840] have this removal of transmission protection on a [14:12.940 --> 14:15.060] de-energized line, so the immediate effect is nothing. [14:15.060 --> 14:17.140] Like, I have no power flowing through this line, I don't need [14:17.140 --> 14:19.860] protection, big fucking deal. But that loss of view makes it [14:19.860 --> 14:22.580] difficult to ascertain that that protection is lost, because in [14:22.580 --> 14:26.140] that rush then to restore operations at the transmission [14:26.140 --> 14:29.200] site by flipping those switches in the breaker yard, now you [14:29.200 --> 14:31.840] create the conditions for potentially hazardous effects on [14:31.840 --> 14:35.100] an unprotected line that you're re-energizing. An immediate [14:35.100 --> 14:37.900] potential impact of that would be an overcurrent situation that [14:37.900 --> 14:40.980] is, as the line is restored from a massive transmission outage [14:40.980 --> 14:43.720] across multiple sites, that that line becomes so overloaded [14:43.720 --> 14:47.120] to produce either a SAG event that results in a fault as it [14:47.120 --> 14:50.240] connects with something that's grounded, or overloading [14:50.240 --> 14:52.740] transformers within the transmission station that [14:52.740 --> 14:55.040] produces physical damage or increased wear and tear on the [14:55.040 --> 14:58.400] device, leading up to physical damage. On a longer term, [14:58.400 --> 15:01.600] because there's a, as we'll get into this, you know, many other [15:01.600 --> 15:04.340] things in play here, you at the least create the condition that [15:04.340 --> 15:07.240] any other subsequent fault in the line, while the Ukrainians [15:07.240 --> 15:09.940] were working on restoring visibility into the environment, [15:09.940 --> 15:12.340] results in similar situations, even if you don't get that [15:12.340 --> 15:17.120] immediate overcurrent scenario. But for all of this, mistakes [15:17.120 --> 15:21.940] were made. The attackers in this case were neither brilliant, nor [15:21.940 --> 15:24.900] were they completely as successful as they wanted to be. [15:24.900 --> 15:27.500] Because among other items, and we hinted at this already, is [15:27.500 --> 15:30.460] that there was improper protocol communication involved within [15:30.460 --> 15:33.820] the event itself. So hundreds of devices were targeted, but few [15:33.820 --> 15:37.380] were impacted because the actual specific protocol implementation [15:37.380 --> 15:40.960] used in a lot of these cases did not align with what was designed [15:40.960 --> 15:43.680] in the malware. So as much as we want to say, oh, scary modular [15:43.680 --> 15:46.560] malware targeting lots of systems, quite frankly, the [15:46.560 --> 15:48.640] operators fucked it up in how they designed it, either because [15:48.640 --> 15:50.740] they lacked the proper testing equipment, were testing on the [15:50.740 --> 15:54.140] wrong equipment, or didn't do proper Q, Q and A on what they [15:54.140 --> 15:56.380] were deploying in the environment, including ignoring [15:56.380 --> 15:58.540] things like stateful communication requirements for [15:58.540 --> 16:02.680] specific protocols, or ignoring the distinction between general [16:02.680 --> 16:08.620] protocol specs for like IEC 104, IEC 61850, versus vendor [16:08.620 --> 16:11.900] specific implementations of those specifications. But also [16:11.900 --> 16:14.520] the cprotect denial of service implementation was really [16:14.520 --> 16:17.500] interesting, because they got it right, the denial of service as [16:17.500 --> 16:22.000] it was coded would have worked. However, the malware included [16:22.000 --> 16:25.520] hardcoded addressing for the four cprotects within the victim [16:25.520 --> 16:30.480] environment. In the process of designing the communication from [16:30.480 --> 16:34.600] the dos.exe, which is what it was named in the environment, [16:35.280 --> 16:38.380] executable to the victim cprotects, someone forgot [16:38.380 --> 16:41.900] ending this for IP address socket creation. And so as a [16:41.900 --> 16:44.100] result, the IPs were read in backwards. And since it was [16:44.100 --> 16:46.460] hardcoded, there was nothing the operators could do at the time [16:46.860 --> 16:49.960] of deployment. So while we had and this is an incomplete [16:49.960 --> 16:53.660] section of the UDP packet that puts the cprotect into a legacy [16:53.660 --> 16:56.740] cprotect, this has been patched into a firmware update mode. [16:56.740 --> 16:59.300] This is what we get if we look at it in Wireshark. So you know, [16:59.300 --> 17:04.740] 172.16.something.something. So yes, your APTs are humans too. [17:04.740 --> 17:09.180] Never forget that. But again, you know, while we can laugh at [17:09.180 --> 17:14.100] the lack of success or what failed to occur or whatever, as [17:14.100 --> 17:16.400] we start looking at this in greater detail based upon what [17:16.400 --> 17:19.640] was in the environment and what it was designed to do, we get a [17:19.640 --> 17:22.420] really scary scenario that becomes much more complex and [17:22.420 --> 17:25.640] much more worrying than what we saw in 2015. Because now we get [17:25.640 --> 17:28.940] in situations where we go beyond just trying to turn off the [17:28.940 --> 17:31.440] lights for a couple of hours to like, no, I want to induce [17:31.440 --> 17:34.080] physical damage at the transmission at the transmission [17:34.080 --> 17:37.960] substation to cause an outage lasting days, weeks, months, [17:37.960 --> 17:40.460] maybe even longer, depending on how quickly you can replace the [17:40.460 --> 17:44.320] gear in question. And not only that, because of the potential [17:44.320 --> 17:46.980] nature of how this environment was laid out, also creating the [17:46.980 --> 17:50.280] possibility that, you know, Evgeny or Yuri or whoever the [17:50.280 --> 17:52.460] poor bastard is that goes off to the yard to start closing [17:52.460 --> 17:55.420] breakers manually, puts himself in a dangerous situation when [17:55.420 --> 17:57.660] something arcs and whatnot when he connects it, where [17:57.660 --> 17:59.620] everything's flowing through the one line after hundreds have [17:59.620 --> 18:02.620] been disabled. There are some caveats to this, though. And [18:02.620 --> 18:05.260] this is important to note in why everyone talks about the scary [18:05.260 --> 18:07.780] scenarios with ICS, but at the same time, it's really hard to [18:07.780 --> 18:10.040] pull this off effectively, as shown in this instance, because [18:10.040 --> 18:14.180] they fucked it up. So for one, it's impossible to completely [18:14.180 --> 18:17.160] know what Electrum, the adversary involved here, [18:17.160 --> 18:20.200] intended apps and effects. These are all very educated guesses [18:20.200 --> 18:23.560] based upon looking at log data and actual malware samples in [18:23.560 --> 18:26.620] the environment. So caveat like this may not actually be how [18:26.620 --> 18:29.140] things were designed. But, you know, based upon everything that [18:29.140 --> 18:32.400] was designed and the attack flow and sequence of events, this is [18:32.400 --> 18:36.040] my professional assessment on what was intended in the [18:36.040 --> 18:39.680] environment. But aside from that, I think a lot of people [18:39.680 --> 18:43.840] lose sight of or ignore the fact that SCADA, ICS, is not [18:43.840 --> 18:45.940] something in a vacuum. Like, yes, we have an increasingly [18:45.940 --> 18:49.240] digitized landscape as far as how processes are monitored, [18:49.240 --> 18:51.880] controlled, as well as for safety implications. But [18:51.880 --> 18:54.300] there's also fundamental physical safeguards layered on [18:54.300 --> 18:57.080] top of that, that because engineers are a lot better at [18:57.080 --> 18:59.640] what they do than we are trying to understand what they do, [18:59.640 --> 19:02.060] have put in place over years of experience to make sure that [19:02.580 --> 19:06.360] situations like this, if they don't necessarily fail, at [19:06.360 --> 19:08.760] least manifest themselves in a way that's controllable or [19:08.760 --> 19:12.240] reasonably safe. So other redundancies within the [19:12.240 --> 19:14.960] transmission yard and within transmission operations may [19:14.960 --> 19:17.380] have prevented some of the cascading effects that were [19:17.380 --> 19:20.640] sought by the crash override event. Thus, the same scenario [19:20.640 --> 19:23.020] depending upon, you know, exactly what equipment you have [19:23.020 --> 19:25.260] in your environment, what physical safeguards or backup [19:25.260 --> 19:27.980] relaying technologies exist, could play out dramatically [19:27.980 --> 19:31.220] differently if you did this in Ohio, or if you did it in [19:31.220 --> 19:34.160] Germany, than if you did it in Ukraine. Having said all that [19:34.160 --> 19:36.100] though, you know, it is important to recognize that [19:36.100 --> 19:38.820] while we can say that all these redundancies exist, we see [19:38.820 --> 19:42.300] multiple examples of just squirrels, poor tree trimming, [19:42.300 --> 19:46.180] lightning, high wind, etc., causing massive outages like [19:46.180 --> 19:51.300] the two events in 2003, the 2006 Denmark-Sweden outage, and [19:51.300 --> 19:53.940] other large scale power events, where all of these systems are [19:53.940 --> 19:55.840] in play, and no one's maliciously trying to manipulate [19:55.840 --> 19:58.880] everything, and yet shit goes haywire. Okay, so a future [19:58.880 --> 20:01.860] consider- really? I only have two minutes left? Oh shit. Okay, [20:01.860 --> 20:04.220] so future considerations on this is that we're seeing integrity [20:04.220 --> 20:07.280] attacks on the rise. We've gone from Stuxnet to crash override [20:07.280 --> 20:10.160] to Trisys as these things have rolled out over time. And the [20:10.160 --> 20:12.740] possibilities include various ways of manipulating [20:12.740 --> 20:15.860] manufacturing, electric generation, distribution, and [20:15.860 --> 20:18.300] oil and gas production. Because from an electric utility [20:18.300 --> 20:20.860] standpoint, we get various scenarios that play out across [20:20.860 --> 20:23.640] safety, integrity, and reliability within the electric [20:23.640 --> 20:26.020] grid that are both hard to diagnose, and unless you have [20:26.020 --> 20:28.160] proper monitoring and defenses in place, hard to defend [20:28.160 --> 20:31.920] against. So, some examples of attacks, I could go into [20:31.920 --> 20:34.140] explanations of these further, I thought I had 30 minutes, not [20:34.140 --> 20:37.440] 20, my bad. Uh, but looking at this from a defense and [20:37.440 --> 20:39.580] detection scenario, the important thing is that these [20:39.580 --> 20:41.780] are not attacks that we're going to identify or defend against [20:41.780 --> 20:44.200] just by throwing some blinky box in the environment and hoping [20:44.200 --> 20:47.180] that it catches bad shit because it looks weird. Instead, we [20:47.180 --> 20:50.660] need mechanisms to align traditional sort of IT-based [20:50.660 --> 20:53.660] visibility, increased host-based visibility into [20:53.660 --> 20:56.160] increasingly digitized environments, and fundamental [20:56.160 --> 20:58.480] knowledge about both how the process is operating, what [20:58.480 --> 21:01.060] state it's in, in order to be successful. So, for the crash [21:01.060 --> 21:09.000] override event... done? Thank you, Sydney. Great. I can [21:09.000 --> 21:10.980] pontificate on this a little bit more. So, if you look at [21:10.980 --> 21:13.960] crash override and how this played out and what the state [21:13.960 --> 21:16.460] of the environment was at the time of reconnection, is that [21:16.460 --> 21:19.080] the reason why this attack is enabled is that the operators [21:19.080 --> 21:21.940] in question lack the visibility and the knowledge about the [21:21.940 --> 21:24.380] state of their industrial environment, allowing them to [21:24.380 --> 21:27.560] make, or enabling them to make, intelligent decisions about how [21:27.560 --> 21:31.520] to safely restore it. The lack of visibility induced by the [21:31.520 --> 21:34.280] attack on the engineering workstations in the SCADA [21:34.280 --> 21:37.460] environment, combined with the massive outage and the loss of [21:37.460 --> 21:40.200] protection, meant that the operators were then put in a [21:40.200 --> 21:42.560] position where they're rushing to restore operations to get [21:42.560 --> 21:45.280] back at availability without understanding what their process [21:45.280 --> 21:47.460] integrity was because their ability to do so had been [21:47.460 --> 21:50.820] inhibited by the attack. So, the way to get around that is that [21:50.820 --> 21:53.540] from a security monitoring and defense perspective, we need to [21:53.540 --> 21:56.020] start taking a whole of you approach to how industrial [21:56.020 --> 21:59.060] environment, environments operate by combining that [21:59.060 --> 22:02.940] security viewpoint with process viewpoint. So, if in this [22:02.940 --> 22:05.480] environment, not trying to victim shame here or whatever, [22:05.480 --> 22:08.840] but if they'd been doing things differently or better, detecting [22:08.840 --> 22:12.260] that they had seen a significant IT based event within their [22:12.260 --> 22:16.000] environment, then coupled with a control system environment and [22:16.000 --> 22:18.160] then even just having the knowledge that, huh, and why do [22:18.160 --> 22:20.120] I have this one-off communication to my super techs [22:20.120 --> 22:22.800] at this point in time, should have flagged to the operators [22:22.800 --> 22:26.140] that, okay, I don't know the status of what the relay yard is [22:26.140 --> 22:28.280] in right now. I don't know whether or not, you know, [22:28.280 --> 22:30.960] someone communicated to my relays and I don't know for what [22:30.960 --> 22:34.160] end. Maybe I want to make sure that Yevgeny, as he's driving [22:34.160 --> 22:37.500] out in the pickup to the transmission site, holds off a [22:37.500 --> 22:40.520] little bit until we've got a better idea of what's going on. [22:41.080 --> 22:43.660] So, this really gets into the question of, you know, my [22:43.660 --> 22:46.680] fundamental cyber hygiene for industrial control systems is [22:46.680 --> 22:49.380] really a combination of two things. Visibility and root [22:49.380 --> 22:52.600] cause analysis. So, visibility is that you cannot examine, you [22:52.600 --> 22:55.780] cannot debug or otherwise fix what you cannot see. So, [22:55.780 --> 22:58.040] layering in multiple types of visibility within these [22:58.040 --> 23:00.560] environments is, although it sounds hard and potentially [23:00.560 --> 23:03.720] expensive, is the only way we get around these issues. Thus, [23:03.720 --> 23:07.020] CrashoverEye took advantage of limited IT visibility in a [23:07.020 --> 23:09.600] damaged or degraded ICS environment to enable a [23:09.600 --> 23:12.920] potential protection attack scenario. But then correlating [23:12.920 --> 23:16.980] those events is neither easy nor typical either because in many [23:16.980 --> 23:19.600] unfortunate cases, we're often operating where our engineers [23:19.600 --> 23:22.720] and our IT personnel live in separate worlds. Someone's from [23:22.720 --> 23:25.460] Venus, someone's from Mars, y'all can figure out who's who. [23:25.460 --> 23:27.840] But the sides don't talk together or work together enough [23:27.840 --> 23:30.740] with each other to make sure that the combination of seeing [23:30.740 --> 23:34.060] communication to the relays with an IT-based intrusion get [23:34.060 --> 23:36.880] combined in a satisfactory way to make sure that operators are [23:36.880 --> 23:40.020] enabled to make intelligent decisions in what's going on. [23:40.140 --> 23:43.200] And finally, from an analysis standpoint, it's getting to the [23:43.200 --> 23:46.560] point of understanding and being able to go one level further [23:46.560 --> 23:50.140] from like, okay, I have a massive transmission outage. Why? [23:50.140 --> 23:53.000] What data do I have available to make subsequent decisions off [23:53.000 --> 23:55.240] of this? How do I gather that data? How do I perform [23:55.240 --> 23:57.760] forensics? How do I perform this correlation? Do I have the [23:57.760 --> 24:00.740] people trained and able to make these sorts of decisions within [24:00.740 --> 24:03.700] this environment? And it's only by addressing these three [24:03.700 --> 24:05.680] fundamental mechanisms that we're going to get into a [24:05.680 --> 24:08.840] scenario where complex, hard-to-diagnose, but also [24:08.840 --> 24:12.520] hard-to-properly-execute events can be properly defended against [24:12.520 --> 24:16.420] and responded to. So I don't know if this particular slide [24:16.420 --> 24:18.760] deck will be made available, but there's some resources there in [24:18.760 --> 24:23.000] citations. As a note, I will have a white paper that goes [24:23.000 --> 24:25.700] across all of this instead of me like yelling at you very quickly [24:25.700 --> 24:28.700] for 20-25 minutes or whatever while you're all trying to make [24:28.700 --> 24:33.100] it out. It'll be available on the Dragos website on Thursday, I [24:33.100 --> 24:36.380] think. We'll see. I think I need to check on that. But it [24:36.380 --> 24:39.600] goes into all of this in greater detail with more background on [24:39.600 --> 24:42.360] protective relaying operations and laying out the exact attack [24:42.360 --> 24:45.440] scenario some more. So if you're really interested in this topic, [24:45.440 --> 24:47.640] I recommend looking at that when it comes out after everyone's [24:47.640 --> 24:50.800] recovered from their DEF CON. So with that, I do have time for [24:50.800 --> 24:55.560] questions, because Sidney can't tell time. But yeah, what's [24:55.560 --> 25:03.770] going on? Either no one understood what I said or, oh, [25:03.770 --> 25:04.270] what's up? [25:18.760 --> 25:22.480] Ah, yes. So the asterisk there because while the interactions [25:22.480 --> 25:25.240] were encoded in malware, they weren't properly encoded in all [25:25.240 --> 25:27.720] the malware. So this is one of the things and this is where [25:27.720 --> 25:30.220] differentiating between a lab environment or especially, for [25:30.220 --> 25:34.800] example, you look at software suites that could emulate ICS [25:34.800 --> 25:38.000] communications in software. So you don't have to go out and buy [25:38.000 --> 25:43.480] or find on eBay, actual like ABB or SEL equipment to test on. [25:43.480 --> 25:47.180] They don't always function or process traffic in the same way [25:47.180 --> 25:49.860] as the actual gear will out in the field. So while everything [25:49.860 --> 25:52.680] may have looked hunky-dory out in the lab in Moscow, or [25:52.680 --> 25:56.180] wherever, crash override was put together, how it was actually [25:56.720 --> 25:59.780] worked within the environment was not appropriate, thus [25:59.780 --> 26:02.400] leading to a much smaller impact than what was desired. [26:02.400 --> 26:03.800] Yep. [26:04.360 --> 26:06.220] Thank you for a very good speech. [26:06.220 --> 26:06.640] Yes. [26:06.640 --> 26:13.060] But 2015-2016 crash override, you mentioned several times that [26:13.060 --> 26:17.700] there are some lentitudes in the execution. What's the motivation [26:17.700 --> 26:20.440] behind it? I mean, clearly it comes more or less from Russia [26:20.440 --> 26:25.080] as this attacks within Ukraine, but have they been holding back [26:25.080 --> 26:28.500] because we're not seeing anything else? Or are there known [26:28.500 --> 26:32.300] or existing penetrations in other places just to get ready [26:32.300 --> 26:33.600] for action? [26:33.600 --> 26:35.640] That's a very interesting question. If you attended my [26:35.640 --> 26:38.960] Sky Talk earlier this week, you know, okay. So if you start [26:38.960 --> 26:42.060] looking at things from that perspective, that... so the [26:42.060 --> 26:45.440] question was, you know, yeah, this seemed like there was an [26:45.440 --> 26:48.060] aptitude, didn't work or limited impact or whatever. Have we seen [26:48.060 --> 26:51.600] anything since? Or what is the state of this sort of event now? [26:51.600 --> 26:56.200] And my professional take on this is that if you've looked or [26:56.200 --> 26:59.180] paid attention to the news from 2017 onward, you've seen [26:59.180 --> 27:03.120] sustained, very deliberate effects to build up access and [27:03.120 --> 27:06.560] knowledge of the electric utility op environments in the [27:06.560 --> 27:10.600] United States, the United Kingdom, Germany, and a few [27:10.600 --> 27:13.820] other places. And based on US government analysis, it ties [27:13.820 --> 27:17.040] back to Russian state interests. Yet we haven't seen a crash [27:17.040 --> 27:21.160] override in Iowa or Birmingham or, you know, wherever else in [27:21.160 --> 27:24.360] the world. Why is that? Well, I think what we're seeing is that [27:24.360 --> 27:28.360] while we had... Ukraine presents itself as a permissive [27:28.360 --> 27:30.720] environment for operations. Like, unfortunately, for the [27:30.720 --> 27:33.320] Ukrainians, no one's coming to their defense or saying to the [27:33.320 --> 27:35.020] Russians, like, you guys can't do that anymore, or there'll be [27:35.020 --> 27:37.760] consequences. That sucks for them. It's good for us, though, [27:37.760 --> 27:40.500] on our side, because if someone were to do a massive blackout [27:40.500 --> 27:43.240] with physical damage, that could be traced back to a cyber attack [27:43.240 --> 27:46.240] in New York City, I'd like to think there'd be consequences. [27:46.620 --> 27:49.700] But what we are seeing, though, are adversaries developing all [27:49.700 --> 27:52.860] the prerequisites necessary in terms of access and environmental [27:53.500 --> 27:56.680] knowledge that at a time in the future of their choosing, if [27:56.680 --> 27:59.040] that access is maintained and that knowledge is accurate, [27:59.040 --> 28:01.360] that something like a working crash override could be [28:01.360 --> 28:04.480] developed, deployed in those environments to facilitate an [28:04.480 --> 28:07.000] attack at a time of their choosing. So that is an [28:07.000 --> 28:10.440] entirely, like, I'd be in talk at the bar for a couple hours [28:10.440 --> 28:13.060] on this one or whatever. That's a fun subject in my mind. So I [28:13.060 --> 28:15.640] hope that answers some of your question. But yeah, we haven't [28:15.640 --> 28:19.160] seen people go away. We just haven't seen people go complete [28:19.160 --> 28:23.820] the kill chain to a final disruptive effect. Okay. Anything [28:23.820 --> 28:28.200] else? Yep. [28:28.200 --> 28:35.950] How deliberate do you think it is that they left them in a [28:35.950 --> 28:40.310] state where, you know, they weren't careful they could inflict [28:40.310 --> 28:41.570] damage on themselves? [28:41.570 --> 28:42.850] Yep. [28:42.850 --> 28:48.060] And therefore, maybe it's kind of their own fault. [28:48.060 --> 28:50.160] Yep. [28:50.160 --> 28:55.620] Do you think that that was very deliberate or? I don't know. [28:55.620 --> 28:59.540] Okay, if I understand the question for everyone in the [28:59.540 --> 29:01.100] room, it was designed so that it was almost like they were [29:01.100 --> 29:03.660] impacting themselves as a result of deploying this. And I think [29:03.660 --> 29:06.280] that was very intentional. Because based upon lessons [29:06.280 --> 29:10.120] learned from the 2015 event, the adversaries knew that in an [29:10.120 --> 29:15.380] emergency operation that the utilities would work as quickly [29:15.380 --> 29:17.560] as possible to restore operations no matter what was [29:17.560 --> 29:21.520] involved. And by inducing a loss of view and loss of control at a [29:21.520 --> 29:25.340] logical level, it enabled them to take advantage of a degraded [29:25.340 --> 29:28.840] environment so that in the rush to follow those procedures, [29:28.840 --> 29:31.360] unintended and unforeseen side effects would manifest [29:31.360 --> 29:34.000] themselves, undermining the fundamental integrity and safety [29:34.000 --> 29:37.220] of the victim environment. So it's that's why it's like making [29:37.220 --> 29:39.940] this happen requires, you know, sort of a lot of moving parts [29:39.940 --> 29:42.240] and understanding not just the technical side of how the [29:42.240 --> 29:45.080] utility operates, but also sort of a softer side of like, well, [29:45.080 --> 29:47.480] what are their TTPs or their policies and procedures for [29:47.480 --> 29:49.900] restoration? And how can I make sure that the effect I'm [29:49.900 --> 29:52.940] delivering manifests itself in the right way in light of what [29:52.940 --> 29:55.820] those procedures are? So that's why an ICS attack, everyone's [29:55.820 --> 29:57.800] like, oh, look, I found this vulnerability and shit or [29:57.800 --> 29:59.860] whatever, I'm gonna throw zero days at this like, okay, cool [29:59.860 --> 30:03.720] story, bro. That's not how this shit works. In reality, trying [30:03.720 --> 30:06.340] to take down an ICS system requires a fundamental knowledge [30:06.340 --> 30:08.680] and understanding of the industrial processing question [30:08.680 --> 30:12.080] to get anything beyond a short term disruptive effect, unless [30:12.080 --> 30:14.800] you get lucky. So that's, I think I'm out of time at this [30:14.800 --> 30:17.220] point. Someone's gonna tackle me. So I'll be hanging out like [30:17.220 --> 30:19.620] right over here and bouncing around the ICS village. If [30:19.620 --> 30:22.040] anyone wants to talk about this on the side, more than happy to [30:22.040 --> 30:25.120] do so, especially if you bring one of these. So yeah, just let [30:25.120 --> 30:27.740] me know. Look for that white paper. And thanks, everyone, for [30:27.740 --> 30:28.500] listening to me.