WEBVTT

00:00.000 --> 00:01.680
Okay, so I'm going to start.

00:02.880 --> 00:04.360
My name is Andy.

00:04.860 --> 00:09.840
I work as an open source security in space industry in Europe.

00:11.060 --> 00:15.900
How many of you know... or how many of you work in space industry?

00:17.060 --> 00:20.380
How many of you... okay, that's some hands up.

00:20.380 --> 00:23.520
How many of you know what the SLE is?

00:25.220 --> 00:27.880
Okay, that's like three people.

00:27.880 --> 00:28.720
Excellent.

00:29.600 --> 00:35.960
So, hacking satellites is not a new thing, obviously.

00:38.540 --> 00:49.660
However, most of the discussion revolves around the space segment and the means of directly hacking or accessing the satellite.

00:50.520 --> 01:10.260
However, I would argue that it is the ground segment that is more likely to be targeted by the adversaries and that's because of its... that's mainly because of the large attack surface that it presents.

01:11.080 --> 01:19.640
So, in this presentation, I will briefly compare the space segment with the ground segment as in terms of attack surface.

01:19.840 --> 01:22.500
I will introduce you to the SLE protocol.

01:22.600 --> 01:25.940
And some security aspects of it.

01:26.100 --> 01:38.080
And then I will proceed to demonstrate how you can exploit some exploitation methods of the protocol and some mitigations against them.

01:39.120 --> 01:47.480
So, just very briefly, every space mission can be divided loosely into a space segment and the ground segment.

01:47.480 --> 01:58.160
And the ground segment, in general, the space segment usually is much more complex than the ground segment.

01:58.460 --> 02:02.140
However, if you think about it, it is just like one node in the whole system.

02:02.580 --> 02:06.260
So, the satellite is a very complete node.

02:06.260 --> 02:10.100
However, there is only one interface, one entry point interface.

02:10.420 --> 02:14.060
And because of that, it has a very small attack surface.

02:14.300 --> 02:21.940
And the ground segment, on the other hand, has less complex elements to it, but there are many available.

02:21.940 --> 02:26.460
And because of that, it imposes a much larger attack surface.

02:27.680 --> 02:33.420
On top of that, communicating directly with spacecraft is quite challenging.

02:33.420 --> 02:43.440
And not because of the technical aspect of it, but because of the environmental aspects like visibility, orbit, and also the distance from Earth.

02:45.400 --> 03:09.240
And on the other hand, the ground segment, it uses main or it uses standard infrastructure, which means that most of its components are also vulnerable to the vulnerabilities that are present in any other infrastructure or software that we are using on a daily basis.

03:10.000 --> 03:24.340
And because most of the applications that are used in the space industry on the ground segment are custom development, I would say that that creates some additional avenues to find new vulnerabilities in it.

03:24.640 --> 03:34.900
And then again, to try to hack the ground segment components, there is no sophisticated equipment required.

03:36.420 --> 03:47.600
So this is an extremely high level representation of a space mission where we divide the space segment and separate it from the ground segment.

03:47.600 --> 03:52.720
Obviously, on the space segment, you have a space asset, which this might be a spacecraft.

03:53.560 --> 03:56.040
And then you have a ground station that communicates with the spacecraft.

03:56.040 --> 04:02.220
You have a mission control that uses ground station to communicate with the spacecraft.

04:02.400 --> 04:06.260
And then you have users that use the mission control applications.

04:07.420 --> 04:17.140
And they either work internally on dedicated workstations or they connect remotely through a VPN or jump host or whatever you might have.

04:18.300 --> 04:32.800
Now, my argument is that it's going to be much easier to hack this thing that you see on the screen than actually build it in order to communicate with many satellites, which you would like to hack.

04:33.540 --> 04:35.180
So what is SLE?

04:36.260 --> 04:44.860
SLE is a protocol developed or created by CCSDS standardization body.

04:44.860 --> 04:45.960
It's a standard.

04:46.460 --> 04:52.860
It is used to send telecommands and receive telemetry from spacecraft.

