[00:00.000 --> 00:06.860] Okay, so I'm going to start. My name is Andy. I work as an open source security in [00:07.840 --> 00:15.900] space industry in Europe. How many of you know... or how many of you work in space industry? [00:17.060 --> 00:23.520] How many of you... okay, that's some hands up. How many of you know what the SLE is? [00:25.220 --> 00:28.720] Okay, that's like three people. Excellent. [00:29.600 --> 00:35.960] So, hacking satellites is not a new thing, obviously. [00:38.540 --> 00:45.840] However, most of the discussion revolves around the space segment and the means of [00:45.840 --> 00:52.600] directly hacking or accessing the satellite. However, I would argue that [00:54.020 --> 01:01.520] it is the ground segment that is more likely to be targeted by the adversaries and that's [01:01.520 --> 01:10.260] because of its... that's mainly because of the large attack surface that it presents. [01:11.080 --> 01:15.860] So, in this presentation, I will briefly compare the space segment with the ground segment [01:16.600 --> 01:22.500] as in terms of attack surface. I will introduce you to the SLE protocol. [01:22.600 --> 01:29.020] And some security aspects of it. And then I will proceed to demonstrate how you can [01:29.640 --> 01:38.080] exploit some exploitation methods of the protocol and some mitigations against them. [01:39.120 --> 01:42.980] So, just very briefly, every space mission can be divided [01:44.100 --> 01:50.940] loosely into a space segment and the ground segment. And the ground segment, [01:53.600 --> 01:58.840] in general, the space segment usually is much more complex than the ground segment. However, [01:58.840 --> 02:04.080] if you think about it, it is just like one node in the whole system. So, the satellite is a very [02:04.080 --> 02:11.920] complete node. However, there is only one interface, one entry point interface. And because of that, [02:11.920 --> 02:15.840] it has a very small attack surface. And the ground segment, on the other hand, [02:15.840 --> 02:23.400] has less complex elements to it, but there are many available. And because of that, [02:23.400 --> 02:30.760] it imposes a much larger attack surface. On top of that, communicating directly with [02:30.760 --> 02:35.980] spacecraft is quite challenging. And not because of the technical aspect of it, but [02:36.560 --> 02:43.440] because of the environmental aspects like visibility, orbit, and also the distance from Earth. [02:45.400 --> 02:53.020] And on the other hand, the ground segment, it uses main or it uses standard infrastructure, [02:53.020 --> 03:03.780] which means that most of its components are also vulnerable to the vulnerabilities that are [03:03.780 --> 03:10.960] present in any other infrastructure or software that we are using on a daily basis. And because [03:10.960 --> 03:15.600] most of the applications that are used in the space industry on the ground segment are custom [03:15.600 --> 03:23.560] development, I would say that that creates some additional avenues to find new vulnerabilities in [03:23.560 --> 03:33.020] it. And then again, to try to hack the ground segment components, there is no sophisticated [03:33.020 --> 03:42.800] equipment required. So this is an extremely high level representation of a space mission where we [03:42.800 --> 03:48.900] divide the space segment and separate it from the ground segment. Obviously, on the space segment, [03:48.900 --> 03:54.600] you have a space asset, which this might be a spacecraft. And then you have a ground station [03:54.600 --> 04:00.400] that communicates with the spacecraft. You have a mission control that uses ground station to [04:00.400 --> 04:06.260] communicate with the spacecraft. And then you have users that use the mission control applications. [04:07.420 --> 04:14.280] And they either work internally on dedicated workstations or they connect remotely through [04:14.400 --> 04:21.480] a VPN or jump host or whatever you might have. Now, my argument is that it's going to be much [04:21.480 --> 04:26.960] easier to hack this thing that you see on the screen than actually build it in order to communicate [04:26.960 --> 04:35.180] with many satellites, which you would like to hack. So what is SLE? [04:36.260 --> 04:45.960] SLE is a protocol developed or created by CCSDS standardization body. It's a standard. [04:46.460 --> 04:54.560] It is used to send telecommands and receive telemetry from spacecraft. It is based on TCPIP. [04:54.560 --> 05:01.980] It supports transport layer and encoding and authentication. 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:19.780] Now, so in a nutshell, it defines a protocol to transfer the PDUs using the TCP [05:21.340 --> 05:28.220] for transfer, for data transfer, and ASL1 for data encoding. And in the system, there are two [05:28.220 --> 05:33.660] places. Well, okay, there could be many places, but in principle, there are at least two places [05:33.660 --> 05:39.240] where the SLE is used. It is in the communication between the MCS, which is mission control system [05:39.240 --> 05:47.480] and the ground station, and also between the ground station and the space asset, right? [05:47.480 --> 05:53.080] But because we are hacking the ground statement, we are focusing only on the [05:53.080 --> 05:58.680] link that is highlighted on the slide. So here is this slide. Here you can see all the [05:58.680 --> 06:03.600] organizations and most of the companies that use, or the most famous companies that use the [06:03.600 --> 06:10.780] SLE to some extent. If you look on the standard itself for the documentation, [06:10.780 --> 06:14.960] here is a list of all agencies that are responsible for development of the standard. [06:15.670 --> 06:22.540] So there are quite a few of them, and there are at least three times more [06:22.540 --> 06:29.260] different organizations, public and private companies, using the standard for space operations. [06:30.740 --> 06:37.860] Also, some of the ground segment specialized equipment comes with support to SLE. If you look [06:37.860 --> 06:46.480] at the, for instance, Safran Cortex devices, they all support SLE. And also here, NASA space, [06:46.480 --> 06:55.440] New Space Network, they proudly share that they are also supporting SLE protocols on the list of [06:55.440 --> 07:02.980] their interfaces and capabilities. So for the purpose of this research, we focus only on the [07:02.980 --> 07:09.560] commanding capabilities. So it is called FCLT, which is Forward Communication and Transport [07:10.240 --> 07:16.180] Unit, transmission unit. 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.940] It defines a number of, quite a decent list of different types of operations. But for this [07:27.940 --> 07:33.220] research, we are focusing only on the bind and unbind to establish a connection and disconnect, [07:33.900 --> 07:38.420] and then start and stop to set up certain properties on the ground station equipment. [07:38.720 --> 07:43.460] And then we also look at the transfer data operation, which is used to send [07:44.080 --> 07:51.020] the actual telecommands to spacecraft. Now, as per documentation, there is no data [07:51.020 --> 07:58.700] privacy that comes with the SLE as a protocol, or as a standard. It comes with a sequence [07:58.700 --> 08:07.380] numbering. And this is supposed to be helped in preventing injection as potentially seizing [08:07.380 --> 08:15.640] control of spacecraft, but that doesn't really work. There is an easy way to bypass this restriction. [08:15.640 --> 08:21.760] And also, there is an authentication that is provided out of the box, however, [08:21.760 --> 08:27.820] 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:43.660] We have a very simple test environment, where we assume that... so this is assumed bridge [08:43.660 --> 08:51.000] testing. We assume that the adversaries are in the network already. And we have SLE provider [08:51.000 --> 08:59.540] that plays a role as a ground station, which is like a simple Debian VM, and with European [08:59.540 --> 09:06.000] Space Agency SLE API implementation installed on it. SLE user is another VM, which plays a role [09:06.000 --> 09:11.600] as a mission control system. It's also Debian, and the SLE implementation used there is the [09:11.600 --> 09:19.800] simple Python SLE, which is like a PIB package. You can download it. And this is just to demonstrate [09:19.800 --> 09:23.660] that it doesn't really matter what is the implementation of the SLE. As long as you're [09:23.660 --> 09:28.940] using any SLE or any implementation that follows the standard, your operations are going to be [09:28.940 --> 09:35.960] vulnerable to those attacks, which I'm going to demonstrate. So because there is no encryption, [09:35.960 --> 09:43.420] the best idea would be to wrap our attack scenarios within the man-in-the-middle attack [09:43.420 --> 09:49.520] technique. So at the high level, we do the ARP spoofing. We capture the data at the TCP frame [09:49.520 --> 09:55.660] level. We decode them using the ISP1... we decode the ISP1 frames. I will explain what it is in a [09:55.660 --> 10:01.160] second. And then we manipulate the content of the CLTUs that are going to be sent to SpaceCraft, [10:01.160 --> 10:06.640] 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:17.420] We basically grab the packets and put it in the net filter queue, [10:17.420 --> 10:25.720] and then we process them. So the interesting part is the processing part. As I mentioned before, [10:27.360 --> 10:34.440] the data is obviously in the TCP frame data field, and these are the SLEPDUs elements, [10:34.440 --> 10:43.100] which are in the ISP1 format. Now ISP1 is based on the ASN1 encoding, which is basically a simple [10:43.100 --> 10:51.540] tagline value data, which is very easy to decode. However, apart from the TLV, there are a few [10:54.120 --> 11:00.180] custom structures and context-related sequences, which you would have to struggle a little bit to [11:00.180 --> 11:05.780] decode, but the standard is pretty well described, so it didn't take too much time to figure out [11:05.780 --> 11:12.280] what they are. And as I mentioned before, in our demo we are focusing only on the telecommanding [11:12.280 --> 11:17.520] part, because our goal is to start sending something to SpaceCraft to the ground station. [11:19.520 --> 11:30.400] Once you decode the data using the ASN1 encoding, you have to map it to the FCLTU structures, [11:30.400 --> 11:35.840] and this is also something that is described in the standard, so it's available to everyone, [11:35.840 --> 11:43.720] and that's what we used. So this is an example of a bind message or bind operation between the [11:45.120 --> 11:50.160] mission control system and the ground station. So we can see that we have an ISP header, [11:50.160 --> 11:55.100] then you have a main structure, which is followed by the additional structure, and then somewhere [11:55.100 --> 12:00.540] in the middle we have the credentials, and there's also some additional elements which [12:00.540 --> 12:09.160] you can overwrite or you can play with. Again, there is no encryption, so all those bytes are... [12:11.060 --> 12:18.920] they mean what it says, right? So in terms of demo, just to establish the baseline, I will show [12:18.920 --> 12:23.520] you how the typical communication between the NCS and the ground station looks like. [12:24.260 --> 12:28.360] In this demo you will see that first we are doing the binding between the two nodes, then we are [12:28.360 --> 12:34.880] sending the... we are asking the receiving node to start the operations, we are sending some data, [12:34.880 --> 12:44.900] then we are stopping, and then we are unbinding it, and I'll try to play the video. [12:48.190 --> 12:57.030] Let me know if you can see it. Okay, so on the top screen you see the... on the bottom part you see [12:57.030 --> 13:05.630] the SLE provider, on the top you see the SLE user. The provider is the ground station and the user [13:05.630 --> 13:15.470] is the machine control system. So we start the SLE provider and then we run our test. [13:16.970 --> 13:20.990] You can see that we have first established the connection, [13:20.990 --> 13:25.530] 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:43.690] we are sending the data to the ground station. So this string of bytes is what's gonna get [13:43.690 --> 13:50.270] eventually to the spacecraft, like some of those bytes. And then we stop it, and [13:52.610 --> 13:58.090] then we unbind, right? So that's like the nominal situation. [14:07.610 --> 14:16.040] So what happens then? So one of the things, the worst thing which we can do is to [14:16.820 --> 14:22.200] cause a little bit of denial of service by preventing the users from authenticating [14:22.200 --> 14:28.640] to the ground station. And the reason why it's an annoying way of doing this for the user is [14:28.640 --> 14:34.560] because the SLE provider, when the user fails authentication, the SLE provider simply drops [14:34.560 --> 14:41.020] the connection. There is no feedback whatsoever. So the users don't know what is the reason of [14:41.020 --> 14:47.820] failing the connection. It's only the ground station that knows. So in this case, we basically [14:47.820 --> 14:55.700] do the same. We try to grab the bind operation, which has a very well-defined structure. So when [14:55.700 --> 15:01.200] you're monitoring what's happening on the wire, you can easily find patterns and then you can [15:01.200 --> 15:08.380] simply mangle the bytes which are responsible for the authentication. So what's gonna happen [15:21.480 --> 15:28.380] is the following. On the right-hand side, you have our exploit. And then on the right-hand [15:28.380 --> 15:33.200] side, you have at the bottom, you again have SLE provider, and on the top is our [15:35.660 --> 15:39.140] 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:01.360] And then you can see, despite the fact that we have sent the start, the bind request, [16:01.360 --> 16:03.870] we didn't succeed. There is an exception on the [16:05.480 --> 16:11.360] SLE implementation, but there is no feedback going back to the user. [16:17.350 --> 16:22.770] So at this point, we cannot really do anything. 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:46.860] So the next demo, this is also quite similar to the previous one, but here we are actually [16:46.860 --> 16:51.600] grabbing the credentials, because as I mentioned before, we can actually reuse them. [16:52.920 --> 16:58.260] So here you will see, here you will see grabbing the credentials from the bind message [16:59.040 --> 17:01.320] and then display them on the screen. [17:09.780 --> 17:17.570] It's a similar situation. So we start the SLE provider, we started our exploit, [17:17.570 --> 17:26.430] we start the SLE provider, we started our MCS, we captured the credentials, [17:26.430 --> 17:31.230] the bind is successful, but we did capture the credentials, so now we can reuse them. [17:33.510 --> 17:39.410] The credentials are encrypted, but it doesn't matter because you will see later that [17:40.270 --> 17:47.050] SLE as a protocol is vulnerable to replay attacks. So you can just grab them and then you can use [17:47.050 --> 18:04.880] them for your own connection. I'm trying to... okay. So as I mentioned before, we can let the [18:04.880 --> 18:09.920] management operations go as they are, and instead we can, in a stealth mode, [18:09.920 --> 18:14.220] try to tamper with the data themselves, the ones that are going to get to the spacecraft. [18:14.920 --> 18:19.860] So we're going to, in this case, we're not going to do anything to the operations, [18:19.860 --> 18:25.940] 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:50.850] So here, basically, at the bottom screen, at the bottom side, you can see on the left side, [18:50.850 --> 18:56.390] you can see the SLE provider or the ground station and then mission control system on the right side. [18:56.390 --> 19:03.350] And then on top, you can see our exploit, which is searching for a specific [19:04.750 --> 19:10.450] string of bytes and then replaces it with something else. [19:19.040 --> 19:25.400] So because there is absolutely no verification of what the MCS is actually sending to the [19:25.400 --> 19:30.800] ground station, and the ground station simply takes it and forwards it to the spacecraft, [19:31.920 --> 19:36.540] this can be done in a stealth mode and it's going to be very difficult, unless you are [19:36.540 --> 19:42.560] monitoring for our spoofing, it's going to be difficult for the operators to realize that [19:42.560 --> 20:01.000] they are sending something that they have not meant to send. So this is the string which we, [20:01.000 --> 20:08.200] this is what the MCS sent and this is what has been received at the ground station. [20:09.040 --> 20:16.440] However, you can see that in the communication, everything is verified, everything is fine, [20:16.440 --> 20:20.140] and neither MCS nor ground station complain about it. So [20:23.020 --> 20:26.160] this way we can send whatever we want to spacecraft. [20:33.330 --> 20:37.950] And so I think the most interesting demo is where you can actually take all those [20:38.610 --> 20:44.370] all those elements together and you can prepare and exploit in a way that it will take over or [20:44.370 --> 20:50.790] let you take over the SLE session. So here we are capturing the bind and manipulate the credential [20:50.790 --> 20:55.890] structures in order to prevent authentication. Then we reuse the credentials which we have [20:55.890 --> 21:04.870] captured for our own SLE session. And we can keep on using those credentials for as long as [21:04.870 --> 21:11.930] it is defined in the authentication delay of the SLE provider configuration. And from what I have [21:11.930 --> 21:23.970] seen so far, it is a very long delay because of the propagation delay and all the distance, [21:23.970 --> 21:30.370] depending on the distance between the earth and the spacecraft. By default, this value is usually [21:30.370 --> 21:36.790] around 600 seconds, so that's a lot of time to actually cause a damage and start sending [21:36.790 --> 21:49.890] something that is going to make some trouble on the spacecraft side. So here it is. [21:50.190 --> 21:55.730] It is a semi-automated exploit because I wanted to show you how you can actually [21:56.930 --> 22:02.530] how this works in details. So we are starting on the right-hand side, [22:02.530 --> 22:08.090] we are starting the SLE provider. On the right-hand side, on the top, we are starting the MCS. MCS tries [22:08.090 --> 22:16.170] to bind but it fails. Our exploit caught the credentials and then we are gonna copy those [22:16.170 --> 22:28.490] credentials and reuse them in another exploit. As you can see, nothing really happened on the [22:28.490 --> 22:32.790] ground station. There is an exception but that's because that implementation doesn't handle it [22:32.790 --> 22:40.070] properly. But from the ground segment, from the ground station point of view, that's a nominal [22:40.070 --> 22:45.770] situation because someone tried to authenticate, they failed, so nothing happened on the ground [22:45.770 --> 22:49.150] station. We're gonna keep on waiting and then in the meantime the adversaries can actually [22:50.550 --> 22:56.670] 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:14.990] We are starting the typical management operations and then we are sending the data [23:15.910 --> 23:21.730] as adversaries or as the MCS but we are adversaries in this case. [23:27.540 --> 23:32.120] So that's basically how you take over control of a spacecraft if you have access to the ground [23:32.120 --> 23:42.160] station. So in conclusion, it was just one of the methods that you can take over the control [23:42.160 --> 23:49.120] of spacecraft using SLE protocol. As mentioned before, we focus only on the commanding parts [23:49.120 --> 23:58.860] but there is also telemetry part which if you can imagine there are quite nasty things you can do [23:58.860 --> 24:07.060] with telemetry and how you can mangle the bytes and how you can affect the operations by changing [24:07.060 --> 24:12.960] the telemetry that the spacecraft is receiving. So important bit is that all that knowledge which [24:12.960 --> 24:18.480] I presented here is based on OSINT. All the standards, all the documentations are public. [24:19.120 --> 24:26.200] So you can go and have a look. CCSDS is trying to mitigate those issues of providing space [24:26.200 --> 24:32.340] data link security. However, this is only between the ground station and the spacecraft itself. [24:32.340 --> 24:37.200] The ground segment is still going to be vulnerable. And our argument would be that [24:38.700 --> 24:46.720] CCSDS PKI concept could be used instead of SDS to enable TSL-like features on the ISP level [24:46.720 --> 24:50.360] and therefore all the communication would be encrypted and everything, [24:50.360 --> 24:53.800] all the issues which I'm presenting today, they would go away. [24:56.580 --> 24:59.680] Currently we are discussing with European Space Agency to, [24:59.680 --> 25:04.080] currently we are discussing space agency with, we want to make some additional tests. [25:05.680 --> 25:08.560] And here is the list of all resources. You can have a look. [25:09.700 --> 25:15.200] And the publication is going to be available as of today on this website. So you can have a look [25:15.200 --> 25:23.660] at all the details, how it is, what I have just described in this presentation. So thanks. [25:23.660 --> 25:24.840] Thank you very much.