[00:01.640 --> 00:08.720] Hello everyone and welcome to our presentation on breaking the beam, a new type of attack [00:09.700 --> 00:16.360] that aims at exploiting VSAT satellite communication from the earth. But first let me introduce [00:16.360 --> 00:24.020] ourselves. I'm Vincent, I'm a cyber security researcher for more than 20 years. I've been [00:24.020 --> 00:29.820] focusing mostly on the security of wireless networks in my research and currently I'm [00:29.820 --> 00:34.580] acting as the director of the cyber defense campus in Switzerland. We have also with [00:34.580 --> 00:41.240] us today Johannes, he's a PhD student from the Ruhr University of Bochum in Germany and [00:41.240 --> 00:47.120] he's researching the software security of space and satellite systems. And also with [00:47.120 --> 00:52.940] us today is Robin, he's a graduate student from ETH Zurich and has been also working [00:52.940 --> 00:59.560] at the cyber defense campus in the context of his master thesis. So let me start with [00:59.560 --> 01:07.460] what VSAT communication is. VSAT stands for Very Small Aperture Terminal. This is a special [01:07.460 --> 01:15.540] type of um satellite communication um that uh communicates uh over uh geo stationary [01:15.540 --> 01:22.840] satellites. You you can see here um on the picture on the left a maritime VSAT communication [01:22.840 --> 01:34.880] system. Um a maritime VSAT can you please switch off the the music? Thanks. We have a [01:34.880 --> 01:40.020] maritime VSAT communication system that is equipped on a ship or on the right we have a [01:40.020 --> 01:48.420] terrestrial uh VSAT uh system that is typically uh used for um terrestrial uh applications. [01:48.420 --> 01:55.120] These VSAT communication systems they typically provide data uh video or voice communication [01:55.120 --> 02:02.500] services um and uh they are not so small as the name stands. Uh these antenna dishes can be [02:02.500 --> 02:13.300] typically the size of a one meter or two meters. Um okay the um if we look at uh a system a [02:13.300 --> 02:18.240] VSAT communication system it basically consists of uh three components. We have a [02:18.240 --> 02:24.720] central hub. The central hub is typically connected to the internet. And uh we have a [02:24.720 --> 02:30.460] satellite geo stationary geo stationary satellite that's a satellite that is in the orbit [02:30.460 --> 02:37.420] such that it um rotates at the same uh speed uh around the earth at the uh as the earth is [02:37.420 --> 02:43.740] rotating uh around its own axis. So the satellite stays always at the same uh location uh [02:43.740 --> 02:50.180] compared to the earth. And then we have a VSAT endpoint that's a dish with a modem where [02:50.180 --> 02:56.440] users can connect their mobile device or smart phone, laptops, whatever. If we look at the [02:56.440 --> 03:02.280] communication it's a bidirectional communication so we have a forward channel uh from the [03:02.280 --> 03:08.540] central hub that goes over the satellite to the VSAT endpoint. Um and we have a return [03:08.540 --> 03:14.080] channel that goes from the VSAT endpoint back over the satellite uh to the central hub. The [03:14.080 --> 03:19.180] satellite is really uh very dumb. It's typically a bent pipe so it just takes the signals from [03:19.180 --> 03:24.240] the uplink that it receives and forwards them uh to the downlink. That's the only thing [03:24.240 --> 03:31.140] that the satellite is typically uh doing is in terms of uh signal uh forwarding. Now if we [03:31.140 --> 03:37.620] look at the security of uh VSAT communication systems uh we can consider uh three thread [03:37.620 --> 03:42.900] models. And the first uh thread model is basically an attacker that tries to attack the [03:42.900 --> 03:50.500] system from the internet. Um so it will attack and try to uh infiltrate from the central hub. [03:50.500 --> 03:54.480] And basically this is also what happened and what everybody was talking for the last two [03:54.480 --> 04:01.700] years. This is what happened in February uh 2022. Um and where at the same time on the same [04:01.700 --> 04:08.900] day as the Russian invaded uh the Ukraine there was an attack uh basically uh through uh this [04:08.900 --> 04:16.220] uh ground system uh ground system network to deploy bogus malicious uh firmwares to uh [04:16.220 --> 04:24.540] thousands of uh VSAT endpoints. And this this attack uh basically uh was was uh was uh [04:24.540 --> 04:31.160] basically uh rendering thousands of uh modems uh unavailable and had to be replaced or [04:31.160 --> 04:37.560] updated. Now um this attack has been presented last year and the year before at DEFCON so [04:37.560 --> 04:42.860] many people have analyzed what happened there. So there is a second thread model which [04:42.860 --> 04:50.300] basically uh looks uh at uh attacks uh against the satellite itself. Um so uh the basically [04:50.300 --> 04:56.140] the idea would be to attack the satellite directly over their air interface. So we have been [04:56.140 --> 05:01.720] doing some research the previous years on these types of attacks. For example at IEEE S&P in [05:01.720 --> 05:09.900] 2020 we showed how it is possible to intercept uh VSAT uh communication um passively with an [05:09.900 --> 05:14.420] eavesdropper. We have been also doing some some research presenting this year at aerospace [05:15.200 --> 05:22.040] uh conference about uh reconnaissance. How to basically uh discover capabilities of [05:22.040 --> 05:29.940] satellites. Or last year at IEEE S&P Johannes was also presenting a paper that shows uh how [05:29.940 --> 05:36.940] you could find the vulnerabilities in satellites and try to exploit those. And then the the [05:36.940 --> 05:41.920] focus of uh today is to look at uh the threat model of an attacker. The third threat model [05:41.920 --> 05:47.180] which basically uh attacks directly the VSAT endpoint. And this is the new thing that we are [05:47.180 --> 05:53.920] considering in this work. Basically we we uh we uh we try to understand our our [05:53.920 --> 06:00.080] feasibilities to directly uh attack uh the endpoint without going through a central hub or [06:00.080 --> 06:06.260] the satellite. So our research contribution in this work uh we have been uh reverse [06:06.260 --> 06:14.960] engineering um a VSAT modem. It's from iDirect. It's the new tech MDM 2200. That's the [06:14.960 --> 06:20.400] model we have been analyzing. And uh we have been reverse engineering the entire software [06:20.400 --> 06:27.840] stack as well as the communication protocol stack. Up uh down to the physical layer. So um we [06:27.840 --> 06:32.700] found several vulnerabilities in the software and the communication stack of the modem which [06:32.700 --> 06:38.720] allows us to implement uh three over the air wireless attacks uh that use software uh [06:38.720 --> 06:45.900] defined radios. And these attacks allow us to um remotely reset the modem to update a [06:45.900 --> 06:53.720] malicious firmware to the modem and also to obtain a remote admin shell. And finally we [06:53.720 --> 06:58.660] demonstrate the feasibility uh of these uh attacks to launch these attacks by breaking the [06:58.660 --> 07:04.740] beam. And what do we mean by breaking the beam? Basically uh the idea is that we inject [07:04.740 --> 07:11.660] signals uh from not directly uh from from the satellite but from from uh a side beam from [07:11.660 --> 07:17.660] uh an attacker that is on earth that is close to the satellite. Typically what people have [07:17.660 --> 07:22.060] the conventional wisdom what people have assumed is that satellites communica- VSAT [07:22.060 --> 07:27.080] colla- satellite communication is quite robust against uh signal injection attacks from [07:27.080 --> 07:38.780] the side because you have typically a high directional beam towards the- sorry for that. [07:41.430 --> 07:50.130] Okay? Am I connected? Yeah. Okay. So the idea yeah the the idea the what people assume this [07:50.130 --> 07:55.370] is basically since the the the dish has a very high dire- directionality uh basically it [07:55.370 --> 08:01.330] would be difficult to inject uh signals uh from the side. And what we show basically in [08:01.330 --> 08:06.730] our research is actually it's possible from the from a side beam to inject these signals [08:06.730 --> 08:13.350] these attacks uh from from the earth. So with that uh I want to give the word to Johannes [08:13.350 --> 08:20.010] who will present uh his uh research or his work on reverse engineering the the modem we've [08:20.010 --> 08:28.250] been looking at. Alright thank you. So um so far we've basically heard what kind of setup [08:28.250 --> 08:32.210] we need to actually attack these modems. And as already introduced we are attacking the [08:32.210 --> 08:37.410] NewTek modem MDM2200. And we also looked at a different modem called from Viasat. [08:37.410 --> 08:41.210] Exactly the one attacked in Ukraine. Not in this talk but in the research paper this is all [08:41.210 --> 08:46.990] based on. Um but we picked this this iDirect modem or also new uh iDirect and uh it's it's [08:46.990 --> 08:51.850] kind of interchangeably since iDirect acquired NewTek some while ago. Um so iDirect owns [08:51.850 --> 08:56.510] all of these products at this point. And uh they're pretty good case studies since they [08:56.510 --> 09:00.350] themselves today are own uh according to their website rank themselves first maritime [09:00.350 --> 09:04.470] communications and uh aerospace communications or rather and they're basically [09:04.470 --> 09:10.030] commercial planes uh having Vsat systems and also in media and and network broadcasting. [09:10.030 --> 09:14.270] Um so while it's it's pretty clear that this specific system that we are looking at here is [09:14.270 --> 09:18.750] not deployed on all of these. This I want to be very clear these vulnerabilities these [09:18.750 --> 09:23.610] vulnerabilities are not quite um you can't go out and basically pawn every airplane with it. [09:23.610 --> 09:30.330] This definitely won't work. It's a different system from the same company. So um so far [09:30.350 --> 09:34.470] basically we have this Vsat endpoint and it's separated into the antenna which you [09:34.470 --> 09:39.610] basically place outdoor. Um that's why it's also called outdoor unit. Then we have this [09:39.610 --> 09:43.370] modem this this small uh little box that you place somewhere inside and that's why it's [09:43.370 --> 09:48.750] called indoor unit. Um and all of this is basically connecting your local area network [09:48.750 --> 09:54.390] where you have your PC, WiFi, etc. Um so the the really interesting part is really this [09:54.390 --> 09:58.210] modem in the middle because this one is basically receiving the traffic from the satellite [09:58.210 --> 10:02.150] antenna and it's doing signal processing on it. It's all kinds of doing it's doing all [10:02.150 --> 10:07.370] kinds of um control plane management etc. Um and there are basically 2 kinds of traffic [10:07.370 --> 10:11.270] flowing through there. Usually these attacks and these talks and these conferences focus [10:11.270 --> 10:15.890] on internet traffic going from the antenna to this local area network. But we are only [10:15.890 --> 10:20.270] and exclusively focusing on the control plane traffic. Um so this is often times [10:20.270 --> 10:24.950] separated either with a VPN or so it's in this in this specific case it's the same physical [10:24.950 --> 10:29.510] channel. Um but we are only considering the control plane basically operating these modems. [10:29.510 --> 10:34.070] It has nothing to do with the actual LAN network. And to keep uh everything that I'm going [10:34.070 --> 10:38.470] to talk about um like all nice and mapped up I did a little chart so basically on the left [10:38.470 --> 10:42.870] side we have the antenna um and the right side our local area network and a big and in the [10:42.870 --> 10:49.250] middle a big uh question mark that we are slowly trying to to resolve. So first order of [10:49.250 --> 10:54.290] business as usual because it's pretty fun to open anything up. I I guess most here agree. Um [10:54.290 --> 10:58.730] it's it's you get a nice little circuit board. Very unsurprising. And if you actually look up [10:58.730 --> 11:03.250] these uh individual components you see for example demodulator which is well unsurprisingly [11:03.250 --> 11:09.110] doing demodulation. You see some digital analog converter. You see an FPGA which is doing a [11:09.110 --> 11:13.810] lot of signal processing since this is way too much to be handled by these lower end ARM [11:13.810 --> 11:18.210] processors. And then finally the microcontroller that we are going to focus on is some [11:18.210 --> 11:23.050] ARMv5T microcontroller. Um so not much progress yet. We basically just knew that there is [11:23.050 --> 11:28.870] some uh RF decoding signal processing um stuff going on that that I'm personally not going to [11:28.870 --> 11:33.470] focus on since I'm doing more on the software side. And so what do we need for this? We [11:33.470 --> 11:39.170] actually need to dump the software off of this uh modem. Um and there are plenty number of [11:39.170 --> 11:44.110] ways to do this. You could use like a bus pirate, sold off the flash chips. Um it all seems [11:44.110 --> 11:48.610] pretty involved and I'm terrible with uh any kind of hardware so I definitely keep my hands [11:48.610 --> 11:54.450] off of that. Um so instead these modems often times have uh questionable web UI when it [11:54.450 --> 11:58.910] comes to security. Um so when we basically looked for blindly basically looked for some [11:58.910 --> 12:02.950] code injection we found something. Obviously the code we only had afterwards. Um but [12:02.950 --> 12:07.170] basically this entire website is uh written as like bash scripts and uh the server is [12:07.170 --> 12:11.910] basically just a bunch of bash scripts. And uh if you basically insert the right string at [12:11.910 --> 12:15.330] the right time then you just get a proper command injection and can just open a remote [12:15.330 --> 12:20.470] shell. It's it's really that simple. Um and if you do this then you have a nice mode and [12:20.470 --> 12:23.990] then you have a nice console access to the actual modem which is even more useful than [12:23.990 --> 12:28.990] using a bus pirate since now we can actually run commands on the modem. Alright let let's [12:28.990 --> 12:33.990] actually do this. Let's figure out how all of this is working. So in this specific case um we [12:33.990 --> 12:37.890] when we see the network interface we see some pretty regular stuff. ETH0 pretty clear what [12:37.890 --> 12:42.890] that is. We see some TUN network device which are usually for VPNs. And one device that is [12:42.890 --> 12:49.390] not very common called modem. So where is this coming from? Um so usually some these network [12:49.390 --> 12:53.890] devices come from a specific kernel and in this case there are in fact a few kernel objects [12:53.890 --> 12:57.990] that are shipped with this operating system. So we have something for DVB um which is [12:57.990 --> 13:01.850] basically the protocol or the underlying protocol of all of the satellite communication. So [13:01.850 --> 13:05.630] there's a pretty good hint. Something with new tech hardware abstraction layer also pretty [13:05.630 --> 13:10.450] good hint. So we search a little bit around in these kernel objects and uh yeah we found [13:10.450 --> 13:14.790] exactly the code we were looking for. It's allocating some net device called modem um [13:14.790 --> 13:19.230] perfect. We can also look in JITRA into what kind of functions it's exposing. Definitely [13:19.230 --> 13:23.170] some sending function. Not quite a receive function um but it's definitely working in [13:23.170 --> 13:27.830] some way. But interestingly when we kind of grab through the list of functions and search [13:27.830 --> 13:33.790] for common terms on um cryptography like encrypting, decrypting, key, exchange, etc. We [13:33.790 --> 13:37.950] didn't find anything um which is which doesn't mean that there is no encryption but it's at [13:37.950 --> 13:43.570] least some kind of a hint. Um so to update our system map we have these drivers exposing this [13:43.570 --> 13:47.410] modem which doesn't seem to have any crypto. Um also when we went through the code pass a [13:47.410 --> 13:51.330] little bit we couldn't find anything so we at this point we're just assuming that there's no [13:51.330 --> 13:55.850] basically data link layer protection here. Um and then the next question is basically what [13:55.850 --> 14:00.090] kind of applications are listening there. So this modem interface is basically exposing [14:00.090 --> 14:04.970] network traffic um easy to consume on a Linux device and you can just do accept, listen, [14:04.970 --> 14:09.050] receive, blah blah, the usual kind of setup. And then there is for example an application [14:09.050 --> 14:14.190] called TC Net Clients which is some third party software called from Teletech. Um so they [14:14.190 --> 14:18.310] basically um ensure that the internet traffic is actually running. But for the control plane [14:18.310 --> 14:22.010] that I'm talking about we are caring really only about this modem controller and SW [14:22.010 --> 14:27.110] download. So two software packets or two two software applications running on the modem. The [14:27.110 --> 14:31.010] first one we are going to focus on is modem controller and it kind of does exactly what the [14:31.010 --> 14:36.230] name says. It controls um configuration on the modem. Um and when you basically look into [14:36.230 --> 14:41.370] the um initialization routine um we've kind of found what we are looking for. There is at [14:41.370 --> 14:45.810] least some crypto so that that seems pretty good at a first glance. So we have some modem [14:45.810 --> 14:50.570] crypt in it. We can see that it's reading some modem database and we can also see that it's [14:50.570 --> 14:54.610] uh using some private key pushing it somewhere. Okay so there seems to be something going [14:54.610 --> 15:00.350] on with crypto but I I won't bore you with code all all the time. Um so basically it it's [15:00.350 --> 15:04.470] receiving a terminal private key. The terminal private key is exchanged when you first turn [15:04.470 --> 15:08.330] on this modem after you receive it from your satellite service provider. So it's exchanging [15:08.330 --> 15:12.950] this thing and then storing it kind of permanently on your device. And then whenever you boot [15:12.950 --> 15:18.390] it up um it's loading this key and it's using this key as a key encryption key. What does a key [15:18.390 --> 15:23.130] encryption key do? It encrypts keys. Um and basically when you start up the modem you [15:23.130 --> 15:27.730] receive two messages. One session key message and one network configuration message. Both [15:27.730 --> 15:31.970] of them control the key that is actually used to encrypt this specific traffic and the [15:31.970 --> 15:36.770] terminal private key is encoding both of these. And it works in a way that basically we have [15:36.770 --> 15:41.050] the hub and the hub is sending a packet to the actual modem controller. Um in some hub [15:41.050 --> 15:45.950] terminal envelope which is some Google protobuf protocol. Um and when we're looking at the [15:45.950 --> 15:50.970] code first line basically parses this protobuf into some predefined data structure um and [15:50.970 --> 15:54.070] then it's doing some interesting stuff. So first it's basically looking for some [15:54.070 --> 15:58.710] encryption flag. If it's not set it's basically discarding the packet. If it's set it's going [15:58.710 --> 16:04.490] on. Um it's checking it's a counter of the packet defined in this network packet zero. Then [16:04.490 --> 16:09.130] it's pretty interesting we define or we just assign the buffer to the message string. If it's [16:09.130 --> 16:15.230] not zero then we actually decrypt it. So at least from this function if we set it to zero we [16:15.230 --> 16:21.270] can just skip the decryption which is useful since we don't know the key. Um but there's [16:21.270 --> 16:25.950] definitely something more to it since if you just have counter zero it might just be some key [16:25.950 --> 16:30.950] exchange protocol in the very beginning. Um so there might be some receive counter [16:30.950 --> 16:35.510] matching going on and this is exactly what we found. So basically there's encryption [16:35.510 --> 16:39.890] manager and it has a receive counter match functionality and it takes the encryption [16:39.890 --> 16:44.590] manager and a packet counter and compares is it the actual expected uh counter. So if the [16:44.590 --> 16:50.290] previous one is 68 uh it expects the next one to be 69. That that sounds pretty nice. It [16:50.290 --> 16:55.650] sounds exactly like what we are looking for and if we have to if the match is false it's doing a [16:55.650 --> 17:00.850] second check which checks if the counter is unequal to zero. And only then it's discarding [17:00.850 --> 17:06.050] the message. But interesting part is if the counter is zero then it's not discarding the [17:06.050 --> 17:10.750] message. So basically this kind of exactly the thing that it's trying to prevent it's not [17:10.750 --> 17:14.730] preventing. Um I guess there's some coding error. They probably meant to use some other [17:14.730 --> 17:18.510] counter. Probably the reference counter from the modem and not the one from the packet. Um [17:18.510 --> 17:23.190] but yeah this basically allows us to kind of bypass the entire encryption of this um modem [17:23.190 --> 17:28.990] controller which is maybe not quite as it was intended. Or maybe it was. Alright. Second [17:28.990 --> 17:32.970] part is this SW download application. Software updates are always fun from a security [17:32.970 --> 17:37.790] perspective so let's take a look at that. So we have the hub. And the hub is basically [17:37.790 --> 17:42.170] sending out update signal packets. Uh around once a second or ten times a second depending [17:42.170 --> 17:46.110] on the configuration. And these update signal packets basically tell you hey there's [17:46.110 --> 17:50.870] currently this software version available for this hardware revision on this port so if you [17:50.870 --> 17:55.630] want to get it just listen to me. And then SW download decides this sounds interesting. I [17:55.630 --> 17:59.810] want to receive these packets. And it's just subscribing to the correct multicast on the [17:59.810 --> 18:04.490] correct port and gets the current software version. Interestingly there's no crypto on [18:04.490 --> 18:08.510] that. That's just UDP packets and anybody can just go to any modem and essentially just [18:08.510 --> 18:13.810] broadcast their own software update. Um but in just in case you're too lazy to kind of build [18:13.810 --> 18:18.410] your own uh Linux operating system and interface with the FPGA and everything it gets easier [18:18.410 --> 18:24.890] and worse from a security perspective. So this also is a vulnerability if uh missing [18:24.890 --> 18:28.810] encryption authentication is not enough. Um basically this is one of these update signaling [18:28.810 --> 18:34.770] packets. It's basically saying okay some new image ID then it says octet for whatever reason. [18:34.790 --> 18:38.230] Um and then it says okay there's a bulk size, there's a version that is associated with this [18:38.230 --> 18:42.850] specific update, there's a minimal version that you need, etc. And this octet part is pretty [18:42.850 --> 18:47.130] interesting since this is the function that is parsing this. I'm not making this up. Um so [18:47.130 --> 18:53.030] basically it has a static buffer of 80 bytes and then it's using SQNF with uh unlimited uh [18:53.030 --> 19:00.090] length string to parse this octet. Just this octet part. Um well pretty pretty easy from [19:00.090 --> 19:04.990] that part to to gain some kind of control over the PC. But it shouldn't be that simple [19:04.990 --> 19:11.610] right? There's still ASLR, something like that. Turns out they're using an ancient Linux [19:11.610 --> 19:18.350] version. Um version 2.6.35 of the kernel. And now some of you might be thinking but hey why [19:18.350 --> 19:23.110] is this guy talking about some ancient technology that nobody uh that that they found on some [19:23.110 --> 19:28.970] scrap yard. No this was freshly installed for us in 2022. So this is not something super old. [19:28.970 --> 19:33.010] This is something they newly shipped to customers. Um and also there are obviously no [19:33.010 --> 19:37.630] secondary's because if you have Linux 2.6.35 you probably don't bother about this part [19:37.630 --> 19:44.090] anyway. So to conclude first there's no data link protection in the in the in this modem [19:44.090 --> 19:49.070] kernel device. There is an encryption bypass on a modem controller which is the only part in [19:49.070 --> 19:54.030] the control plane actually implementing crypto. Um we can just broadcast updates as we [19:54.030 --> 19:58.330] want to this modem and if this is not enough we can also have a fully unmitigated remote [19:58.330 --> 20:03.590] code execution. Um and we kind of tested all of this on a little bit wacky way. Basically [20:03.590 --> 20:07.370] we are using the Ethernet port and reconfigured the firewall to send the packets to the to [20:07.370 --> 20:11.710] this modem network device um for for easier testing but obviously way more interesting [20:11.710 --> 20:16.870] approach is to actually do it wirelessly. And uh what does a PhD student do when he doesn't [20:16.870 --> 20:21.870] want to figure out all of the uh wireless parts? Find a perfect student to actually figure it [20:21.870 --> 20:31.920] out and this is uh Robin's turn now. Yeah so let's address this remaining question mark. And [20:31.920 --> 20:37.920] for this we started again by opening up this box looking at what components are built in and [20:37.920 --> 20:45.200] researching via their tech sheets and all resources we found how the hardware works. And [20:45.200 --> 20:51.980] from this we could already deduct that there are two separate signal processing pipelines. One [20:51.980 --> 21:00.440] for the transmission and one for reception. In addition we had a handy tool in the web [21:00.440 --> 21:07.060] interface, a diagnostic screen which provided us with the internal states of the modem [21:07.060 --> 21:14.120] including some states from the FPGA and this confirmed our protocol assumptions and it [21:14.120 --> 21:19.740] proved to be very helpful when implementing our attacker since we could see what packets have [21:19.740 --> 21:27.320] been parsed correctly and what isn't working yet. And finally we had the binaries thanks to [21:27.320 --> 21:35.140] Joanna's work which also proved very helpful since some of the parsing logic was implemented [21:35.140 --> 21:42.980] in the kernel modules so not on dedicated ICs and by studying that we could know what the modem [21:42.980 --> 21:51.840] expected us to transmit. With these uh three information sources it became pretty clear that [21:51.840 --> 22:00.180] the protocol used here is DVB-RCS. The DVB protocol suite comes from the TV broadcasting [22:00.840 --> 22:06.360] domain but what's more important here is the RCS which stands for Return Channel Over [22:06.360 --> 22:12.520] Satellite because we don't want to have these one way transmissions but we need a return [22:12.520 --> 22:21.360] channel for the interactive internet protocol behavior. What's best about this protocol is [22:21.360 --> 22:27.880] also that it's open and that's why there are lots of resources and specifications which are [22:27.880 --> 22:37.460] freely available. Also it's kind of a meta protocol because it leverages multiple sub protocols [22:37.840 --> 22:44.060] and defines how these sub protocols interact with each other. In this regard it's also [22:44.060 --> 22:51.340] important to mention S3P or SET3PLAY because NewTek never talks about DVB-RCS but S3PLAY [22:51.360 --> 22:58.640] which is their proprietary implementation of DVB-RCS. And since it's their own implementation [22:58.640 --> 23:04.380] and proprietary there are some uniquenesses to it. So in some instances we found that they [23:04.380 --> 23:11.160] deviated a little bit from the specification or they used some custom features to transmit [23:11.160 --> 23:21.740] some other compulsory data which is required. And now let's quickly go through these layers. [23:21.740 --> 23:28.400] At the lowest layer we have DVBS2 which is the protocol which handles all the wireless stuff. [23:28.400 --> 23:34.040] So if you're a bit familiar with these wireless protocols it has all these basic features such [23:34.040 --> 23:40.780] as pretending a preamble to synchronize transmitter and receiver. It defines what modulation [23:40.780 --> 23:49.160] schemes are supported and it also defines the error correction codes. One layer higher up we [23:49.160 --> 23:57.820] have MPEG transport streams and their task is to bundle multiple data streams into one bigger [23:57.820 --> 24:06.460] stream. And in this project we've only implemented the forward channel so I'm focusing on this [24:06.460 --> 24:13.000] forward channel from central hub to endpoints. And since we have this star topology where one [24:13.000 --> 24:18.700] central hub transmits to multiple endpoints, it's implemented as a broadcast channel [24:18.700 --> 24:24.320] that contains all these individual data streams and that's why these MPEG transport streams are so [24:24.320 --> 24:31.120] useful. They are constructed in a hierarchical way at the lowest layer or lowest level. There are [24:31.120 --> 24:38.280] elementary streams which could be audio streams or video streams or in our context data streams. [24:38.280 --> 24:45.720] These elementary streams are then bundled together to programs and transport stream can finally be [24:45.720 --> 24:53.820] made up of multiples of these programs. There's also some space for metadata or some [24:53.820 --> 24:59.380] configuration data which is used to transmit the structure of these streams but also to [24:59.380 --> 25:09.020] initialize the modem. Because when the modem starts up it starts in an empty state and awaits [25:09.020 --> 25:15.400] instruction from the central hub. It has some pre-configured values such as a [25:15.400 --> 25:22.060] frequency and a symbol rate for where to expect these initial values. And this is called the [25:22.060 --> 25:28.160] initial carrier. And with this information transmitted on this carrier it learns where to tune [25:28.160 --> 25:35.340] next to learn the configuration values for the final carrier where the data streams are [25:35.340 --> 25:42.080] finally transmitted. In our attacker implementation we simplified things quite a bit. So we [25:42.080 --> 25:47.440] didn't transmit on three separate frequencies but we used this flexibility of these transport [25:47.440 --> 25:54.520] streams to include all this information from the beginning and instruct the modem to retune [25:54.520 --> 26:00.860] over and over again but each time demultiplex a different stream from within this same [26:00.860 --> 26:08.800] transport stream. And this is like basically the high level overview of this protocol. There's [26:08.800 --> 26:14.660] only one thing left which is called multi-protocol encapsulation which is a thin wrapper [26:14.660 --> 26:21.200] around the IP packets such that they can be included in these MPEG transport streams. But from [26:21.200 --> 26:31.420] there on up it's really basic internet protocols, IP, UDP and TCP. So with this knowledge and [26:31.420 --> 26:38.180] the understanding of these protocols we attempted our attacker implementation. We chose a [26:38.180 --> 26:46.500] software-defined radio-based stack. We opted for a USRP SDR but really any other SDR could be [26:46.500 --> 26:54.380] chosen as well. And since SDRs are somewhat restricted in their output frequencies we also bought [26:54.380 --> 27:00.160] some off-the-shelf components for up-converting these frequencies into the satellite frequency [27:00.160 --> 27:08.160] bands. For this modem that's the KU and KA bands at roughly 10 to 10.7 gigahertz and [27:09.060 --> 27:19.080] up to 15 gigahertz. And this totaled in a cost of about 2,000 dollars but I'm pretty sure that it [27:19.080 --> 27:23.980] could be significantly reduced if you used a more do-it-yourself approach and didn't buy [27:23.980 --> 27:32.140] off-the-shelf components. For the software implementation we chose GNURadio, a popular [27:32.140 --> 27:38.020] framework for SDR applications and as already mentioned we only implemented the forward [27:38.020 --> 27:44.460] channel since this proved to be sufficient for our attacks. And GNURadio was also chosen [27:44.460 --> 27:51.660] since we could leverage some of the built-in components for DVB-S2 but everything on top of it we [27:51.660 --> 28:01.020] implemented ourselves in a custom module. And through this approach we started at a state where [28:01.020 --> 28:07.940] the modem wasn't connected but we iteratively improved our attacker to be able to finally [28:08.600 --> 28:15.480] transmit some initialization such that the modem picked up the signal and finally we were able to [28:15.480 --> 28:23.040] transmit some messages. Here you see a TCB dump on the modem itself and it successfully receives [28:23.040 --> 28:37.330] some Hello World packages we are transmitting. So if we briefly look again at this map, we are [28:37.330 --> 28:44.450] now capable of injecting arbitrary IP packets into the modem's protocol, into the modem's [28:44.930 --> 28:54.150] network stack. Now let's look at some attacks. The first most basic one we are talking about is a [28:54.150 --> 29:00.870] jamming attack but it is interesting in this case because it acts as a building block for more [29:00.870 --> 29:08.850] advanced attacks. Because when we jam a modem it no longer receives the required synchronization [29:08.850 --> 29:16.290] packets and configuration packets. And as a result it resets itself to the initial state and [29:16.290 --> 29:23.310] awaits new connection instructions. And this can be used by an attacker to break the [29:23.310 --> 29:29.870] connection of a running modem and then provide new initialization instructions to steer it [29:29.870 --> 29:38.610] away from the legitimate central hub to a malicious one. And once initialized we can mount [29:38.990 --> 29:45.870] a malicious firmware update attack as Johannes has explained before. This works by first [29:45.870 --> 29:54.450] transmitting a signalization packet to one of these internal binaries as W download to signal [29:54.450 --> 30:00.810] that an update is available, what version is available and on what port, on what UDP port to [30:00.810 --> 30:07.450] receive it. And if this version is higher than the currently installed version, the modem will [30:07.450 --> 30:14.130] start listening on that port and receive these messages. And once again to uh I want to [30:14.130 --> 30:19.770] emphasize that these messages are neither authenticated nor encrypted. So it's easy to [30:19.770 --> 30:26.950] exploit this. And that's what we did. We transmitted a malicious update and as you can see in the [30:26.950 --> 30:36.230] logs it correctly receives these packets it and it tries to install them. But we set in this [30:36.230 --> 30:43.190] case an invalid Jackson to prevent the modem from breaking since uh we we had we needed to use [30:43.190 --> 30:50.030] it afterwards as well. But this proves that a malicious firmware can be installed to [30:50.030 --> 31:01.310] basically do arbitrary damage also to just execute the denial of service attack. The second [31:01.310 --> 31:05.990] attack I want to talk about is a remote code execution attack where we leverage the buffer [31:05.990 --> 31:13.010] overflow vulnerability Joanne has explained. And we implemented this one with two payloads. [31:13.010 --> 31:19.370] One where we simply turn on an LED on the modem to have a visual indication. And the second [31:19.370 --> 31:29.570] one where we opened a reverse shell towards a host in the LAN. But, thank you, um but if the [31:29.570 --> 31:35.970] modem would be connected via a return channel to the central hub, such a reverse shell [31:35.990 --> 31:41.410] could also be opened to any connected host. We uh we chose a host in the LAN because we [31:41.410 --> 31:46.830] haven't initialized the return channel. Now next I want to quickly show a demo of this [31:46.830 --> 31:55.490] attack. It's this remote code execution and we uh implemented here the LED turn on uh so [31:55.490 --> 32:00.950] that the transmission LED on the modem lights lightens up. It wouldn't turn on in this case [32:00.950 --> 32:06.770] because as mentioned again, the return channel isn't initialized. So here you see our [32:06.770 --> 32:14.190] attacker uh the GNU radio implementation which starts transmitting and the op converter set [32:14.190 --> 32:21.570] up. And on the other side of the room, there's the transmitter with the web interface open. [32:21.950 --> 32:30.930] And it should pick up the signal any moment, initialize itself, and uh it should pick up the [32:30.950 --> 32:36.310] signal. And once receiving the data, the transmission LED, the second from the right [32:36.310 --> 32:54.130] lightens up. So this works. Finally, we wanted to explore the conditions under which such an [32:54.130 --> 33:02.390] attack can be successfully mounted. And for this, we transmitted from different angles, both [33:02.390 --> 33:07.790] in the horizontal plane and in the vertical plane to find out if such an attack is [33:07.790 --> 33:13.490] successful, not only from in front of the modem. Because the antenna is a directional [33:13.490 --> 33:20.090] antenna and must be directly targeted at the satellite, so it would be much more powerful if [33:20.090 --> 33:26.030] we can launch such an attack also from other angles. And we found that there is a range of [33:26.030 --> 33:31.810] angles from where such an attack can be successfully mounted, not only from directly in [33:31.810 --> 33:38.730] front of it, here shown in green. Also keep in mind that this data has been gathered in an [33:38.730 --> 33:46.670] anechoic chamber where reflections are minimized. So if this is performed in the real world, [33:46.670 --> 33:52.030] where there are roofs and walls, you have much more reflections and so the success ratio is [33:52.030 --> 34:01.110] only going up. We have also written a paper about this, where we go a bit more into the [34:01.110 --> 34:06.910] details, also about these conditions. If you're interested in that, please check it out. It's [34:06.910 --> 34:15.350] available online, or we're also next week at USENIX in Philly. And then there's one last [34:15.350 --> 34:22.210] thing. So far, we have talked about targeting one specific modem. But during our research, we [34:22.210 --> 34:30.170] found out that the modem also supports broadcast transmissions. And this allows us to target [34:30.170 --> 34:36.390] any modem of this type without any prior information about its MAC address or any other [34:36.390 --> 34:44.330] identifier. And this, as a result, allows us to target any modem that is in reach. And if you [34:44.870 --> 34:50.330] imagine an attacker that is not only capable of injecting signals directly by transmitting it to [34:50.330 --> 34:55.950] the modem, but also in the uplink by first transmitting to the satellite, it would be [34:55.950 --> 35:02.690] capable of not targeting only one modem, but all modems within an entire satellite beam, which [35:02.690 --> 35:14.410] is an entire region. All right, so what is the real world impact of all of this? Basically, the [35:14.410 --> 35:19.970] setup that we bought is around $2,000 of where the upconverter to converting from whatever 6 [35:19.970 --> 35:26.770] gigahertz SDR can do to KU band is the biggest part. So if you happen to have one of those [35:26.770 --> 35:31.370] around, it's probably a lot cheaper for you and usually, uh, you would also have an SDR. Um, so [35:31.370 --> 35:36.310] then it's probably pretty, uh, easy to pull off. Um, so these attacks should generally work [35:36.310 --> 35:42.150] on all the modems that use SAT3 play, not just MDM2200. But there are also plenty, long list [35:42.150 --> 35:48.990] of other of these protocols, not just SAT3 play. Um, ultimately, we assume that the market [35:48.990 --> 35:53.390] share of these modems is 10 to 20 percent out of a few million deployed. I know this is not a [35:53.390 --> 35:59.030] precise number, but it's pretty hard finding these kinds of numbers here. Um, one important part [35:59.030 --> 36:03.830] that, uh, we skipped so far is the responsible disclosure process. Um, so obviously NewTek [36:03.830 --> 36:09.170] doesn't exist anymore and, um, iDirect took over their product. So we messaged iDirect. Um, we [36:09.170 --> 36:13.890] first sent the first emails to kind of all public email addresses two years ago and then a few [36:13.890 --> 36:19.430] weeks afterwards again. Um, in November 2023, we sent out another wave of emails, including [36:19.430 --> 36:24.450] to high-ranking officials at the company that we found, for example, through LinkedIn, etc. Um, and [36:24.450 --> 36:29.510] ultimately we disclosed and escalated vulnerabilities to the Swiss National Cyber Security [36:29.510 --> 36:34.570] Center and CSC. Um, after that, and iDirect asked for a reproducer script for these [36:34.570 --> 36:39.270] vulnerabilities. Um, and we are now in the process of allocating CVEs for these [36:39.270 --> 36:44.410] vulnerabilities. So, what are kind of, some kind of mitigations? Obviously, that's a [36:44.410 --> 36:49.090] pretty broad question here since, um, the main problem is that we are lacking security from [36:49.090 --> 36:53.850] the foundation in a lot of parts. Um, so obviously something like physical layer or data link [36:53.850 --> 36:58.570] layer security, uh, for example, for Mac layer encryption, um, as we have seen on other modems [36:58.570 --> 37:02.370] would be an option. Um, source authentication through, for example, the protocols actually [37:02.370 --> 37:06.850] validating that not some, uh, random network DEF CON guy is actually just sending the [37:06.850 --> 37:12.610] software update, um, or on a network layer, maybe IPSec or some other VPN solutions. Also, [37:12.610 --> 37:18.290] um, maybe not using, uh, Linux kernel version 2.6.35 on something that is shipped, uh, these [37:18.290 --> 37:23.430] days is maybe also, uh, an option. Um, but yeah, it's, it's a pretty big, uh, pretty broad [37:23.430 --> 37:26.750] topic and obviously the, the, the solution to this specific, for example, remote code [37:26.750 --> 37:32.130] execution should also be pretty clear. And with that, essentially we showed, uh, the reverse [37:32.130 --> 37:36.890] engineering of one of, uh, of one probably broadly used VSAT system. We identified [37:36.890 --> 37:40.870] numerous attack vectors and vulnerabilities. We also built a full end-to-end wireless [37:40.870 --> 37:46.210] attack where we really can just take an SDR and pawn a, a working modem. Um, we [37:46.210 --> 37:51.250] successfully performed signal injection attack that way. Um, and we are as certain as we can be [37:51.250 --> 37:56.030] without actually testing it, which is obviously not quite feasible. Um, that this would work on a [37:56.030 --> 38:10.650] satellite, ultimately breaking the beam. And we do have some time left. So, um, if you have any [38:10.650 --> 38:16.530] questions, feel free to come to one of the microphones in the front. Otherwise, um, talk to us, [38:16.530 --> 38:30.860] uh, in the, in a few minutes or so in the back. So I actually do have several questions. Uh, one [38:30.860 --> 38:36.540] of the big things with satellite modems is that they have legendary latency. I think that would be [38:36.540 --> 38:44.120] the kindest way to put it. Um, a lot of the problems with security, um, applications in [38:44.120 --> 38:49.740] satellite environments is because you have very specific timeouts, right? But a lot of these [38:49.740 --> 38:56.960] things are going like 20,000 miles round trip in order to even finish a TCP connection. So why IP [38:56.960 --> 39:01.320] sec, which is pretty vulnerable to those latencies, would that be a suggested in your opinion? [39:02.000 --> 39:08.360] That's an excellent question. Um, maybe just don't use IP sec. I don't think that that is maybe the [39:08.360 --> 39:13.960] quite best option. Um, other vendors use, um, VPN solutions. Quite honestly, I don't know if [39:13.960 --> 39:18.260] they're based on IP sec, so maybe IP sec is not the best option. It's some, some protocol like IP [39:18.260 --> 39:23.140] sec that implements ultimately some VPN as some, some solution generally. I think it might be TLS [39:23.140 --> 39:32.340] that they might use. That's fair. Alright. Thank you and if you have any more questions, uh, let [39:32.340 --> 39:34.580] us know off, uh, off stage.