04:52.860 --> 04:54.560
It is based on TCPIP.

04:54.560 --> 04:59.400
It supports transport layer and encoding and authentication.

05:00.720 --> 05:01.980
And you can have two roles.

05:01.980 --> 05:06.260
One is the SLE provider, which is in our case is like a ground station.

05:06.260 --> 05:10.760
And then you have SLE user, which is like a mission control system.

05:12.640 --> 05:25.760
Now, so in a nutshell, it defines a protocol to transfer the PDUs using the TCP for transfer, for data transfer, and ASL1 for data encoding.

05:26.500 --> 05:29.520
And in the system, there are two places.

05:29.520 --> 05:35.320
Well, okay, there could be many places, but in principle, there are at least two places where the SLE is used.

05:35.580 --> 05:47.480
It is in the communication between the MCS, which is mission control system and the ground station, and also between the ground station and the space asset, right?

05:47.480 --> 05:54.960
But because we are hacking the ground statement, we are focusing only on the link that is highlighted on the slide.

05:55.520 --> 05:57.500
So here is this slide.

05:57.500 --> 06:05.780
Here you can see all the organizations and most of the companies that use, or the most famous companies that use the SLE to some extent.

06:07.360 --> 06:14.960
If you look on the standard itself for the documentation, here is a list of all agencies that are responsible for development of the standard.

06:15.670 --> 06:29.260
So there are quite a few of them, and there are at least three times more different organizations, public and private companies, using the standard for space operations.

06:30.740 --> 06:37.480
Also, some of the ground segment specialized equipment comes with support to SLE.

06:37.480 --> 06:43.160
If you look at the, for instance, Safran Cortex devices, they all support SLE.

06:44.500 --> 06:57.480
And also here, NASA space, New Space Network, they proudly share that they are also supporting SLE protocols on the list of their interfaces and capabilities.

06:58.840 --> 07:04.620
So for the purpose of this research, we focus only on the commanding capabilities.

07:04.620 --> 07:12.440
So it is called FCLT, which is Forward Communication and Transport Unit, transmission unit.

07:12.820 --> 07:16.180
And it is basically the thing that you are sending to spacecraft.

07:16.660 --> 07:21.600
It combines it, or the service that you are using to send telecommands to spacecraft.

07:22.080 --> 07:27.320
It defines a number of, quite a decent list of different types of operations.

07:27.320 --> 07:38.420
But for this research, we are focusing only on the bind and unbind to establish a connection and disconnect, and then start and stop to set up certain properties on the ground station equipment.

07:38.720 --> 07:46.040
And then we also look at the transfer data operation, which is used to send the actual telecommands to spacecraft.

07:47.700 --> 07:56.720
Now, as per documentation, there is no data privacy that comes with the SLE as a protocol, or as a standard.

07:57.220 --> 08:00.320
It comes with a sequence numbering.

08:00.420 --> 08:11.780
And this is supposed to be helped in preventing injection as potentially seizing control of spacecraft, but that doesn't really work.

08:11.780 --> 08:15.640
There is an easy way to bypass this restriction.

08:15.640 --> 08:27.820
And also, there is an authentication that is provided out of the box, however, is very susceptible to many of the middle attacks because of the lack of encryption.

08:28.300 --> 08:32.640
So later, I will show you the demos how this actually can work in practice.

08:33.480 --> 08:45.020
We have a very simple test environment, where we assume that... so this is assumed bridge testing.

08:45.200 --> 08:48.800
We assume that the adversaries are in the network already.

08:49.700 --> 09:02.840
And we have SLE provider that plays a role as a ground station, which is like a simple Debian VM, and with European Space Agency SLE API implementation installed on it.

09:03.320 --> 09:07.780
SLE user is another VM, which plays a role as a mission control system.

09:08.440 --> 09:16.600
It's also Debian, and the SLE implementation used there is the simple Python SLE, which is like a PIB package.

09:16.600 --> 09:17.800
You can download it.

