WEBVTT

00:00.000 --> 00:08.220
His presentation today is on a moving target defense, also known as MTD, Algorithm for Mitigating Data Exfiltration from an Adversary.

00:08.360 --> 00:10.760
I've known a few targets to try and avoid me.

00:10.760 --> 00:13.340
Now please give a warm welcome for Chris.

00:13.520 --> 00:18.640
Thank you for that introduction.

00:18.820 --> 00:21.420
So once again, my name is Chris Jenkins.

00:21.580 --> 00:25.360
I am a Cybersecurity Reacher at Sandia National Labs.

00:25.360 --> 00:29.980
And here is an internal research and development project that we worked on for about two years.

00:29.980 --> 00:34.040
Focusing on space cybersecurity, and you can see the team up there.

00:34.060 --> 00:39.500
And we also did some work with Purdue University with them trying to break our algorithm.

00:39.700 --> 00:41.900
So here you have your typical agenda.

00:41.900 --> 00:54.380
We're going to go over why this work is being done, the background, look at the algorithm in detail, experimentation that we've done, and then also what did Purdue do to try to potentially break this algorithm.

00:54.980 --> 00:59.000
And so before I start, I actually wanted to go a little bit over about myself.

00:59.000 --> 01:01.740
You can see the background of my education up there.

01:01.900 --> 01:07.740
The big joke I always tell people is that from kindergarten to grad school, I didn't take a break from school.

01:07.740 --> 01:12.740
So once I finished my master's, I decided to get away from school a little bit.

01:12.740 --> 01:24.340
So I went to Taiwan for four months, went out to San Diego to work at Qualcomm for about a year, decided I wanted to finish up my PhD, went back to Madison, and been in Albuquerque ever since.

01:25.680 --> 01:38.620
And so that shows you kind of my first job at Sandia, some of the work that came out of it, and right now I focus on high-performance computing, operational technology, and then also serve as a cybersecurity consultant for some of the programs that work.

01:39.000 --> 01:47.780
So before COVID, I did a lot of Latin dancing, and then once the pandemic hit, we decided to start doing some RV trips.

01:47.780 --> 01:55.100
So for those of you in the audience that have done any RV trips, I would definitely like some other spots to potentially go to in the nation.

01:55.580 --> 02:02.540
And then I also do some work for some STEM programs, getting the youth interested in becoming an engineer and learning more about cybersecurity.

02:03.600 --> 02:08.220
So just by a quick show of hands, how many people have heard of Sandia National Labs?

02:08.520 --> 02:11.000
Oh, much more than I expected, perfectly.

02:11.380 --> 02:15.700
So some of the things that we've done, the clean room was invented there, which I didn't know until I started.

02:15.820 --> 02:20.340
And we've also done some work for COVID-19 as well as the Mars Lander.

02:21.500 --> 02:35.000
So for those of you who know about DOE, we have 17 national labs, two of them for Sandia, one in Albuquerque, which is where I'm based out of, and then also one in Livermore, California.

02:35.360 --> 02:36.920
So getting back to the talk.

02:37.420 --> 02:49.520
So at DEF CON, I think everyone pretty much knows this, but really my one slide I show, just to say, hey, cybersecurity, someone gets in, there's a compromise, your mission is pretty much over with.

02:49.520 --> 02:56.720
And we want to move into cyber resilience, where we can have degradation and potentially continue to operate through the mission.

02:56.840 --> 03:00.240
So really looking at defensive strategies when we speak about cyber resilience.

03:02.520 --> 03:13.400
And so the type of systems that I look at, so one of the things about the national labs, we tend to work on problems that commercial industry shouldn't, can't, or won't work on.

03:13.400 --> 03:25.440
And so we look at a lot of high consequence systems, and for those of you who have watched the news in the last five years, as those systems get connected and become more connected, they become a chance for an attack.

03:27.960 --> 03:33.700
So what I'm going to speak about today is really under the key results, the first three bullet points.

03:33.700 --> 03:38.680
But the point of this slide is to hopefully show that we've put this algorithm through its paces.

03:38.680 --> 03:41.700
We think it's a great moving target defense algorithm.

