start	end	text
0	6260	Hi everyone, thanks for joining our talk about the vulnerability research we've been doing on space systems.
7340	9960	So just a quick introduction of the team.
9960	13520	My name is Milenko, I'm currently leading the team at VisionSpace.
13520	15600	On stage today with me is Andy.
15760	26920	My name is Andrzej, I've been working for VisionSpace since a couple of years now and prior to that I used to work at the European Space Operations Center for a little bit over a decade.
27540	30780	Also in the room, Ricardo on the first row.
31700	34300	And unfortunately, Ayman had to already go.
34320	47620	So yeah, why are we talking about space systems and why do we think it has an impact on the wider society and not just on us in the space industry?
47620	55280	And what we see is that there is a huge number of satellites being launched currently and the attack surface is exploding.
55280	56520	It's huge.
56660	70320	So there is not just a couple of satellites as it used to be in the 80s when only government was building satellites, but commercial providers like SpaceX, OneWeb are pumping out more and more satellites into orbit.
70700	76020	And next to that, what we see is that also the defense industry is catching up again.
76020	85280	So after the Cold War, there was a bit of a cool down in the launches for like telecommunications, for example, for the military.
85280	88340	But nowadays this is always increasing.
88360	94740	And in addition to that, most of the constellations that are currently being launched have some dual use potential.
94740	98240	Like we see that with Starlink used in the front lines in Ukraine, for example.
98240	104520	And there's like military contracts also in the US, but also with OneWeb internationally.
104520	112680	There's a huge incentive for APTs and governments actually to look into attacking these systems.
112760	115880	And we think that they are not prepared for that.
117560	123340	Just for everyone who's not from the space industry, just to give you a little bit of background how our space system works.
123340	130240	So we have very basically a satellite or multiple satellites and we call this the space segment.
130380	138260	Then we have the ground segment, which is on the ground and all the infrastructure here on the terrestrial side, which is supporting the space mission.
138380	150260	So for example, a mission control center, which has operators in it, the fibers, which are going to the ground stations or at least lines that you might have, the ground station infrastructure itself, science centers, et cetera.
150260	156040	There's a huge number of IT assets and OT technology, which are supporting a mission.
156640	157800	And then we have the user segment.
157800	160760	And this is where we saw a lot of the previous research being done.
160760	168020	So user equipment that you can actually hold in your hand, that you can buy like a starling dish that you can tear apart and look what it's inside.
168500	172740	And where we saw a bit, the gap was actually on the other two segments.
172740	187340	So a lot of people in the past decades were doing research on how to intercept communication, how to play with the modems, but not so much on how to actually control a spacecraft or what you can do.
187340	198820	If you can actually send data directly to the spacecraft, if you can maybe bypass authentication, if you can mess with the memory, how the safety systems that were built in affect security.
200560	204240	So an example, a science mission, how this usually is structured.
204240	207640	So you have one or multiple spacecrafts doing their thing.
207640	212160	You have an RF link to a network of ground stations, usually not just one.
212640	219760	And then you have a mission control center that can be just a room that can also be a building or multiple sites with redundancy.
221560	225040	And then you have something like a science data center, sometimes multiple.
225040	231440	And these are post-processing the data that is coming from the spacecraft to serve it to the end user.
231440	235460	So scientists in this example, of course, the telecommunications mission looks different.
235460	237340	So this is just an example.
238060	243700	And then you have an operator or multiple operators, usually a team who are controlling the spacecraft.
243700	246160	So they are taking care of the health of the spacecraft.
246160	247740	Is it in a good state?
247840	249500	Are the batteries okay?
249500	251480	Do we need to do something about the orbit?
251480	253000	Do we need to plan some maneuvers?
253000	255680	Is there some space debris incoming or whatever?
256180	260720	And especially since COVID, there is not longer this perimeter-based defense.
260720	268600	So now you also have operators using a VPN to connect to control the spacecraft from home, for example, or just remotely.
268600	270380	So teams are working remotely.
270400	271580	Things are moving to the cloud.
271580	279620	You can now book on AWS, but also on Azure, you can actually book ground station passes directly and get it into the data center.
279620	287040	So there's a lot of shift in how the infrastructure is working, but the software that is used inside there hasn't changed much.
287040	301140	So if you have a big mission, the software that is used to control the actual spacecraft, so the human machine interface that the operator uses to control the spacecraft is likely built on decades of experience and code base.
301600	304280	So we looked into open source versions of this.
304280	314620	So there's, for example, YAMCS, which is used by dozens of missions, especially smaller missions, but also being planned to use on lunar rovers and the European robotic arm on the ISS.
314860	323580	We have NASA's OpenMCT, which is used for the Mars rovers, for example, and we have OpenSea3 Cosmos, which is also gaining popularity.
325380	327520	And then you have onboard software.
327560	330360	So some spacecraft have a very tailored onboard software.
330360	332000	That's not something we looked into.
332000	338840	We looked into software that is reused across missions so that dozens of missions are actually affected if there is something in that.
338900	342080	And the best example for that is NASA's CoreFlight system.
342160	349760	So this is used, I think this is built on above 20 years of legacy, actually, this system and used in dozens of missions.
349760	353840	There's also like payloads on the James Webb Space Telescope, which are running this software.
355120	357040	Then we looked into fPRIME.
357040	366600	So this is also from NASA and this was developed originally for the Mars Helicopter Ingenuity and AIT Core, which is reused to run experiments on the ISS.
368300	372680	So traditionally, what disabling a satellite would mean is actually launching a rocket at it.
372680	378720	So the 80s approach, I would say, is actually you get your fighter jet up and shoot a rocket at it.
378780	386880	But what we found is that actually you might have a much easier time if you exploit the vulnerabilities in the ground segment or in the spacecraft system.
387540	389280	So now comes the fun part.
389540	391660	I hand over to Andy for some live demos.
391900	402660	Okay, so what you're going to see now are a couple of demos showing different type of vulnerabilities, different attack vectors and also different ways of exploiting them.
403620	406580	We're going to start with mission control system.
406580	414040	For this particular case, or in this particular case, we're going to use OpenC3 mission control system.
415960	420200	The system is vulnerable to a number of different issues.
420200	422520	It has a number of different issues.
422620	426380	Some of them are easier or more difficult to exploit.
426400	433560	And one of them is an XSS, which you will see in a second should give us an RCE to the system that is actually controlling the spacecraft.
434540	446380	So in order to pull this off, we are going to generate a URL, which we'll then try to finish a user with for a given mission.
446380	449480	And then we'll take over control of the system.
467590	470930	Okay, so I'm going to start the OpenC3 system.
477000	481220	It is one of the more established mission control systems.
483220	486080	Space industry is going to take a second to load.
488460	495140	It goes with a bunch of typical functionalities you might find on any other mission control system.
496080	500820	Some of like, for instance, telemetry processing and displaying.
500820	505640	You also have commanding capabilities where you can actually send telecommands to spacecraft.
506680	514380	And OpenC3 also has a script runner where you can customize your functionality with Ruby and I think Python, it was.
515220	522160	And as I mentioned before, this system is vulnerable among other issues also to an XSS.
522240	529600	To exploit this vulnerability, there are a number of calls that payload we generate has to make.
529600	542220	One of them is first is to steal the session tokens in order to, which we then use to deploy the malicious script on the system and then eventually we trigger the script.
544360	554060	So to make it easier for us, we created a Python script to generate the URL, which we then use to fish our victim.
554940	558120	And then we also, we are going to start the listener.
559280	565840	So let's say I'm a spacecraft controller and I fall for the phishing campaign.
566620	568460	I clicked on the link.
568960	571040	So from my perspective, nothing really happens.
571040	574880	I still have access to my mission control system and all its functionality.
576320	583420	But the adversaries have access to my, to the whole system that is de facto controlling the spacecraft.
588310	588830	Okay.
588830	591690	So that's, that was one demo.
592210	597330	I'm going to quickly stop it so that I have resources to conduct the next one.
608160	608780	Okay.
608780	611360	So, and the next demo is a little bit different.
611360	617220	We are not targeting the ground segments, the ground segment and the mission control system.
617220	619480	We are targeting the spacecraft itself.
620120	630260	So imagine that you are a nation state and you have access to a ground segment in your country and mission control.
630260	634460	So let's also assume that you are in the visibility of the spacecraft.
634460	636840	So we actually can send some data to spacecraft.
637520	647820	And then the last assumption is that the spacecraft is running an older version of NASA core flight system, which is vulnerable.
648040	662920	Again, quite a few vulnerabilities, but one of the particular weakness we're going to use is on the memory management module in order to get an RCE at spacecraft directly on the spacecraft platform.
664680	674250	So again, I will start the core flight system simulation and a listener.
675160	679580	This one is a little bit more complex in the exploitation.
679580	692340	As mentioned before, memory management module of the core flight system is weak when it comes to... So in principle, the module should let you write and read memory in the memory.
693020	708060	It doesn't impose any restrictions on which parts of the memory address you can actually write, which means that you can read or write memory not only to the memory of that module, but the entire process of core flight system.
708440	717720	And because CFS is running on a Linux type operating system, well, you can imagine there's a lot we can actually do with this type of vulnerability.
717980	732660	What we are going to do in this case, we're going to tap into global offset table, grab a couple of addresses of functions we want to execute, or the function which is executed next, and then another one which we want to replace it with.
733840	736120	And we just let it run.
736120	741780	And that will actually execute the function which we want to execute instead of the one that is in the software.
744180	748180	So I'll run the simulation now.
748180	754980	So the simulation is running, I'll run the exploit now, and then I will walk you through the steps.
755060	765840	So in our particular case, we are interested, because of the research we did, we know that when you send a command, one of the next functions that is called is the memCHR.
765840	770140	So we are replacing that function with the system.
770740	785820	And then we're finding the addresses, then we place those addresses or swap those addresses on the global offset table, so that the next instruction that is going to be executed instead of memCHR, it's going to be the system one.
785960	789380	Now what you see now is the telemetry coming down from the spacecraft.
789700	796020	So there is a constant communication between the ground segment and the spacecraft because we have to leak those memory addresses.
796760	798540	And okay, it has completed.
798540	805560	So we can see that we have leaked the memCHR from the global offset table from the spacecraft platform.
805700	818480	And then we have overwritten that function with the address of the system function of the spacecraft by sending telecommand, which we then used to pass our payload.
818480	831580	And just for the sake of demonstration, it was executed and we got the reverser back from a system on which the CFS is running, which in our case is a spacecraft.
836570	840650	So that concludes the demo.
853160	856780	Okay, demo bots were good to us today.
857040	861820	So this is the list of software that we actually looked into.
862080	864020	So we just showed two of them.
864340	869740	And as you might see, just some of the vulnerabilities that we actually discovered over the past years.
869740	873640	So we started 2023, I think, was the first disclosures.
873640	875860	And yeah, the list is going on.
876880	879340	And this is not because this is bad software.
879340	883960	This software was running operationally for years without major problems.
883960	885120	It's being maintained.
885120	886320	We reported these things.
886320	887560	They were fixed within weeks.
887560	891180	Usually, the maintainer teams were very nice and responsive.
892020	896300	But no one was actually telling them to write secure software, it seems.
896500	900080	So this seems to be more of an issue.
902020	918540	So one of the concerning things is that not that we just found some XSS, which is like not the worst, but that in most of the systems, we either found a higher critical vulnerability, which could lead to code execution or, for example, arbitrary file deletion in YAMCS,
918540	920420	where you could just wipe the disk.
922400	926680	So sure enough, we published some things and got some attention.
927320	929760	So some others jumped in.
929760	936240	So it's always a bit painful when you publish something and then a couple of months later, you'll see that someone else found more.
938640	944700	So this was actually quite a nice follow-up research that was done, I think by a French researcher.
945120	956340	And they found actually ways to bypass in one of the plugins for NASA's core flight system, which is supposed to provide encryption and authentication ways to bypass it.
956340	962800	So we already found some ways to mess with it, but he actually found some ways to bypass it.
964680	969100	And even later, more people started looking into it.
969100	975020	And there was much more, which we didn't even check, like we were checking the code, we're not running a memory checks.
975300	983520	But yeah, someone I think was firing up Valgrind and was finding much more things, which were also pretty severe in that software.
985880	995840	And so what we think is like, there is a bit of, in the space industry, a bit lack of awareness on the developer's side, but also on the management side, what is important there.
996140	1001120	And it's difficult to implement this late.
1001520	1011160	So some of the functions, for example, like memory access or something, that needs to be something that needs to be discussed at the very beginning, if you want to have that level of access or not.
1011300	1016540	And if you have an existing mission, which has this level of access, it's very hard to secure it.
1016540	1027220	And if this is something that is relevant to your security, or like has a dual use characteristic, then maybe some hard decisions should be taken on how to use that mission.
1027500	1032560	So we think that while space is hard, space security doesn't need to be hard.
1034840	1036460	Just a final touch.
1036460	1038560	So we're currently running a space CTF.
1038560	1044700	So if you liked what you saw here, you might also enjoy our aerospace village, StarPone CTF.
1044700	1045900	Thank you.