09:18.740 --> 09:22.780
And this is just to demonstrate that it doesn't really matter what is the implementation of the SLE.

09:22.780 --> 09:33.240
As long as you're using any SLE or any implementation that follows the standard, your operations are going to be vulnerable to those attacks, which I'm going to demonstrate.

09:33.920 --> 09:44.680
So because there is no encryption, the best idea would be to wrap our attack scenarios within the man-in-the-middle attack technique.

09:45.060 --> 09:47.440
So at the high level, we do the ARP spoofing.

09:47.520 --> 09:50.320
We capture the data at the TCP frame level.

09:50.500 --> 09:54.280
We decode them using the ISP1... we decode the ISP1 frames.

09:54.280 --> 09:56.100
I will explain what it is in a second .

09:56.960 --> 10:06.640
And then we manipulate the content of the CLTUs that are going to be sent to SpaceCraft, we update the TCP frame, and then push it forward to the receiving part.

10:09.380 --> 10:13.500
Okay, everyone knows how the ARP spoofing works, so I'm going to skip that part.

10:13.660 --> 10:19.340
We basically grab the packets and put it in the net filter queue, and then we process them.

10:19.340 --> 10:22.960
So the interesting part is the processing part.

10:24.000 --> 10:36.220
As I mentioned before, the data is obviously in the TCP frame data field, and these are the SLEPDUs elements, which are in the ISP1 format.

10:36.220 --> 10:47.380
Now ISP1 is based on the ASN1 encoding, which is basically a simple tagline value data, which is very easy to decode.

10:47.760 --> 11:06.660
However, apart from the TLV, there are a few custom structures and context-related sequences, which you would have to struggle a little bit to decode, but the standard is pretty well described, so it didn't take too much time to figure out what they are.

11:07.920 --> 11:17.520
And as I mentioned before, in our demo we are focusing only on the telecommanding part, because our goal is to start sending something to SpaceCraft to the ground station.

11:19.520 --> 11:37.320
Once you decode the data using the ASN1 encoding, you have to map it to the FCLTU structures, and this is also something that is described in the standard, so it's available to everyone, and that's what we used.

11:37.420 --> 11:47.460
So this is an example of a bind message or bind operation between the mission control system and the ground station.

11:47.640 --> 12:03.140
So we can see that we have an ISP header, then you have a main structure, which is followed by the additional structure, and then somewhere in the middle we have the credentials, and there's also some additional elements which you can overwrite or you can play with.

12:05.460 --> 12:09.160
Again, there is no encryption, so all those bytes are...

12:11.060 --> 12:12.960
they mean what it says, right?

12:13.640 --> 12:23.520
So in terms of demo, just to establish the baseline, I will show you how the typical communication between the NCS and the ground station looks like.

12:24.260 --> 12:44.900
In this demo you will see that first we are doing the binding between the two nodes, then we are sending the... we are asking the receiving node to start the operations, we are sending some data, then we are stopping, and then we are unbinding it, and I'll try to play the video.

12:48.190 --> 12:49.950
Let me know if you can see it.

12:51.270 --> 13:03.130
Okay, so on the top screen you see the... on the bottom part you see the SLE provider, on the top you see the SLE user.

13:03.650 --> 13:07.570
The provider is the ground station and the user is the machine control system.

13:08.390 --> 13:15.470
So we start the SLE provider and then we run our test.

13:16.970 --> 13:25.530
You can see that we have first established the connection, we send the bind, which was the successful operation, and then we are...

13:28.450 --> 13:32.130
we are sending the start operation and then we are sending the data...

13:33.390 --> 13:35.690
we are sending the data to the ground station.

13:35.690 --> 13:46.730
So this string of bytes is what's gonna get eventually to the spacecraft, like some of those bytes.

13:47.150 --> 13:54.350
And then we stop it, and then we unbind, right?

13:54.350 --> 13:58.090
So that's like the nominal situation.

14:07.610 --> 14:10.030
So what happens then?

14:12.740 --> 14:23.960
So one of the things, the worst thing which we can do is to cause a little bit of denial of service by preventing the users from authenticating to the ground station.