03:42.040 --> 04:00.020
We're going to show the key results today, and I think the last bullet point there, number four, even though we had it for a particular application, we realized towards the end of this work that, in fact, it could be used for other applications and use it as a generalized algorithm or generalized approach.

04:01.660 --> 04:06.600
So I'll go into the background, another show of hands, how many people here have heard of moving target defense?

04:07.360 --> 04:09.580
Okay, so a lot less.

04:09.660 --> 04:23.100
So the best way I like to describe it is that if you live in a house, and I want to case your house, I'm typically going to watch you, I'm going to watch how many doors, windows you have, what is the address of the house, color of the house, who's going in,

04:23.100 --> 04:24.500
who's coming out.

04:25.040 --> 04:39.460
And if I come back tomorrow and the house has a different address, a different color, maybe it's down the street, maybe it had two doors, now it has five doors or no doors, that's kind of moving target defense, is that me as the person trying to case your house,

04:39.460 --> 04:44.780
the house itself is changing, and so the moving target is the fact that I don't know what it's going to look like tomorrow.

04:45.080 --> 04:52.000
So you can apply that concept and that approach as a cyber security or a cyber resiliency mechanism that we did.

04:52.000 --> 05:08.140
So in this particular graphic, you just have an attacker that's trying to attack a particular web server or server, it doesn't know the IP address, the server is hopping around, and if you are a legitimate user of the server, you know how it's going to hop so you can access the things you need to access,

05:08.140 --> 05:10.240
and if you're an attacker, it's a lot harder.

05:11.560 --> 05:19.840
And so a lot of moving target defense research that we've seen focuses on IP-based networking or cloud computing.

05:19.880 --> 05:33.120
We wanted to look at something that's more on a real-time communication, command and control type of network, and so we chose MIL-STD-1553 based on a report from the Air Force Research Lab.

05:33.260 --> 05:50.560
And so just at a very high level how it works, you have a bus controller, which controls the entire bus, you have up to 31 remote terminals, and so typically the bus controller is either sending data to the remote terminal, or the remote terminal is being requested to send data to the bus controller,

05:50.560 --> 05:58.700
or potentially a different remote terminal, and you have a bus monitor which functions similarly to a flight recorder on your aircraft.

06:00.360 --> 06:16.780
And so in terms of the actual message, we won't get into everything, but really for our particular work, if you look at where it says I guess in parentheses 3-R-1-32, the first number three is what we're interested in.

06:16.780 --> 06:30.240
So that is the address of the remote terminal, and what we wanted to determine is if we change that address randomly, does that help prevent attacks?

06:30.280 --> 06:31.740
And then two, how does that happen?

06:31.740 --> 06:36.160
And how can you do that where you can still operate and continue to conduct your mission?

06:36.680 --> 06:49.840
And so our particular hypothesis, like I said, once again, this is research, is the integration of moving target defence with a real-time protocol can increase cyber resilience of platforms using that protocol.

06:50.100 --> 06:58.560
And so one, the two key research questions, how can you implement it such that it does not destroy the reliability of MIL-STD-1553?

06:58.560 --> 07:07.400
And then two, can you actually provide quantitative as opposed to qualitative evidence that it does in fact improve cyber resilience?

07:09.460 --> 07:24.160
And so, like I mentioned before, a lot of MTD research that I've seen focuses on cloud computing, and it focuses on IP networks, in particular IP version 4, and in this case we're focusing on real-time systems, those typically found in swap-constrained systems,

07:24.160 --> 07:34.260
and we also don't require anomaly detection, which in and of itself is a very tough problem, which can be used in conjunction with anomaly detection, but we don't necessarily need it for this to work.

07:34.540 --> 07:37.540
So now we're going to dive a little bit more into the algorithm.

07:39.140 --> 07:43.360
So these are, I would say, the six aspects that we really looked at.

07:43.360 --> 07:49.780
I think the first two are the ones that have to work, I believe, for the first of the four to matter.

07:50.080 --> 07:53.100
And so, as I mentioned before, we wanted to keep the underlying protocol.

07:53.100 --> 08:06.460
We thought about having a new protocol, but given that 1553 has started in 1973, it's used heavily in military weapons systems, it's something that's been around for such a long time, it's also used in spacecraft as well.

08:06.700 --> 08:11.240
And so it's something that we didn't want to change, it's tried and true, we wanted to keep that.

