1 00:00:00,000 --> 00:00:04,160 Good morning everybody. 2 00:00:04,740 --> 00:00:06,200 It's early in the morning, I know. 3 00:00:06,200 --> 00:00:09,240 Everyone has partied last night, I think. 4 00:00:09,760 --> 00:00:13,880 Today I want to talk a little bit about remote yacht hacking. 5 00:00:15,560 --> 00:00:21,700 About some attacks and some issues that I found on maritime stuff. 6 00:00:21,780 --> 00:00:25,800 And we will have some fun together, I think. 7 00:00:28,760 --> 00:00:30,820 My clicker is not working. 8 00:00:34,080 --> 00:00:35,440 Ah, here we are. 9 00:01:21,340 --> 00:01:24,220 We were shot watching the movie, I think. 10 00:01:25,200 --> 00:01:27,460 Yeah, that was 1995. 11 00:01:27,460 --> 00:01:30,640 They gave already suggestions about what could happen. 12 00:01:30,640 --> 00:01:35,040 So they hacked the balance system of a big ship there. 13 00:01:35,040 --> 00:01:37,800 And that was 1995. 14 00:01:37,800 --> 00:01:40,760 Now we have 2019. 15 00:01:42,000 --> 00:01:47,140 And we will see actually such kind of attacks more and more happen, maybe. 16 00:01:47,140 --> 00:02:00,980 What I'm talking today is a short overview about maritime 101, router and SATCOM vulnerabilities, autonomous ships and some Q&A, if we have time enough. 17 00:02:02,380 --> 00:02:04,400 Why hacking yachts? 18 00:02:05,220 --> 00:02:07,740 Maybe someone has an idea about that? 19 00:02:08,960 --> 00:02:09,840 Why not? 20 00:02:09,840 --> 00:02:11,280 That's a good answer. 21 00:02:12,280 --> 00:02:13,840 Yeah, why hacking yachts? 22 00:02:13,840 --> 00:02:18,140 They are mostly privacy owned, privately owned. 23 00:02:18,960 --> 00:02:24,680 And CEOs or people who have big money doing their job on board. 24 00:02:24,780 --> 00:02:36,740 And when you have access over the satellite internet connection or the modem over Wi-Fi or whatever, you maybe have the option to get some information that should not be outside there. 25 00:02:38,120 --> 00:02:42,560 Another one could be also celebrities on their ships. 26 00:02:42,560 --> 00:02:54,020 When you have access to the multimedia devices, all those smart TVs on board, you maybe get some pictures that some others not have. 27 00:02:54,480 --> 00:03:01,700 Yeah, that's the two things why privately owned yachts mostly are attacked. 28 00:03:02,240 --> 00:03:05,480 Yeah, several celebrities, I also said. 29 00:03:05,480 --> 00:03:12,440 And as I already mentioned, if we have access over the internet connection, we can do whatever we want. 30 00:03:13,740 --> 00:03:19,120 My name is Stefan Gerling, you can also find me on the ob1666 on Twitter. 31 00:03:19,660 --> 00:03:21,560 I'm older than the internet. 32 00:03:23,440 --> 00:03:24,740 Quite old now? 33 00:03:24,740 --> 00:03:25,840 No, not really. 34 00:03:26,580 --> 00:03:32,700 A couple of certifications I have, GCFA, CISSP, MCSE, you name it. 35 00:03:32,700 --> 00:03:38,720 I'm an electronic specialist from the past, doing now IT security stuff. 36 00:03:38,780 --> 00:03:45,660 I joined the army a couple of years and doing their navigation systems, maintenance for helicopters. 37 00:03:46,440 --> 00:03:50,920 By the way, I'm also a firefighter, volunteering firefighter since 31 years now. 38 00:03:52,740 --> 00:03:57,020 I'm working in the oil and gas industry for my employer Rosen. 39 00:03:57,020 --> 00:04:04,040 We're doing pipeline inspection, that's our main business, but also focusing now more and more on yachts. 40 00:04:04,460 --> 00:04:11,280 That's why the company certification is here on my slides, so that's another branch of our company. 41 00:04:12,200 --> 00:04:20,040 Yes, I void guarantees, I buy stuff, looking how it is working, then I open it and to see what's in there. 42 00:04:21,020 --> 00:04:25,340 And I'm volunteering, I'm the cavalry and also DEF CON. 43 00:04:25,340 --> 00:04:31,660 As you see, I'm just on duty, I just come from my shift here and now there. 44 00:04:32,600 --> 00:04:34,320 Here, how it is started. 45 00:04:35,340 --> 00:04:40,560 There were a couple of news about hacking yachts in the past. 46 00:04:40,620 --> 00:04:45,500 So, the marine had some accidents a couple of years ago, 2017. 47 00:04:45,500 --> 00:05:00,740 So, they had four accidents with their ships and also some other things that hackers owning in a yacht or cybercrime on the high sea and so on. 48 00:05:00,740 --> 00:05:04,600 So, that were some information that you find there. 49 00:05:04,600 --> 00:05:08,980 So, this is also then one of the news that was really interesting. 50 00:05:08,980 --> 00:05:17,940 So, when we looked at the schedule there, the US Navy had 2017 four accidents with their warships. 51 00:05:18,440 --> 00:05:23,740 And then you try to figure out, why the fuck they have four accidents with their ships. 52 00:05:24,040 --> 00:05:28,620 They should know about navigation very good, but it happens at that time. 53 00:05:28,620 --> 00:05:34,660 So, the rumors come up that somehow their ships were maybe hacked. 54 00:05:34,780 --> 00:05:40,640 But I've read two of those reports after that. 55 00:05:40,760 --> 00:05:45,500 It turns out that it was more or less a human error, navigation failure. 56 00:05:45,500 --> 00:05:53,660 So, people at night were not really well trained doing the navigation at night alone. 57 00:05:53,660 --> 00:05:56,800 So, it was somehow a human error. 58 00:05:56,800 --> 00:06:00,620 So, they did not follow the good guidelines for that. 59 00:06:00,680 --> 00:06:04,840 And last year also, there was a Norwegian frigate. 60 00:06:05,780 --> 00:06:12,200 So, during the military exercises in the NATO, they had also an accident with that. 61 00:06:13,280 --> 00:06:18,460 So , this was a couple of pictures from the frigate. 62 00:06:18,460 --> 00:06:27,660 So, it crashed into another vessel and you see it has now 45 degree on the side. 63 00:06:28,900 --> 00:06:38,600 When you maybe remember the pictures, this was the vessel that crashed in it, or the frigate crashed in that. 64 00:06:38,660 --> 00:06:40,540 And this picture was shown. 65 00:06:40,680 --> 00:06:45,080 If you could see here maybe, here are some scratches. 66 00:06:45,080 --> 00:06:53,600 So, the first thing that you'd maybe think about is the frigate crashed into the side here. 67 00:06:53,600 --> 00:06:59,520 But it did not fit with the things that you see here. 68 00:06:59,780 --> 00:07:04,640 So, also open source intelligence will help a little bit. 69 00:07:04,640 --> 00:07:07,640 So, I looked up on marinatraffic.com. 70 00:07:07,640 --> 00:07:11,880 There you find pictures with the same dents and scratches. 71 00:07:11,880 --> 00:07:22,240 And when you look at the date of the pictures, it turns out that the picture was taken half a year before the crash happened. 72 00:07:22,240 --> 00:07:26,640 So, the marks are not fitting together. 73 00:07:26,640 --> 00:07:32,800 So, just only a quick thing about some pictures that are shown in the news. 74 00:07:33,660 --> 00:07:35,700 Vessel, yachts and ships. 75 00:07:36,920 --> 00:07:40,160 A yacht is more or less a recreational ship. 76 00:07:40,160 --> 00:07:43,340 And the term comes from the Dutch marine. 77 00:07:43,860 --> 00:07:53,620 So, the Dutch had some very fast small vessels for hunting pirates in the shallow waters in the past. 78 00:07:54,080 --> 00:07:58,560 And yacht is a Dutch term. 79 00:07:58,560 --> 00:08:00,220 It means hunting. 80 00:08:00,480 --> 00:08:06,420 And from that the term yacht was introduced, because of small and fast vessels. 81 00:08:06,920 --> 00:08:08,920 And of course, size matters. 82 00:08:09,540 --> 00:08:11,860 Small boats are up to 7 meters. 83 00:08:12,160 --> 00:08:14,140 Yachts are already over 10 meters. 84 00:08:14,140 --> 00:08:20,040 If you have a super yacht, then you're bigger than 24 meters or 79 feet. 85 00:08:20,200 --> 00:08:25,340 It's already equipped with some kind of GSM, Wi-Fi, Internet stuff and so on. 86 00:08:25,500 --> 00:08:29,840 And mega yachts, you can say it's a swimming IoT device. 87 00:08:30,180 --> 00:08:38,000 Because you have already smart TVs, smart home equipment, ICS stuff in the propulsion units and so on. 88 00:08:39,640 --> 00:08:44,220 Just a small picture about one of the super yachts. 89 00:08:44,220 --> 00:08:49,340 So, this is a picture of a TV star from Germany and his yacht. 90 00:08:49,440 --> 00:08:52,100 But we'll see information about it later. 91 00:08:53,440 --> 00:08:55,240 So, why swimming IoT? 92 00:08:55,880 --> 00:09:00,500 Because we have so many different systems on board. 93 00:09:01,280 --> 00:09:03,020 Vessel traffic services. 94 00:09:03,020 --> 00:09:05,420 We have automatic identification system. 95 00:09:05,420 --> 00:09:07,580 We have an autopilot somehow. 96 00:09:07,580 --> 00:09:11,120 We have GPS, radar system, cameras, thermal imaging. 97 00:09:11,220 --> 00:09:14,800 We have engine control units and monitoring devices. 98 00:09:14,800 --> 00:09:18,780 We have Internet access and we have a couple of entertainment systems. 99 00:09:19,500 --> 00:09:26,480 I know for example from a 72 meter yacht, they have 50 smart TVs on board. 100 00:09:26,780 --> 00:09:27,860 50! 101 00:09:27,860 --> 00:09:32,280 And more than 150 connected devices on the network. 102 00:09:32,680 --> 00:09:37,560 Only for getting their stuff like at home. 103 00:09:39,400 --> 00:09:45,840 For the maritime stuff, most of the things are connected with an NMEA bus. 104 00:09:45,840 --> 00:09:48,580 The NMEA bus is somehow... 105 00:09:49,620 --> 00:09:53,040 In the past it was a serial bus. 106 00:09:53,240 --> 00:09:56,300 And it's called NMEA 0183. 107 00:09:56,300 --> 00:09:58,840 So, here we have one of those things. 108 00:09:59,060 --> 00:10:03,680 And in modern yachts now we have NMEA 2000. 109 00:10:03,680 --> 00:10:08,520 And NMEA 2000 is nothing less than like a CAN bus in the car. 110 00:10:08,880 --> 00:10:14,440 So, we have some terminators here, this is a CAN bus and everything is connected to the bus system. 111 00:10:14,820 --> 00:10:26,920 So, when we have connection to the bus here, like here we have a gateway that turns the signals from the CAN bus to your computer. 112 00:10:27,020 --> 00:10:31,420 Or it is directly connected then to the network and some other computers. 113 00:10:31,420 --> 00:10:34,880 So, that's how everything is connected together. 114 00:10:35,960 --> 00:10:38,900 So, the cabling is a little bit easy. 115 00:10:39,380 --> 00:10:43,500 I'm not sure if you have seen it in the exhibit on the CTF. 116 00:10:43,500 --> 00:10:46,520 There were some pictures, you can see it also there. 117 00:10:46,520 --> 00:10:56,040 But it looks like these old CAN-based T-connectors from the past where the people have dealt with the cheaper net and BNC cabling. 118 00:10:56,040 --> 00:10:58,600 So, it looks like that, but it's a little bit different. 119 00:11:00,280 --> 00:11:10,860 In the past, the Anemia 0183 from the National Marine Electronic Association, it was a serial bus with 4800 baud speed. 120 00:11:10,860 --> 00:11:20,560 Not that much, but it was much enough for echo sonars, sonars, animators, gyro compass, autopilots and GPS and some other stuff. 121 00:11:20,820 --> 00:11:22,860 Whatever you have there. 122 00:11:23,700 --> 00:11:29,800 So, the speed was not enough, so then they introduced the CAN bus part and called it Anemia 2000. 123 00:11:30,540 --> 00:11:35,900 Here we have now one megabit network bandwidth that we can use. 124 00:11:37,500 --> 00:11:45,980 It's electrically the same as the CAN bus in the automobile industry, but you have different connectors for that. 125 00:11:46,940 --> 00:11:52,840 And it's not electrically compatible with the old standard, so there you have some converters for that. 126 00:11:52,860 --> 00:11:59,800 And because the speed was not enough, then they introduced newer standards. 127 00:11:59,800 --> 00:12:05,160 Ray Marine called it, for example, SeaTorque Next Generation, that's why it's NG. 128 00:12:05,300 --> 00:12:08,900 And there is also, this one has already 10 megabit. 129 00:12:09,420 --> 00:12:14,980 And there is a SeaTorque HS, high speed HS. 130 00:12:15,680 --> 00:12:19,100 There you have already 100 megabit on speed on the bus system. 131 00:12:19,100 --> 00:12:24,880 So, when you look here at the pictures, these are most of the stuff for the navigation part. 132 00:12:25,640 --> 00:12:33,140 And some of the points that I trigger on is, here is the receiver and the sender for the autopilot system. 133 00:12:33,140 --> 00:12:35,080 Here we have the GPS receiver. 134 00:12:35,220 --> 00:12:42,940 And all those information going to the bus system and then spread it to all the devices who are interested in the information. 135 00:12:48,320 --> 00:12:53,880 So, some of the systems are used as a vessel traffic service. 136 00:12:54,480 --> 00:13:09,440 So , it's some kind of... you can say it's similar to the aircraft control system, where they... air traffic control, you can say. 137 00:13:09,440 --> 00:13:10,900 It's similar to that. 138 00:13:10,900 --> 00:13:18,840 It's used mostly in harbors, where they get the information about the system or the ship and put it in the right place. 139 00:13:18,840 --> 00:13:26,160 It's using radar, CCGV, VHF radio communication and the AIS system. 140 00:13:27,660 --> 00:13:32,080 The AIS system, it's pretty easy. 141 00:13:32,560 --> 00:13:37,180 You have it on most ships from a specific size on. 142 00:13:37,820 --> 00:13:43,500 Then it's mandatory and most of the systems are working on VHF. 143 00:13:43,800 --> 00:13:47,120 We see it later or there is also a satellite version of that. 144 00:13:49,200 --> 00:13:56,460 So, the AIS supplements in the radar system and get also the information from that. 145 00:13:56,640 --> 00:14:00,540 So, it's some kind of collision avoidance that you can look up for that. 146 00:14:01,680 --> 00:14:08,940 So, the AIS using the GPS information from the CAN bus, from the NMEA network, to be correct. 147 00:14:09,540 --> 00:14:15,400 Then we have an ACTIS, the electronic chart display and information system. 148 00:14:15,400 --> 00:14:21,640 So, this is some kind of an electronic version about your C cards. 149 00:14:21,840 --> 00:14:27,660 So, in the part you have a paper printout of the C cards, where you travel on. 150 00:14:27,660 --> 00:14:35,120 And you don't have to have it now, unless you have two different GPS devices. 151 00:14:35,120 --> 00:14:39,300 And then you can completely rely on those ACTIS on those electronic versions. 152 00:14:39,440 --> 00:14:51,840 So , the thing is then, all the information that the ACTIS get about the position, it's getting from the AIS and also from the GPS system on the NMEA bus system. 153 00:14:52,880 --> 00:14:55,680 And then we have some kind of IT equipment on board. 154 00:14:57,580 --> 00:14:59,860 Anyhow, we have to have internet access. 155 00:14:59,860 --> 00:15:07,740 So, it's done by GSM or Wi-Fi or satellite dishes, where you can access the internet on the high seat. 156 00:15:08,340 --> 00:15:11,680 And on board we have a couple of IT systems also. 157 00:15:11,680 --> 00:15:15,140 Entertainment system, voice over IP, I've seen a couple of things. 158 00:15:15,140 --> 00:15:20,960 Wi-Fi for the guests, for the crew, for the owner of the ship and so on. 159 00:15:22,360 --> 00:15:29,780 This for example is a picture of a 40 meter yacht with a 90 inch rack full of IT stuff. 160 00:15:30,440 --> 00:15:35,260 To just show it a little bit, it's an internet router where you have your access. 161 00:15:36,320 --> 00:15:39,980 Here are three servers to get all the things controlled. 162 00:15:40,260 --> 00:15:42,960 We have two voice over IP gateways there. 163 00:15:42,960 --> 00:15:47,900 And a completely full stacked network switch with 48 ports. 164 00:15:47,900 --> 00:15:51,680 And some kind of uninterrupted power supply. 165 00:15:52,920 --> 00:15:59,360 And the other things we have on board are 10 smart TVs, one chart PC, the actors. 166 00:15:59,560 --> 00:16:02,820 14 voice over IP telephones on the network. 167 00:16:03,040 --> 00:16:07,600 The internet router and four access points for Wi-Fi. 168 00:16:08,330 --> 00:16:19,960 As I mentioned in front of it, the 72 meter yacht that I've seen has 24 access points on the ship to have a full coverage over Wi-Fi. 169 00:16:19,960 --> 00:16:22,060 So, 24 already. 170 00:16:22,240 --> 00:16:24,220 Who is patching that shit? 171 00:16:24,620 --> 00:16:26,220 We will see. 172 00:16:26,540 --> 00:16:28,300 That's a big story. 173 00:16:29,640 --> 00:16:33,240 And the ships are going more and more to be smart ships. 174 00:16:33,240 --> 00:16:44,640 So, as you can see here, only a few pictures about, you control with your tablet, you can control the light, you can control the electric curtains of the ship. 175 00:16:44,700 --> 00:16:56,120 You have monitoring access or also other access to the rudder information, the RPM of the engine, the oil stand and so on. 176 00:16:56,620 --> 00:17:01,560 So, all the information you can access via your smart tablet. 177 00:17:01,560 --> 00:17:04,900 So, with your smart devices. 178 00:17:05,660 --> 00:17:12,140 And you can also access those things remotely with your mobile phone. 179 00:17:14,080 --> 00:17:18,080 So, this is then how a network on a ship looks like. 180 00:17:18,080 --> 00:17:26,180 So, I've put everything together and it looks like a network at home, in your business, in your company, however. 181 00:17:26,680 --> 00:17:30,560 So, starting at the top, we have some internet routers. 182 00:17:31,740 --> 00:17:34,500 That we maybe can access or attack. 183 00:17:35,160 --> 00:17:40,040 The next attack situation we could have is the computers on board. 184 00:17:40,040 --> 00:17:42,880 So, they are connected to the network and to the internet. 185 00:17:44,420 --> 00:17:55,140 Another attack vector could be the mobile devices of the crew, of the guests and so on, that are connected over the Wi-Fi system to the network of the ship. 186 00:17:56,200 --> 00:18:04,520 And then, when we have access maybe on the network of the ship, we have to look for the gateways that are going to the CAN bus. 187 00:18:04,520 --> 00:18:08,200 So, here it is separated by these devices. 188 00:18:08,220 --> 00:18:12,220 It could be a USB device, it could also be a standalone device. 189 00:18:12,740 --> 00:18:16,020 And then, we are now on the ship network. 190 00:18:16,380 --> 00:18:21,620 On the CAN bus of the ship, where we have access then to all other information. 191 00:18:21,620 --> 00:18:27,440 As you can see, the GPS, the engine, AIS, radar, sonar and so on and so on. 192 00:18:28,560 --> 00:18:31,420 So, this is then the bus where we can access it. 193 00:18:32,180 --> 00:18:42,160 So, the first thing we maybe can do is, we can spoof or fake the GPS information to get the ship maybe on a different course. 194 00:18:44,540 --> 00:18:49,340 By the way, there are a couple of GPS systems today online. 195 00:18:50,000 --> 00:18:51,960 We have the U.S. 196 00:18:51,960 --> 00:18:52,580 version. 197 00:18:52,580 --> 00:18:56,760 It was the first one that most of the people say, GPS is GPS. 198 00:18:57,120 --> 00:18:58,980 But GPS is the U.S. 199 00:18:58,980 --> 00:19:02,260 version of the Global Navigation Satellite System. 200 00:19:02,840 --> 00:19:07,360 The Russians are using their GLONASS system, the Europeans their GALILEO. 201 00:19:07,580 --> 00:19:13,540 It's not fully operable now and two weeks ago they had a big issue with their system. 202 00:19:13,540 --> 00:19:17,340 So, they fucked up the atomic clock synchronization. 203 00:19:17,340 --> 00:19:25,260 So, I don't know, has someone heard about that, that the GALILEO system was more than one week not working? 204 00:19:27,740 --> 00:19:28,940 What? 205 00:19:30,900 --> 00:19:33,880 No, it wasn't. 206 00:19:36,000 --> 00:19:38,340 I read a report about that. 207 00:19:38,540 --> 00:19:47,320 So, the problem was, the satellites have atomic clocks inside for correct timing. 208 00:19:47,340 --> 00:19:52,260 So, these atomic clocks are synchronized to the ground station. 209 00:19:52,500 --> 00:19:55,320 And for the GALILEO system we have two ground stations. 210 00:19:55,320 --> 00:19:57,600 One is in Germany, one is in Switzerland. 211 00:19:58,660 --> 00:20:02,440 And they are maintained by two different companies. 212 00:20:02,440 --> 00:20:06,080 So, the German one is a different company than the Switzerland one. 213 00:20:06,160 --> 00:20:14,560 So, the problem was then, the German had a normal maintenance phase where they switched off the atomic clock in Germany. 214 00:20:14,560 --> 00:20:21,100 And at the same time, in Switzerland, somehow, something happened with their system. 215 00:20:21,480 --> 00:20:26,360 So, the clock drifted a little bit away and they had to shut down their system too. 216 00:20:26,400 --> 00:20:31,480 So, both atomic clocks could not synchronize with the satellite in the air. 217 00:20:31,680 --> 00:20:40,260 And the satellite then decided, OK, I have no synchronized clock now, we switch off our operation. 218 00:20:40,260 --> 00:20:50,500 And then all the 24 satellites for the GALILEO were switched off and did not get anymore a correct position about that. 219 00:20:50,680 --> 00:20:57,420 It took them more than one week to recover all the synchronization to the system and now it is working again. 220 00:20:57,900 --> 00:21:02,340 Yeah, only a small story about that. 221 00:21:06,910 --> 00:21:13,770 When we look at the frequencies, you can see we have three bands where all the systems are working on. 222 00:21:14,250 --> 00:21:21,550 And all privately used devices for that are working on the L1 band. 223 00:21:21,550 --> 00:21:26,770 And then you have only a couple of frequencies where all of the systems are working on. 224 00:21:27,330 --> 00:21:28,890 It is not that much. 225 00:21:29,610 --> 00:21:34,230 So, the scenarios could be then, we can spoof the signal or we can jam it. 226 00:21:34,290 --> 00:21:36,330 Jamming is very easy. 227 00:21:36,850 --> 00:21:43,110 You just have to have a software-defined radio device that can transmit something. 228 00:21:43,310 --> 00:21:47,630 And then you can jam the signal or using some other stuff. 229 00:21:47,670 --> 00:21:58,430 Spoofing is a little bit difficult, but you can also do it with equipment starting about 350€, 400$ for example. 230 00:22:00,110 --> 00:22:03,190 Yeah, jamming happens quite often. 231 00:22:03,190 --> 00:22:14,490 Every time when the military is doing a military exercise, you will see somehow GPS interferences, anomalies and so on. 232 00:22:14,910 --> 00:22:21,490 Especially when the Russians are doing their exercises, they jam the GPS all the time. 233 00:22:21,490 --> 00:22:34,710 There is also a link here to a report from 2017 where more than 20 ships and some aircrafts reported anomalies in their systems. 234 00:22:36,010 --> 00:22:39,830 Yeah, for jamming it's not really... 235 00:22:39,830 --> 00:22:47,270 By the way, the US Navy is teaching again navigation with a 6th sent, so they stopped somehow teaching that. 236 00:22:47,270 --> 00:22:55,310 And after they figured out a couple of years ago that it is not maybe a good idea only to rely on GPS information. 237 00:22:55,310 --> 00:22:59,930 We should be able also to navigate in a traditional way. 238 00:22:59,930 --> 00:23:09,530 And the first Navy officers trained again on that come to Germany and get trained on the system again. 239 00:23:09,530 --> 00:23:14,130 How to navigate with a 6th sent, just to know about. 240 00:23:15,310 --> 00:23:20,610 GPS jammers you can buy online, for example at selljammers.com. 241 00:23:20,610 --> 00:23:25,850 It's starting from... yeah, these are a little bit expensive ones. 242 00:23:26,190 --> 00:23:34,010 And you can also have small USB devices for 80 bucks and also for the cigarette lighter in your car. 243 00:23:34,070 --> 00:23:47,510 So, when you maybe are thinking about someone has a GPS tracker on your car, take this cigarette lighter version and then your GPS tracker in the car is not working anymore. 244 00:23:49,910 --> 00:23:54,830 For professional testing you can have also these GNS simulators. 245 00:23:55,070 --> 00:23:56,670 They are quite expensive. 246 00:23:57,210 --> 00:24:00,230 This one is around 15.000 Euro. 247 00:24:00,310 --> 00:24:06,430 But then you can simulate all the things that a real satellite navigation system is doing. 248 00:24:06,810 --> 00:24:10,610 You can replay waypoints and so on. 249 00:24:11,370 --> 00:24:15,350 We had used one for our devices that we are using in our company. 250 00:24:15,350 --> 00:24:20,150 So, for the pipeline tracking we have also some GPS trackers that we build our own. 251 00:24:20,150 --> 00:24:23,730 And to test them we are using such kind of devices. 252 00:24:25,590 --> 00:24:27,930 But yeah, it's very expensive. 253 00:24:28,070 --> 00:24:33,130 But maybe it's a little bit easier to fake the GPS signals on the NMEA bus. 254 00:24:35,150 --> 00:24:37,490 So, then we come to the spoofing. 255 00:24:37,890 --> 00:24:41,730 So, spoofing is a little bit... it's not really difficult. 256 00:24:42,090 --> 00:24:43,650 You need only the right tools. 257 00:24:43,650 --> 00:24:46,210 For example, buy a HackRF. 258 00:24:46,350 --> 00:24:48,450 Have the right antenna in place. 259 00:24:48,930 --> 00:24:51,990 And you need some strips for that and that's it. 260 00:24:52,150 --> 00:24:54,230 Or you can also use a BladeRF. 261 00:24:54,230 --> 00:24:55,870 It's a little bit more powerful. 262 00:24:56,610 --> 00:24:58,830 And then you can gamble with that. 263 00:24:59,850 --> 00:25:01,630 Just a small advice. 264 00:25:01,910 --> 00:25:04,030 Don't mess with the GPS signals. 265 00:25:04,030 --> 00:25:06,130 You may disturb some others. 266 00:25:06,290 --> 00:25:12,090 Use a forensic bag or a Faraday cage where you can set up your lab for that. 267 00:25:14,110 --> 00:25:15,150 Yeah. 268 00:25:15,810 --> 00:25:22,830 For spoofing the signals you need a software defined radio and you need the right software for that. 269 00:25:22,830 --> 00:25:25,270 So, the software you can download on GitHub. 270 00:25:25,850 --> 00:25:32,290 It's a GPS SDR simulator and with that you can already do all what you want. 271 00:25:35,330 --> 00:25:46,830 One thing you need for that is, once you have all your equipment in place, you need to have the daily download of the constellation of the satellites in the air. 272 00:25:47,150 --> 00:25:50,790 So that you can download from the FTP site of the NASA. 273 00:25:51,650 --> 00:26:02,130 And then you have to calculate your daily file about that. 274 00:26:02,130 --> 00:26:12,130 And then with the information that you want to spoof, you put everything in place, you compile a new script for that and then you transmit it with the software defined radio devices. 275 00:26:12,130 --> 00:26:15,310 So, these are the few commands that you then need. 276 00:26:16,470 --> 00:26:20,950 As you can see, you set the frequency on the device that you need. 277 00:26:21,070 --> 00:26:23,650 You need the right sample rate and bandwidth. 278 00:26:24,390 --> 00:26:26,210 The gain for that. 279 00:26:26,210 --> 00:26:39,270 And below you can see that there is the bin file that we use with the information of the GPS signals that we want to spoof. 280 00:26:39,270 --> 00:26:45,630 And then you send the file over the device and you are done. 281 00:26:47,730 --> 00:26:49,570 Some drawbacks are there. 282 00:26:49,570 --> 00:26:53,590 You have to have the right gain of the signal. 283 00:26:53,590 --> 00:27:05,450 So, if your signal is too strong, maybe the devices are not accepting yours, because some devices are detecting, OK, there is now another signal with a higher gain. 284 00:27:05,770 --> 00:27:07,590 We ignore that. 285 00:27:08,330 --> 00:27:10,270 But somehow it works. 286 00:27:11,950 --> 00:27:19,210 Another thing, when we have access to the NMEA bus, we can maybe use different things. 287 00:27:19,210 --> 00:27:24,090 So, this is a software from ATLsoft. 288 00:27:24,090 --> 00:27:26,150 It's a GPS simulator. 289 00:27:27,170 --> 00:27:32,910 You can see it's connected to the NMEA 0183 bus. 290 00:27:33,010 --> 00:27:35,450 It's with a COM port connected. 291 00:27:35,570 --> 00:27:40,770 And then you can set your information to what latitude and longitude you want. 292 00:27:40,830 --> 00:27:48,410 And then press the start button and then it sends out the NMEA data on the bus with the fake GPS signals. 293 00:27:49,210 --> 00:28:07,910 So, if you have somehow access, for example, to the bus by renting a yacht, you maybe have them when you have enough time and access the system, you can put some fishy, spoofy devices in the ship and then can do some stuff with it later. 294 00:28:08,550 --> 00:28:09,170 Yeah. 295 00:28:09,730 --> 00:28:12,530 So now, how we can protect for that. 296 00:28:13,650 --> 00:28:17,250 This is a research project in Germany. 297 00:28:17,250 --> 00:28:21,850 They are using a 2x2 antenna device. 298 00:28:21,850 --> 00:28:23,190 So , here is the antenna. 299 00:28:23,190 --> 00:28:26,410 It's an array of about four antennas. 300 00:28:27,890 --> 00:28:31,470 And then you see the radio signal about that. 301 00:28:31,590 --> 00:28:40,310 And by the four antennas you can already calculate, OK, the signal is maybe coming from the side or it's coming from the right position from the top. 302 00:28:41,230 --> 00:28:48,950 With that, you easily can see if it is a spoof signal coming from the side or is it an original one from the top. 303 00:28:49,330 --> 00:28:57,290 And another thing that is possible with this, it can filter out the spoof signal and amplify the original one. 304 00:28:57,290 --> 00:28:59,770 So, it's still in a test phase. 305 00:29:00,770 --> 00:29:02,310 It is working. 306 00:29:02,310 --> 00:29:07,210 And I think we will see it in a couple of years as a normal device. 307 00:29:08,450 --> 00:29:12,450 And I have also found you can buy now a GPS firewall. 308 00:29:13,810 --> 00:29:16,590 Sounds a little bit like snake oil. 309 00:29:16,610 --> 00:29:17,710 I don't know. 310 00:29:18,310 --> 00:29:20,730 Yeah, it's a device that you can buy. 311 00:29:21,190 --> 00:29:33,590 Maybe it's working the same as the research project from the Germans because it's connected between the GPS antenna, the device and doing then some stuff. 312 00:29:34,070 --> 00:29:41,410 Anyhow, if I have the chance to get one of those devices to test, I will do it and put it in later. 313 00:29:41,410 --> 00:29:42,990 Have someone maybe one? 314 00:29:42,990 --> 00:29:44,310 I don't know. 315 00:29:44,310 --> 00:29:47,210 If yes, contact me, please. 316 00:29:48,690 --> 00:29:51,730 Okay, yeah, AIS system. 317 00:29:52,610 --> 00:30:03,670 AIS using the GPS information that I already mentioned and sends then over its own device, over their own system, the information back to another thing. 318 00:30:05,790 --> 00:30:11,690 Every 2 to 10 seconds they are sending messages when the ship is underway. 319 00:30:11,970 --> 00:30:23,570 For example, the status, I'm on anchor, I'm on the way, on the motor, my speed, my heading, my course over ground and so on. 320 00:30:24,070 --> 00:30:27,550 And the system is quite easy. 321 00:30:27,550 --> 00:30:33,650 It is working on VHF radio, 161 MHz and 162 MHz. 322 00:30:33,670 --> 00:30:36,830 Just two channels that you need. 323 00:30:37,050 --> 00:30:46,870 The encoding is also very easy and with those informations and with your software-defined radio, you can receive your own AIS system. 324 00:30:47,690 --> 00:30:58,690 Just use a software-defined radio device like the AKRF, download the scripts for GNU AIS and you can receive your own. 325 00:30:59,610 --> 00:31:10,110 And when you change some kind of those GNU radio stuff, then you can also transmit different systems. 326 00:31:10,110 --> 00:31:21,890 So, when you change it a little bit, you are able to transmit fake AIS information and it shows them on every other system in the world to the AIS devices. 327 00:31:23,650 --> 00:31:27,790 Another one is the autopilot I have already mentioned about. 328 00:31:27,790 --> 00:31:33,610 So, I am still in the research phase of that. 329 00:31:33,610 --> 00:31:44,790 So, in September I have access again to one of those systems and then I can record the radio signals and get more in my research for that. 330 00:31:44,870 --> 00:31:46,390 So, how it is working? 331 00:31:46,490 --> 00:31:51,390 It is a handheld radio controlled and on the right you see the receiver for that. 332 00:31:53,410 --> 00:32:04,070 In this case it was a Raymarine S100 wireless device and you can put in some new heading and speed information. 333 00:32:04,070 --> 00:32:14,250 So, you put in those information, say OK, this is my new course and speed, it sends them to the autopilot system and the ship is then following that. 334 00:32:14,330 --> 00:32:19,870 Mostly you find it on sailing yachts, but this was also on a normal motor yacht. 335 00:32:21,810 --> 00:32:24,010 How you look at that stuff? 336 00:32:24,290 --> 00:32:32,650 Every device that is transmitting radio signals must be registered at the FCC. 337 00:32:33,590 --> 00:32:36,670 And then you can also look up at the FCC ID. 338 00:32:36,670 --> 00:32:40,870 There are search options where you can figure out what it is. 339 00:32:41,390 --> 00:32:43,870 I have done it here in the picture. 340 00:32:44,190 --> 00:32:49,850 The granted code is called PG5 and it is a smart device. 341 00:32:49,870 --> 00:32:54,330 Mikko Hüppinen said once, when a device is smart you can hack it. 342 00:32:59,610 --> 00:33:08,550 When you read the documentation there, you figure out, OK, it is some kind of an autopilot system and it is working on 2.45 GHz. 343 00:33:08,630 --> 00:33:12,570 And it is not Wi-Fi, so it is somehow something else. 344 00:33:12,790 --> 00:33:15,530 And there are other information about that you can find. 345 00:33:15,530 --> 00:33:21,370 So this is then also the information that you can get on the FCC ID website, how the system is working. 346 00:33:21,890 --> 00:33:27,190 So there is some kind of a processor, a network processor and an RF transceiver. 347 00:33:27,790 --> 00:33:33,490 It is an Amiga microprocessor and they are running their own Amberstack wireless protocol on that. 348 00:33:33,790 --> 00:33:42,310 So with that information you have already everything that you needed to figure out how maybe the RF signals are looking like. 349 00:33:42,310 --> 00:33:47,490 So I think I have an update on that in October this year. 350 00:33:48,750 --> 00:33:53,330 Now we are coming on how to hack the internet connections. 351 00:33:53,610 --> 00:34:01,590 So when I started with that, I had access to the Locomarine jogger router. 352 00:34:01,950 --> 00:34:03,970 So that is a very nice device. 353 00:34:03,970 --> 00:34:05,370 It is looking like this. 354 00:34:06,090 --> 00:34:09,750 It has a Wi-Fi booster with 1.6 Watt. 355 00:34:10,990 --> 00:34:13,070 Electrical energy. 356 00:34:13,070 --> 00:34:21,550 And with the right antenna I had on the Monkey Island around 25 Watt EERP sending power. 357 00:34:21,710 --> 00:34:23,710 It is very high. 358 00:34:24,050 --> 00:34:30,090 And they claim to have Wi-Fi at least at 15 nautical miles. 359 00:34:30,470 --> 00:34:35,550 And a mobile phone should be working up to 30 nautical miles. 360 00:34:35,550 --> 00:34:41,110 I was not able to test it because I am always only on the yacht when it is in the harbor. 361 00:34:41,890 --> 00:34:43,550 Yeah, some drawbacks. 362 00:34:44,090 --> 00:34:44,870 But yeah. 363 00:34:45,910 --> 00:34:51,810 When I looked up then how the system is working, they have a nice software for that. 364 00:34:51,870 --> 00:34:57,150 You can install it on your computer, you can install it on your mobile phone, on your tablet, whatever. 365 00:34:58,210 --> 00:35:03,410 So this is then an overview about the complete things that you can do. 366 00:35:03,410 --> 00:35:09,070 So navigation, these are the different Wi-Fi systems that they have. 367 00:35:09,070 --> 00:35:13,730 Access to other systems, surveillance and so on. 368 00:35:14,890 --> 00:35:18,270 You can also access your multimedia devices. 369 00:35:18,830 --> 00:35:22,730 And this is all done over this control panel. 370 00:35:22,810 --> 00:35:27,690 So then I looked up how this software was working. 371 00:35:27,690 --> 00:35:34,070 And it figured out the software connects via FTP to the router. 372 00:35:34,890 --> 00:35:36,910 That's the first thing, so FTP. 373 00:35:36,910 --> 00:35:38,790 Okay, FTP is cleartext. 374 00:35:39,370 --> 00:35:41,950 Then it downloads an XML file. 375 00:35:42,310 --> 00:35:47,530 When you change something in the software, you change it on your tablet for example. 376 00:35:47,650 --> 00:35:53,470 Then you modify it and later on when you say save, it sends them back the XML file to the router. 377 00:35:53,470 --> 00:35:55,890 And then restart it. 378 00:35:56,030 --> 00:35:56,990 Yeah, yeah. 379 00:35:57,690 --> 00:36:00,050 As you know, FTP is cleartext. 380 00:36:01,010 --> 00:36:06,270 The first thing I thought, okay, they're using anonymous authentication, so that means nothing. 381 00:36:06,270 --> 00:36:10,990 Or they're using hard-coded credentials, which could be even worse. 382 00:36:11,430 --> 00:36:17,150 So in this case it figured out they're using hard-coded credentials. 383 00:36:17,590 --> 00:36:19,690 So the username was loco. 384 00:36:19,750 --> 00:36:21,990 Loco is the Spanish word for mad. 385 00:36:22,190 --> 00:36:26,410 And I love the password, secure connecting user. 386 00:36:26,410 --> 00:36:27,410 Wow. 387 00:36:28,250 --> 00:36:32,270 Yeah, some things of that. 388 00:36:32,390 --> 00:36:37,650 So then I downloaded again the software and looked up what it is. 389 00:36:37,650 --> 00:36:42,730 So in this case it's a .NET application. 390 00:36:43,250 --> 00:36:49,370 Then I used a tool like ILSpy, where you can reanalyze the source code about that. 391 00:36:49,370 --> 00:36:55,250 And then you find a couple of juicy information inside of the software. 392 00:36:55,250 --> 00:37:01,650 For example, one of those developers, somehow John, I don't know who is it. 393 00:37:01,650 --> 00:37:04,910 Jerry is one of the developers from the company. 394 00:37:05,790 --> 00:37:07,670 Some other information there. 395 00:37:07,670 --> 00:37:13,490 And when you find the Yotrouter engine, there you find a complete configuration about... 396 00:37:14,310 --> 00:37:27,330 Okay, username, password, IP address of the internal server, the name of the XML file, some information about the Wi-Fi, the Wi-Fi names, the passwords for the Wi-Fi and so on. 397 00:37:28,690 --> 00:37:29,930 So, okay. 398 00:37:31,070 --> 00:37:34,410 First thought, they are using it only internally. 399 00:37:34,590 --> 00:37:37,330 Let's look up how it looks like from the Internet. 400 00:37:37,850 --> 00:37:42,670 So I did an NMAP scan on the public IP address after the device is online. 401 00:37:43,290 --> 00:37:44,830 And these are then the open ports. 402 00:37:44,830 --> 00:37:45,930 So what? 403 00:37:45,930 --> 00:37:52,090 We have hard-coded credentials and the FTP port is open to the Internet. 404 00:37:52,390 --> 00:37:58,350 So you can access that device anyhow when it is online with those hard-coded credentials. 405 00:37:59,090 --> 00:38:02,270 And some other ports also. 406 00:38:02,310 --> 00:38:03,850 This one is very nice. 407 00:38:03,850 --> 00:38:04,990 We see it later. 408 00:38:06,550 --> 00:38:07,090 Yeah. 409 00:38:07,810 --> 00:38:12,150 Then another thing is in the software, they have some remote support. 410 00:38:12,350 --> 00:38:13,990 This is from the documentation. 411 00:38:16,130 --> 00:38:22,170 So when you read it, you will find out you don't have to send them an IP address. 412 00:38:22,770 --> 00:38:33,710 If you need remote support from them, you have only to say, okay, this is my serial number of my device and this is the time when you can access it. 413 00:38:33,830 --> 00:38:34,850 That's it. 414 00:38:35,090 --> 00:38:36,590 How do they know that? 415 00:38:36,830 --> 00:38:38,850 They need an IP address for that. 416 00:38:38,850 --> 00:38:44,030 So it turns out that they make a pingback to their systems. 417 00:38:44,030 --> 00:38:49,170 So this is the IP address of their devices and it's belonging to Locomarine. 418 00:38:49,170 --> 00:38:54,590 So every time when the device is online, they know your IP address when you are online. 419 00:38:54,850 --> 00:38:59,630 So for privacy reasons, it's also not so fine. 420 00:39:00,330 --> 00:39:03,390 Okay, then how can they access that? 421 00:39:03,830 --> 00:39:07,490 Okay, they know the hard-coded credentials of the FTP. 422 00:39:07,490 --> 00:39:14,810 But, it turns out, they are using then the MicroTik Winbox management software. 423 00:39:14,810 --> 00:39:20,390 So it's running on port 8291 TCP and it's a very nice software. 424 00:39:21,090 --> 00:39:27,930 With this management software, you can do much more than in the normal software of the device. 425 00:39:28,210 --> 00:39:32,490 You can also change the Wi-Fi settings and there is also... 426 00:39:34,550 --> 00:39:38,310 I'm not seeing it here now, but I have a picture here. 427 00:39:38,690 --> 00:39:40,670 You have access to the user list. 428 00:39:41,450 --> 00:39:47,150 These are the credentials that are then in turn, so the user local, we already know. 429 00:39:47,150 --> 00:39:48,870 But there is another one, Gerrit. 430 00:39:49,210 --> 00:39:53,150 So Gerrit has always access to the device when it is online. 431 00:39:53,650 --> 00:39:55,910 And he knows every time when it is online. 432 00:39:55,990 --> 00:39:59,290 So if this is a good idea, I don't know. 433 00:40:00,650 --> 00:40:04,070 After I reported it, they may change it. 434 00:40:04,070 --> 00:40:05,930 I have to look up later. 435 00:40:06,390 --> 00:40:09,130 So they promised they have a new device now online. 436 00:40:09,490 --> 00:40:13,570 And they promised to send me a new sample of that. 437 00:40:13,650 --> 00:40:15,190 I'm waiting for that. 438 00:40:16,050 --> 00:40:30,950 If you are not familiar with looking up the stuff with ILSpy decompiling software, you can also use tools like MK Brutus, where you can attack microtik router devices. 439 00:40:30,950 --> 00:40:32,850 So it does everything for you. 440 00:40:32,850 --> 00:40:35,450 For example, there is a small Python script. 441 00:40:35,950 --> 00:40:43,270 You only need the Python script and the IP addresses, and it gives you then back the username and the password for that. 442 00:40:44,090 --> 00:40:45,470 Very easy. 443 00:40:46,710 --> 00:40:49,090 I reported the things to the vendor. 444 00:40:49,230 --> 00:40:50,850 Two bugs they fixed. 445 00:40:50,850 --> 00:40:52,830 The other one took a little bit longer. 446 00:40:53,190 --> 00:40:55,690 They gave out a new software about that. 447 00:40:55,690 --> 00:40:56,910 And then they patched it. 448 00:40:56,910 --> 00:40:58,970 I received my CVE for that. 449 00:41:00,090 --> 00:41:03,310 And then I looked up the patched software that they gave. 450 00:41:03,510 --> 00:41:06,210 So they changed now FTP to SSH. 451 00:41:06,210 --> 00:41:07,770 That's already a good version. 452 00:41:08,270 --> 00:41:09,650 And then I was thinking, OK. 453 00:41:11,530 --> 00:41:15,850 And they are still using hard-coded credentials. 454 00:41:16,430 --> 00:41:19,350 The other thing that they did, obfuscation. 455 00:41:19,350 --> 00:41:23,230 They obfuscated their software so that you not easily can decode it. 456 00:41:23,230 --> 00:41:29,430 But with a little bit more time investment, it's also not that bad. 457 00:41:29,430 --> 00:41:32,230 So maybe it takes an hour longer yet. 458 00:41:33,230 --> 00:41:34,730 It's not that hard. 459 00:41:35,270 --> 00:41:39,090 This is then the normal crash of your decompiler. 460 00:41:39,410 --> 00:41:41,570 So it has some errors then. 461 00:41:42,590 --> 00:41:45,790 In that case, OK, I'd struggle at that point. 462 00:41:45,790 --> 00:41:48,750 So I downloaded the Android version of the software. 463 00:41:49,350 --> 00:41:50,950 It's also a .NET application. 464 00:41:50,950 --> 00:41:52,770 And they forget about it. 465 00:41:52,770 --> 00:41:58,170 So they obfuscated the Windows version. 466 00:41:58,170 --> 00:42:00,150 But forgot about the Android version. 467 00:42:00,150 --> 00:42:02,670 And it's still a normal version about that. 468 00:42:02,670 --> 00:42:04,450 So it's not obfuscated. 469 00:42:04,450 --> 00:42:15,770 So when you then look at the same classes for the software, the YottaRouter engine, you find there is now the same user with a new password. 470 00:42:16,150 --> 00:42:19,230 It's a complex one, yeah, but it's still hard-coded. 471 00:42:19,350 --> 00:42:22,620 And it's still accessible over SSH now. 472 00:42:24,510 --> 00:42:28,410 So that's the last point of those things. 473 00:42:29,150 --> 00:42:33,070 And I'm waiting for the new hardware of them. 474 00:42:34,330 --> 00:42:36,830 Some other information you can find there. 475 00:42:38,070 --> 00:42:39,310 CatchBackboneDataLeak. 476 00:42:39,430 --> 00:42:41,290 It's a nice class. 477 00:42:42,120 --> 00:42:43,850 It's looking fancy. 478 00:42:43,870 --> 00:42:48,150 And all the other information like IP addresses from the internal network and so on. 479 00:42:49,410 --> 00:42:51,690 Yeah, that I said already. 480 00:42:51,970 --> 00:42:54,130 SSH instead of FTP now. 481 00:42:54,330 --> 00:42:59,310 They obfuscated the DLL in the Windows version, but not in the Android. 482 00:42:59,390 --> 00:43:01,670 The iPhone version, I don't know. 483 00:43:01,670 --> 00:43:03,450 I had no way to test it. 484 00:43:04,130 --> 00:43:06,570 Still using hard-coded credentials. 485 00:43:06,570 --> 00:43:07,990 That's not good. 486 00:43:08,470 --> 00:43:14,270 And the SSH and Winbox is still reachable over the Internet when the device is online. 487 00:43:14,270 --> 00:43:17,690 So the firewall scripts are not set up that correctly. 488 00:43:18,490 --> 00:43:21,070 So coming to the last point now. 489 00:43:21,810 --> 00:43:25,470 You can have on the high sea also access over satellite. 490 00:43:25,530 --> 00:43:30,390 Because Wi-Fi coverage is very bad when you are a thousand miles away on the high sea. 491 00:43:30,570 --> 00:43:35,650 So you need how to communicate to the Internet over satellite systems. 492 00:43:35,950 --> 00:43:50,390 So while I was looking up some of those locomarine systems, I struggled a little bit on Shodan and found some other nice devices. 493 00:43:50,630 --> 00:43:53,730 So yeah, that I already said. 494 00:43:54,090 --> 00:43:57,910 You can look up in Shodan for those devices. 495 00:43:57,950 --> 00:44:02,050 These are some of the search strings where you can look for. 496 00:44:02,250 --> 00:44:10,750 These are all things that other people have already found out with vulnerabilities. 497 00:44:10,750 --> 00:44:15,450 And therefore you use the search strings here. 498 00:44:15,810 --> 00:44:23,130 And yeah, Shodan has also a ship tracker for the VSAT SATCOM devices. 499 00:44:23,270 --> 00:44:28,670 So shiptracker.shodan.io and then you can look up all the devices that are online. 500 00:44:29,450 --> 00:44:32,610 So yeah, they are using VSAT and so on. 501 00:44:33,330 --> 00:44:44,190 In my point, I was looking for those locomarine devices and I found some names that called Stabilized Digital Antenna System. 502 00:44:44,190 --> 00:44:45,870 So wow, that sounds good. 503 00:44:46,270 --> 00:44:48,330 I want to know more about that. 504 00:44:48,330 --> 00:44:57,510 So I looked up in Shodan a little bit more and then it claimed that there is a COPAM MXP web server. 505 00:44:58,450 --> 00:45:04,350 With the easy search string micro-digital web server, it gives you a better result. 506 00:45:04,350 --> 00:45:06,150 You find those devices. 507 00:45:08,350 --> 00:45:11,330 This is then how it looks like in Shodan. 508 00:45:14,450 --> 00:45:17,810 At that point there were 21 devices online. 509 00:45:18,690 --> 00:45:21,790 And this is the device that you find there. 510 00:45:23,830 --> 00:45:27,130 Then I looked up the first thing that I do. 511 00:45:27,130 --> 00:45:28,810 I show it later. 512 00:45:28,850 --> 00:45:30,930 It's more fun then. 513 00:45:31,190 --> 00:45:34,750 In general, this is how the device is working. 514 00:45:34,750 --> 00:45:38,770 You have the ICU and antenna devices on top of your ship. 515 00:45:39,310 --> 00:45:44,790 Below you have the computer and the MXP web server that's controlling those things. 516 00:45:45,890 --> 00:45:48,750 That's the point where we switch to the demo. 517 00:45:52,430 --> 00:45:54,630 The internet is still running. 518 00:45:56,110 --> 00:45:57,870 Here we have Shodan. 519 00:45:58,470 --> 00:46:03,890 I have already put in here the search string micro-digital web server I'm looking for. 520 00:46:04,750 --> 00:46:08,210 We have 16 devices online, a couple of here in the US. 521 00:46:08,790 --> 00:46:10,470 I don't care where they are. 522 00:46:11,950 --> 00:46:14,330 Just take the first one. 523 00:46:18,730 --> 00:46:20,050 Come on. 524 00:46:22,290 --> 00:46:24,030 I need to log on. 525 00:46:24,030 --> 00:46:25,010 That's bad. 526 00:46:25,770 --> 00:46:26,490 Oh no. 527 00:46:26,750 --> 00:46:27,670 Here we go. 528 00:46:32,680 --> 00:46:34,220 Oh, that's a very old one. 529 00:46:34,320 --> 00:46:35,260 It doesn't matter. 530 00:46:37,220 --> 00:46:38,820 Hopefully it is online. 531 00:46:38,920 --> 00:46:40,340 Here we go. 532 00:46:43,570 --> 00:46:46,290 It's a little bit slow because it's over satellite. 533 00:46:47,810 --> 00:46:51,950 And now we have the web interface of a ship live in the internet. 534 00:46:53,370 --> 00:46:57,150 I can now use the username and password to log in. 535 00:46:57,150 --> 00:46:58,690 I don't have one. 536 00:46:58,990 --> 00:47:01,050 So we have to find another way. 537 00:47:01,050 --> 00:47:06,290 The first thing I did was right-click, source code. 538 00:47:07,230 --> 00:47:08,430 That's it. 539 00:47:09,110 --> 00:47:13,890 The first thing that paid my attention was this part here. 540 00:47:14,910 --> 00:47:16,990 Hopefully you can see it. 541 00:47:17,970 --> 00:47:21,110 JavaScript user login.js. 542 00:47:21,330 --> 00:47:23,110 Let's click on it. 543 00:47:23,110 --> 00:47:25,650 This is the login script for that. 544 00:47:25,970 --> 00:47:28,970 If we scroll now a little bit down... 545 00:47:33,230 --> 00:47:35,930 Here are the funny places. 546 00:47:37,470 --> 00:47:43,430 If the login username is dealer, then use the menu-dealer.gx.html. 547 00:47:43,430 --> 00:47:46,990 If the login is user, then use another one. 548 00:47:47,030 --> 00:47:51,210 What we do to hack the system is very easy. 549 00:47:52,690 --> 00:47:54,890 We copy the URL. 550 00:47:57,330 --> 00:47:59,310 And the funny thing is... 551 00:48:02,730 --> 00:48:04,290 It's working. 552 00:48:05,190 --> 00:48:07,130 It takes now a little bit time. 553 00:48:07,130 --> 00:48:09,690 And now I have admin access to that device. 554 00:48:10,830 --> 00:48:21,430 It's switching now back after a couple of seconds, because I have to set also a referrer information that the thing is always there. 555 00:48:21,430 --> 00:48:24,310 But here is some kind of a ship. 556 00:48:24,310 --> 00:48:28,110 And we have here latitude and longitude information. 557 00:48:28,110 --> 00:48:30,050 And the name for that. 558 00:48:30,050 --> 00:48:37,410 If we look now marinetraffic.com, we can try it. 559 00:48:40,050 --> 00:48:44,010 41.25 and 9.43. 560 00:48:44,550 --> 00:48:50,930 Let's look marinetraffic.com. 561 00:48:52,590 --> 00:48:55,410 To see if it is the right ship. 562 00:48:56,410 --> 00:48:57,830 Meridiana. 563 00:49:00,930 --> 00:49:02,450 Meridiana. 564 00:49:06,740 --> 00:49:08,780 OK, here is one. 565 00:49:08,780 --> 00:49:10,540 It could be maybe this. 566 00:49:14,160 --> 00:49:16,420 It looks good. 567 00:49:18,340 --> 00:49:20,480 Let's look at the information. 568 00:49:20,480 --> 00:49:29,200 OK, here actual position of the ship is 41.25 latitude and 9.43 longitude. 569 00:49:29,200 --> 00:49:31,040 Come on. 570 00:49:31,780 --> 00:49:35,240 And here in my system it's the same information. 571 00:49:35,240 --> 00:49:36,660 It's that ship. 572 00:49:38,220 --> 00:49:45,980 It's actual laying in, I don't know, 5 minutes ago, last position. 573 00:49:46,700 --> 00:49:48,240 It is moored. 574 00:49:48,240 --> 00:49:49,430 Engine is stopped. 575 00:49:50,200 --> 00:49:53,220 But yeah, it's anyhow laying in a harbor, I think. 576 00:49:53,620 --> 00:49:55,260 It's a nice yacht. 577 00:49:55,260 --> 00:49:56,260 OK. 578 00:49:57,680 --> 00:50:01,220 So now we have access to that device. 579 00:50:01,220 --> 00:50:04,100 We can see also some other things here. 580 00:50:04,100 --> 00:50:05,840 Command line interface. 581 00:50:05,840 --> 00:50:08,840 I can change the position of the antenna information. 582 00:50:08,840 --> 00:50:15,540 So I can reconfigure the information about how the antenna is accessing the internet and so on. 583 00:50:16,360 --> 00:50:16,980 Yeah. 584 00:50:19,320 --> 00:50:21,280 That's from that part. 585 00:50:21,280 --> 00:50:23,640 Switching back to the... 586 00:50:26,120 --> 00:50:27,160 OK. 587 00:50:27,460 --> 00:50:29,240 So the demo I gave. 588 00:50:30,420 --> 00:50:36,220 In short review, if the username is dealer, then you have admin access. 589 00:50:36,220 --> 00:50:39,980 If the user is user, then you have a little bit less information. 590 00:50:40,240 --> 00:50:43,080 Here are some pictures of the software. 591 00:50:43,360 --> 00:50:46,460 As I already said, a command line interface. 592 00:50:46,460 --> 00:50:53,000 From that point you can then dig for other devices in the network of the ship. 593 00:50:53,000 --> 00:51:01,700 Looking for example for the TCP IP converter to NMEA signals and spoof your information on the ship. 594 00:51:01,700 --> 00:51:09,900 From that, from the internet to the NMEA system, it's not a big problem anymore. 595 00:51:09,920 --> 00:51:13,660 Or you can also make some firmware upgrades and so on. 596 00:51:15,420 --> 00:51:20,620 Or you also can try to use the default credentials from the documentation. 597 00:51:20,620 --> 00:51:28,380 When you read the handbook, the username is dealer and the password is ctl3 and so on. 598 00:51:28,600 --> 00:51:29,940 It's not a big deal. 599 00:51:30,920 --> 00:51:31,520 Yeah. 600 00:51:31,520 --> 00:51:36,320 Someone found it already before me when I looked it up. 601 00:51:36,460 --> 00:51:40,780 But he only claimed the version 1.2.1 is vulnerable. 602 00:51:40,780 --> 00:51:46,660 So I tested all versions listed here down and they are vulnerable to the same thing. 603 00:51:48,380 --> 00:51:56,500 I also contacted the vendor because I found something different that I will explain now. 604 00:51:57,020 --> 00:52:04,640 Some kind of webpages that you can access without authentication where you have all the things. 605 00:52:06,500 --> 00:52:14,720 You can increase the cost by just uploading and downloading software or doing other stuff. 606 00:52:14,720 --> 00:52:17,840 Or you can switch off the internet connection on Hi-C. 607 00:52:17,840 --> 00:52:25,360 That is maybe a bad idea, but it's also bad for the crew on board. 608 00:52:25,360 --> 00:52:29,220 They have no internet access anymore and get no information anymore. 609 00:52:32,600 --> 00:52:40,460 Another thing that I found then was there was another issue in this device. 610 00:52:40,460 --> 00:52:52,060 When you send two specific parameters to the web device, it creates a complete backup of the configuration and puts it in a temp folder of the web server. 611 00:52:52,740 --> 00:52:55,160 And as we know, we don't need an authentication. 612 00:52:55,160 --> 00:53:03,500 We download the configuration file and we have then all the information about the system with the configuration, the username, password and so on. 613 00:53:06,640 --> 00:53:09,320 Here you see my test script that I've written for that. 614 00:53:10,460 --> 00:53:16,680 And then this is a short overview about what information you can download then later. 615 00:53:16,800 --> 00:53:21,560 So it's in a temp folder in a configuration file where you can find everything. 616 00:53:23,760 --> 00:53:26,180 Coming to the last part now. 617 00:53:26,740 --> 00:53:31,120 The engine control units are also connected to the network. 618 00:53:32,160 --> 00:53:50,980 And then I think Brian Olson has already covered it in his talk where he figured out that some kind of the auto-masking engine control units that are connected to the network have some drawbacks where you can bypass also the authentication and have control over the engines. 619 00:53:50,980 --> 00:53:57,820 So then you can say, okay, engine left, full speed ahead and the other ones in the other direction. 620 00:53:58,700 --> 00:54:07,180 As you can see here also, it's connected to the network and also using some industrial protocols like Modbus or something else. 621 00:54:11,360 --> 00:54:15,120 The future is maybe becoming more and more autonomous. 622 00:54:16,120 --> 00:54:22,020 So autonomous ships need some kind of internet connection and using GPS information. 623 00:54:24,400 --> 00:54:30,160 For that, we have to be clear that the system should be protected very good. 624 00:54:31,560 --> 00:54:34,000 So this we can skip. 625 00:54:34,000 --> 00:54:38,880 Autonomous ships, there are already things going on. 626 00:54:38,880 --> 00:54:44,980 So Rolls-Royce tested in 2017 the first voyage of an autonomous ship. 627 00:54:45,060 --> 00:54:52,580 So a captain was still on board just for backup, but the main control of the ship was done in the harbor from a control room. 628 00:54:52,580 --> 00:54:57,840 It was not really autonomous, but let's say more or less remote controlled. 629 00:54:57,940 --> 00:55:03,100 If they can remote control it, someone else maybe can also control it. 630 00:55:03,100 --> 00:55:09,320 So that's because of maybe they're using the same weak internet devices. 631 00:55:10,240 --> 00:55:12,280 So yeah, what's next? 632 00:55:13,040 --> 00:55:16,080 We need to test more and more on the NMEA. 633 00:55:16,360 --> 00:55:32,580 The NMEA protocol should have more security, authenticating and so on in place so that nobody can tamper the signals that are put on the bus. 634 00:55:33,100 --> 00:55:37,160 The wireless autopilot I'm working on. 635 00:55:37,940 --> 00:55:42,900 So all those other internet things have to be tested. 636 00:55:43,380 --> 00:55:50,300 A couple of us are working on it, but we need more time for that to figure out all those devices. 637 00:55:51,340 --> 00:55:56,220 And it becomes more and more that all the devices are connected to the cloud anyhow. 638 00:55:56,220 --> 00:56:07,100 So here we see one of those things where they're using now, for example, this from Mariton. 639 00:56:07,120 --> 00:56:10,720 This part we had already in my network design. 640 00:56:11,200 --> 00:56:19,300 And here everything is connected also to the cloud where you can access then all the devices over your tablet, smartphone or your laptop. 641 00:56:19,440 --> 00:56:24,800 So you have now full access from anyhow to your ship. 642 00:56:24,800 --> 00:56:34,260 So I'm not sure if someone has already tested these cloud services, but yeah, when I have time, I will do it. 643 00:56:34,760 --> 00:56:39,860 So this is then again one of those things where you have remote control about that. 644 00:56:40,920 --> 00:56:44,940 Yeah, rudder information, RPM, oil temperature and whatever. 645 00:56:46,560 --> 00:56:48,940 Yeah, coming to the end. 646 00:56:48,960 --> 00:56:54,140 And AMEA Gateway also needs more tested SATCOM boxes, mostly unpatched. 647 00:56:54,380 --> 00:57:00,980 The problem is they have only a small window where they have time to patch those things. 648 00:57:01,080 --> 00:57:04,540 So more or less they are running all the time. 649 00:57:04,760 --> 00:57:13,060 And once a year or maybe once or two years they're coming in the harbor, in the yard, and then there is only time to patch the things. 650 00:57:13,060 --> 00:57:17,060 So in between the ships are vulnerable if something is found. 651 00:57:17,060 --> 00:57:21,300 So the vessel transport services needs also to be tested more and more. 652 00:57:22,200 --> 00:57:24,240 Autopilot, I'm working on it. 653 00:57:24,240 --> 00:57:29,300 Injecting AMEA messages, some other people are also testing with that. 654 00:57:29,480 --> 00:57:33,280 GPS spoofing, yeah, it's some fun. 655 00:57:34,080 --> 00:57:38,960 But yeah, I think the first devices we will see to protect that system. 656 00:57:39,560 --> 00:57:41,340 Coming to the last slide now. 657 00:57:44,760 --> 00:57:46,620 May the force be with you. 658 00:57:47,000 --> 00:57:50,020 My Twitter handle, my email address if you want to contact me. 659 00:57:50,020 --> 00:57:53,140 You can also speak after with me a little bit. 660 00:57:53,900 --> 00:57:57,180 I cannot give away some business cards, I lost everyone. 661 00:57:57,740 --> 00:58:00,240 I run out of business cards, so yeah. 662 00:58:00,240 --> 00:58:03,680 You have to take my email address and contact me for that. 663 00:58:04,040 --> 00:58:08,780 Thank you for joining and have a nice rest DEF CON. 664 00:58:11,340 --> 00:58:12,180 Thank you.