WEBVTT

00:00.000 --> 00:02.500
Hi everyone, my name is Andy.

00:02.500 --> 00:05.920
I'm going to present you with some offensive security testing.

00:07.460 --> 00:15.620
In this presentation I will briefly introduce you to the ground segment and the software that we use on it.

00:15.860 --> 00:32.440
I will focus on one particular software which is the mission control system and I will show you some vulnerabilities which we have found on those software applications and then give you a couple of demos on how we managed to exploit them.

00:34.180 --> 00:38.880
Ground segment consists of many interconnected components or elements.

00:38.880 --> 00:49.250
You can see on this orange part where exactly it lies in the space mission.

00:49.780 --> 00:51.900
It consists of different elements.

00:51.900 --> 01:01.360
All those elements perform different functions but they all depend on each other either by receiving input from or sending outputs to other components.

01:01.920 --> 01:11.020
However, most of those components they don't require any user interaction and this is what brings us to the mission control system which is the main interface.

01:12.160 --> 01:17.480
It is the main interface between the ground station and other components.

01:17.480 --> 01:34.180
It also serves as primary interface between the spacecraft controllers and the spacecraft itself which I would argue makes it the most vulnerable system in the whole ground segment.

01:34.220 --> 01:38.900
As you know the weakest link of every information system is humans.

01:40.140 --> 01:53.620
For decades the space missions were operated from dedicated mission control rooms accessible only by the spacecraft controllers.

01:54.040 --> 01:57.020
This however has changed recently mainly due to COVID.

01:58.980 --> 02:08.120
The organization started opening up and letting their users or their spacecraft operators to conduct operations remotely.

02:08.140 --> 02:23.170
This of course creates a new attack surface for the mission control system which is usually a very outdated software and vulnerable to typical vulnerabilities which we have on any other software that we use on a daily basis.

02:23.820 --> 02:26.260
So what is being done about it?

02:26.660 --> 02:35.240
From the space community perspective obviously we expand strategies to include security aspects.

02:35.360 --> 02:41.740
We impose security policies and then we also introduce security requirements to our systems.

02:42.980 --> 02:55.950
However I don't think it's gonna be enough at this point and as we will see later there is one very specific element that is missing into those into the actions which is the offensive security testing.

02:58.640 --> 03:03.680
So every organization has their own mission control system.

03:03.680 --> 03:12.200
They try to develop their own software because you know what as they say the space is hard right so they have to do it themselves.

03:12.920 --> 03:23.200
So some of that software is open source so what we have done we decided to have a look at it and see how they perform from the vulnerability standpoint.

03:24.140 --> 03:26.380
And here is what we have found out.

03:26.380 --> 03:40.700
Full disclosure all those vulnerabilities have been already disclosed using the contacting the vendor and they have been already addressed and and all of them have CVE assigned.

03:41.420 --> 03:50.120
So on NASA OpenMCT we have found a couple of vulnerabilities such as prototype pollution, XSS and CSRF.

03:50.720 --> 03:56.060
On the IMCS which is another mission control system it is one of the more established ones.

03:56.400 --> 04:06.380
We have found a few more vulnerabilities such as directory traversal, arbitrary file deletion, session hijacking and a few XSS vulnerabilities.

04:07.520 --> 04:16.980
And then on NASA AIT core we have found and NASA AIT core is like a framework to develop ground segment software by different missions.

04:16.980 --> 04:26.760
We have found SQL injection, a few local code executions and also realized that the encryption in the communication is completely missing.

04:27.540 --> 04:34.960
So as you've seen before that most of those vulnerabilities they don't have that much of an impact on the mission.

04:34.960 --> 04:38.100
However this is where the training of vulnerability is going to play.

04:38.840 --> 04:45.460
And in case of the IMCS we decided to combine a directory traversal, session hijacking and XSS.

04:45.820 --> 04:59.320
And that led us to quite severe sensitive information disclosure because now the attackers can when the XSS is triggered the attackers can actually retrieve any arbitrary file that is stored on the IMCS server.

05:01.020 --> 05:05.020
So here is a let's have a look at typical scenario.

05:05.500 --> 05:09.220
So this is like a very high level overview of a space mission.

05:09.220 --> 05:13.440
You have a space segment from right to left you have a space left you have a space segment.

05:13.740 --> 05:25.520
There is a ground station, there is the IMCS which is the mission control system in subject that is used by Bob to send telemetry, send telecommands and receive telemetry from spacecraft.

05:26.240 --> 05:31.620
We also have Alice that is working with Bob and the whole organization has a publicly facing website.

05:31.820 --> 05:36.420
Now we also have an attacker and that has a C2 server.

05:36.640 --> 05:40.900
Now as it usually goes there is a recon and phishing campaign.

05:41.380 --> 05:45.340
The adversaries learn about Alice from the public website.

05:45.460 --> 05:49.260
They decide to target her with phishing campaign.

05:50.580 --> 05:52.380
Alice takes the bait.

05:53.200 --> 06:00.320
Unfortunately she clicks on a link or opens a word document and that deploys the C2 beacon on her workstation.

06:00.360 --> 06:03.580
This way making her workstation compromised.

06:06.790 --> 06:09.390
The attackers now have access to her workstation.

06:09.390 --> 06:16.330
They learn about Bob from her emails and they decided to target Bob with an internal phishing campaign.