08:11.240 --> 08:25.160
And then the second point, which I think is probably more interesting, more to the research, if I have a bus that has five devices, and all those devices are changing, potentially at a millisecond level or faster, how do I make sure that I don't have address collisions,

08:25.160 --> 08:25.340
right?

08:25.340 --> 08:26.760
That's like the big thing.

08:26.760 --> 08:29.880
If that doesn't work, then everything else is like whatever.

08:30.300 --> 08:39.820
And so those are really the two that I'm going to harp on today, because if those work, I think everything else has been solved in other areas, and so we can probably borrow from them.

08:41.960 --> 08:49.700
So the way that it works is that we start with a shared key and a nonce, or a number used once, and we feed it into a randomness primitive.

08:49.700 --> 09:06.100
For the sake of brevity, we're just going to treat the randomness primitive as a single box, but there are some substeps to it, and we have this coded up into a DLL, and so we were able to show that what comes out of it is a randomized array, and our particular application,

09:06.100 --> 09:08.660
n has a size of 31.

09:08.960 --> 09:29.260
So we have a randomized array between the values of zero and 30, and then in a random order, and then we also produce, in this particular case, a 16-byte nonce which is fed back into this particular randomness primitive, and, as you can see, you can constantly keep doing this,

09:29.260 --> 09:33.980
and you effectively produce a 2D matrix, but we call it the state matrix.

09:34.760 --> 09:39.360
So, given that we have this matrix, or state matrix, I should say, how would we use it?

09:39.480 --> 09:44.640
So, one particular way, the bus controller would send out an index value of three.

09:45.460 --> 10:06.980
If a remote terminal has an address of zero, its new address would be four, and then for a remote terminal that has an address of four, excuse me, its new address would be 24, and because that particular every column is a randomized ordering, you guarantee that every single node is going to have a different address.

10:07.360 --> 10:18.040
And so this particular method is called the static offset indexing method, meaning that for every index, the offset or the new address is always the same.

10:18.400 --> 10:22.360
And we will see why, when we apply machine learning to defeat this, that was an issue.

10:22.680 --> 10:38.640
Another way that we can do it, we call it the current offset method, so very similar concept, node starts with an address of zero, index of three comes out, the new address is four, but now, if an index of one comes out, its new address is five.

10:39.320 --> 10:47.820
So now, with an address of five, you have an index of two that comes out, your new address is one, and in this case, if an index of four comes out, your new address is 16.

10:48.220 --> 11:02.120
So hopefully you can see that between the static way and the current way, the current offset method allows a particular node, or really all the nodes, to move around the matrix a lot more, and once again, when we get to machine learning that Purdue did,

11:02.120 --> 11:03.720
we will see why that matters.

11:04.640 --> 11:15.780
So, once we actually saw that we have this algorithm, we know how we want it to work, we wanted to see can we look at some of the properties to see if it made sense to continue the research.

11:16.080 --> 11:38.540
So, for this particular result, we generated a state matrix, one with 256 columns, one with 65,000 columns, and we just generated random indexes and figured out what is the next address, and we created a histogram with it, and the thing that stood out to us is that even though one state matrix is much larger,

11:38.540 --> 11:45.600
you actually have similar entropy for both, and so it just told us that we didn't need to have a large state matrix for this idea to work.

11:46.920 --> 11:59.040
This chart is probably a 30-minute presentation in its own right, but the gist of it is one of our machine learning experts on our team, she looked at three concepts in a state matrix.

11:59.040 --> 12:16.080
The offset method, the size of the state matrix, in this case between 256 and 65,000, and she also looked at if you take a state matrix, use it for a certain amount of time, generate another one and use that for a certain amount of time, how does that affect unpredictability?

12:16.400 --> 12:30.770
So looking at the chart, one being highly unpredictable, zero being highly predictable, we can see that really only the offset method changed a lot of the nine different unpredictability metrics.

12:31.090 --> 12:49.790
And so, for us, it kind of gave us some insight that, hey, the size doesn't matter, that matches the previous slide, we can generate new state matrices, doesn't affect unpredictability which is good, but the way that we index into the state matrix actually matters.

12:49.790 --> 12:54.490
Once again, once you get to the machine learning, we'll see how that affected the algorithm.

