start	end	text
0	6860	Okay, so I'm going to start. My name is Andy. I work as an open source security in
7840	15900	space industry in Europe. How many of you know... or how many of you work in space industry?
17060	23520	How many of you... okay, that's some hands up. How many of you know what the SLE is?
25220	28720	Okay, that's like three people. Excellent.
29600	35960	So, hacking satellites is not a new thing, obviously.
38540	45840	However, most of the discussion revolves around the space segment and the means of
45840	52600	directly hacking or accessing the satellite. However, I would argue that
54020	61520	it is the ground segment that is more likely to be targeted by the adversaries and that's
61520	70260	because of its... that's mainly because of the large attack surface that it presents.
71080	75860	So, in this presentation, I will briefly compare the space segment with the ground segment
76600	82500	as in terms of attack surface. I will introduce you to the SLE protocol.
82600	89020	And some security aspects of it. And then I will proceed to demonstrate how you can
89640	98080	exploit some exploitation methods of the protocol and some mitigations against them.
99120	102980	So, just very briefly, every space mission can be divided
104100	110940	loosely into a space segment and the ground segment. And the ground segment,
113600	118840	in general, the space segment usually is much more complex than the ground segment. However,
118840	124080	if you think about it, it is just like one node in the whole system. So, the satellite is a very
124080	131920	complete node. However, there is only one interface, one entry point interface. And because of that,
131920	135840	it has a very small attack surface. And the ground segment, on the other hand,
135840	143400	has less complex elements to it, but there are many available. And because of that,
143400	150760	it imposes a much larger attack surface. On top of that, communicating directly with
150760	155980	spacecraft is quite challenging. And not because of the technical aspect of it, but
156560	163440	because of the environmental aspects like visibility, orbit, and also the distance from Earth.
165400	173020	And on the other hand, the ground segment, it uses main or it uses standard infrastructure,
173020	183780	which means that most of its components are also vulnerable to the vulnerabilities that are
183780	190960	present in any other infrastructure or software that we are using on a daily basis. And because
190960	195600	most of the applications that are used in the space industry on the ground segment are custom
195600	203560	development, I would say that that creates some additional avenues to find new vulnerabilities in
203560	213020	it. And then again, to try to hack the ground segment components, there is no sophisticated
213020	222800	equipment required. So this is an extremely high level representation of a space mission where we
222800	228900	divide the space segment and separate it from the ground segment. Obviously, on the space segment,
228900	234600	you have a space asset, which this might be a spacecraft. And then you have a ground station
234600	240400	that communicates with the spacecraft. You have a mission control that uses ground station to
240400	246260	communicate with the spacecraft. And then you have users that use the mission control applications.
247420	254280	And they either work internally on dedicated workstations or they connect remotely through
254400	261480	a VPN or jump host or whatever you might have. Now, my argument is that it's going to be much
261480	266960	easier to hack this thing that you see on the screen than actually build it in order to communicate
266960	275180	with many satellites, which you would like to hack. So what is SLE?
276260	285960	SLE is a protocol developed or created by CCSDS standardization body. It's a standard.
286460	294560	It is used to send telecommands and receive telemetry from spacecraft. It is based on TCPIP.
294560	301980	It supports transport layer and encoding and authentication. And you can have two roles.
301980	306260	One is the SLE provider, which is in our case is like a ground station.
306260	310760	And then you have SLE user, which is like a mission control system.
312640	319780	Now, so in a nutshell, it defines a protocol to transfer the PDUs using the TCP
321340	328220	for transfer, for data transfer, and ASL1 for data encoding. And in the system, there are two
328220	333660	places. Well, okay, there could be many places, but in principle, there are at least two places
333660	339240	where the SLE is used. It is in the communication between the MCS, which is mission control system
339240	347480	and the ground station, and also between the ground station and the space asset, right?
347480	353080	But because we are hacking the ground statement, we are focusing only on the
353080	358680	link that is highlighted on the slide. So here is this slide. Here you can see all the
358680	363600	organizations and most of the companies that use, or the most famous companies that use the
363600	370780	SLE to some extent. If you look on the standard itself for the documentation,
370780	374960	here is a list of all agencies that are responsible for development of the standard.
375670	382540	So there are quite a few of them, and there are at least three times more
382540	389260	different organizations, public and private companies, using the standard for space operations.
390740	397860	Also, some of the ground segment specialized equipment comes with support to SLE. If you look
397860	406480	at the, for instance, Safran Cortex devices, they all support SLE. And also here, NASA space,
406480	415440	New Space Network, they proudly share that they are also supporting SLE protocols on the list of
415440	422980	their interfaces and capabilities. So for the purpose of this research, we focus only on the
422980	429560	commanding capabilities. So it is called FCLT, which is Forward Communication and Transport
430240	436180	Unit, transmission unit. And it is basically the thing that you are sending to spacecraft.
436660	441600	It combines it, or the service that you are using to send telecommands to spacecraft.
442080	447940	It defines a number of, quite a decent list of different types of operations. But for this
447940	453220	research, we are focusing only on the bind and unbind to establish a connection and disconnect,
453900	458420	and then start and stop to set up certain properties on the ground station equipment.
458720	463460	And then we also look at the transfer data operation, which is used to send
464080	471020	the actual telecommands to spacecraft. Now, as per documentation, there is no data
471020	478700	privacy that comes with the SLE as a protocol, or as a standard. It comes with a sequence
478700	487380	numbering. And this is supposed to be helped in preventing injection as potentially seizing
487380	495640	control of spacecraft, but that doesn't really work. There is an easy way to bypass this restriction.
495640	501760	And also, there is an authentication that is provided out of the box, however,
501760	507820	is very susceptible to many of the middle attacks because of the lack of encryption.
508300	512640	So later, I will show you the demos how this actually can work in practice.
513480	523660	We have a very simple test environment, where we assume that... so this is assumed bridge
523660	531000	testing. We assume that the adversaries are in the network already. And we have SLE provider
531000	539540	that plays a role as a ground station, which is like a simple Debian VM, and with European
539540	546000	Space Agency SLE API implementation installed on it. SLE user is another VM, which plays a role
546000	551600	as a mission control system. It's also Debian, and the SLE implementation used there is the
551600	559800	simple Python SLE, which is like a PIB package. You can download it. And this is just to demonstrate
559800	563660	that it doesn't really matter what is the implementation of the SLE. As long as you're
563660	568940	using any SLE or any implementation that follows the standard, your operations are going to be
568940	575960	vulnerable to those attacks, which I'm going to demonstrate. So because there is no encryption,
575960	583420	the best idea would be to wrap our attack scenarios within the man-in-the-middle attack
583420	589520	technique. So at the high level, we do the ARP spoofing. We capture the data at the TCP frame
589520	595660	level. We decode them using the ISP1... we decode the ISP1 frames. I will explain what it is in a
595660	601160	second. And then we manipulate the content of the CLTUs that are going to be sent to SpaceCraft,
601160	606640	we update the TCP frame, and then push it forward to the receiving part.
609380	613500	Okay, everyone knows how the ARP spoofing works, so I'm going to skip that part.
613660	617420	We basically grab the packets and put it in the net filter queue,
617420	625720	and then we process them. So the interesting part is the processing part. As I mentioned before,
627360	634440	the data is obviously in the TCP frame data field, and these are the SLEPDUs elements,
634440	643100	which are in the ISP1 format. Now ISP1 is based on the ASN1 encoding, which is basically a simple
643100	651540	tagline value data, which is very easy to decode. However, apart from the TLV, there are a few
654120	660180	custom structures and context-related sequences, which you would have to struggle a little bit to
660180	665780	decode, but the standard is pretty well described, so it didn't take too much time to figure out
665780	672280	what they are. And as I mentioned before, in our demo we are focusing only on the telecommanding
672280	677520	part, because our goal is to start sending something to SpaceCraft to the ground station.
679520	690400	Once you decode the data using the ASN1 encoding, you have to map it to the FCLTU structures,
690400	695840	and this is also something that is described in the standard, so it's available to everyone,
695840	703720	and that's what we used. So this is an example of a bind message or bind operation between the
705120	710160	mission control system and the ground station. So we can see that we have an ISP header,
710160	715100	then you have a main structure, which is followed by the additional structure, and then somewhere
715100	720540	in the middle we have the credentials, and there's also some additional elements which
720540	729160	you can overwrite or you can play with. Again, there is no encryption, so all those bytes are...
731060	738920	they mean what it says, right? So in terms of demo, just to establish the baseline, I will show
738920	743520	you how the typical communication between the NCS and the ground station looks like.
744260	748360	In this demo you will see that first we are doing the binding between the two nodes, then we are
748360	754880	sending the... we are asking the receiving node to start the operations, we are sending some data,
754880	764900	then we are stopping, and then we are unbinding it, and I'll try to play the video.
768190	777030	Let me know if you can see it. Okay, so on the top screen you see the... on the bottom part you see
777030	785630	the SLE provider, on the top you see the SLE user. The provider is the ground station and the user
785630	795470	is the machine control system. So we start the SLE provider and then we run our test.
796970	800990	You can see that we have first established the connection,
800990	805530	we send the bind, which was the successful operation, and then we are...
808450	812130	we are sending the start operation and then we are sending the data...
813390	823690	we are sending the data to the ground station. So this string of bytes is what's gonna get
823690	830270	eventually to the spacecraft, like some of those bytes. And then we stop it, and
832610	838090	then we unbind, right? So that's like the nominal situation.
847610	856040	So what happens then? So one of the things, the worst thing which we can do is to
856820	862200	cause a little bit of denial of service by preventing the users from authenticating
862200	868640	to the ground station. And the reason why it's an annoying way of doing this for the user is
868640	874560	because the SLE provider, when the user fails authentication, the SLE provider simply drops
874560	881020	the connection. There is no feedback whatsoever. So the users don't know what is the reason of
881020	887820	failing the connection. It's only the ground station that knows. So in this case, we basically
887820	895700	do the same. We try to grab the bind operation, which has a very well-defined structure. So when
895700	901200	you're monitoring what's happening on the wire, you can easily find patterns and then you can
901200	908380	simply mangle the bytes which are responsible for the authentication. So what's gonna happen
921480	928380	is the following. On the right-hand side, you have our exploit. And then on the right-hand
928380	933200	side, you have at the bottom, you again have SLE provider, and on the top is our
935660	939140	MCS, Mission Control System, that connects to the ground station.
939760	944040	So we start the R-spoofing and we start observing the communication between the both.
953300	961360	And then you can see, despite the fact that we have sent the start, the bind request,
961360	963870	we didn't succeed. There is an exception on the
965480	971360	SLE implementation, but there is no feedback going back to the user.
977350	982770	So at this point, we cannot really do anything. We see the authentication failure.
987710	994410	So this way, you can create a denial of service as long as you're in the network.
997680	1006860	So the next demo, this is also quite similar to the previous one, but here we are actually
1006860	1011600	grabbing the credentials, because as I mentioned before, we can actually reuse them.
1012920	1018260	So here you will see, here you will see grabbing the credentials from the bind message
1019040	1021320	and then display them on the screen.
1029780	1037570	It's a similar situation. So we start the SLE provider, we started our exploit,
1037570	1046430	we start the SLE provider, we started our MCS, we captured the credentials,
1046430	1051230	the bind is successful, but we did capture the credentials, so now we can reuse them.
1053510	1059410	The credentials are encrypted, but it doesn't matter because you will see later that
1060270	1067050	SLE as a protocol is vulnerable to replay attacks. So you can just grab them and then you can use
1067050	1084880	them for your own connection. I'm trying to... okay. So as I mentioned before, we can let the
1084880	1089920	management operations go as they are, and instead we can, in a stealth mode,
1089920	1094220	try to tamper with the data themselves, the ones that are going to get to the spacecraft.
1094920	1099860	So we're going to, in this case, we're not going to do anything to the operations,
1099860	1105940	we only capture the frames which contain the transfer data PDFs.
1106760	1115660	And then we change the content of the commands that are being sent to spacecraft.
1125050	1130850	So here, basically, at the bottom screen, at the bottom side, you can see on the left side,
1130850	1136390	you can see the SLE provider or the ground station and then mission control system on the right side.
1136390	1143350	And then on top, you can see our exploit, which is searching for a specific
1144750	1150450	string of bytes and then replaces it with something else.
1159040	1165400	So because there is absolutely no verification of what the MCS is actually sending to the
1165400	1170800	ground station, and the ground station simply takes it and forwards it to the spacecraft,
1171920	1176540	this can be done in a stealth mode and it's going to be very difficult, unless you are
1176540	1182560	monitoring for our spoofing, it's going to be difficult for the operators to realize that
1182560	1201000	they are sending something that they have not meant to send. So this is the string which we,
1201000	1208200	this is what the MCS sent and this is what has been received at the ground station.
1209040	1216440	However, you can see that in the communication, everything is verified, everything is fine,
1216440	1220140	and neither MCS nor ground station complain about it. So
1223020	1226160	this way we can send whatever we want to spacecraft.
1233330	1237950	And so I think the most interesting demo is where you can actually take all those
1238610	1244370	all those elements together and you can prepare and exploit in a way that it will take over or
1244370	1250790	let you take over the SLE session. So here we are capturing the bind and manipulate the credential
1250790	1255890	structures in order to prevent authentication. Then we reuse the credentials which we have
1255890	1264870	captured for our own SLE session. And we can keep on using those credentials for as long as
1264870	1271930	it is defined in the authentication delay of the SLE provider configuration. And from what I have
1271930	1283970	seen so far, it is a very long delay because of the propagation delay and all the distance,
1283970	1290370	depending on the distance between the earth and the spacecraft. By default, this value is usually
1290370	1296790	around 600 seconds, so that's a lot of time to actually cause a damage and start sending
1296790	1309890	something that is going to make some trouble on the spacecraft side. So here it is.
1310190	1315730	It is a semi-automated exploit because I wanted to show you how you can actually
1316930	1322530	how this works in details. So we are starting on the right-hand side,
1322530	1328090	we are starting the SLE provider. On the right-hand side, on the top, we are starting the MCS. MCS tries
1328090	1336170	to bind but it fails. Our exploit caught the credentials and then we are gonna copy those
1336170	1348490	credentials and reuse them in another exploit. As you can see, nothing really happened on the
1348490	1352790	ground station. There is an exception but that's because that implementation doesn't handle it
1352790	1360070	properly. But from the ground segment, from the ground station point of view, that's a nominal
1360070	1365770	situation because someone tried to authenticate, they failed, so nothing happened on the ground
1365770	1369150	station. We're gonna keep on waiting and then in the meantime the adversaries can actually
1370550	1376670	bind to the ground station as if they were a legitimate mission control system.
1378150	1382130	And then we managed to bind to the ground station.
1388730	1394990	We are starting the typical management operations and then we are sending the data
1395910	1401730	as adversaries or as the MCS but we are adversaries in this case.
1407540	1412120	So that's basically how you take over control of a spacecraft if you have access to the ground
1412120	1422160	station. So in conclusion, it was just one of the methods that you can take over the control
1422160	1429120	of spacecraft using SLE protocol. As mentioned before, we focus only on the commanding parts
1429120	1438860	but there is also telemetry part which if you can imagine there are quite nasty things you can do
1438860	1447060	with telemetry and how you can mangle the bytes and how you can affect the operations by changing
1447060	1452960	the telemetry that the spacecraft is receiving. So important bit is that all that knowledge which
1452960	1458480	I presented here is based on OSINT. All the standards, all the documentations are public.
1459120	1466200	So you can go and have a look. CCSDS is trying to mitigate those issues of providing space
1466200	1472340	data link security. However, this is only between the ground station and the spacecraft itself.
1472340	1477200	The ground segment is still going to be vulnerable. And our argument would be that
1478700	1486720	CCSDS PKI concept could be used instead of SDS to enable TSL-like features on the ISP level
1486720	1490360	and therefore all the communication would be encrypted and everything,
1490360	1493800	all the issues which I'm presenting today, they would go away.
1496580	1499680	Currently we are discussing with European Space Agency to,
1499680	1504080	currently we are discussing space agency with, we want to make some additional tests.
1505680	1508560	And here is the list of all resources. You can have a look.
1509700	1515200	And the publication is going to be available as of today on this website. So you can have a look
1515200	1523660	at all the details, how it is, what I have just described in this presentation. So thanks.
1523660	1524840	Thank you very much.