06:16.510 --> 06:23.570
They send him an email with some payload that would trigger the XSS and they do it as Alice.

06:25.130 --> 06:27.070
So Bob trusts Alice.

06:27.070 --> 06:30.850
He executes the payload that triggers the XSS.

06:30.890 --> 06:51.070
That XSS then because there is a session hijacking vulnerability and the traversal director vulnerability that triggers the... this lets the attackers to retrieve any arbitrary file on the NCS server.

06:51.550 --> 06:57.930
Now if Bob has access to the internet, the files can be directly retrieved and sent to attacker workstation.

06:58.210 --> 07:09.390
Otherwise if Bob is behind the firewall or is using VPN, we can use Alice's workstation as a proxy and then retrieve the files using the C2 beacon.

07:11.330 --> 07:15.830
So I have prepared a short demo how that would look like in practice.

07:18.940 --> 07:22.880
So what you will see here, this is the exploit we developed.

07:23.580 --> 07:39.700
It generates a payload that will end up being sent to the Bob and Bob will actually use that payload and because he thought that it was received from Alice, load it on the NCS and then that would trigger our exploit chain.

07:43.080 --> 07:51.140
So first this exploit generates the payload, which is called XMILJS and also starts the HTTP server.

07:52.060 --> 07:57.560
Bob is gonna load that file on the NCS server.

07:58.100 --> 08:02.940
Imagine that is one of the telemetry displays that Alice decided to share with him.

08:07.140 --> 08:14.620
So he loads the file and he decides to open it and that's all he sees.

08:14.620 --> 08:31.960
Now under the hoods there was an XSS triggered that would retrieve the file and then send it back because of the directed traversal and send back the content to the HTTP server that was started by the attacker.

08:33.340 --> 08:42.680
So here like in any example of proof of concept, you can see we got the access to etc password file content.

08:43.400 --> 08:50.780
So combining those vulnerabilities is actually quite easy so the whole exploit is easy.

09:07.250 --> 09:13.870
So next up is the vulnerability chain, the exploit chain for NASA IIT Core.

09:14.250 --> 09:33.050
Combining one of the local execution, a code execution and missing encryption, we managed to conduct a man-in-the-middle attack and inject our own payload into the communication string which then is triggered on the telemetry client and then is executed,

09:33.050 --> 09:34.950
giving us the reverse shell.

09:35.850 --> 09:42.530
So I'll quickly start another demo and explain what you see.

09:49.590 --> 10:06.410
So basically what you see here on the top left side you have telemetry client, on the left bottom side you have telemetry simulator, that is both are provided by the IIT Core.

10:06.450 --> 10:17.490
On the right side you have our exploit on the top and then on the bottom side on the right bottom you have the NESCAS list that is going to grab the or is going to receive the reverse shell.

10:18.530 --> 10:24.890
So we start the telemetry client first on the on the left side.

10:26.590 --> 10:32.370
Now this is what would normally be happening on the mission control or on the ground station.

10:35.650 --> 10:41.270
Then we start telemetry simulator which will generate some telemetry packets.

10:42.690 --> 10:45.190
As if they were coming down from spacecraft.

10:45.590 --> 10:53.950
We start our NESCAS listener and you can see on the left hand side on the left hand side we already have started receiving some telemetry from the simulator.

11:04.540 --> 11:20.600
Then we run our exploit that is conducting the man-in-the-middle attack and then the first frame, so we have injected our frame and the first frame, so the first frame that is sent from telemetry simulator to the ground station is caught by the man-in-the-middle attack.

11:20.600 --> 11:34.560
There we injected our payload which you can see down here as well and that was actually executed and it was triggered and it gave us the reverse shell to the telemetry client running on the mission control.

11:37.300 --> 11:40.160
So that's another proof of concept.

12:01.200 --> 12:02.820
Sorry about that.

12:09.330 --> 12:19.050
So just for reference we have this is split between static and dynamic analysis which we have done on those systems.

12:20.050 --> 12:38.390
It is still important to conduct static analysis because as you can see the log hanging fruits and many other vulnerabilities are found using those but static analysis will not catch everything so you have to conduct the dynamic analysis and then you have to try to conduct the exploitation phase.

12:40.050 --> 12:46.510
In case of SCOS2000, SCOS2000 is one of the main mission control systems developed by European Space Agency.

12:46.630 --> 12:51.210
We haven't done any extensive analysis on the system, any vulnerability research.

12:51.210 --> 13:04.650
We only run the flow finder on it and using the static code analysis you can see I'm pretty sure that at least one of those almost 2,500 buffer overflow vulnerabilities would be exploitable.

13:07.660 --> 13:17.400
So in conclusion, the point I'm trying to make is that the space applications are still not properly being tested from the offensive security standpoint.

13:18.540 --> 13:33.700
The best way is to hire a service to do it properly or you can also try to do it yourself but you have to do it and you have to include it in your frameworks and you should do it before the adversaries do it for you.

13:34.920 --> 13:45.880
So as I mentioned before, all that research was already published so here you can find, I guess the slides will be provided afterwards so you can have a look at the publications.

13:46.400 --> 13:51.320
Otherwise, if you want the links today, you can hit me up after the talk and I'll give it to you.

13:52.960 --> 13:54.220
And that was it.

13:54.240 --> 13:55.180
Thank you very much.