12:55.910 --> 13:02.530
So now that we have the algorithm, we have it coded, what can we do to actually see if this really works on real hardware?

13:03.590 --> 13:05.430
So we had two different phases.

13:05.430 --> 13:18.070
So phase one is, I think we did this the first summer with two interns, a little bit of seed money, so we wanted something really simple for the interns to work on, and so we calculated the Fibonacci sequence with and without MTD.

13:18.070 --> 13:21.490
We saw that to calculate it went pretty quick.

13:21.490 --> 13:23.790
In this case, we calculated the 24th number.

13:24.870 --> 13:37.990
And so, because of that, we wanted to say, well, we need to generate more messages, so we'll consider one time that you calculate the 24th number, that's a generation, and so we might do 50 generations, 5,000 generations, but just a way to generate more data,

13:37.990 --> 13:41.690
just to really make sure that it does in fact work the way that we think it should work.

13:41.690 --> 13:53.230
And then for phase two, we saw that, as I said, we read a report that highlighted some concerns regarding this bus, and one of those concerns was exfiltration.

13:53.530 --> 14:03.750
And so we wanted to conduct an experiment to figure out if an adversary wanted to exfiltrate data from a particular node, could we quantify the reduction in the amount of information that adversary got?

14:05.470 --> 14:07.430
And so here's a device we used.

14:07.430 --> 14:22.230
It's made from a company called Out2DT, they're based in New Mexico, so a short drive from where we work at to go work with them, but it's kind of using the pen to show you the size of the device that we were using to conduct our experiments.

14:23.710 --> 14:25.050
So how does it work?

14:25.050 --> 14:38.510
So I mentioned earlier we conducted this on a 1553 bus, the algorithm could be used for other buses and other applications, but we started out with 1553, so in our case, the bus controller sends an MTD start command.

14:38.510 --> 14:47.050
That start command has that nonce, and we also assume that the BC to RT has the shared key, but the nonce can't be sent on the bus.

14:47.570 --> 15:01.690
The RT takes the nonce, takes the shared key, generates the state matrix, and then calculates a 512-bit keyed message authentication code, or HMAC, and sends that back to the bus controller.

15:01.690 --> 15:16.170
The bus controller can conduct the same HMAC over its internal state, and as long as those two match, then it can guarantee that itself, and really any number of RTs share the same state matrix, because, without that, this really does not work.

15:16.350 --> 15:22.370
So the bus controller sends out two numbers, the RT adds a month, sends back the answer, and we consider that a frame.

15:22.370 --> 15:24.450
That happens a certain number of times.

15:24.610 --> 15:27.230
And then we have what's called an MTD update command.

15:27.230 --> 15:36.170
That update command sends out an index, the BC and the RT change to a new address, and then you continue calculating the Fibonacci sequence.

15:36.310 --> 15:41.630
So this really proves that, if this doesn't work, then the algorithm doesn't work.

15:42.490 --> 15:48.310
And so just to dive down a little bit more into it, you can see in the MTD start command, that's the nonce.

15:48.310 --> 16:00.670
For the MTD verify command that has the keyed, excuse me, the HMAC, the update has the hexadecimal value of 17, and then, of course, when it finishes, it's at B520, which is the 24th Fibonacci number.

16:01.030 --> 16:13.170
So we were able to show that, by having these indexes come out every so often, we can vary how frequently the indexes came out, we were still able to always calculate the 24th Fibonacci number as many times as we want.

16:13.170 --> 16:15.190
So we were able to see that it did work.

16:16.190 --> 16:21.870
And so, as I mentioned before, we wanted to see could this actually slow down exfiltration?

16:21.870 --> 16:23.670
So a very similar concept.

16:23.670 --> 16:38.510
We have a host node, which is effectively your BC, a listening node, which is your BM, participant node, which is an RT, and then we have an exfil node, which in terms of implementation is a bus monitor, but it only listens at a particular address.

16:38.510 --> 16:50.930
So we're assuming the adversary potentially knows the device it wants to listen to, knows the commands that it wants to listen to, and it wants to just pull off commands to a particular node.

16:50.930 --> 16:59.390
And so our question is, does the implementation of MTD reduce the fraction of messages of value that are exfiltrated?