14:24.040 --> 14:35.180
And the reason why it's an annoying way of doing this for the user is because the SLE provider, when the user fails authentication, the SLE provider simply drops the connection.

14:35.180 --> 14:37.660
There is no feedback whatsoever.

14:37.660 --> 14:42.620
So the users don't know what is the reason of failing the connection.

14:43.060 --> 14:45.040
It's only the ground station that knows.

14:45.560 --> 14:48.700
So in this case, we basically do the same.

14:48.700 --> 14:55.380
We try to grab the bind operation, which has a very well-defined structure.

14:55.380 --> 15:04.740
So when you're monitoring what's happening on the wire, you can easily find patterns and then you can simply mangle the bytes which are responsible for the authentication.

15:06.180 --> 15:08.380
So what's gonna happen

15:21.480 --> 15:22.840
is the following.

15:23.560 --> 15:26.140
On the right-hand side, you have our exploit.

15:26.800 --> 15:39.140
And then on the right-hand side, you have at the bottom, you again have SLE provider, and on the top is our MCS, Mission Control System, that connects to the ground station.

15:39.760 --> 15:44.040
So we start the R-spoofing and we start observing the communication between the both.

15:53.300 --> 16:02.580
And then you can see, despite the fact that we have sent the start, the bind request, we didn't succeed.

16:02.580 --> 16:11.360
There is an exception on the SLE implementation, but there is no feedback going back to the user.

16:17.350 --> 16:20.730
So at this point, we cannot really do anything.

16:20.770 --> 16:22.770
We see the authentication failure.

16:27.710 --> 16:34.410
So this way, you can create a denial of service as long as you're in the network.

16:37.680 --> 16:51.600
So the next demo, this is also quite similar to the previous one, but here we are actually grabbing the credentials, because as I mentioned before, we can actually reuse them.

16:52.920 --> 17:01.320
So here you will see, here you will see grabbing the credentials from the bind message and then display them on the screen.

17:09.780 --> 17:11.700
It's a similar situation.

17:14.690 --> 17:31.230
So we start the SLE provider, we started our exploit, we start the SLE provider, we started our MCS, we captured the credentials, the bind is successful, but we did capture the credentials, so now we can reuse them.

17:33.510 --> 17:43.290
The credentials are encrypted, but it doesn't matter because you will see later that SLE as a protocol is vulnerable to replay attacks.

17:43.690 --> 17:48.770
So you can just grab them and then you can use them for your own connection.

17:59.640 --> 18:01.360
I'm trying to... okay.

18:01.480 --> 18:14.220
So as I mentioned before, we can let the management operations go as they are, and instead we can, in a stealth mode, try to tamper with the data themselves, the ones that are going to get to the spacecraft.

18:14.920 --> 18:25.940
So we're going to, in this case, we're not going to do anything to the operations, we only capture the frames which contain the transfer data PDFs.

18:26.760 --> 18:35.660
And then we change the content of the commands that are being sent to spacecraft.

18:45.050 --> 18:56.390
So here, basically, at the bottom screen, at the bottom side, you can see on the left side, you can see the SLE provider or the ground station and then mission control system on the right side.

18:56.390 --> 19:10.450
And then on top, you can see our exploit, which is searching for a specific string of bytes and then replaces it with something else.

19:19.040 --> 19:36.060
So because there is absolutely no verification of what the MCS is actually sending to the ground station, and the ground station simply takes it and forwards it to the spacecraft, this can be done in a stealth mode and it's going to be very difficult,

19:36.060 --> 19:45.940
unless you are monitoring for our spoofing, it's going to be difficult for the operators to realize that they are sending something that they have not meant to send.

19:56.380 --> 20:08.200
So this is the string which we, this is what the MCS sent and this is what has been received at the ground station.

20:09.040 --> 20:20.040
However, you can see that in the communication, everything is verified, everything is fine, and neither MCS nor ground station complain about it.

20:20.140 --> 20:26.160
So this way we can send whatever we want to spacecraft.

