start	end	text
0	6200	Good morning everybody. It's early in the morning, I know.
6200	9240	Everyone has partied last night, I think.
9760	13880	Today I want to talk a little bit about remote yacht hacking.
15560	21700	About some attacks and some issues that I found on maritime stuff.
21780	25800	And we will have some fun together, I think.
28760	30820	My clicker is not working.
34080	35440	Ah, here we are.
81340	84220	We were shot watching the movie, I think.
85200	87460	Yeah, that was 1995.
87460	90640	They gave already suggestions about what could happen.
90640	95040	So they hacked the balance system of a big ship there.
95040	97800	And that was 1995.
97800	100760	Now we have 2019.
102000	107140	And we will see actually such kind of attacks more and more happen, maybe.
107140	114140	What I'm talking today is a short overview about maritime 101,
115060	117200	router and SATCOM vulnerabilities,
117200	120980	autonomous ships and some Q&A, if we have time enough.
122380	124400	Why hacking yachts?
125220	127740	Maybe someone has an idea about that?
128960	131280	Why not? That's a good answer.
132280	133840	Yeah, why hacking yachts?
133840	138140	They are mostly privacy owned, privately owned.
138960	144680	And CEOs or people who have big money doing their job on board.
144780	151580	And when you have access over the satellite internet connection or the modem over Wi-Fi or whatever,
151580	156740	you maybe have the option to get some information that should not be outside there.
158120	162560	Another one could be also celebrities on their ships.
162560	169010	When you have access to the multimedia devices, all those smart TVs on board,
169320	174020	you maybe get some pictures that some others not have.
174480	181700	Yeah, that's the two things why privately owned yachts mostly are attacked.
182240	185480	Yeah, several celebrities, I also said.
185480	192440	And as I already mentioned, if we have access over the internet connection, we can do whatever we want.
193740	199120	My name is Stefan Gerling, you can also find me on the ob1666 on Twitter.
199660	201560	I'm older than the internet.
203440	205840	Quite old now? No, not really.
206580	212700	A couple of certifications I have, GCFA, CISSP, MCSE, you name it.
212700	218720	I'm an electronic specialist from the past, doing now IT security stuff.
218780	225660	I joined the army a couple of years and doing their navigation systems, maintenance for helicopters.
226440	230920	By the way, I'm also a firefighter, volunteering firefighter since 31 years now.
232740	237020	I'm working in the oil and gas industry for my employer Rosen.
237020	244040	We're doing pipeline inspection, that's our main business, but also focusing now more and more on yachts.
244460	251280	That's why the company certification is here on my slides, so that's another branch of our company.
252200	260040	Yes, I void guarantees, I buy stuff, looking how it is working, then I open it and to see what's in there.
261020	265340	And I'm volunteering, I'm the cavalry and also DEF CON.
265340	271660	As you see, I'm just on duty, I just come from my shift here and now there.
272600	274320	Here, how it is started.
275340	280560	There were a couple of news about hacking yachts in the past.
280620	285500	So, the marine had some accidents a couple of years ago, 2017.
285500	300740	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.
300740	304600	So, that were some information that you find there.
304600	308980	So, this is also then one of the news that was really interesting.
308980	317940	So, when we looked at the schedule there, the US Navy had 2017 four accidents with their warships.
318440	323740	And then you try to figure out, why the fuck they have four accidents with their ships.
324040	328620	They should know about navigation very good, but it happens at that time.
328620	334660	So, the rumors come up that somehow their ships were maybe hacked.
334780	340640	But I've read two of those reports after that.
340760	345500	It turns out that it was more or less a human error, navigation failure.
345500	353660	So, people at night were not really well trained doing the navigation at night alone.
353660	356800	So, it was somehow a human error.
356800	360620	So, they did not follow the good guidelines for that.
360680	364840	And last year also, there was a Norwegian frigate.
365780	372200	So, during the military exercises in the NATO, they had also an accident with that.
373280	378460	So, this was a couple of pictures from the frigate.
378460	387660	So, it crashed into another vessel and you see it has now 45 degree on the side.
388900	398600	When you maybe remember the pictures, this was the vessel that crashed in it, or the frigate crashed in that.
398660	400540	And this picture was shown.
400680	405080	If you could see here maybe, here are some scratches.
405080	413600	So, the first thing that you'd maybe think about is the frigate crashed into the side here.
413600	419520	But it did not fit with the things that you see here.
419780	424640	So, also open source intelligence will help a little bit.
424640	427640	So, I looked up on marinatraffic.com.
427640	431880	There you find pictures with the same dents and scratches.
431880	442240	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.
442240	446640	So, the marks are not fitting together.
446640	452800	So, just only a quick thing about some pictures that are shown in the news.
453660	455700	Vessel, yachts and ships.
456920	460160	A yacht is more or less a recreational ship.
460160	463340	And the term comes from the Dutch marine.
463860	473620	So, the Dutch had some very fast small vessels for hunting pirates in the shallow waters in the past.
474080	480220	And yacht is a Dutch term. It means hunting.
480480	486420	And from that the term yacht was introduced, because of small and fast vessels.
486920	488920	And of course, size matters.
489540	491860	Small boats are up to 7 meters.
492160	494140	Yachts are already over 10 meters.
494140	500040	If you have a super yacht, then you're bigger than 24 meters or 79 feet.
500200	505340	It's already equipped with some kind of GSM, Wi-Fi, Internet stuff and so on.
505500	509840	And mega yachts, you can say it's a swimming IoT device.
510180	518000	Because you have already smart TVs, smart home equipment, ICS stuff in the propulsion units and so on.
519640	524220	Just a small picture about one of the super yachts.
524220	529340	So, this is a picture of a TV star from Germany and his yacht.
529440	532100	But we'll see information about it later.
533440	535240	So, why swimming IoT?
535880	540500	Because we have so many different systems on board.
541280	543020	Vessel traffic services.
543020	545420	We have automatic identification system.
545420	547580	We have an autopilot somehow.
547580	551120	We have GPS, radar system, cameras, thermal imaging.
551220	554800	We have engine control units and monitoring devices.
554800	558780	We have Internet access and we have a couple of entertainment systems.
559500	566480	I know for example from a 72 meter yacht, they have 50 smart TVs on board.
566780	567860	50!
567860	572280	And more than 150 connected devices on the network.
572680	577560	Only for getting their stuff like at home.
579400	585840	For the maritime stuff, most of the things are connected with an NMEA bus.
585840	588580	The NMEA bus is somehow...
589620	593040	In the past it was a serial bus.
593240	596300	And it's called NMEA 0183.
596300	598840	So, here we have one of those things.
599060	603680	And in modern yachts now we have NMEA 2000.
603680	608520	And NMEA 2000 is nothing less than like a CAN bus in the car.
608880	614440	So, we have some terminators here, this is a CAN bus and everything is connected to the bus system.
614820	626920	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.
627020	631420	Or it is directly connected then to the network and some other computers.
631420	634880	So, that's how everything is connected together.
635960	638900	So, the cabling is a little bit easy.
639380	643500	I'm not sure if you have seen it in the exhibit on the CTF.
643500	646520	There were some pictures, you can see it also there.
646520	656040	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.
656040	658600	So, it looks like that, but it's a little bit different.
660280	670860	In the past, the Anemia 0183 from the National Marine Electronic Association, it was a serial bus with 4800 baud speed.
670860	680560	Not that much, but it was much enough for echo sonars, sonars, animators, gyro compass, autopilots and GPS and some other stuff.
680820	682860	Whatever you have there.
683700	689800	So, the speed was not enough, so then they introduced the CAN bus part and called it Anemia 2000.
690540	695900	Here we have now one megabit network bandwidth that we can use.
697500	705980	It's electrically the same as the CAN bus in the automobile industry, but you have different connectors for that.
706940	712840	And it's not electrically compatible with the old standard, so there you have some converters for that.
712860	719800	And because the speed was not enough, then they introduced newer standards.
719800	725160	Ray Marine called it, for example, SeaTorque Next Generation, that's why it's NG.
725300	728900	And there is also, this one has already 10 megabit.
729420	734980	And there is a SeaTorque HS, high speed HS.
735680	739100	There you have already 100 megabit on speed on the bus system.
739100	744880	So, when you look here at the pictures, these are most of the stuff for the navigation part.
745640	753140	And some of the points that I trigger on is, here is the receiver and the sender for the autopilot system.
753140	755080	Here we have the GPS receiver.
755220	762940	And all those information going to the bus system and then spread it to all the devices who are interested in the information.
768320	773880	So, some of the systems are used as a vessel traffic service.
774480	789440	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.
789440	790900	It's similar to that.
790900	798840	It's used mostly in harbors, where they get the information about the system or the ship and put it in the right place.
798840	806160	It's using radar, CCGV, VHF radio communication and the AIS system.
807660	812080	The AIS system, it's pretty easy.
812560	817180	You have it on most ships from a specific size on.
817820	823500	Then it's mandatory and most of the systems are working on VHF.
823800	827120	We see it later or there is also a satellite version of that.
829200	836460	So, the AIS supplements in the radar system and get also the information from that.
836640	840540	So, it's some kind of collision avoidance that you can look up for that.
841680	848940	So, the AIS using the GPS information from the CAN bus, from the NMEA network, to be correct.
849540	855400	Then we have an ACTIS, the electronic chart display and information system.
855400	861640	So, this is some kind of an electronic version about your C cards.
861840	867660	So, in the part you have a paper printout of the C cards, where you travel on.
867660	875120	And you don't have to have it now, unless you have two different GPS devices.
875120	879300	And then you can completely rely on those ACTIS on those electronic versions.
879440	891840	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.
892880	895680	And then we have some kind of IT equipment on board.
897580	899860	Anyhow, we have to have internet access.
899860	907740	So, it's done by GSM or Wi-Fi or satellite dishes, where you can access the internet on the high seat.
908340	911680	And on board we have a couple of IT systems also.
911680	915140	Entertainment system, voice over IP, I've seen a couple of things.
915140	920960	Wi-Fi for the guests, for the crew, for the owner of the ship and so on.
922360	929780	This for example is a picture of a 40 meter yacht with a 90 inch rack full of IT stuff.
930440	935260	To just show it a little bit, it's an internet router where you have your access.
936320	939980	Here are three servers to get all the things controlled.
940260	942960	We have two voice over IP gateways there.
942960	947900	And a completely full stacked network switch with 48 ports.
947900	951680	And some kind of uninterrupted power supply.
952920	959360	And the other things we have on board are 10 smart TVs, one chart PC, the actors.
959560	962820	14 voice over IP telephones on the network.
963040	967600	The internet router and four access points for Wi-Fi.
968330	979960	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.
979960	982060	So, 24 already.
982240	986220	Who is patching that shit? We will see.
986540	988300	That's a big story.
989640	993240	And the ships are going more and more to be smart ships.
993240	1004640	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.
1004700	1016120	You have monitoring access or also other access to the rudder information, the RPM of the engine, the oil stand and so on.
1016620	1021560	So, all the information you can access via your smart tablet.
1021560	1024900	So, with your smart devices.
1025660	1032140	And you can also access those things remotely with your mobile phone.
1034080	1038080	So, this is then how a network on a ship looks like.
1038080	1046180	So, I've put everything together and it looks like a network at home, in your business, in your company, however.
1046680	1050560	So, starting at the top, we have some internet routers.
1051740	1054500	That we maybe can access or attack.
1055160	1060040	The next attack situation we could have is the computers on board.
1060040	1062880	So, they are connected to the network and to the internet.
1064420	1075140	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.
1076200	1084520	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.
1084520	1092220	So, here it is separated by these devices. It could be a USB device, it could also be a standalone device.
1092740	1096020	And then, we are now on the ship network.
1096380	1101620	On the CAN bus of the ship, where we have access then to all other information.
1101620	1107440	As you can see, the GPS, the engine, AIS, radar, sonar and so on and so on.
1108560	1111420	So, this is then the bus where we can access it.
1112180	1122160	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.
1124540	1129340	By the way, there are a couple of GPS systems today online.
1130000	1136760	We have the U.S. version. It was the first one that most of the people say, GPS is GPS.
1137120	1142260	But GPS is the U.S. version of the Global Navigation Satellite System.
1142840	1147360	The Russians are using their GLONASS system, the Europeans their GALILEO.
1147580	1153540	It's not fully operable now and two weeks ago they had a big issue with their system.
1153540	1157340	So, they fucked up the atomic clock synchronization.
1157340	1165260	So, I don't know, has someone heard about that, that the GALILEO system was more than one week not working?
1167740	1168940	What?
1170900	1173880	No, it wasn't.
1176000	1178340	I read a report about that.
1178540	1187320	So, the problem was, the satellites have atomic clocks inside for correct timing.
1187340	1192260	So, these atomic clocks are synchronized to the ground station.
1192500	1197600	And for the GALILEO system we have two ground stations. One is in Germany, one is in Switzerland.
1198660	1202440	And they are maintained by two different companies.
1202440	1206080	So, the German one is a different company than the Switzerland one.
1206160	1214560	So, the problem was then, the German had a normal maintenance phase where they switched off the atomic clock in Germany.
1214560	1221100	And at the same time, in Switzerland, somehow, something happened with their system.
1221480	1226360	So, the clock drifted a little bit away and they had to shut down their system too.
1226400	1231480	So, both atomic clocks could not synchronize with the satellite in the air.
1231680	1240260	And the satellite then decided, OK, I have no synchronized clock now, we switch off our operation.
1240260	1250500	And then all the 24 satellites for the GALILEO were switched off and did not get anymore a correct position about that.
1250680	1257420	It took them more than one week to recover all the synchronization to the system and now it is working again.
1257900	1262340	Yeah, only a small story about that.
1266910	1273770	When we look at the frequencies, you can see we have three bands where all the systems are working on.
1274250	1281550	And all privately used devices for that are working on the L1 band.
1281550	1286770	And then you have only a couple of frequencies where all of the systems are working on.
1287330	1288890	It is not that much.
1289610	1294230	So, the scenarios could be then, we can spoof the signal or we can jam it.
1294290	1296330	Jamming is very easy.
1296850	1303110	You just have to have a software-defined radio device that can transmit something.
1303310	1307630	And then you can jam the signal or using some other stuff.
1307670	1318430	Spoofing is a little bit difficult, but you can also do it with equipment starting about 350€, 400$ for example.
1320110	1323190	Yeah, jamming happens quite often.
1323190	1334490	Every time when the military is doing a military exercise, you will see somehow GPS interferences, anomalies and so on.
1334910	1341490	Especially when the Russians are doing their exercises, they jam the GPS all the time.
1341490	1354710	There is also a link here to a report from 2017 where more than 20 ships and some aircrafts reported anomalies in their systems.
1356010	1359830	Yeah, for jamming it's not really...
1359830	1367270	By the way, the US Navy is teaching again navigation with a 6th sent, so they stopped somehow teaching that.
1367270	1375310	And after they figured out a couple of years ago that it is not maybe a good idea only to rely on GPS information.
1375310	1379930	We should be able also to navigate in a traditional way.
1379930	1389530	And the first Navy officers trained again on that come to Germany and get trained on the system again.
1389530	1394130	How to navigate with a 6th sent, just to know about.
1395310	1400610	GPS jammers you can buy online, for example at selljammers.com.
1400610	1405850	It's starting from... yeah, these are a little bit expensive ones.
1406190	1414010	And you can also have small USB devices for 80 bucks and also for the cigarette lighter in your car.
1414070	1427510	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.
1429910	1434830	For professional testing you can have also these GNS simulators.
1435070	1440230	They are quite expensive. This one is around 15.000 Euro.
1440310	1446430	But then you can simulate all the things that a real satellite navigation system is doing.
1446810	1450610	You can replay waypoints and so on.
1451370	1455350	We had used one for our devices that we are using in our company.
1455350	1460150	So, for the pipeline tracking we have also some GPS trackers that we build our own.
1460150	1463730	And to test them we are using such kind of devices.
1465590	1467930	But yeah, it's very expensive.
1468070	1473130	But maybe it's a little bit easier to fake the GPS signals on the NMEA bus.
1475150	1477490	So, then we come to the spoofing.
1477890	1481730	So, spoofing is a little bit... it's not really difficult.
1482090	1483650	You need only the right tools.
1483650	1486210	For example, buy a HackRF.
1486350	1488450	Have the right antenna in place.
1488930	1491990	And you need some strips for that and that's it.
1492150	1495870	Or you can also use a BladeRF. It's a little bit more powerful.
1496610	1498830	And then you can gamble with that.
1499850	1501630	Just a small advice.
1501910	1506130	Don't mess with the GPS signals. You may disturb some others.
1506290	1512090	Use a forensic bag or a Faraday cage where you can set up your lab for that.
1514110	1515150	Yeah.
1515810	1522830	For spoofing the signals you need a software defined radio and you need the right software for that.
1522830	1525270	So, the software you can download on GitHub.
1525850	1532290	It's a GPS SDR simulator and with that you can already do all what you want.
1535330	1540330	One thing you need for that is, once you have all your equipment in place,
1540330	1546830	you need to have the daily download of the constellation of the satellites in the air.
1547150	1550790	So that you can download from the FTP site of the NASA.
1551650	1562130	And then you have to calculate your daily file about that.
1562130	1565850	And then with the information that you want to spoof, you put everything in place,
1565850	1572130	you compile a new script for that and then you transmit it with the software defined radio devices.
1572130	1575310	So, these are the few commands that you then need.
1576470	1580950	As you can see, you set the frequency on the device that you need.
1581070	1583650	You need the right sample rate and bandwidth.
1584390	1586210	The gain for that.
1586210	1599270	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.
1599270	1605630	And then you send the file over the device and you are done.
1607730	1613590	Some drawbacks are there. You have to have the right gain of the signal.
1613590	1618190	So, if your signal is too strong, maybe the devices are not accepting yours,
1618190	1625450	because some devices are detecting, OK, there is now another signal with a higher gain.
1625770	1627590	We ignore that.
1628330	1630270	But somehow it works.
1631950	1639210	Another thing, when we have access to the NMEA bus, we can maybe use different things.
1639210	1646150	So, this is a software from ATLsoft. It's a GPS simulator.
1647170	1652910	You can see it's connected to the NMEA 0183 bus.
1653010	1655450	It's with a COM port connected.
1655570	1660770	And then you can set your information to what latitude and longitude you want.
1660830	1668410	And then press the start button and then it sends out the NMEA data on the bus with the fake GPS signals.
1669210	1676510	So, if you have somehow access, for example, to the bus by renting a yacht,
1676510	1681170	you maybe have them when you have enough time and access the system,
1681170	1687910	you can put some fishy, spoofy devices in the ship and then can do some stuff with it later.
1688550	1689170	Yeah.
1689730	1692530	So now, how we can protect for that.
1693650	1697250	This is a research project in Germany.
1697250	1701850	They are using a 2x2 antenna device.
1701850	1706410	So, here is the antenna. It's an array of about four antennas.
1707890	1711470	And then you see the radio signal about that.
1711590	1715450	And by the four antennas you can already calculate,
1715450	1720310	OK, the signal is maybe coming from the side or it's coming from the right position from the top.
1721230	1726390	With that, you easily can see if it is a spoof signal coming from the side
1726390	1728950	or is it an original one from the top.
1729330	1732350	And another thing that is possible with this,
1732350	1737290	it can filter out the spoof signal and amplify the original one.
1737290	1742310	So, it's still in a test phase. It is working.
1742310	1747210	And I think we will see it in a couple of years as a normal device.
1748450	1752450	And I have also found you can buy now a GPS firewall.
1753810	1757710	Sounds a little bit like snake oil. I don't know.
1758310	1760730	Yeah, it's a device that you can buy.
1761190	1766730	Maybe it's working the same as the research project from the Germans
1767370	1773590	because it's connected between the GPS antenna, the device and doing then some stuff.
1774070	1781410	Anyhow, if I have the chance to get one of those devices to test, I will do it and put it in later.
1781410	1784310	Have someone maybe one? I don't know.
1784310	1787210	If yes, contact me, please.
1788690	1791730	Okay, yeah, AIS system.
1792610	1796350	AIS using the GPS information that I already mentioned
1796350	1803670	and sends then over its own device, over their own system, the information back to another thing.
1805790	1811690	Every 2 to 10 seconds they are sending messages when the ship is underway.
1811970	1823570	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.
1824070	1827550	And the system is quite easy.
1827550	1833650	It is working on VHF radio, 161 MHz and 162 MHz.
1833670	1836830	Just two channels that you need.
1837050	1846870	The encoding is also very easy and with those informations and with your software-defined radio, you can receive your own AIS system.
1847690	1858690	Just use a software-defined radio device like the AKRF, download the scripts for GNU AIS and you can receive your own.
1859610	1870110	And when you change some kind of those GNU radio stuff, then you can also transmit different systems.
1870110	1881890	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.
1883650	1887790	Another one is the autopilot I have already mentioned about.
1887790	1893610	So, I am still in the research phase of that.
1893610	1904790	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.
1904870	1911390	So, how it is working? It is a handheld radio controlled and on the right you see the receiver for that.
1913410	1924070	In this case it was a Raymarine S100 wireless device and you can put in some new heading and speed information.
1924070	1934250	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.
1934330	1939870	Mostly you find it on sailing yachts, but this was also on a normal motor yacht.
1941810	1952650	How you look at that stuff? Every device that is transmitting radio signals must be registered at the FCC.
1953590	1960870	And then you can also look up at the FCC ID. There are search options where you can figure out what it is.
1961390	1969850	I have done it here in the picture. The granted code is called PG5 and it is a smart device.
1969870	1974330	Mikko Hüppinen said once, when a device is smart you can hack it.
1979610	1988550	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.
1988630	1992570	And it is not Wi-Fi, so it is somehow something else.
1992790	1995530	And there are other information about that you can find.
1995530	2001370	So this is then also the information that you can get on the FCC ID website, how the system is working.
2001890	2007190	So there is some kind of a processor, a network processor and an RF transceiver.
2007790	2013490	It is an Amiga microprocessor and they are running their own Amberstack wireless protocol on that.
2013790	2022310	So with that information you have already everything that you needed to figure out how maybe the RF signals are looking like.
2022310	2027490	So I think I have an update on that in October this year.
2028750	2033330	Now we are coming on how to hack the internet connections.
2033610	2041590	So when I started with that, I had access to the Locomarine jogger router.
2041950	2045370	So that is a very nice device. It is looking like this.
2046090	2049750	It has a Wi-Fi booster with 1.6 Watt.
2050990	2053070	Electrical energy.
2053070	2061550	And with the right antenna I had on the Monkey Island around 25 Watt EERP sending power.
2061710	2063710	It is very high.
2064050	2070090	And they claim to have Wi-Fi at least at 15 nautical miles.
2070470	2075550	And a mobile phone should be working up to 30 nautical miles.
2075550	2081110	I was not able to test it because I am always only on the yacht when it is in the harbor.
2081890	2083550	Yeah, some drawbacks.
2084090	2084870	But yeah.
2085910	2091810	When I looked up then how the system is working, they have a nice software for that.
2091870	2097150	You can install it on your computer, you can install it on your mobile phone, on your tablet, whatever.
2098210	2103410	So this is then an overview about the complete things that you can do.
2103410	2109070	So navigation, these are the different Wi-Fi systems that they have.
2109070	2113730	Access to other systems, surveillance and so on.
2114890	2118270	You can also access your multimedia devices.
2118830	2122730	And this is all done over this control panel.
2122810	2127690	So then I looked up how this software was working.
2127690	2134070	And it figured out the software connects via FTP to the router.
2134890	2136910	That's the first thing, so FTP.
2136910	2138790	Okay, FTP is cleartext.
2139370	2141950	Then it downloads an XML file.
2142310	2147530	When you change something in the software, you change it on your tablet for example.
2147650	2153470	Then you modify it and later on when you say save, it sends them back the XML file to the router.
2153470	2155890	And then restart it.
2156030	2156990	Yeah, yeah.
2157690	2160050	As you know, FTP is cleartext.
2161010	2166270	The first thing I thought, okay, they're using anonymous authentication, so that means nothing.
2166270	2170990	Or they're using hard-coded credentials, which could be even worse.
2171430	2177150	So in this case it figured out they're using hard-coded credentials.
2177590	2179690	So the username was loco.
2179750	2181990	Loco is the Spanish word for mad.
2182190	2186410	And I love the password, secure connecting user.
2186410	2187410	Wow.
2188250	2192270	Yeah, some things of that.
2192390	2197650	So then I downloaded again the software and looked up what it is.
2197650	2202730	So in this case it's a .NET application.
2203250	2209370	Then I used a tool like ILSpy, where you can reanalyze the source code about that.
2209370	2215250	And then you find a couple of juicy information inside of the software.
2215250	2221650	For example, one of those developers, somehow John, I don't know who is it.
2221650	2224910	Jerry is one of the developers from the company.
2225790	2227670	Some other information there.
2227670	2233490	And when you find the Yotrouter engine, there you find a complete configuration about...
2234310	2241450	Okay, username, password, IP address of the internal server, the name of the XML file,
2241450	2247330	some information about the Wi-Fi, the Wi-Fi names, the passwords for the Wi-Fi and so on.
2248690	2249930	So, okay.
2251070	2254410	First thought, they are using it only internally.
2254590	2257330	Let's look up how it looks like from the Internet.
2257850	2262670	So I did an NMAP scan on the public IP address after the device is online.
2263290	2265930	And these are then the open ports. So what?
2265930	2272090	We have hard-coded credentials and the FTP port is open to the Internet.
2272390	2278350	So you can access that device anyhow when it is online with those hard-coded credentials.
2279090	2282270	And some other ports also.
2282310	2284990	This one is very nice. We see it later.
2286550	2287090	Yeah.
2287810	2292150	Then another thing is in the software, they have some remote support.
2292350	2293990	This is from the documentation.
2296130	2302170	So when you read it, you will find out you don't have to send them an IP address.
2302770	2308790	If you need remote support from them, you have only to say,
2308790	2313710	okay, this is my serial number of my device and this is the time when you can access it.
2313830	2314850	That's it.
2315090	2318850	How do they know that? They need an IP address for that.
2318850	2324030	So it turns out that they make a pingback to their systems.
2324030	2329170	So this is the IP address of their devices and it's belonging to Locomarine.
2329170	2334590	So every time when the device is online, they know your IP address when you are online.
2334850	2339630	So for privacy reasons, it's also not so fine.
2340330	2343390	Okay, then how can they access that?
2343830	2347490	Okay, they know the hard-coded credentials of the FTP.
2347490	2354810	But, it turns out, they are using then the MicroTik Winbox management software.
2354810	2360390	So it's running on port 8291 TCP and it's a very nice software.
2361090	2367930	With this management software, you can do much more than in the normal software of the device.
2368210	2372490	You can also change the Wi-Fi settings and there is also...
2374550	2378310	I'm not seeing it here now, but I have a picture here.
2378690	2380670	You have access to the user list.
2381450	2387150	These are the credentials that are then in turn, so the user local, we already know.
2387150	2388870	But there is another one, Gerrit.
2389210	2393150	So Gerrit has always access to the device when it is online.
2393650	2395910	And he knows every time when it is online.
2395990	2399290	So if this is a good idea, I don't know.
2400650	2404070	After I reported it, they may change it.
2404070	2405930	I have to look up later.
2406390	2409130	So they promised they have a new device now online.
2409490	2413570	And they promised to send me a new sample of that.
2413650	2415190	I'm waiting for that.
2416050	2422290	If you are not familiar with looking up the stuff with ILSpy decompiling software,
2422290	2430950	you can also use tools like MK Brutus, where you can attack microtik router devices.
2430950	2432850	So it does everything for you.
2432850	2435450	For example, there is a small Python script.
2435950	2439810	You only need the Python script and the IP addresses,
2439810	2443270	and it gives you then back the username and the password for that.
2444090	2445470	Very easy.
2446710	2449090	I reported the things to the vendor.
2449230	2450850	Two bugs they fixed.
2450850	2452830	The other one took a little bit longer.
2453190	2455690	They gave out a new software about that.
2455690	2456910	And then they patched it.
2456910	2458970	I received my CVE for that.
2460090	2463310	And then I looked up the patched software that they gave.
2463510	2466210	So they changed now FTP to SSH.
2466210	2467770	That's already a good version.
2468270	2469650	And then I was thinking, OK.
2471530	2475850	And they are still using hard-coded credentials.
2476430	2479350	The other thing that they did, obfuscation.
2479350	2483230	They obfuscated their software so that you not easily can decode it.
2483230	2489430	But with a little bit more time investment, it's also not that bad.
2489430	2492230	So maybe it takes an hour longer yet.
2493230	2494730	It's not that hard.
2495270	2499090	This is then the normal crash of your decompiler.
2499410	2501570	So it has some errors then.
2502590	2505790	In that case, OK, I'd struggle at that point.
2505790	2508750	So I downloaded the Android version of the software.
2509350	2510950	It's also a .NET application.
2510950	2512770	And they forget about it.
2512770	2518170	So they obfuscated the Windows version.
2518170	2520150	But forgot about the Android version.
2520150	2522670	And it's still a normal version about that.
2522670	2524450	So it's not obfuscated.
2524450	2529850	So when you then look at the same classes for the software, the YottaRouter engine,
2529850	2535770	you find there is now the same user with a new password.
2536150	2539230	It's a complex one, yeah, but it's still hard-coded.
2539350	2542620	And it's still accessible over SSH now.
2544510	2548410	So that's the last point of those things.
2549150	2553070	And I'm waiting for the new hardware of them.
2554330	2556830	Some other information you can find there.
2558070	2559310	CatchBackboneDataLeak.
2559430	2561290	It's a nice class.
2562120	2563850	It's looking fancy.
2563870	2568150	And all the other information like IP addresses from the internal network and so on.
2569410	2571690	Yeah, that I said already.
2571970	2574130	SSH instead of FTP now.
2574330	2579310	They obfuscated the DLL in the Windows version, but not in the Android.
2579390	2581670	The iPhone version, I don't know.
2581670	2583450	I had no way to test it.
2584130	2586570	Still using hard-coded credentials.
2586570	2587990	That's not good.
2588470	2594270	And the SSH and Winbox is still reachable over the Internet when the device is online.
2594270	2597690	So the firewall scripts are not set up that correctly.
2598490	2601070	So coming to the last point now.
2601810	2605470	You can have on the high sea also access over satellite.
2605530	2610390	Because Wi-Fi coverage is very bad when you are a thousand miles away on the high sea.
2610570	2615650	So you need how to communicate to the Internet over satellite systems.
2615950	2621830	So while I was looking up some of those locomarine systems,
2623110	2630390	I struggled a little bit on Shodan and found some other nice devices.
2630630	2633730	So yeah, that I already said.
2634090	2637910	You can look up in Shodan for those devices.
2637950	2642050	These are some of the search strings where you can look for.
2642250	2650750	These are all things that other people have already found out with vulnerabilities.
2650750	2655450	And therefore you use the search strings here.
2655810	2663130	And yeah, Shodan has also a ship tracker for the VSAT SATCOM devices.
2663270	2668670	So shiptracker.shodan.io and then you can look up all the devices that are online.
2669450	2672610	So yeah, they are using VSAT and so on.
2673330	2677830	In my point, I was looking for those locomarine devices
2677830	2684190	and I found some names that called Stabilized Digital Antenna System.
2684190	2688330	So wow, that sounds good. I want to know more about that.
2688330	2697510	So I looked up in Shodan a little bit more and then it claimed that there is a COPAM MXP web server.
2698450	2704350	With the easy search string micro-digital web server, it gives you a better result.
2704350	2706150	You find those devices.
2708350	2711330	This is then how it looks like in Shodan.
2714450	2717810	At that point there were 21 devices online.
2718690	2721790	And this is the device that you find there.
2723830	2730930	Then I looked up the first thing that I do. I show it later. It's more fun then.
2731190	2734750	In general, this is how the device is working.
2734750	2738770	You have the ICU and antenna devices on top of your ship.
2739310	2744790	Below you have the computer and the MXP web server that's controlling those things.
2745890	2748750	That's the point where we switch to the demo.
2752430	2754630	The internet is still running.
2756110	2757870	Here we have Shodan.
2758470	2763890	I have already put in here the search string micro-digital web server I'm looking for.
2764750	2768210	We have 16 devices online, a couple of here in the US.
2768790	2770470	I don't care where they are.
2771950	2774330	Just take the first one.
2778730	2780050	Come on.
2782290	2785010	I need to log on. That's bad.
2785770	2787670	Oh no. Here we go.
2792680	2795260	Oh, that's a very old one. It doesn't matter.
2797220	2798820	Hopefully it is online.
2798920	2800340	Here we go.
2803570	2806290	It's a little bit slow because it's over satellite.
2807810	2811950	And now we have the web interface of a ship live in the internet.
2813370	2818690	I can now use the username and password to log in. I don't have one.
2818990	2821050	So we have to find another way.
2821050	2826290	The first thing I did was right-click, source code.
2827230	2828430	That's it.
2829110	2833890	The first thing that paid my attention was this part here.
2834910	2836990	Hopefully you can see it.
2837970	2841110	JavaScript user login.js.
2841330	2843110	Let's click on it.
2843110	2845650	This is the login script for that.
2845970	2848970	If we scroll now a little bit down...
2853230	2855930	Here are the funny places.
2857470	2863430	If the login username is dealer, then use the menu-dealer.gx.html.
2863430	2866990	If the login is user, then use another one.
2867030	2871210	What we do to hack the system is very easy.
2872690	2874890	We copy the URL.
2877330	2879310	And the funny thing is...
2882730	2884290	It's working.
2885190	2887130	It takes now a little bit time.
2887130	2889690	And now I have admin access to that device.
2890830	2901430	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.
2901430	2904310	But here is some kind of a ship.
2904310	2908110	And we have here latitude and longitude information.
2908110	2910050	And the name for that.
2910050	2917410	If we look now marinetraffic.com, we can try it.
2920050	2924010	41.25 and 9.43.
2924550	2930930	Let's look marinetraffic.com.
2932590	2935410	To see if it is the right ship.
2936410	2937830	Meridiana.
2940930	2942450	Meridiana.
2946740	2950540	OK, here is one. It could be maybe this.
2954160	2956420	It looks good.
2958340	2960480	Let's look at the information.
2960480	2969200	OK, here actual position of the ship is 41.25 latitude and 9.43 longitude.
2969200	2971040	Come on.
2971780	2976660	And here in my system it's the same information. It's that ship.
2978220	2985980	It's actual laying in, I don't know, 5 minutes ago, last position.
2986700	2989430	It is moored. Engine is stopped.
2990200	2993220	But yeah, it's anyhow laying in a harbor, I think.
2993620	2995260	It's a nice yacht.
2995260	2996260	OK.
2997680	3001220	So now we have access to that device.
3001220	3004100	We can see also some other things here.
3004100	3005840	Command line interface.
3005840	3008840	I can change the position of the antenna information.
3008840	3015540	So I can reconfigure the information about how the antenna is accessing the internet and so on.
3016360	3016980	Yeah.
3019320	3021280	That's from that part.
3021280	3023640	Switching back to the...
3026120	3027160	OK.
3027460	3029240	So the demo I gave.
3030420	3036220	In short review, if the username is dealer, then you have admin access.
3036220	3039980	If the user is user, then you have a little bit less information.
3040240	3043080	Here are some pictures of the software.
3043360	3046460	As I already said, a command line interface.
3046460	3053000	From that point you can then dig for other devices in the network of the ship.
3053000	3061700	Looking for example for the TCP IP converter to NMEA signals and spoof your information on the ship.
3061700	3069900	From that, from the internet to the NMEA system, it's not a big problem anymore.
3069920	3073660	Or you can also make some firmware upgrades and so on.
3075420	3080620	Or you also can try to use the default credentials from the documentation.
3080620	3088380	When you read the handbook, the username is dealer and the password is ctl3 and so on.
3088600	3089940	It's not a big deal.
3090920	3096320	Yeah. Someone found it already before me when I looked it up.
3096460	3100780	But he only claimed the version 1.2.1 is vulnerable.
3100780	3106660	So I tested all versions listed here down and they are vulnerable to the same thing.
3108380	3116500	I also contacted the vendor because I found something different that I will explain now.
3117020	3124640	Some kind of webpages that you can access without authentication where you have all the things.
3126500	3134720	You can increase the cost by just uploading and downloading software or doing other stuff.
3134720	3137840	Or you can switch off the internet connection on Hi-C.
3137840	3145360	That is maybe a bad idea, but it's also bad for the crew on board.
3145360	3149220	They have no internet access anymore and get no information anymore.
3152600	3160460	Another thing that I found then was there was another issue in this device.
3160460	3168980	When you send two specific parameters to the web device, it creates a complete backup of the configuration
3168980	3172060	and puts it in a temp folder of the web server.
3172740	3175160	And as we know, we don't need an authentication.
3175160	3180620	We download the configuration file and we have then all the information about the system
3180620	3183500	with the configuration, the username, password and so on.
3186640	3189320	Here you see my test script that I've written for that.
3190460	3196680	And then this is a short overview about what information you can download then later.
3196800	3201560	So it's in a temp folder in a configuration file where you can find everything.
3203760	3206180	Coming to the last part now.
3206740	3211120	The engine control units are also connected to the network.
3212160	3217720	And then I think Brian Olson has already covered it in his talk
3218540	3222940	where he figured out that some kind of the auto-masking engine control units
3222940	3226480	that are connected to the network have some drawbacks
3226480	3230980	where you can bypass also the authentication and have control over the engines.
3230980	3237820	So then you can say, okay, engine left, full speed ahead and the other ones in the other direction.
3238700	3242340	As you can see here also, it's connected to the network
3242340	3247180	and also using some industrial protocols like Modbus or something else.
3251360	3255120	The future is maybe becoming more and more autonomous.
3256120	3262020	So autonomous ships need some kind of internet connection and using GPS information.
3264400	3270160	For that, we have to be clear that the system should be protected very good.
3271560	3274000	So this we can skip.
3274000	3278880	Autonomous ships, there are already things going on.
3278880	3284980	So Rolls-Royce tested in 2017 the first voyage of an autonomous ship.
3285060	3287780	So a captain was still on board just for backup,
3287780	3292580	but the main control of the ship was done in the harbor from a control room.
3292580	3297840	It was not really autonomous, but let's say more or less remote controlled.
3297940	3303100	If they can remote control it, someone else maybe can also control it.
3303100	3309320	So that's because of maybe they're using the same weak internet devices.
3310240	3312280	So yeah, what's next?
3313040	3316080	We need to test more and more on the NMEA.
3316360	3324440	The NMEA protocol should have more security, authenticating and so on in place
3324440	3332580	so that nobody can tamper the signals that are put on the bus.
3333100	3337160	The wireless autopilot I'm working on.
3337940	3342900	So all those other internet things have to be tested.
3343380	3350300	A couple of us are working on it, but we need more time for that to figure out all those devices.
3351340	3356220	And it becomes more and more that all the devices are connected to the cloud anyhow.
3356220	3367100	So here we see one of those things where they're using now, for example, this from Mariton.
3367120	3370720	This part we had already in my network design.
3371200	3379300	And here everything is connected also to the cloud where you can access then all the devices over your tablet, smartphone or your laptop.
3379440	3384800	So you have now full access from anyhow to your ship.
3384800	3394260	So I'm not sure if someone has already tested these cloud services, but yeah, when I have time, I will do it.
3394760	3399860	So this is then again one of those things where you have remote control about that.
3400920	3404940	Yeah, rudder information, RPM, oil temperature and whatever.
3406560	3408940	Yeah, coming to the end.
3408960	3414140	And AMEA Gateway also needs more tested SATCOM boxes, mostly unpatched.
3414380	3420980	The problem is they have only a small window where they have time to patch those things.
3421080	3424540	So more or less they are running all the time.
3424760	3433060	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.
3433060	3437060	So in between the ships are vulnerable if something is found.
3437060	3441300	So the vessel transport services needs also to be tested more and more.
3442200	3444240	Autopilot, I'm working on it.
3444240	3449300	Injecting AMEA messages, some other people are also testing with that.
3449480	3453280	GPS spoofing, yeah, it's some fun.
3454080	3458960	But yeah, I think the first devices we will see to protect that system.
3459560	3461340	Coming to the last slide now.
3464760	3466620	May the force be with you.
3467000	3470020	My Twitter handle, my email address if you want to contact me.
3470020	3473140	You can also speak after with me a little bit.
3473900	3477180	I cannot give away some business cards, I lost everyone.
3477740	3480240	I run out of business cards, so yeah.
3480240	3483680	You have to take my email address and contact me for that.
3484040	3488780	Thank you for joining and have a nice rest DEF CON.
3491340	3492180	Thank you.