17:01.090 --> 17:15.990
And so looking at the left side of the slide, we can see that on the y-axis, resilience increases as we go down, which means you exfiltrate less information, and then on the x-axis, you have the frequency.

17:16.210 --> 17:24.350
And so, as you go from left to right, the frequency decreases, which means you're just not sending an MTD update message that often.

17:24.350 --> 17:31.030
So, if you see 70, for example, it means every 70 frames, we send out an MTD update.

17:31.130 --> 17:35.530
If it's 60, for every 60 frames, we send out an MTD update.

17:35.770 --> 17:39.630
And so what we saw is that we had a reduction of 97 per cent.

17:39.710 --> 17:59.550
So, in this case, the bad guy or the exfil node would pick an address, we would conduct the experiment of doing the Fibonacci sequence, and any time the RT value had the address that matches the adversary, the adversary would pull out the information,

17:59.550 --> 18:03.350
but once that address changes, then the adversary would gain no information.

18:03.350 --> 18:05.770
That's how we set up the experiment.

18:06.190 --> 18:08.330
And so that's the left side.

18:08.330 --> 18:16.410
We move to the right side, same exact concept, except in this case, we assume the adversary knows the address to start with.

18:16.410 --> 18:20.590
On the left side, it was a random address that was selected to start the experiment.

18:20.590 --> 18:26.150
On the right side, the RT address and the exfil node is always at the same address.

18:26.770 --> 18:41.490
And so what we saw, which makes sense, is that moving to the left side, when you have a higher frequency, the adversary spends less time at the correct address, and as you move to the right, which has a lower frequency, you can see that, in this case,

18:41.490 --> 18:54.290
maybe looking at 70, 80, or 90, because the adversary is starting at the correct address, it's actually exfiltrating a lot of that data at the initial part of the experiment, but we only did it for 50 generations, and so we believe if we did it for 5,000,

18:54.290 --> 18:59.730
50,000, a lot more, we would actually have the right side and the left side graphs be the same.

19:02.050 --> 19:13.250
And so the last part of this is some work that we did with Purdue University with Professor Bhargava, Bharat Bhargava, and so we gave them the challenge of being able to try to defeat the algorithm.

19:13.250 --> 19:21.570
So this may be a little hard for those to see in the back, but what I have circled is the actual part I want you to pay attention to.

19:21.850 --> 19:29.270
And so if you see the 1-r-4-2, once again, as I said before, the first number is what you need to pay attention to.

19:29.270 --> 19:32.690
So this message goes to remote terminal one.

19:34.050 --> 19:38.330
And when you look at message number 15, that's the MTD update message.

19:38.330 --> 19:40.950
It has the hexadecimal value 17.

19:42.090 --> 19:47.730
And if you look at message number 16 and 17, now that first number is 27.

19:47.730 --> 20:01.230
So the question is, can you take a data capture and say, if you have remote terminal one, a hexadecimal value of 17 that comes out, I know the next answer, your next address, as I said, is going to be 27.

20:01.250 --> 20:03.730
Can you use machine learning to figure that out?

20:05.110 --> 20:19.450
Since this was also during the pandemic, we also kind of reduced some of the things we wanted the students to figure out, but they used the LSTM model, they kept the test size at 20 per cent, and they varied the training set size for their experimentation.

20:20.230 --> 20:24.830
And so, any guesses to the thing that they broke it or not?

20:26.270 --> 20:28.550
Quick show of hands, how many people think they broke it?

20:29.590 --> 20:30.470
Okay.

20:30.590 --> 20:35.030
So the short answer is, in this configuration, the static configuration, they did break it.

20:35.030 --> 20:42.730
So, if you have the F1 or the MCC score, as it gets closer to one, effectively, they are guessing the next address correctly.

20:42.910 --> 20:50.410
So, as you go from the left side to the right side, the left side is just looking at the current address and the index value.

20:50.730 --> 21:00.350
The next one over is looking at the previous address, the current address, and the index value, and then on the far side, the two previous addresses, the current address and the index value.

21:00.370 --> 21:08.550
And so, in a static offset method, they actually broke the algorithm, and they were ecstatic, they were happy, I couldn't get them off the jubilation.