20:33.330 --> 20:46.750
And so I think the most interesting demo is where you can actually take all those all those elements together and you can prepare and exploit in a way that it will take over or let you take over the SLE session.

20:46.870 --> 20:53.230
So here we are capturing the bind and manipulate the credential structures in order to prevent authentication.

20:53.810 --> 20:58.790
Then we reuse the credentials which we have captured for our own SLE session.

20:59.770 --> 21:10.930
And we can keep on using those credentials for as long as it is defined in the authentication delay of the SLE provider configuration.

21:11.170 --> 21:27.970
And from what I have seen so far, it is a very long delay because of the propagation delay and all the distance, depending on the distance between the earth and the spacecraft.

21:28.750 --> 21:41.410
By default, this value is usually around 600 seconds, so that's a lot of time to actually cause a damage and start sending something that is going to make some trouble on the spacecraft side.

21:43.610 --> 21:49.890
So here it is.

21:50.190 --> 21:58.870
It is a semi-automated exploit because I wanted to show you how you can actually how this works in details.

21:59.510 --> 22:04.270
So we are starting on the right-hand side, we are starting the SLE provider.

22:04.270 --> 22:07.330
On the right-hand side, on the top, we are starting the MCS.

22:07.330 --> 22:10.670
MCS tries to bind but it fails.

22:11.070 --> 22:25.410
Our exploit caught the credentials and then we are gonna copy those credentials and reuse them in another exploit.

22:26.350 --> 22:29.090
As you can see, nothing really happened on the ground station.

22:29.090 --> 22:33.690
There is an exception but that's because that implementation doesn't handle it properly.

22:33.970 --> 22:46.150
But from the ground segment, from the ground station point of view, that's a nominal situation because someone tried to authenticate, they failed, so nothing happened on the ground station.

22:46.150 --> 22:56.670
We're gonna keep on waiting and then in the meantime the adversaries can actually bind to the ground station as if they were a legitimate mission control system.

22:58.150 --> 23:02.130
And then we managed to bind to the ground station.

23:08.730 --> 23:21.730
We are starting the typical management operations and then we are sending the data as adversaries or as the MCS but we are adversaries in this case.

23:27.540 --> 23:33.020
So that's basically how you take over control of a spacecraft if you have access to the ground station.

23:37.080 --> 23:46.120
So in conclusion, it was just one of the methods that you can take over the control of spacecraft using SLE protocol.

23:46.240 --> 24:09.620
As mentioned before, we focus only on the commanding parts but there is also telemetry part which if you can imagine there are quite nasty things you can do with telemetry and how you can mangle the bytes and how you can affect the operations by changing the telemetry that the spacecraft is receiving.

24:10.360 --> 24:15.600
So important bit is that all that knowledge which I presented here is based on OSINT.

24:15.600 --> 24:18.480
All the standards, all the documentations are public.

24:19.120 --> 24:20.960
So you can go and have a look.

24:22.080 --> 24:27.660
CCSDS is trying to mitigate those issues of providing space data link security.

24:27.660 --> 24:32.340
However, this is only between the ground station and the spacecraft itself.

24:32.340 --> 24:34.780
The ground segment is still going to be vulnerable.

24:35.240 --> 24:53.800
And our argument would be that CCSDS PKI concept could be used instead of SDS to enable TSL-like features on the ISP level and therefore all the communication would be encrypted and everything, all the issues which I'm presenting today, they would go away.

24:56.580 --> 25:04.080
Currently we are discussing with European Space Agency to, currently we are discussing space agency with, we want to make some additional tests.

25:05.680 --> 25:07.460
And here is the list of all resources.

25:07.460 --> 25:08.560
You can have a look.

25:09.700 --> 25:14.500
And the publication is going to be available as of today on this website.

25:14.500 --> 25:21.520
So you can have a look at all the details, how it is, what I have just described in this presentation.

25:22.340 --> 25:23.660
So thanks.

25:23.660 --> 25:24.840
Thank you very much.

