1 00:00:01,640 --> 00:00:14,980 Hello everyone and welcome to our presentation on breaking the beam, a new type of attack that aims at exploiting VSAT satellite communication from the earth. 2 00:00:15,100 --> 00:00:17,380 But first let me introduce ourselves. 3 00:00:17,380 --> 00:00:23,500 I'm Vincent, I'm a cyber security researcher for more than 20 years. 4 00:00:23,500 --> 00:00:33,660 I've been focusing mostly on the security of wireless networks in my research and currently I'm acting as the director of the cyber defense campus in Switzerland. 5 00:00:33,840 --> 00:00:46,380 We have also with us today Johannes, he's a PhD student from the Ruhr University of Bochum in Germany and he's researching the software security of space and satellite systems. 6 00:00:46,480 --> 00:00:56,880 And also with us today is Robin, he's a graduate student from ETH Zurich and has been also working at the cyber defense campus in the context of his master thesis. 7 00:00:58,140 --> 00:01:02,680 So let me start with what VSAT communication is. 8 00:01:02,680 --> 00:01:06,760 VSAT stands for Very Small Aperture Terminal. 9 00:01:06,760 --> 00:01:17,320 This is a special type of um satellite communication um that uh communicates uh over uh geo stationary satellites. 10 00:01:17,320 --> 00:01:24,100 You you can see here um on the picture on the left a maritime VSAT communication system. 11 00:01:25,820 --> 00:01:32,660 Um a maritime VSAT can you please switch off the the music? 12 00:01:32,660 --> 00:01:33,380 Thanks. 13 00:01:33,380 --> 00:01:48,420 We have a maritime VSAT communication system that is equipped on a ship or on the right we have a terrestrial uh VSAT uh system that is typically uh used for um terrestrial uh applications. 14 00:01:48,420 --> 00:02:00,660 These VSAT communication systems they typically provide data uh video or voice communication services um and uh they are not so small as the name stands. 15 00:02:00,660 --> 00:02:05,980 Uh these antenna dishes can be typically the size of a one meter or two meters. 16 00:02:07,220 --> 00:02:17,740 Um okay the um if we look at uh a system a VSAT communication system it basically consists of uh three components. 17 00:02:17,740 --> 00:02:19,060 We have a central hub. 18 00:02:19,060 --> 00:02:22,860 The central hub is typically connected to the internet. 19 00:02:23,360 --> 00:02:39,420 And uh we have a satellite geo stationary geo stationary satellite that's a satellite that is in the orbit such that it um rotates at the same uh speed uh around the earth at the uh as the earth is rotating uh around its own axis. 20 00:02:39,420 --> 00:02:45,540 So the satellite stays always at the same uh location uh compared to the earth. 21 00:02:45,760 --> 00:02:54,980 And then we have a VSAT endpoint that's a dish with a modem where users can connect their mobile device or smart phone, laptops, whatever. 22 00:02:55,480 --> 00:03:06,200 If we look at the communication it's a bidirectional communication so we have a forward channel uh from the central hub that goes over the satellite to the VSAT endpoint. 23 00:03:06,340 --> 00:03:13,880 Um and we have a return channel that goes from the VSAT endpoint back over the satellite uh to the central hub. 24 00:03:13,880 --> 00:03:16,180 The satellite is really uh very dumb. 25 00:03:16,180 --> 00:03:23,500 It's typically a bent pipe so it just takes the signals from the uplink that it receives and forwards them uh to the downlink. 26 00:03:23,500 --> 00:03:29,300 That's the only thing that the satellite is typically uh doing is in terms of uh signal uh forwarding. 27 00:03:30,100 --> 00:03:38,380 Now if we look at the security of uh VSAT communication systems uh we can consider uh three thread models. 28 00:03:38,380 --> 00:03:44,480 And the first uh thread model is basically an attacker that tries to attack the system from the internet. 29 00:03:44,740 --> 00:03:50,500 Um so it will attack and try to uh infiltrate from the central hub. 30 00:03:50,500 --> 00:03:54,840 And basically this is also what happened and what everybody was talking for the last two years. 31 00:03:54,840 --> 00:03:58,340 This is what happened in February uh 2022. 32 00:03:58,920 --> 00:04:19,340 Um and where at the same time on the same day as the Russian invaded uh the Ukraine there was an attack uh basically uh through uh this uh ground system uh ground system network to deploy bogus malicious uh firmwares to uh thousands of uh VSAT endpoints. 33 00:04:19,340 --> 00:04:32,140 And this this attack uh basically uh was was uh was uh basically uh rendering thousands of uh modems uh unavailable and had to be replaced or updated. 34 00:04:32,820 --> 00:04:39,960 Now um this attack has been presented last year and the year before at DEFCON so many people have analyzed what happened there. 35 00:04:40,300 --> 00:04:48,360 So there is a second thread model which basically uh looks uh at uh attacks uh against the satellite itself. 36 00:04:48,500 --> 00:04:54,980 Um so uh the basically the idea would be to attack the satellite directly over their air interface. 37 00:04:55,480 --> 00:04:59,800 So we have been doing some research the previous years on these types of attacks. 38 00:04:59,800 --> 00:05:10,740 For example at IEEE S&P in 2020 we showed how it is possible to intercept uh VSAT uh communication um passively with an eavesdropper. 39 00:05:10,740 --> 00:05:18,920 We have been also doing some some research presenting this year at aerospace uh conference about uh reconnaissance. 40 00:05:18,920 --> 00:05:23,020 How to basically uh discover capabilities of satellites. 41 00:05:23,020 --> 00:05:34,480 Or last year at IEEE S&P Johannes was also presenting a paper that shows uh how you could find the vulnerabilities in satellites and try to exploit those. 42 00:05:35,420 --> 00:05:41,040 And then the the focus of uh today is to look at uh the threat model of an attacker. 43 00:05:41,040 --> 00:05:45,720 The third threat model which basically uh attacks directly the VSAT endpoint. 44 00:05:45,720 --> 00:05:48,900 And this is the new thing that we are considering in this work. 45 00:05:48,900 --> 00:06:01,340 Basically we we uh we uh we try to understand our our feasibilities to directly uh attack uh the endpoint without going through a central hub or the satellite. 46 00:06:01,600 --> 00:06:09,360 So our research contribution in this work uh we have been uh reverse engineering um a VSAT modem. 47 00:06:09,360 --> 00:06:10,640 It's from iDirect. 48 00:06:10,640 --> 00:06:14,500 It's the new tech MDM 2200. 49 00:06:14,500 --> 00:06:16,660 That's the model we have been analyzing. 50 00:06:16,860 --> 00:06:23,600 And uh we have been reverse engineering the entire software stack as well as the communication protocol stack. 51 00:06:23,620 --> 00:06:26,420 Up uh down to the physical layer. 52 00:06:26,480 --> 00:06:40,140 So um we found several vulnerabilities in the software and the communication stack of the modem which allows us to implement uh three over the air wireless attacks uh that use software uh defined radios. 53 00:06:40,140 --> 00:06:51,320 And these attacks allow us to um remotely reset the modem to update a malicious firmware to the modem and also to obtain a remote admin shell. 54 00:06:51,520 --> 00:06:59,060 And finally we demonstrate the feasibility uh of these uh attacks to launch these attacks by breaking the beam . 55 00:06:59,060 --> 00:07:01,540 And what do we mean by breaking the beam? 56 00:07:01,540 --> 00:07:16,220 Basically uh the idea is that we inject signals uh from not directly uh from from the satellite but from from uh a side beam from uh an attacker that is on earth that is close to the satellite. 57 00:07:16,340 --> 00:07:33,100 Typically what people have the conventional wisdom what people have assumed is that satellites communica- VSAT colla- satellite communication is quite robust against uh signal injection attacks from the side because you have typically a high directional beam towards the- 58 00:07:37,160 --> 00:07:38,780 sorry for that. 59 00:07:41,430 --> 00:07:42,210 Okay? 60 00:07:42,210 --> 00:07:42,890 Am I connected? 61 00:07:42,890 --> 00:07:43,590 Yeah. 62 00:07:43,970 --> 00:07:44,890 Okay. 63 00:07:44,950 --> 00:07:59,450 So the idea yeah the the idea the what people assume this is basically since the the the dish has a very high dire- directionality uh basically it would be difficult to inject uh signals uh from the side. 64 00:07:59,450 --> 00:08:09,450 And what we show basically in our research is actually it's possible from the from a side beam to inject these signals these attacks uh from from the earth. 65 00:08:10,230 --> 00:08:21,170 So with that uh I want to give the word to Johannes who will present uh his uh research or his work on reverse engineering the the modem we've been looking at. 66 00:08:22,950 --> 00:08:24,570 Alright thank you. 67 00:08:24,570 --> 00:08:30,010 So um so far we've basically heard what kind of setup we need to actually attack these modems. 68 00:08:30,010 --> 00:08:34,350 And as already introduced we are attacking the NewTek modem MDM2200. 69 00:08:34,350 --> 00:08:37,410 And we also looked at a different modem called from Viasat. 70 00:08:37,410 --> 00:08:38,930 Exactly the one attacked in Ukraine. 71 00:08:38,930 --> 00:08:42,210 Not in this talk but in the research paper this is all based on. 72 00:08:42,330 --> 00:08:50,330 Um but we picked this this iDirect modem or also new uh iDirect and uh it's it's kind of interchangeably since iDirect acquired NewTek some while ago. 73 00:08:50,330 --> 00:08:53,670 Um so iDirect owns all of these products at this point. 74 00:08:53,730 --> 00:09:10,030 And uh they're pretty good case studies since they themselves today are own uh according to their website rank themselves first maritime communications and uh aerospace communications or rather and they're basically commercial planes uh having Vsat systems and also in media and and network broadcasting. 75 00:09:10,030 --> 00:09:15,590 Um so while it's it's pretty clear that this specific system that we are looking at here is not deployed on all of these. 76 00:09:15,590 --> 00:09:23,610 This I want to be very clear these vulnerabilities these vulnerabilities are not quite um you can't go out and basically pawn every airplane with it. 77 00:09:23,610 --> 00:09:24,610 This definitely won't work. 78 00:09:24,610 --> 00:09:26,930 It's a different system from the same company. 79 00:09:27,930 --> 00:09:36,210 So um so far basically we have this Vsat endpoint and it's separated into the antenna which you basically place outdoor. 80 00:09:36,250 --> 00:09:38,430 Um that's why it's also called outdoor unit. 81 00:09:38,530 --> 00:09:44,450 Then we have this modem this this small uh little box that you place somewhere inside and that's why it's called indoor unit. 82 00:09:44,690 --> 00:09:51,330 Um and all of this is basically connecting your local area network where you have your PC, WiFi, etc. 83 00:09:51,370 --> 00:10:00,830 Um so the the really interesting part is really this modem in the middle because this one is basically receiving the traffic from the satellite antenna and it's doing signal processing on it. 84 00:10:00,830 --> 00:10:04,630 It's all kinds of doing it's doing all kinds of um control plane management etc. 85 00:10:04,990 --> 00:10:08,230 Um and there are basically 2 kinds of traffic flowing through there. 86 00:10:08,230 --> 00:10:14,690 Usually these attacks and these talks and these conferences focus on internet traffic going from the antenna to this local area network. 87 00:10:14,690 --> 00:10:19,170 But we are only and exclusively focusing on the control plane traffic. 88 00:10:19,250 --> 00:10:25,450 Um so this is often times separated either with a VPN or so it's in this in this specific case it's the same physical channel. 89 00:10:25,450 --> 00:10:29,510 Um but we are only considering the control plane basically operating these modems. 90 00:10:29,510 --> 00:10:32,070 It has nothing to do with the actual LAN network. 91 00:10:32,210 --> 00:10:47,290 And to keep uh everything that I'm going to talk about um like all nice and mapped up I did a little chart so basically on the left side we have the antenna um and the right side our local area network and a big and in the middle a big uh question mark that we are slowly trying to to resolve. 92 00:10:47,790 --> 00:10:52,190 So first order of business as usual because it's pretty fun to open anything up. 93 00:10:52,190 --> 00:10:53,850 I I guess most here agree. 94 00:10:53,950 --> 00:10:56,390 Um it's it's you get a nice little circuit board. 95 00:10:56,390 --> 00:10:57,690 Very unsurprising. 96 00:10:57,750 --> 00:11:04,890 And if you actually look up these uh individual components you see for example demodulator which is well unsurprisingly doing demodulation. 97 00:11:04,890 --> 00:11:07,230 You see some digital analog converter. 98 00:11:07,230 --> 00:11:14,170 You see an FPGA which is doing a lot of signal processing since this is way too much to be handled by these lower end ARM processors . 99 00:11:14,170 --> 00:11:19,430 And then finally the microcontroller that we are going to focus on is some ARMv5T microcontroller. 100 00:11:19,910 --> 00:11:21,730 Um so not much progress yet. 101 00:11:21,730 --> 00:11:31,650 We basically just knew that there is some uh RF decoding signal processing um stuff going on that that I'm personally not going to focus on since I'm doing more on the software side. 102 00:11:31,770 --> 00:11:33,430 And so what do we need for this? 103 00:11:33,430 --> 00:11:36,310 We actually need to dump the software off of this uh modem. 104 00:11:36,410 --> 00:11:39,850 Um and there are plenty number of ways to do this. 105 00:11:39,850 --> 00:11:42,950 You could use like a bus pirate, sold off the flash chips. 106 00:11:42,970 --> 00:11:49,550 Um it all seems pretty involved and I'm terrible with uh any kind of hardware so I definitely keep my hands off of that. 107 00:11:49,830 --> 00:11:55,650 Um so instead these modems often times have uh questionable web UI when it comes to security. 108 00:11:55,850 --> 00:12:00,410 Um so when we basically looked for blindly basically looked for some code injection we found something. 109 00:12:00,410 --> 00:12:02,630 Obviously the code we only had afterwards. 110 00:12:02,690 --> 00:12:09,490 Um but basically this entire website is uh written as like bash scripts and uh the server is basically just a bunch of bash scripts. 111 00:12:09,530 --> 00:12:15,810 And uh if you basically insert the right string at the right time then you just get a proper command injection and can just open a remote shell. 112 00:12:15,810 --> 00:12:17,330 It's it's really that simple. 113 00:12:17,690 --> 00:12:27,870 Um and if you do this then you have a nice mode and then you have a nice console access to the actual modem which is even more useful than using a bus pirate since now we can actually run commands on the modem. 114 00:12:27,970 --> 00:12:29,650 Alright let let's actually do this. 115 00:12:29,650 --> 00:12:31,750 Let's figure out how all of this is working. 116 00:12:31,950 --> 00:12:36,690 So in this specific case um we when we see the network interface we see some pretty regular stuff. 117 00:12:36,850 --> 00:12:38,490 ETH0 pretty clear what that is. 118 00:12:38,490 --> 00:12:41,750 We see some TUN network device which are usually for VPNs. 119 00:12:41,750 --> 00:12:45,090 And one device that is not very common called modem. 120 00:12:45,550 --> 00:12:47,110 So where is this coming from? 121 00:12:47,270 --> 00:12:55,810 Um so usually some these network devices come from a specific kernel and in this case there are in fact a few kernel objects that are shipped with this operating system. 122 00:12:55,810 --> 00:13:01,750 So we have something for DVB um which is basically the protocol or the underlying protocol of all of the satellite communication. 123 00:13:01,750 --> 00:13:02,970 So there's a pretty good hint. 124 00:13:02,970 --> 00:13:06,410 Something with new tech hardware abstraction layer also pretty good hint. 125 00:13:06,410 --> 00:13:11,970 So we search a little bit around in these kernel objects and uh yeah we found exactly the code we were looking for. 126 00:13:11,970 --> 00:13:15,610 It's allocating some net device called modem um perfect. 127 00:13:15,870 --> 00:13:19,050 We can also look in JITRA into what kind of functions it's exposing. 128 00:13:19,050 --> 00:13:20,530 Definitely some sending function. 129 00:13:20,530 --> 00:13:23,970 Not quite a receive function um but it's definitely working in some way. 130 00:13:24,430 --> 00:13:33,570 But interestingly when we kind of grab through the list of functions and search for common terms on um cryptography like encrypting, decrypting, key, exchange, etc. 131 00:13:33,570 --> 00:13:39,650 We didn't find anything um which is which doesn't mean that there is no encryption but it's at least some kind of a hint. 132 00:13:40,430 --> 00:13:45,850 Um so to update our system map we have these drivers exposing this modem which doesn't seem to have any crypto. 133 00:13:45,910 --> 00:13:53,390 Um also when we went through the code pass a little bit we couldn't find anything so we at this point we're just assuming that there's no basically data link layer protection here. 134 00:13:53,590 --> 00:13:57,570 Um and then the next question is basically what kind of applications are listening there. 135 00:13:57,570 --> 00:14:07,370 So this modem interface is basically exposing network traffic um easy to consume on a Linux device and you can just do accept, listen, receive, blah blah, the usual kind of setup. 136 00:14:07,430 --> 00:14:13,750 And then there is for example an application called TC Net Clients which is some third party software called from Teletech. 137 00:14:13,870 --> 00:14:17,230 Um so they basically um ensure that the internet traffic is actually running. 138 00:14:17,230 --> 00:14:22,610 But for the control plane that I'm talking about we are caring really only about this modem controller and SW download. 139 00:14:22,610 --> 00:14:26,930 So two software packets or two two software applications running on the modem. 140 00:14:26,930 --> 00:14:31,570 The first one we are going to focus on is modem controller and it kind of does exactly what the name says. 141 00:14:31,570 --> 00:14:34,130 It controls um configuration on the modem. 142 00:14:34,570 --> 00:14:40,870 Um and when you basically look into the um initialization routine um we've kind of found what we are looking for. 143 00:14:40,870 --> 00:14:44,930 There is at least some crypto so that that seems pretty good at a first glance. 144 00:14:44,930 --> 00:14:46,550 So we have some modem crypt in it. 145 00:14:46,550 --> 00:14:53,190 We can see that it's reading some modem database and we can also see that it's uh using some private key pushing it somewhere. 146 00:14:53,190 --> 00:14:57,910 Okay so there seems to be something going on with crypto but I I won't bore you with code all all the time. 147 00:14:57,910 --> 00:15:02,130 Um so basically it it's receiving a terminal private key. 148 00:15:02,130 --> 00:15:07,630 The terminal private key is exchanged when you first turn on this modem after you receive it from your satellite service provider. 149 00:15:07,630 --> 00:15:12,110 So it's exchanging this thing and then storing it kind of permanently on your device. 150 00:15:12,110 --> 00:15:17,790 And then whenever you boot it up um it's loading this key and it's using this key as a key encryption key. 151 00:15:17,790 --> 00:15:19,510 What does a key encryption key do? 152 00:15:19,510 --> 00:15:20,950 It encrypts keys. 153 00:15:20,950 --> 00:15:24,310 Um and basically when you start up the modem you receive two messages. 154 00:15:24,310 --> 00:15:27,490 One session key message and one network configuration message. 155 00:15:27,490 --> 00:15:34,630 Both of them control the key that is actually used to encrypt this specific traffic and the terminal private key is encoding both of these. 156 00:15:35,130 --> 00:15:40,030 And it works in a way that basically we have the hub and the hub is sending a packet to the actual modem controller. 157 00:15:40,070 --> 00:15:44,410 Um in some hub terminal envelope which is some Google protobuf protocol. 158 00:15:44,590 --> 00:15:52,470 Um and when we're looking at the code first line basically parses this protobuf into some predefined data structure um and then it's doing some interesting stuff. 159 00:15:52,470 --> 00:15:54,870 So first it's basically looking for some encryption flag. 160 00:15:54,870 --> 00:15:57,370 If it's not set it's basically discarding the packet. 161 00:15:57,370 --> 00:15:59,330 If it's set it's going on. 162 00:15:59,330 --> 00:16:04,030 Um it's checking it's a counter of the packet defined in this network packet zero. 163 00:16:04,250 --> 00:16:08,730 Then it's pretty interesting we define or we just assign the buffer to the message string. 164 00:16:08,730 --> 00:16:12,030 If it's not zero then we actually decrypt it. 165 00:16:12,050 --> 00:16:19,330 So at least from this function if we set it to zero we can just skip the decryption which is useful since we don't know the key. 166 00:16:20,050 --> 00:16:28,050 Um but there's definitely something more to it since if you just have counter zero it might just be some key exchange protocol in the very beginning. 167 00:16:28,190 --> 00:16:34,110 Um so there might be some receive counter matching going on and this is exactly what we found. 168 00:16:34,290 --> 00:16:44,270 So basically there's encryption manager and it has a receive counter match functionality and it takes the encryption manager and a packet counter and compares is it the actual expected uh counter. 169 00:16:44,270 --> 00:16:48,330 So if the previous one is 68 uh it expects the next one to be 69. 170 00:16:48,970 --> 00:16:50,170 That that sounds pretty nice. 171 00:16:50,170 --> 00:16:58,750 It sounds exactly like what we are looking for and if we have to if the match is false it's doing a second check which checks if the counter is unequal to zero. 172 00:16:59,050 --> 00:17:01,430 And only then it's discarding the message. 173 00:17:01,430 --> 00:17:06,210 But interesting part is if the counter is zero then it's not discarding the message . 174 00:17:06,210 --> 00:17:11,190 So basically this kind of exactly the thing that it's trying to prevent it's not preventing . 175 00:17:11,290 --> 00:17:12,710 Um I guess there's some coding error. 176 00:17:12,710 --> 00:17:14,890 They probably meant to use some other counter . 177 00:17:14,890 --> 00:17:17,910 Probably the reference counter from the modem and not the one from the packet. 178 00:17:18,070 --> 00:17:25,670 Um but yeah this basically allows us to kind of bypass the entire encryption of this um modem controller which is maybe not quite as it was intended. 179 00:17:25,670 --> 00:17:26,670 Or maybe it was. 180 00:17:27,850 --> 00:17:28,750 Alright. 181 00:17:28,750 --> 00:17:31,230 Second part is this SW download application. 182 00:17:31,230 --> 00:17:34,890 Software updates are always fun from a security perspective so let's take a look at that. 183 00:17:35,530 --> 00:17:37,030 So we have the hub. 184 00:17:37,030 --> 00:17:39,810 And the hub is basically sending out update signal packets. 185 00:17:39,810 --> 00:17:43,310 Uh around once a second or ten times a second depending on the configuration. 186 00:17:43,310 --> 00:17:52,830 And these update signal packets basically tell you hey there's currently this software version available for this hardware revision on this port so if you want to get it just listen to me. 187 00:17:52,890 --> 00:17:55,590 And then SW download decides this sounds interesting. 188 00:17:55,590 --> 00:17:56,990 I want to receive these packets. 189 00:17:56,990 --> 00:18:02,390 And it's just subscribing to the correct multicast on the correct port and gets the current software version. 190 00:18:03,190 --> 00:18:04,790 Interestingly there's no crypto on that. 191 00:18:04,790 --> 00:18:10,430 That's just UDP packets and anybody can just go to any modem and essentially just broadcast their own software update. 192 00:18:10,830 --> 00:18:21,550 Um but in just in case you're too lazy to kind of build your own uh Linux operating system and interface with the FPGA and everything it gets easier and worse from a security perspective. 193 00:18:22,090 --> 00:18:26,490 So this also is a vulnerability if uh missing encryption authentication is not enough. 194 00:18:26,490 --> 00:18:29,830 Um basically this is one of these update signaling packets. 195 00:18:29,930 --> 00:18:34,770 It's basically saying okay some new image ID then it says octet for whatever reason. 196 00:18:34,790 --> 00:18:41,450 Um and then it says okay there's a bulk size, there's a version that is associated with this specific update, there's a minimal version that you need, etc. 197 00:18:41,690 --> 00:18:45,310 And this octet part is pretty interesting since this is the function that is parsing this. 198 00:18:45,310 --> 00:18:46,950 I'm not making this up. 199 00:18:46,950 --> 00:18:55,870 Um so basically it has a static buffer of 80 bytes and then it's using SQNF with uh unlimited uh length string to parse this octet. 200 00:18:55,870 --> 00:18:57,630 Just this octet part. 201 00:18:57,630 --> 00:19:03,570 Um well pretty pretty easy from that part to to gain some kind of control over the PC. 202 00:19:03,570 --> 00:19:05,370 But it shouldn't be that simple right? 203 00:19:05,370 --> 00:19:08,850 There's still ASLR, something like that. 204 00:19:09,550 --> 00:19:12,310 Turns out they're using an ancient Linux version. 205 00:19:12,310 --> 00:19:15,890 Um version 2.6.35 of the kernel. 206 00:19:15,890 --> 00:19:23,730 And now some of you might be thinking but hey why is this guy talking about some ancient technology that nobody uh that that they found on some scrap yard. 207 00:19:23,730 --> 00:19:26,910 No this was freshly installed for us in 2022. 208 00:19:27,050 --> 00:19:28,970 So this is not something super old. 209 00:19:28,970 --> 00:19:31,270 This is something they newly shipped to customers. 210 00:19:31,290 --> 00:19:38,310 Um and also there are obviously no secondary's because if you have Linux 2.6.35 you probably don't bother about this part anyway. 211 00:19:39,270 --> 00:19:45,430 So to conclude first there's no data link protection in the in the in this modem kernel device. 212 00:19:45,510 --> 00:19:51,330 There is an encryption bypass on a modem controller which is the only part in the control plane actually implementing crypto. 213 00:19:51,410 --> 00:19:59,470 Um we can just broadcast updates as we want to this modem and if this is not enough we can also have a fully unmitigated remote code execution. 214 00:19:59,930 --> 00:20:03,370 Um and we kind of tested all of this on a little bit wacky way. 215 00:20:03,370 --> 00:20:13,790 Basically we are using the Ethernet port and reconfigured the firewall to send the packets to the to this modem network device um for for easier testing but obviously way more interesting approach is to actually do it wirelessly. 216 00:20:13,930 --> 00:20:19,750 And uh what does a PhD student do when he doesn't want to figure out all of the uh wireless parts? 217 00:20:19,750 --> 00:20:23,950 Find a perfect student to actually figure it out and this is uh Robin's turn now. 218 00:20:26,520 --> 00:20:30,940 Yeah so let's address this remaining question mark. 219 00:20:31,520 --> 00:20:44,800 And for this we started again by opening up this box looking at what components are built in and researching via their tech sheets and all resources we found how the hardware works. 220 00:20:44,800 --> 00:20:51,460 And from this we could already deduct that there are two separate signal processing pipelines. 221 00:20:51,460 --> 00:20:55,540 One for the transmission and one for reception. 222 00:20:56,620 --> 00:21:23,160 In addition we had a handy tool in the web interface, a diagnostic screen which provided us with the internal states of the modem including some states from the FPGA and this confirmed our protocol assumptions and it proved to be very helpful when implementing our attacker since we could see what packets have been parsed correctly and what isn't working yet. 223 00:21:23,840 --> 00:21:45,380 And finally we had the binaries thanks to Joanna's work which also proved very helpful since some of the parsing logic was implemented in the kernel modules so not on dedicated ICs and by studying that we could know what the modem expected us to transmit. 224 00:21:46,400 --> 00:21:55,340 With these uh three information sources it became pretty clear that the protocol used here is DVB-RCS. 225 00:21:55,360 --> 00:22:18,320 The DVB protocol suite comes from the TV broadcasting domain but what's more important here is the RCS which stands for Return Channel Over Satellite because we don't want to have these one way transmissions but we need a return channel for the interactive internet protocol behavior. 226 00:22:19,160 --> 00:22:29,420 What's best about this protocol is also that it's open and that's why there are lots of resources and specifications which are freely available. 227 00:22:30,280 --> 00:22:41,720 Also it's kind of a meta protocol because it leverages multiple sub protocols and defines how these sub protocols interact with each other. 228 00:22:42,480 --> 00:22:56,080 In this regard it's also important to mention S3P or SET3PLAY because NewTek never talks about DVB-RCS but S3PLAY which is their proprietary implementation of DVB-RCS. 229 00:22:56,580 --> 00:23:02,580 And since it's their own implementation and proprietary there are some uniquenesses to it. 230 00:23:02,580 --> 00:23:15,300 So in some instances we found that they deviated a little bit from the specification or they used some custom features to transmit some other compulsory data which is required. 231 00:23:18,200 --> 00:23:21,740 And now let's quickly go through these layers. 232 00:23:21,740 --> 00:23:28,400 At the lowest layer we have DVBS2 which is the protocol which handles all the wireless stuff. 233 00:23:28,400 --> 00:23:39,080 So if you're a bit familiar with these wireless protocols it has all these basic features such as pretending a preamble to synchronize transmitter and receiver. 234 00:23:39,080 --> 00:23:45,880 It defines what modulation schemes are supported and it also defines the error correction codes. 235 00:23:47,300 --> 00:23:59,500 One layer higher up we have MPEG transport streams and their task is to bundle multiple data streams into one bigger stream. 236 00:23:59,680 --> 00:24:10,300 And in this project we've only implemented the forward channel so I'm focusing on this forward channel from central hub to endpoints. 237 00:24:10,300 --> 00:24:25,460 And since we have this star topology where one central hub transmits to multiple endpoints, it's implemented as a broadcast channel that contains all these individual data streams and that's why these MPEG transport streams are so useful. 238 00:24:25,480 --> 00:24:30,880 They are constructed in a hierarchical way at the lowest layer or lowest level. 239 00:24:30,880 --> 00:24:38,280 There are elementary streams which could be audio streams or video streams or in our context data streams. 240 00:24:38,280 --> 00:24:49,380 These elementary streams are then bundled together to programs and transport stream can finally be made up of multiples of these programs. 241 00:24:49,940 --> 00:25:01,540 There's also some space for metadata or some configuration data which is used to transmit the structure of these streams but also to initialize the modem. 242 00:25:03,580 --> 00:25:11,620 Because when the modem starts up it starts in an empty state and awaits instruction from the central hub. 243 00:25:11,740 --> 00:25:21,120 It has some pre-configured values such as a frequency and a symbol rate for where to expect these initial values. 244 00:25:21,120 --> 00:25:23,560 And this is called the initial carrier. 245 00:25:23,580 --> 00:25:37,100 And with this information transmitted on this carrier it learns where to tune next to learn the configuration values for the final carrier where the data streams are finally transmitted. 246 00:25:37,360 --> 00:25:41,500 In our attacker implementation we simplified things quite a bit. 247 00:25:41,500 --> 00:26:02,600 So we didn't transmit on three separate frequencies but we used this flexibility of these transport streams to include all this information from the beginning and instruct the modem to retune over and over again but each time demultiplex a different stream from within this same transport stream. 248 00:26:03,280 --> 00:26:08,460 And this is like basically the high level overview of this protocol. 249 00:26:08,460 --> 00:26:20,420 There's only one thing left which is called multi-protocol encapsulation which is a thin wrapper around the IP packets such that they can be included in these MPEG transport streams. 250 00:26:20,420 --> 00:26:26,400 But from there on up it's really basic internet protocols, IP, UDP and TCP. 251 00:26:28,080 --> 00:26:36,100 So with this knowledge and the understanding of these protocols we attempted our attacker implementation. 252 00:26:36,560 --> 00:26:40,160 We chose a software-defined radio-based stack. 253 00:26:40,160 --> 00:26:48,040 We opted for a USRP SDR but really any other SDR could be chosen as well. 254 00:26:48,380 --> 00:27:01,160 And since SDRs are somewhat restricted in their output frequencies we also bought some off-the-shelf components for up-converting these frequencies into the satellite frequency bands. 255 00:27:01,160 --> 00:27:11,800 For this modem that's the KU and KA bands at roughly 10 to 10.7 gigahertz and up to 15 gigahertz. 256 00:27:12,380 --> 00:27:25,820 And this totaled in a cost of about 2,000 dollars but I'm pretty sure that it could be significantly reduced if you used a more do-it-yourself approach and didn't buy off-the-shelf components. 257 00:27:27,540 --> 00:27:42,660 For the software implementation we chose GNURadio, a popular framework for SDR applications and as already mentioned we only implemented the forward channel since this proved to be sufficient for our attacks. 258 00:27:43,020 --> 00:27:54,880 And GNURadio was also chosen since we could leverage some of the built-in components for DVB-S2 but everything on top of it we implemented ourselves in a custom module. 259 00:27:56,900 --> 00:28:18,060 And through this approach we started at a state where the modem wasn't connected but we iteratively improved our attacker to be able to finally transmit some initialization such that the modem picked up the signal and finally we were able to transmit some messages. 260 00:28:18,060 --> 00:28:25,880 Here you see a TCB dump on the modem itself and it successfully receives some Hello World packages we are transmitting. 261 00:28:33,350 --> 00:28:46,390 So if we briefly look again at this map, we are now capable of injecting arbitrary IP packets into the modem's protocol, into the modem's network stack. 262 00:28:48,010 --> 00:28:50,650 Now let's look at some attacks. 263 00:28:50,770 --> 00:29:01,550 The first most basic one we are talking about is a jamming attack but it is interesting in this case because it acts as a building block for more advanced attacks . 264 00:29:01,610 --> 00:29:11,850 Because when we jam a modem it no longer receives the required synchronization packets and configuration packets. 265 00:29:11,850 --> 00:29:19,190 And as a result it resets itself to the initial state and awaits new connection instructions. 266 00:29:19,530 --> 00:29:34,370 And this can be used by an attacker to break the connection of a running modem and then provide new initialization instructions to steer it away from the legitimate central hub to a malicious one. 267 00:29:35,230 --> 00:29:44,590 And once initialized we can mount a malicious firmware update attack as Johannes has explained before. 268 00:29:44,590 --> 00:30:02,130 This works by first transmitting a signalization packet to one of these internal binaries as W download to signal that an update is available, what version is available and on what port, on what UDP port to receive it. 269 00:30:02,270 --> 00:30:11,590 And if this version is higher than the currently installed version, the modem will start listening on that port and receive these messages. 270 00:30:11,590 --> 00:30:18,490 And once again to uh I want to emphasize that these messages are neither authenticated nor encrypted. 271 00:30:18,490 --> 00:30:21,250 So it's easy to exploit this. 272 00:30:21,330 --> 00:30:22,750 And that's what we did. 273 00:30:22,750 --> 00:30:33,930 We transmitted a malicious update and as you can see in the logs it correctly receives these packets it and it tries to install them. 274 00:30:34,090 --> 00:30:44,490 But we set in this case an invalid Jackson to prevent the modem from breaking since uh we we had we needed to use it afterwards as well. 275 00:30:44,490 --> 00:30:57,670 But this proves that a malicious firmware can be installed to basically do arbitrary damage also to just execute the denial of service attack. 276 00:30:59,910 --> 00:31:09,470 The second attack I want to talk about is a remote code execution attack where we leverage the buffer overflow vulnerability Joanne has explained. 277 00:31:09,650 --> 00:31:13,010 And we implemented this one with two payloads. 278 00:31:13,010 --> 00:31:18,790 One where we simply turn on an LED on the modem to have a visual indication. 279 00:31:18,790 --> 00:31:23,690 And the second one where we opened a reverse shell towards a host in the LAN. 280 00:31:24,290 --> 00:31:38,790 But, thank you, um but if the modem would be connected via a return channel to the central hub, such a reverse shell could also be opened to any connected host. 281 00:31:38,790 --> 00:31:43,350 We uh we chose a host in the LAN because we haven't initialized the return channel. 282 00:31:44,410 --> 00:31:47,410 Now next I want to quickly show a demo of this attack. 283 00:31:47,410 --> 00:31:58,670 It's this remote code execution and we uh implemented here the LED turn on uh so that the transmission LED on the modem lights lightens up. 284 00:31:58,670 --> 00:32:05,030 It wouldn't turn on in this case because as mentioned again, the return channel isn't initialized. 285 00:32:05,530 --> 00:32:14,890 So here you see our attacker uh the GNU radio implementation which starts transmitting and the op converter set up. 286 00:32:14,890 --> 00:32:21,570 And on the other side of the room, there's the transmitter with the web interface open. 287 00:32:21,950 --> 00:32:30,950 And it should pick up the signal any moment, initialize itself, and uh it should pick up the signal . 288 00:32:30,950 --> 00:32:37,630 And once receiving the data, the transmission LED, the second from the right lightens up. 289 00:32:37,630 --> 00:32:39,230 So this works. 290 00:32:49,270 --> 00:32:57,730 Finally, we wanted to explore the conditions under which such an attack can be successfully mounted. 291 00:32:57,730 --> 00:33:11,510 And for this, we transmitted from different angles, both in the horizontal plane and in the vertical plane to find out if such an attack is successful, not only from in front of the modem. 292 00:33:11,510 --> 00:33:23,290 Because the antenna is a directional antenna and must be directly targeted at the satellite, so it would be much more powerful if we can launch such an attack also from other angles. 293 00:33:23,310 --> 00:33:34,850 And we found that there is a range of angles from where such an attack can be successfully mounted, not only from directly in front of it, here shown in green. 294 00:33:35,290 --> 00:33:43,310 Also keep in mind that this data has been gathered in an anechoic chamber where reflections are minimized. 295 00:33:43,310 --> 00:33:53,430 So if this is performed in the real world, where there are roofs and walls, you have much more reflections and so the success ratio is only going up. 296 00:33:55,690 --> 00:34:03,830 We have also written a paper about this, where we go a bit more into the details, also about these conditions. 297 00:34:04,010 --> 00:34:06,750 If you're interested in that, please check it out. 298 00:34:06,750 --> 00:34:11,590 It's available online, or we're also next week at USENIX in Philly. 299 00:34:13,470 --> 00:34:16,330 And then there's one last thing. 300 00:34:16,330 --> 00:34:20,650 So far, we have talked about targeting one specific modem. 301 00:34:20,650 --> 00:34:27,470 But during our research, we found out that the modem also supports broadcast transmissions. 302 00:34:27,790 --> 00:34:37,730 And this allows us to target any modem of this type without any prior information about its MAC address or any other identifier. 303 00:34:38,350 --> 00:34:43,530 And this, as a result, allows us to target any modem that is in reach. 304 00:34:43,530 --> 00:35:02,570 And if you imagine an attacker that is not only capable of injecting signals directly by transmitting it to the modem, but also in the uplink by first transmitting to the satellite, it would be capable of not targeting only one modem, but all modems within an entire satellite beam, 305 00:35:02,570 --> 00:35:04,510 which is an entire region. 306 00:35:09,770 --> 00:35:13,730 All right, so what is the real world impact of all of this? 307 00:35:13,730 --> 00:35:24,910 Basically, the setup that we bought is around $2,000 of where the upconverter to converting from whatever 6 gigahertz SDR can do to KU band is the biggest part. 308 00:35:24,910 --> 00:35:31,010 So if you happen to have one of those around, it's probably a lot cheaper for you and usually, uh, you would also have an SDR. 309 00:35:31,170 --> 00:35:33,970 Um, so then it's probably pretty, uh, easy to pull off. 310 00:35:34,350 --> 00:35:39,870 Um, so these attacks should generally work on all the modems that use SAT3 play, not just MDM2200. 311 00:35:39,870 --> 00:35:44,870 But there are also plenty, long list of other of these protocols, not just SAT3 play. 312 00:35:45,670 --> 00:35:52,590 Um, ultimately, we assume that the market share of these modems is 10 to 20 percent out of a few million deployed. 313 00:35:52,590 --> 00:35:56,810 I know this is not a precise number, but it's pretty hard finding these kinds of numbers here. 314 00:35:57,350 --> 00:36:02,170 Um, one important part that, uh, we skipped so far is the responsible disclosure process. 315 00:36:02,230 --> 00:36:07,150 Um, so obviously NewTek doesn't exist anymore and, um, iDirect took over their product. 316 00:36:07,150 --> 00:36:08,590 So we messaged iDirect. 317 00:36:08,590 --> 00:36:15,570 Um, we first sent the first emails to kind of all public email addresses two years ago and then a few weeks afterwards again. 318 00:36:15,610 --> 00:36:23,710 Um, in November 2023, we sent out another wave of emails, including to high-ranking officials at the company that we found, for example, through LinkedIn, etc. 319 00:36:23,890 --> 00:36:30,990 Um, and ultimately we disclosed and escalated vulnerabilities to the Swiss National Cyber Security Center and CSC. 320 00:36:30,990 --> 00:36:35,510 Um, after that, and iDirect asked for a reproducer script for these vulnerabilities. 321 00:36:35,750 --> 00:36:40,050 Um, and we are now in the process of allocating CVEs for these vulnerabilities. 322 00:36:40,730 --> 00:36:43,530 So, what are kind of, some kind of mitigations? 323 00:36:43,530 --> 00:36:51,710 Obviously, that's a pretty broad question here since, um, the main problem is that we are lacking security from the foundation in a lot of parts. 324 00:36:51,770 --> 00:36:59,370 Um, so obviously something like physical layer or data link layer security, uh, for example, for Mac layer encryption, um, as we have seen on other modems would be an option. 325 00:36:59,430 --> 00:37:11,650 Um, source authentication through, for example, the protocols actually validating that not some, uh, random network DEF CON guy is actually just sending the software update, um, or on a network layer, maybe IPSec or some other VPN solutions. 326 00:37:11,870 --> 00:37:21,010 Also, um, maybe not using, uh, Linux kernel version 2.6.35 on something that is shipped, uh, these days is maybe also, uh, an option. 327 00:37:21,190 --> 00:37:28,590 Um, but yeah, it's, it's a pretty big, uh, pretty broad topic and obviously the, the, the solution to this specific, for example, remote code execution should also be pretty clear. 328 00:37:29,670 --> 00:37:36,210 And with that, essentially we showed, uh, the reverse engineering of one of, uh, of one probably broadly used VSAT system. 329 00:37:36,210 --> 00:37:38,950 We identified numerous attack vectors and vulnerabilities. 330 00:37:38,950 --> 00:37:45,690 We also built a full end-to-end wireless attack where we really can just take an SDR and pawn a, a working modem. 331 00:37:45,690 --> 00:37:49,130 Um, we successfully performed signal injection attack that way. 332 00:37:49,330 --> 00:37:54,150 Um, and we are as certain as we can be without actually testing it, which is obviously not quite feasible. 333 00:37:54,150 --> 00:37:57,970 Um, that this would work on a satellite , ultimately breaking the beam. 334 00:38:07,610 --> 00:38:09,190 And we do have some time left. 335 00:38:09,190 --> 00:38:13,790 So, um, if you have any questions , feel free to come to one of the microphones in the front. 336 00:38:14,090 --> 00:38:18,650 Otherwise, um, talk to us, uh , in the, in a few minutes or so in the back. 337 00:38:28,120 --> 00:38:30,460 So I actually do have several questions. 338 00:38:30,460 --> 00:38:36,060 Uh, one of the big things with satellite modems is that they have legendary latency. 339 00:38:36,060 --> 00:38:38,920 I think that would be the kindest way to put it. 340 00:38:38,920 --> 00:38:48,940 Um, a lot of the problems with security, um, applications in satellite environments is because you have very specific timeouts, right? 341 00:38:48,940 --> 00:38:54,860 But a lot of these things are going like 20,000 miles round trip in order to even finish a TCP connection. 342 00:38:55,020 --> 00:39:01,320 So why IP sec, which is pretty vulnerable to those latencies, would that be a suggested in your opinion? 343 00:39:02,000 --> 00:39:03,540 That's an excellent question. 344 00:39:03,820 --> 00:39:06,980 Um, maybe just don't use IP sec. 345 00:39:06,980 --> 00:39:09,460 I don't think that that is maybe the quite best option. 346 00:39:09,460 --> 00:39:12,740 Um, other vendors use, um, VPN solutions. 347 00:39:12,920 --> 00:39:16,480 Quite honestly, I don't know if they're based on IP sec, so maybe IP sec is not the best option. 348 00:39:16,480 --> 00:39:22,000 It's some, some protocol like IP sec that implements ultimately some VPN as some, some solution generally. 349 00:39:22,000 --> 00:39:24,400 I think it might be TLS that they might use. 350 00:39:24,560 --> 00:39:25,500 That's fair. 351 00:39:29,540 --> 00:39:30,260 Alright. 352 00:39:30,420 --> 00:39:34,580 Thank you and if you have any more questions, uh, let us know off, uh, off stage.