21:09.170 --> 21:16.930
And then we made one change, one line of change in our C++ code, and they were not nearly as happy.

21:17.210 --> 21:32.890
And they kept saying to us they wanted to get more data and they wanted to do different things, but what we really took away from it is that this particular machine, I think any machine learning algorithm, but this one in particular, figured out the one-to-one correlation that was present in the static offset method.

21:32.890 --> 21:44.390
That correlation is not present in the current offset method, and so it made it a lot harder to predict the next address which matches what our unpredictability results showed as well.

21:44.610 --> 21:50.330
And so, to finish up, there's a lot of standards that NIST has.

21:50.330 --> 22:08.030
To my knowledge, it does not have a moving target defence standard, and so given that we have an algorithm where you can tweak different components to use for a variety of applications, this would be really cool to have actually as a NIST standard, or potentially one of many standards that could be.

22:08.310 --> 22:13.830
We like to use some other machine learning algorithms, in this case, some state-of-the-art algorithms to see if we can defeat it.

22:14.290 --> 22:20.710
LSTM, as I told you, is not necessarily state-of-the-art anymore, so let's see if we can look at some other algorithms to potentially defeat it.

22:22.150 --> 22:35.710
There's some other technology at the lab that focuses on IPv4 networks, in this case, TCP port encryption, and originally, they used one static key for all messages between the devices communicating.

22:36.270 --> 22:52.750
With adding this technology into it, we were able to use three separate keys per packet, so really add to the entropy and the dynamic nature of a technology that was developed before our project even started, which really shows that we use it for 1553,

22:52.750 --> 22:55.950
we use it for IP networks, what else can we use it for?

22:55.950 --> 22:58.470
So we have some other ideas that we have.

22:59.070 --> 23:11.390
Transparent file system we thought about using could help with ransomware, and then also looking at rolling codes in different ways that we could do key rolling to potentially help out with key fobs as well.

23:11.390 --> 23:18.430
So a lot of ideas that we have, I always welcome feedback, and so with that, I will say thank you for your time, and I will take some questions.

23:26.330 --> 23:27.130
Yes.

23:27.970 --> 23:30.030
And I can repeat the question if need be.

23:30.030 --> 23:36.370
So the question is, if someone knows the algorithm, does it weaken the protection?

23:36.370 --> 23:36.790
Yes.

23:36.790 --> 23:37.790
Okay, cool.

23:37.790 --> 23:41.610
The answer is no, because it's similar to cryptography.

23:41.610 --> 24:00.370
So everyone knows AES, triple DES, two fish, blowfish, a variety of algorithms, SHA, but the key about encryption is that if you don't know the key, it should be impossible to decipher the message, and so we're going to go with that same assumption, since our randomness perimeter is based on cryptography,

24:00.370 --> 24:05.350
that if you don't know the key, you cannot produce the same state matrix.

24:06.070 --> 24:07.430
Good question, though.

24:07.770 --> 24:17.150
So the question is, does this apply to other real-time networks outside of 1553, such as Spacewire, other kind of point-to-point networks?

24:17.150 --> 24:30.690
So it's funny you say that, because Spacewire was on the agenda, but there's this thing called COVID, which reduced the funding we got, and so they said, well, since you already have something working for 1553, just keep moving forward.

24:31.290 --> 24:44.430
But the fact that we have a way forward with our IP solution, we believe, yes, it could be used for Spacewire, but once again, there's going to be pros and cons, but the algorithm is not specific to 1553.

24:44.470 --> 24:45.470
So thank you.

24:45.610 --> 24:50.910
So if I understand it correctly, if you have a loss of connectivity, how does the algorithm perform?

24:50.910 --> 24:54.930
So I would say we have not tested that directly.

24:54.990 --> 25:03.730
I think we are looking for other partners to test scenarios that you have mentioned, but we don't have an answer right now for what happens if you lose connectivity.

25:04.230 --> 25:15.810
My guess would be the system would, for that particular time, be a little bit more static, but then once you gain connectivity, you can go back to the dynamic environment, but we have not specifically tested that scenario.

25:15.810 --> 25:16.810
So thank you.

25:20.670 --> 25:25.190
I'll be around if you want to talk later, we can, but thank you again for coming to my presentation.

