1 00:00:00,000 --> 00:00:02,060 Thank you very much for waiting. 2 00:00:02,760 --> 00:00:07,360 Today is one of those days, you know, when everything goes wrong. 3 00:00:07,360 --> 00:00:14,700 So I wanted to, two hours ago, I wanted to rehearse my talk and I went into my ICS Village folder and it was empty. 4 00:00:14,840 --> 00:00:25,200 I made all the searches on the hard drive, on the external hard drive, and there was not a trace that I ever been collecting any materials or had any presentation created. 5 00:00:25,200 --> 00:00:29,440 So I cannot explain that mystery, except just being a bad day. 6 00:00:29,520 --> 00:00:39,880 And if any of you attended today, my morning talk, and you've heard some stories and everything that also, again, one of those talks. 7 00:00:39,880 --> 00:00:47,380 So this was a photo of the, like, there was allegation that we stole that research. 8 00:00:47,380 --> 00:00:51,980 So this was a photo how we were brainstorming the morning talk. 9 00:00:52,140 --> 00:00:56,820 And there was an issue with unquoted picture and what has happened. 10 00:00:56,820 --> 00:01:07,440 So I had original research co-presenter Ali Abassi, who actually received the picture, which was on the screenshot from the owner, from the Reid Whiteman. 11 00:01:07,520 --> 00:01:10,820 But unfortunately, the picture is hidden behind this picture. 12 00:01:10,820 --> 00:01:12,520 So it's not visible. 13 00:01:12,700 --> 00:01:20,100 And when Ali Abassi is getting married, and there was so much work with weddings that he could not work on research anymore. 14 00:01:20,100 --> 00:01:24,000 So I changed the co-speakers and we inherited a few slides from Ali. 15 00:01:24,400 --> 00:01:29,640 So we actually rewrote the entire application, abstract and so on. 16 00:01:29,640 --> 00:01:35,100 But so basically, we could not see that there was a picture, but apparently, there is an animation. 17 00:01:35,460 --> 00:01:37,600 So the picture is behind this picture. 18 00:01:37,600 --> 00:01:39,720 And we were absolutely not aware of it. 19 00:01:39,720 --> 00:01:43,260 So we neither could quote it nor we even knew that it was there. 20 00:01:43,600 --> 00:01:46,020 We've never looked at the full presentation mode. 21 00:01:46,020 --> 00:01:47,980 So now you know what has happened. 22 00:01:48,140 --> 00:01:51,440 And hopefully, we will sort out those all of those matters. 23 00:01:52,040 --> 00:02:00,100 So I wanted also to mention my so this work, which I presented or as much as I can in the next 12 minutes. 24 00:02:00,320 --> 00:02:04,260 So that was actually 12 months worth of work. 25 00:02:04,400 --> 00:02:11,080 And the student really thought his master's thesis and he really took all of his time to work on this. 26 00:02:11,080 --> 00:02:19,180 And the reason why, why it took so long is because, you know, like, we've done something new, something what never done, nobody ever done before or tried. 27 00:02:19,180 --> 00:02:23,560 So we first have to discover it 150 ways which do not work at all. 28 00:02:24,020 --> 00:02:34,820 So, and, uh, the motivation for this talk was it's just a reason to frequently claim that when the attacker is on the network, he can do whatever he wants to do. 29 00:02:34,820 --> 00:02:48,500 But this is kind of overly bold and overly pessimistic statement because the attacker will be in a position to arbitrarily manipulate the traffic, but will he be able to bring the system into the arbitrary state or needed state. 30 00:02:48,920 --> 00:02:55,520 So in order actually to control the target, and I will, it comes on the next slide, the attacker actually has to become process aware. 31 00:02:55,920 --> 00:03:02,780 So, and then the goal was of this work was to assess the visibility of discovery and physical behavior of the process in an automated manner. 32 00:03:02,780 --> 00:03:10,120 So basically, as you do like end mapping of the networks and so on, so, uh, you have automated tool to understand what's happening on the network. 33 00:03:10,120 --> 00:03:13,180 In OT domain, for example, there is no any automated tools. 34 00:03:13,180 --> 00:03:14,960 There is no even methods to do so. 35 00:03:14,960 --> 00:03:17,000 We even didn't know how would you do so. 36 00:03:17,500 --> 00:03:19,220 So, and this is a problem. 37 00:03:19,220 --> 00:03:27,320 So as you can see, so for example, what, uh, in red square, in, in, uh, this is was something what attacker manipulated. 38 00:03:27,320 --> 00:03:32,480 And as you can see the, the entire chemical plant has responded to that manipulation. 39 00:03:32,480 --> 00:03:36,540 And as you can see, every shape of the sensor signal is different. 40 00:03:36,540 --> 00:03:42,840 So you don't even know how the, any manipulation of the physical process, which reaction it will cause. 41 00:03:42,840 --> 00:03:46,540 So basically you need to figure out the dynamic behavior of the process. 42 00:03:46,540 --> 00:03:54,500 And if you would look at those green circles, you see, so one is the reactor exit temperature and another is, um, supply of oxygen. 43 00:03:54,640 --> 00:03:57,380 They have similar reactant, but just opposite. 44 00:03:57,380 --> 00:03:58,720 Like why? 45 00:03:59,560 --> 00:04:05,400 So and the reason for that is because the tuning of the control loop is a very complex process. 46 00:04:05,420 --> 00:04:17,440 So all of that, this weird responses which you see on this slide, they will be determined by tons of parameters which are specific and custom to every single individual plant. 47 00:04:17,980 --> 00:04:27,340 So, but luckily, so the attacker in order to understand the dynamic behavior of the process, the attacker does not really need to know like, uh, all of these parameters. 48 00:04:27,340 --> 00:04:36,680 All he wants to know, he wants to figure out how this, uh, like if he changed something in this process, how the disturbance is propagating and whether it's something increasing or decreasing. 49 00:04:36,680 --> 00:04:41,320 You basically just want to capture this dynamic of the physical process. 50 00:04:41,320 --> 00:04:43,460 You don't need really to understand why it's happening that way. 51 00:04:43,460 --> 00:04:45,420 Well, it's just that way in this plant. 52 00:04:46,040 --> 00:04:49,640 So at Black Hat, I gave a talk of hacking chemical processes. 53 00:04:49,640 --> 00:04:52,820 And at that time, I still didn't have these processes in place. 54 00:04:52,820 --> 00:04:59,480 So I have to discover the dynamic behavior of the process, which falls under the control stage manually. 55 00:04:59,480 --> 00:05:05,120 And this is how I captured manually the dynamic behavior of the chemical, uh, of the physical process. 56 00:05:05,120 --> 00:05:10,260 But the motivation was to find the automated ways to do so. 57 00:05:10,260 --> 00:05:21,240 Uh, another motivation was is that, um, so Jason Larson presented, um, like capturing, uh, again, shapes of the physics process in this, uh, with the help of triangles. 58 00:05:21,240 --> 00:05:27,200 And he actually suggested also to extrapolate like dynamic behavior of the process in the sense like slopes. 59 00:05:27,380 --> 00:05:36,380 And my idea was, can we actually, for example, you know that every attacker is specializing, like some attack groups specializing on specific tasks. 60 00:05:36,380 --> 00:05:40,700 One is writing, uh, containers, another is reversing firmware and so on. 61 00:05:40,700 --> 00:05:44,920 So I was like, hey, maybe for somebody, for some cybercrime group, it's become an offering. 62 00:05:44,920 --> 00:05:58,420 I get into the plant and I create, can we capture the fingerprint, you know, like a hash function, a fingerprint of the dynamic behavior of the physical process in a specific facility and store it in some meaningful way, which is small enough, which you can then trade, 63 00:05:58,420 --> 00:06:00,220 for example, in dark forums. 64 00:06:00,540 --> 00:06:04,460 So that was actually quite over-optimistic. 65 00:06:05,540 --> 00:06:14,300 So, um, basically at the beginning we, uh, we did not even know how to approach this task. 66 00:06:14,300 --> 00:06:27,100 And, um, because there is no, like there is nobody has done it and we actually took us a lot of time to look through the control literature because at the end, uh, we needed to borrow methods from the control theory. 67 00:06:27,480 --> 00:06:35,240 And, um, so for example, even if you, if we want to capture the dynamic behavior of the physical process, we need some benchmark against something. 68 00:06:35,240 --> 00:06:37,200 We have to compare it against something. 69 00:06:38,080 --> 00:06:44,500 So, and the idea was like initial was idea was compare, uh, to compare against. 70 00:06:44,500 --> 00:06:47,100 So this is what you see the sinusoid, uh, wave. 71 00:06:47,100 --> 00:06:51,300 That is a typical response in the proportional PID controller. 72 00:06:51,300 --> 00:06:59,600 So the most popular controller in the, uh, out there in the world is, uh, PID controllers which has three components. 73 00:06:59,600 --> 00:07:04,720 It's, uh, it's a long equation and, uh, tuning control loops meaning finding those coefficients. 74 00:07:04,720 --> 00:07:07,180 And this is typical sinusoid response. 75 00:07:07,180 --> 00:07:10,540 Whenever you change, adjust the valve, this is the form of the response. 76 00:07:10,540 --> 00:07:12,760 The sensor signal will look like that. 77 00:07:12,760 --> 00:07:18,140 But what we figured out that unfortunately we're not, we cannot compare the responses in the real plant. 78 00:07:18,140 --> 00:07:31,580 Again, this, um, you know, like ideal sinusoid, because this is how it's happening, like in terms of equation, but in the real plant, all the sensor signals are so nasty, ugly that it's just like they don't have that perfect shape. 79 00:07:31,580 --> 00:07:34,080 So we had to discard that method. 80 00:07:34,720 --> 00:07:57,150 So, um, uh, I just quickly wanted to mention, so as we were working on our, uh, on our work, so Jason Larson already realized that, um, so we found a lot of ways which, uh, did not work, but we were already working on deriving our own algorithms and approaches. 81 00:07:57,290 --> 00:08:01,230 He decided to take a follow, to have a follow up work. 82 00:08:01,230 --> 00:08:04,090 And, um, so he said like, Hey, maybe I'll try something. 83 00:08:04,090 --> 00:08:08,350 So he gave another talk like automatic generation of process models. 84 00:08:08,550 --> 00:08:18,370 And what he approached, he used is that, um, it's, uh, some researchers found out that, uh, they use it actually for 3D animation. 85 00:08:18,370 --> 00:08:25,230 So all objects in the physical world, they actually correlated to each other in terms of vibrating frequencies. 86 00:08:25,290 --> 00:08:31,490 So if you put the glass on the table, the table and the glass will be correlated in terms of vibration frequencies. 87 00:08:31,490 --> 00:08:36,190 And this is how, so this is how they actually reproduce 3D, uh, animations. 88 00:08:36,190 --> 00:08:41,810 So somebody's jumping and sorry, and they just know how, how the objects in the room should move together. 89 00:08:41,810 --> 00:08:44,690 And that's creates like kind of realistic picture. 90 00:08:45,030 --> 00:08:59,970 So he tried to apply his method, uh, and, um, interestingly enough, it turned out that even though the method worked because, uh, I helped him to obtain the data set from a water utility on which he could test his approach. 91 00:08:59,970 --> 00:09:07,670 So this approach actually works better, for example, for chemical plants, where it's processes continuously and does not change too frequently. 92 00:09:07,670 --> 00:09:22,230 But in a water facility, we later tested it in a water facility, what he figured out that because there is too many off states, like pump on, now mixing, now like something is, uh, like emptying the, uh, emptying the vessel. 93 00:09:22,230 --> 00:09:26,970 So there've been so many, there is a frequent change of the state of the process. 94 00:09:26,970 --> 00:09:30,690 And this method does not work well for like frequent changes. 95 00:09:30,690 --> 00:09:40,890 So as you can see, so that is where it was also interesting finding that for different type of the processes, you actually have to figure out and develop different approaches. 96 00:09:41,890 --> 00:09:49,530 So, um, no, where was LinkedIn on which browser? 97 00:09:50,550 --> 00:09:51,430 Tom? 98 00:09:51,870 --> 00:09:53,670 On which browser is LinkedIn? 99 00:09:59,660 --> 00:10:02,180 Well, I will try, okay, I cannot go far. 100 00:10:02,180 --> 00:10:06,680 Well, I have to just point, so I will just explain the major principle. 101 00:10:07,080 --> 00:10:15,100 So, first of all, so in order to figure out the dynamic behavior of the process, the attacker has to, uh, send some impulses. 102 00:10:15,100 --> 00:10:21,140 So you change something and you see how the rest of the process is responding because then you can observe the dynamic behavior of the process. 103 00:10:21,280 --> 00:10:30,420 So, but you want to trigger, so, uh, the danger of the triggering, like, uh, changing something in the process that you can change too much and you can trigger alarms. 104 00:10:30,420 --> 00:10:34,040 Then the operators will notice and probably start to investigate. 105 00:10:34,040 --> 00:10:39,000 So you want to change, uh, uh, so much that you would not trigger alarm. 106 00:10:39,000 --> 00:10:40,120 How would you even do it? 107 00:10:40,120 --> 00:10:43,840 How do you even start to thinking how much you have to change? 108 00:10:44,060 --> 00:10:55,240 And we found the, um, approaches in the control series, so you actually have to measure the, um, uh, the noise floor, the noise level and the noise floor in the sensor signal. 109 00:10:55,240 --> 00:11:00,360 So you take all the sensor signals in the plant and you have to figure out the specific formulas. 110 00:11:00,360 --> 00:11:04,080 You can figure out the sensor level and the sensor floor. 111 00:11:04,100 --> 00:11:09,760 And then we applied processes, uh, approach how control engineers tune control loops. 112 00:11:09,760 --> 00:11:18,600 Uh, you have first, your first, um, trigger, like, uh, it has to be five, five times larger than the noise floor. 113 00:11:18,720 --> 00:11:21,520 So for example, in specific case, it looks like this. 114 00:11:21,520 --> 00:11:24,080 So this was five times of the noise floor. 115 00:11:24,080 --> 00:11:33,920 So that is according to the control series that will allow you to, uh, kind of smoothly and gently, um, test the control loop. 116 00:11:33,980 --> 00:11:40,520 So, and, uh, then you just slowly start increasing the amount of change you're, uh, applying. 117 00:11:40,520 --> 00:11:46,760 So because we needed to, uh, cause amount of change so that it would be visible and that we could capture its dynamic. 118 00:11:47,460 --> 00:12:02,480 So the second, um, task was to actually, you want to cluster sensors because what you're interested, you want to know, uh, which sensors are correlated because for example, for spoofing, uh, for example, you want to lie to the operator what's happening with the process. 119 00:12:02,480 --> 00:12:09,320 So you can, you, you want to spoof sense, uh, certain sensor readings, but you need to spoof all the correlated sensor readings. 120 00:12:09,320 --> 00:12:19,440 Otherwise the attack, uh, the operator would be able to determine that, Hey, this is, uh, looks like normal, but those two not, but I know that they have to change together that something is wrong. 121 00:12:19,500 --> 00:12:24,940 So you need to figure out the clusters of correlated signals and which, for example, the responses is a positive. 122 00:12:24,940 --> 00:12:29,020 So that change in a positive way, it's not only correlated, but also a negative way. 123 00:12:29,840 --> 00:12:41,860 So, and, uh, there was, so normally, for example, such dynamics in the, uh, one of the popular ways to capture such dynamic behavior is a swinging door algorithm. 124 00:12:41,860 --> 00:12:44,760 It's the most popular algorithm which is used in the historians. 125 00:12:44,760 --> 00:12:56,780 So in the historians, pretty much almost all historians use a swinging door algorithm to capture the dynamic behavior of the process because they do not store every single sensor readings, they extrapolate it. 126 00:12:57,280 --> 00:13:06,500 So, but that method did not well, uh, worked well for us because we could see the slopes, but we could not see whether they're negative or positive, it would not tell us. 127 00:13:06,500 --> 00:13:12,320 So we had to develop algorithms which would allow us to capture that, uh, that information as well. 128 00:13:12,600 --> 00:13:23,640 And, uh, one I also have to remember because, so, the attacker will probably be somewhere on a low resource device, like, for example, most, most likely he will be on this, uh, network switch. 129 00:13:23,640 --> 00:13:26,240 So you don't have much storage to store a lot of data. 130 00:13:26,240 --> 00:13:31,440 You don't have much computational power, uh, and you don't have much space for your exploits. 131 00:13:31,440 --> 00:13:35,580 So it has to be very lightweight, real-time algorithm. 132 00:13:35,580 --> 00:13:41,140 So you actually go into this weird and extreme programming with an algorithmization. 133 00:13:41,480 --> 00:13:50,340 So eventually we were able to find such algorithm and capture the dynamic of the, uh, chemical plant, of the dynamic behavior of the process. 134 00:13:50,340 --> 00:13:59,480 And, uh, what was also important to figure out to verify that the relationships and correlations which we determined that they are correct. 135 00:13:59,480 --> 00:14:01,680 So we used Piercer correlation algorithm. 136 00:14:01,680 --> 00:14:08,340 This is, again, yet another standard approach to verify, uh, correlation of the data sets. 137 00:14:08,340 --> 00:14:17,760 So, uh, for each, uh, this is needed for reliability of your exploit because you can't always rely that the algorithm will work correctly. 138 00:14:17,800 --> 00:14:21,160 So these were three large tasks which we accomplished. 139 00:14:21,160 --> 00:14:33,140 And eventually we were able to capture, you cannot see colors in here, but we basically took the state in, uh, um, time, um, gosh, piping and instrumentation diagram of the process. 140 00:14:33,140 --> 00:14:44,780 And we, uh, basically placed, so for example, uh, we applied, we were testing the plant only for, uh, we actually tested every control loop, but for, in this paper, we were, the attack was happening in here. 141 00:14:44,780 --> 00:14:55,100 And then we captured, basically, uh, projected with, marked with colors, uh, correlated, uh, control loops and whether it is positive or negative correlation. 142 00:14:55,160 --> 00:15:01,700 And actually, you see, so it's also, sometimes certain, uh, control loops did not react to the attack at all. 143 00:15:01,700 --> 00:15:07,100 So, for example, in that sense, you, for example, don't need to spoof those sensor readings. 144 00:15:07,100 --> 00:15:19,080 So even though, like, I did not achieve my dream on having this entire fingerprint of the dynamic behavior of the physical process, but it still provides you with enormous amount of information. 145 00:15:19,080 --> 00:15:21,160 Otherwise, you are entirely blind. 146 00:15:22,120 --> 00:15:26,980 So, um, yeah, so that was the conclusion, uh, of this work. 147 00:15:26,980 --> 00:15:32,800 So pre-obviously, you know, there is so much work needs to be done further because we discovered several ways. 148 00:15:33,320 --> 00:15:44,500 Uh, Jason Larson picked up yet another approach, but, yeah, for the community, for us, it's just, like, where we need to pick up this research further because, uh, yes, we, we already know how to exploit embedded devices. 149 00:15:44,500 --> 00:15:50,880 We know how, uh, implant them, but the physical damage still need to be performed. 150 00:15:50,880 --> 00:15:54,000 And for that, you still need to discover dynamic behavior of the process. 151 00:15:54,000 --> 00:15:55,560 And we need automated tool for that. 152 00:15:55,560 --> 00:15:57,900 Otherwise, it's a manual work which does not scale. 153 00:15:58,440 --> 00:16:00,120 That was all from me. 154 00:16:00,120 --> 00:16:00,940 Thank you.