1 00:00:00,000 --> 00:00:01,680 Okay, so I'm going to start. 2 00:00:02,880 --> 00:00:04,360 My name is Andy. 3 00:00:04,860 --> 00:00:09,840 I work as an open source security in space industry in Europe. 4 00:00:11,060 --> 00:00:15,900 How many of you know... or how many of you work in space industry? 5 00:00:17,060 --> 00:00:20,380 How many of you... okay, that's some hands up. 6 00:00:20,380 --> 00:00:23,520 How many of you know what the SLE is? 7 00:00:25,220 --> 00:00:27,880 Okay, that's like three people. 8 00:00:27,880 --> 00:00:28,720 Excellent. 9 00:00:29,600 --> 00:00:35,960 So, hacking satellites is not a new thing, obviously. 10 00:00:38,540 --> 00:00:49,660 However, most of the discussion revolves around the space segment and the means of directly hacking or accessing the satellite. 11 00:00:50,520 --> 00: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. 12 00:01:11,080 --> 00:01:19,640 So, in this presentation, I will briefly compare the space segment with the ground segment as in terms of attack surface. 13 00:01:19,840 --> 00:01:22,500 I will introduce you to the SLE protocol. 14 00:01:22,600 --> 00:01:25,940 And some security aspects of it. 15 00:01:26,100 --> 00: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. 16 00:01:39,120 --> 00:01:47,480 So, just very briefly, every space mission can be divided loosely into a space segment and the ground segment. 17 00:01:47,480 --> 00:01:58,160 And the ground segment, in general, the space segment usually is much more complex than the ground segment. 18 00:01:58,460 --> 00:02:02,140 However, if you think about it, it is just like one node in the whole system. 19 00:02:02,580 --> 00:02:06,260 So, the satellite is a very complete node. 20 00:02:06,260 --> 00:02:10,100 However, there is only one interface, one entry point interface. 21 00:02:10,420 --> 00:02:14,060 And because of that, it has a very small attack surface. 22 00:02:14,300 --> 00:02:21,940 And the ground segment, on the other hand, has less complex elements to it, but there are many available. 23 00:02:21,940 --> 00:02:26,460 And because of that, it imposes a much larger attack surface. 24 00:02:27,680 --> 00:02:33,420 On top of that, communicating directly with spacecraft is quite challenging. 25 00:02:33,420 --> 00: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. 26 00:02:45,400 --> 00: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. 27 00:03:10,000 --> 00: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. 28 00:03:24,640 --> 00:03:34,900 And then again, to try to hack the ground segment components, there is no sophisticated equipment required. 29 00:03:36,420 --> 00: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. 30 00:03:47,600 --> 00:03:52,720 Obviously, on the space segment, you have a space asset, which this might be a spacecraft. 31 00:03:53,560 --> 00:03:56,040 And then you have a ground station that communicates with the spacecraft. 32 00:03:56,040 --> 00:04:02,220 You have a mission control that uses ground station to communicate with the spacecraft. 33 00:04:02,400 --> 00:04:06,260 And then you have users that use the mission control applications. 34 00:04:07,420 --> 00: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. 35 00:04:18,300 --> 00: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. 36 00:04:33,540 --> 00:04:35,180 So what is SLE? 37 00:04:36,260 --> 00:04:44,860 SLE is a protocol developed or created by CCSDS standardization body. 38 00:04:44,860 --> 00:04:45,960 It's a standard. 39 00:04:46,460 --> 00:04:52,860 It is used to send telecommands and receive telemetry from spacecraft. 40 00:04:52,860 --> 00:04:54,560 It is based on TCPIP. 41 00:04:54,560 --> 00:04:59,400 It supports transport layer and encoding and authentication. 42 00:05:00,720 --> 00:05:01,980 And you can have two roles. 43 00:05:01,980 --> 00:05:06,260 One is the SLE provider, which is in our case is like a ground station. 44 00:05:06,260 --> 00:05:10,760 And then you have SLE user, which is like a mission control system. 45 00:05:12,640 --> 00: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. 46 00:05:26,500 --> 00:05:29,520 And in the system, there are two places. 47 00:05:29,520 --> 00:05:35,320 Well, okay, there could be many places, but in principle, there are at least two places where the SLE is used. 48 00:05:35,580 --> 00: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? 49 00:05:47,480 --> 00:05:54,960 But because we are hacking the ground statement, we are focusing only on the link that is highlighted on the slide. 50 00:05:55,520 --> 00:05:57,500 So here is this slide. 51 00:05:57,500 --> 00: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. 52 00:06:07,360 --> 00: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. 53 00:06:15,670 --> 00: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. 54 00:06:30,740 --> 00:06:37,480 Also, some of the ground segment specialized equipment comes with support to SLE. 55 00:06:37,480 --> 00:06:43,160 If you look at the, for instance, Safran Cortex devices, they all support SLE. 56 00:06:44,500 --> 00: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. 57 00:06:58,840 --> 00:07:04,620 So for the purpose of this research, we focus only on the commanding capabilities. 58 00:07:04,620 --> 00:07:12,440 So it is called FCLT, which is Forward Communication and Transport Unit, transmission unit. 59 00:07:12,820 --> 00:07:16,180 And it is basically the thing that you are sending to spacecraft. 60 00:07:16,660 --> 00:07:21,600 It combines it, or the service that you are using to send telecommands to spacecraft. 61 00:07:22,080 --> 00:07:27,320 It defines a number of, quite a decent list of different types of operations. 62 00:07:27,320 --> 00: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. 63 00:07:38,720 --> 00:07:46,040 And then we also look at the transfer data operation, which is used to send the actual telecommands to spacecraft. 64 00:07:47,700 --> 00:07:56,720 Now, as per documentation, there is no data privacy that comes with the SLE as a protocol, or as a standard. 65 00:07:57,220 --> 00:08:00,320 It comes with a sequence numbering. 66 00:08:00,420 --> 00: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. 67 00:08:11,780 --> 00:08:15,640 There is an easy way to bypass this restriction. 68 00:08:15,640 --> 00: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. 69 00:08:28,300 --> 00:08:32,640 So later, I will show you the demos how this actually can work in practice. 70 00:08:33,480 --> 00:08:45,020 We have a very simple test environment, where we assume that... so this is assumed bridge testing. 71 00:08:45,200 --> 00:08:48,800 We assume that the adversaries are in the network already. 72 00:08:49,700 --> 00: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. 73 00:09:03,320 --> 00:09:07,780 SLE user is another VM, which plays a role as a mission control system. 74 00:09:08,440 --> 00:09:16,600 It's also Debian, and the SLE implementation used there is the simple Python SLE, which is like a PIB package. 75 00:09:16,600 --> 00:09:17,800 You can download it. 76 00:09:18,740 --> 00:09:22,780 And this is just to demonstrate that it doesn't really matter what is the implementation of the SLE. 77 00:09:22,780 --> 00: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. 78 00:09:33,920 --> 00: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. 79 00:09:45,060 --> 00:09:47,440 So at the high level, we do the ARP spoofing. 80 00:09:47,520 --> 00:09:50,320 We capture the data at the TCP frame level. 81 00:09:50,500 --> 00:09:54,280 We decode them using the ISP1... we decode the ISP1 frames. 82 00:09:54,280 --> 00:09:56,100 I will explain what it is in a second . 83 00:09:56,960 --> 00: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. 84 00:10:09,380 --> 00:10:13,500 Okay, everyone knows how the ARP spoofing works, so I'm going to skip that part. 85 00:10:13,660 --> 00:10:19,340 We basically grab the packets and put it in the net filter queue, and then we process them. 86 00:10:19,340 --> 00:10:22,960 So the interesting part is the processing part. 87 00:10:24,000 --> 00: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. 88 00:10:36,220 --> 00: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. 89 00:10:47,760 --> 00: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. 90 00:11:07,920 --> 00: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. 91 00:11:19,520 --> 00: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. 92 00:11:37,420 --> 00:11:47,460 So this is an example of a bind message or bind operation between the mission control system and the ground station. 93 00:11:47,640 --> 00: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. 94 00:12:05,460 --> 00:12:09,160 Again, there is no encryption, so all those bytes are... 95 00:12:11,060 --> 00:12:12,960 they mean what it says, right? 96 00:12:13,640 --> 00: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. 97 00:12:24,260 --> 00: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. 98 00:12:48,190 --> 00:12:49,950 Let me know if you can see it. 99 00:12:51,270 --> 00: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. 100 00:13:03,650 --> 00:13:07,570 The provider is the ground station and the user is the machine control system. 101 00:13:08,390 --> 00:13:15,470 So we start the SLE provider and then we run our test. 102 00:13:16,970 --> 00: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... 103 00:13:28,450 --> 00:13:32,130 we are sending the start operation and then we are sending the data... 104 00:13:33,390 --> 00:13:35,690 we are sending the data to the ground station. 105 00:13:35,690 --> 00:13:46,730 So this string of bytes is what's gonna get eventually to the spacecraft, like some of those bytes. 106 00:13:47,150 --> 00:13:54,350 And then we stop it, and then we unbind, right? 107 00:13:54,350 --> 00:13:58,090 So that's like the nominal situation. 108 00:14:07,610 --> 00:14:10,030 So what happens then? 109 00:14:12,740 --> 00: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. 110 00:14:24,040 --> 00: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. 111 00:14:35,180 --> 00:14:37,660 There is no feedback whatsoever. 112 00:14:37,660 --> 00:14:42,620 So the users don't know what is the reason of failing the connection. 113 00:14:43,060 --> 00:14:45,040 It's only the ground station that knows. 114 00:14:45,560 --> 00:14:48,700 So in this case, we basically do the same. 115 00:14:48,700 --> 00:14:55,380 We try to grab the bind operation, which has a very well-defined structure. 116 00:14:55,380 --> 00: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. 117 00:15:06,180 --> 00:15:08,380 So what's gonna happen 118 00:15:21,480 --> 00:15:22,840 is the following. 119 00:15:23,560 --> 00:15:26,140 On the right-hand side, you have our exploit. 120 00:15:26,800 --> 00: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. 121 00:15:39,760 --> 00:15:44,040 So we start the R-spoofing and we start observing the communication between the both. 122 00:15:53,300 --> 00:16:02,580 And then you can see, despite the fact that we have sent the start, the bind request, we didn't succeed. 123 00:16:02,580 --> 00:16:11,360 There is an exception on the SLE implementation, but there is no feedback going back to the user. 124 00:16:17,350 --> 00:16:20,730 So at this point, we cannot really do anything. 125 00:16:20,770 --> 00:16:22,770 We see the authentication failure. 126 00:16:27,710 --> 00:16:34,410 So this way, you can create a denial of service as long as you're in the network. 127 00:16:37,680 --> 00: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. 128 00:16:52,920 --> 00: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. 129 00:17:09,780 --> 00:17:11,700 It's a similar situation. 130 00:17:14,690 --> 00: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. 131 00:17:33,510 --> 00: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. 132 00:17:43,690 --> 00:17:48,770 So you can just grab them and then you can use them for your own connection. 133 00:17:59,640 --> 00:18:01,360 I'm trying to... okay. 134 00:18:01,480 --> 00: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. 135 00:18:14,920 --> 00: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. 136 00:18:26,760 --> 00:18:35,660 And then we change the content of the commands that are being sent to spacecraft. 137 00:18:45,050 --> 00: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. 138 00:18:56,390 --> 00: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. 139 00:19:19,040 --> 00: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, 140 00:19:36,060 --> 00: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. 141 00:19:56,380 --> 00: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. 142 00:20:09,040 --> 00: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. 143 00:20:20,140 --> 00:20:26,160 So this way we can send whatever we want to spacecraft. 144 00:20:33,330 --> 00: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. 145 00:20:46,870 --> 00:20:53,230 So here we are capturing the bind and manipulate the credential structures in order to prevent authentication. 146 00:20:53,810 --> 00:20:58,790 Then we reuse the credentials which we have captured for our own SLE session. 147 00:20:59,770 --> 00: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. 148 00:21:11,170 --> 00: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. 149 00:21:28,750 --> 00: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. 150 00:21:43,610 --> 00:21:49,890 So here it is. 151 00:21:50,190 --> 00:21:58,870 It is a semi-automated exploit because I wanted to show you how you can actually how this works in details. 152 00:21:59,510 --> 00:22:04,270 So we are starting on the right-hand side, we are starting the SLE provider. 153 00:22:04,270 --> 00:22:07,330 On the right-hand side, on the top, we are starting the MCS. 154 00:22:07,330 --> 00:22:10,670 MCS tries to bind but it fails. 155 00:22:11,070 --> 00:22:25,410 Our exploit caught the credentials and then we are gonna copy those credentials and reuse them in another exploit. 156 00:22:26,350 --> 00:22:29,090 As you can see, nothing really happened on the ground station. 157 00:22:29,090 --> 00:22:33,690 There is an exception but that's because that implementation doesn't handle it properly. 158 00:22:33,970 --> 00: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. 159 00:22:46,150 --> 00: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. 160 00:22:58,150 --> 00:23:02,130 And then we managed to bind to the ground station. 161 00:23:08,730 --> 00: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. 162 00:23:27,540 --> 00:23:33,020 So that's basically how you take over control of a spacecraft if you have access to the ground station. 163 00:23:37,080 --> 00: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. 164 00:23:46,240 --> 00: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. 165 00:24:10,360 --> 00:24:15,600 So important bit is that all that knowledge which I presented here is based on OSINT. 166 00:24:15,600 --> 00:24:18,480 All the standards, all the documentations are public. 167 00:24:19,120 --> 00:24:20,960 So you can go and have a look. 168 00:24:22,080 --> 00:24:27,660 CCSDS is trying to mitigate those issues of providing space data link security. 169 00:24:27,660 --> 00:24:32,340 However, this is only between the ground station and the spacecraft itself. 170 00:24:32,340 --> 00:24:34,780 The ground segment is still going to be vulnerable. 171 00:24:35,240 --> 00: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. 172 00:24:56,580 --> 00: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. 173 00:25:05,680 --> 00:25:07,460 And here is the list of all resources. 174 00:25:07,460 --> 00:25:08,560 You can have a look. 175 00:25:09,700 --> 00:25:14,500 And the publication is going to be available as of today on this website. 176 00:25:14,500 --> 00:25:21,520 So you can have a look at all the details, how it is, what I have just described in this presentation. 177 00:25:22,340 --> 00:25:23,660 So thanks. 178 00:25:23,660 --> 00:25:24,840 Thank you very much.