start	end	text
0	2780	Welcome to my talk, Pirates of the North Sea.
3000	5680	My name is John-Andre Bjørkhaug.
5940	8080	Jon-Andre Bjørkhaug, if you're Norwegian.
8500	13560	I work as a principal penetration tester for a Norwegian company called NetSecurity.
13720	19500	I'm an original electronics engineer with a specialization in telecommunication and wireless systems.
19500	24340	It's much more fun to break stuff than building stuff, so therefore I do penetration testing.
25040	30560	I've been doing pen testing, red teaming, for a bit over 17 years now.
31540	34600	In this presentation, there are a lot of pictures.
34600	36180	It's a lot of war stories.
36240	40380	Mostly it's me and an old colleague and friend.
41040	45400	So there's two people that you will see in the photos.
47420	54200	When I first started doing maritime penetration testing, I didn't have any clue about anything maritime.
54660	57540	I am an inland guy, Norwegian.
57540	59440	There's no water where I live.
59440	62400	I didn't know the difference between bow and aft.
62640	65320	I was told to go to the bow and I went in the back.
66020	66920	So, yeah.
67100	68600	But I learned a lot since then.
68600	71620	We started doing this testing in 2017.
71900	75320	And I've been to a lot of countries doing this.
75320	80800	Several different types of vessels.
80800	83960	Cruise, freight, LNG, ferries, and so on.
84220	89380	And I've been doing the test both remotely, on board, in dry dock.
90060	92800	So we're doing a lot of different kind of tests.
94840	97680	So, what's up with this slide?
97680	99220	Let's just fill it up.
101300	104140	So why do a pen test of a ship?
104140	108340	Lately, there has been an increased focus on attacking the shipping industry.
108480	111640	There's a lot of requirements coming from the industry.
111640	116400	From the IMO, for example, International Maritime Organization.
119240	121640	Earlier, it was really low bandwidth.
121960	128260	And a lot of delay on the old satellite communication systems like Inmarsat, Visat, and so on.
128600	132060	But today, everything is connected through Starlink.
132060	134880	And if you're close to shore, 4G, 5G.
135220	141400	So it's much more easier to be an attacker to remotely attack the vessels.
142660	145820	In the screenshot here, you have long, long ping times.
145820	151320	And it's a bit hard to run Nmap over half a second delay.
152600	158020	So, why should the shipping industry take cybersecurity more seriously?
158220	160040	It's huge values.
160040	165120	A LNG tanker, a gas tanker, can be approximately $300-400 million.
165580	167740	Cruise ships, even more expensive.
168300	170260	And OT systems, they are old.
170280	172220	Many of the new ships, too.
172340	174160	For example, I heard a story last year.
174160	176920	There was an entirely new vessel.
178000	180860	And the OT systems had a lot of Windows XP.
182680	185080	There's lives at stake.
185080	190700	Earlier this day, there was a talk about how...
190700	195580	I don't remember the title of the talk, but it was about...
195580	203200	Yeah, lives are at stake when something happens in the floating vessels.
203680	210180	And also, there's a waste number of integrated systems, which makes a gigantic attack vector for an adversary.
210180	216280	A mix of OT, IT environments, old and new systems, and so on.
216280	219780	And no one has the entire picture of how it looks.
221280	225400	But, when you're on board ships, you're on board...
225400	234160	It's wet, it's slippery, large things are moving, so it's really important to have your proper PPE.
234220	236320	The personal protective equipment.
236320	241200	Always wear gloves, hard hat, whatever you need.
241600	245060	High visibility clothing, maybe not like this.
245620	247800	It's maybe not compliant.
248100	249800	At least I had a hat and gloves.
252220	258380	When we do a test on board a cruise ship, it's usually two parts.
258760	261880	We go on board undercover as regular guests or workers.
262940	267080	Looking for network sockets and Wi-Fi with interesting access.
267380	273440	We take a look at the physical security, do social engineering to try to get into places that they should not be.
273520	277380	And the main objective is to get access to critical areas and systems.
278000	285400	And also there's a part two, when we, together with the crew, go into crew areas, into the bridge systems, engine rooms, and so on.
285400	287440	And it's kind of more like an audit.
290080	296120	Typical findings on cruise ships, there is a large number of live network sockets all over.
297980	306700	A lot of those sockets are office networks, but you can find them in public spaces, in gaming rooms, in cafeterias, many places.
306700	309520	And just connect your computer and you're in the office network.
309520	314440	And also access points are spread across the ships in the hallways.
314600	320100	And if you disconnect them, you might get into the... if you're unlucky, you'll just get into the guest network.
320100	323160	But you might come into the office network or the management network.
323160	326100	Or in many cases, you get a trunk with all the networks.
331420	339120	When we are connected to the office network, we usually do our regular internal penetration test.
339120	342660	And in most cases, we get domain admin in a very short time.
342660	349040	Using techniques like responder, password reuse, cleartext passwords found in docx files.
349040	354200	Weak passwords, certificate attacks, just regular domain attacks.
355140	360700	In many cases, we see that there's a lot of systems without the proper patching.
360700	366340	There is a lot of segmentation issues, like ship-to-ship and ship-to-shore.
366340	369560	So if you compromise one ship, you're able to go to another ship.
369560	375680	And maybe to the shore systems and to the shore locations, and vice versa.
375680	382620	If you compromise a shipping company onshore, in the offices, you might be able to get onto the ships.
383320	388080	We also have seen a lot of unauthorized rogue access points, rogue Wi-Fi networks.
388580	394940	And there are some creative crew members who want to have better Wi-Fi in their cabin or something.
394940	398080	Placing access points where they should not be.
398080	401240	Maybe connected to networks that they should not have Wi-Fi on.
402040	407500	We also see a lot of dual, triple, quadruple, plus, plus, plus home network cards on computers.
407500	415180	For example, on one occasion, this was in 2018, 19-ish.
415820	423600	We found that an electrician on board the ship had network cards in every single network on the ship.
423600	428900	Including the entertainment network that was exposed in the cabins.
429120	435300	So if we connected to the TV network in our cabin, we could go through his computer.
435300	440420	This was an unpatched Windows 7, vulnerable to MS-17-010.
440940	445880	Go to his computer, and from there go into every other network, including the OT networks.
447500	454800	So, on board ships, as I mentioned earlier, in many cases we go on board undercover.
454920	459180	Buy regular tickets, go on board, and do whatever havoc we can do.
459180	461640	Try not to be discovered.
461640	470480	And since we are really good at discovered work, we never use any clothing that can expose what we do.
472680	479300	This was a meeting room that we borrowed after social engineering the reception.
481420	487680	I think it was on the same test I found out that I was going around with a t-shirt saying I hack IOT.
488880	493780	So, yeah, maybe not thinking good enough all the time.
494320	498240	This was in a bar.
498240	499840	The bar was closed.
499840	504400	We connected to the cable going through the payment terminal.
504400	508580	Sitting in that area for like four, five, six hours.
508580	509720	No one noticed.
509720	512100	Nothing suspicious about this.
514660	523120	This one time we found some network sockets in the hallway, but we didn't want to sit on the floor connected to that.
523120	530800	So we took whatever we had and made a Raspberry Pi, just duct taped it to the wall, connected it and connected to the Wi-Fi on that.
530800	533640	So we can sit on some benches a couple of meters away.
534880	536200	Totally stealthy.
537360	541400	Just going around connected to whatever network sockets we can find.
541400	543340	This is an ATM on a ship.
544280	547960	Disconnected it, connected our computers and was inside the office network.
548160	550940	No one gave a damn if it didn't.
550940	552100	No one cares.
552100	555980	This is another ship walking around.
556540	559780	Found some network sockets in the hallways.
560220	561260	Connected.
562200	566220	My colleague Egil is much taller than me, so I just had to be a table for him.
569260	573360	Another ship doing testing in the gaming room.
573360	576240	We found network sockets behind the arcade machines.
576920	580060	I wished that the game was Whack-a-Mole, but it wasn't.
581740	587500	Another ship, I mentioned access points earlier.
589840	595980	In many cases, we just take down the access point and we drag the cable into our cabin and we can do the hacking from there.
596020	604040	Here, it was far, far away from the access point to our cabin, so we made an access...
604040	608240	This was before we went on the ship, because we knew that we might come over this.
608240	619160	We took an old Cisco access point, removed the interior of that, and placed a Raspberry Pi inside it with a PoE shield, power over Ethernet shield.
621100	628040	We found that it was Cisco access points on that ship, too, and it was the same bracket, so we just dragged it down and put up the new one.
628400	633860	Just wait for a couple of seconds and the Raspberry Pi had booted, and we could connect to that Wi-Fi network.
633860	639640	To make stuff like this is really delicate work.
640940	649200	This was my colleague and his grinder making place for the Raspberry Pi inside the access point that we just ripped everything out of.
650380	653080	So, war story.
653080	658960	This is a bit about how... I should keep my head close to the mic...
658960	662260	how stealthy we are during the tests.
663860	679980	On this test, we had, as I mentioned earlier, we disconnected the access point, dragged some cables into our cabin, duct taped the cable to the wall and the floor, didn't think anyone would notice.
680820	684040	So we were just sitting around in a restaurant, very stealthy.
684360	687860	Of course, black hoodies, hacker t-shirts, didn't think...
690580	699880	Sitting there eating breakfast, suddenly I heard on the speaker system, can John-André Bjorka please come to the reception?
700060	701740	We had no idea why.
701740	707100	So I went to the reception and met way too many people in uniforms.
707580	710700	They asked, what are you doing on board?
711580	722980	The reason they asked was that the cleaning personnel had seen the cable go into our cabin, and even though we had the Do Not Disturb sign on the door...
724580	727560	Don't trust the cleaning personnel, they will open the door anyway.
728200	732980	Do Not Disturb, they opened the door and they saw this.
734660	737640	Computers, network equipment, some radios laying around.
737780	739680	So this was how the cabin looked.
739680	742100	But when they opened the door, they didn't see this.
742100	743560	In their head, they saw this.
745980	750320	So they were sure it was FSB, Russian spies, on board.
750880	755740	So we had to explain that no, we're not Russian spies.
755740	757380	We're just doing a penetration test.
757380	758560	Please go talk to the captain.
758560	761420	We had to show the Get Out of Jail Free card, unluckily.
763120	774200	So we were joking about that on the next time that we do a test like this, we have to get some Russian caps and stuff and just leave in the cabin in FSB uniforms.
775520	779880	So, another example from a cruise ship.
780240	782620	We did the same thing.
782620	789280	Actually, taking down the access points, connecting to that network, many, many times we get a high success of that.
789280	791240	We find really interesting stuff.
791320	796680	This time, we disconnected the access point and started looking around.
798320	799980	Found some devices.
800080	807420	Some of them kind of had long ping time, but we thought that, okay, it's a ship-to-ship missing segmentation.
807420	809680	We're probably on another ship.
809780	813060	We tried to log on to those using default credentials.
813060	817100	It was some Cisco switches and some riverbed load balancing systems.
818140	825740	And it turned out to be network devising on a totally different ship for a totally different company.
827600	838480	We disconnected quickly and it turned out that this was the management network for the SATCOM and Wi-Fi provider, which didn't have any segmentation between their customers.
839360	841740	So that went bad.
849130	850870	Another example.
850870	856670	This was from, we did a remote test on an LNG tanker, gas tanker.
856670	860310	I think it was in the harbor in Congo or places.
860450	862030	Congo cone.
865330	869730	This was an assumed breach of the office network.
869730	879770	We connected to that and we made the customer execute on an executable, giving us access with our C2 network as an unbreach.
880550	884530	We got DA, domain admin, in a very short time, as usual.
884530	887470	The domain administrator password was administrator.
888010	890230	I think it's one of the quickest domain admins I got.
890230	894570	I think it was like five minutes before we got the shell in our C2 till we got domain admin.
895570	903730	Looking around, we found that the electrician had a TXT file on his desktop called passwords.txt.
904150	911950	And in that file there were the credentials for the ESXi server, the virtualization server.
911950	915110	And of course it didn't have any network segmentation.
915110	918590	You were able to access the management network from the office network.
918590	920190	You connected to that ESXi.
920190	923370	We found that that was controlling the ballast tanks on that chip.
923370	926530	So we disconnected quickly and called our customer.
928570	930170	So, physical.
931910	936010	As I mentioned earlier, I do a lot of physical penetration testing too.
936750	943230	On the next slides there will be some examples on what we've done.
943570	950830	The first one is on one large cruise liner somewhere.
950830	956910	We were able to get into the main communication room using just some steel wire, a flashlight and a Leatherman.
958410	959450	Another one.
959450	965090	This is the door down to the engine room from a public staircase.
965090	969310	Do you see what can be the issue about this?
972340	974940	Let's see if the video works here now.
979690	980990	Hopefully it will work.
989460	990860	That was a nice one.
990860	993760	The first time that I broke into a place with an umbrella.
994640	997840	I just had some pictures in case the video didn't work.
999540	1003940	So, this was one way of opening a door.
1003940	1009240	Some of you, if you are into physical security, you might have heard of the under-the-door tool.
1009280	1013740	A tool that you take under the door and reach the handle and open it.
1013920	1019820	There was this test that we did that the gap under the door was very large.
1019820	1022280	So I didn't need to use an under-the-door tool.
1022280	1024520	I used an under-the-door colleague instead.
1024960	1026580	If the movie works.
1027640	1028880	I have a movie.
1028960	1030440	Let's see if it works.
1039650	1041230	Luckily he is skinny.
1041450	1042830	I couldn't do that.
1042990	1044670	My head is too big.
1046290	1052790	So, when you are doing a physical test on board ships, this is one of the most valuable things that you can have.
1052830	1062090	You will get into a lot of lockers and lockers with network equipment with very interesting stuff.
1062290	1064290	Open doors with this and you get access to a switch.
1064290	1066770	You can connect and you will have access.
1067370	1069970	It's a really valuable toy.
1069970	1074590	Maybe the most valuable thing I have ever used on a ship.
1075010	1077110	So, dry dock.
1077710	1083810	As I mentioned earlier, we have done testing remotely, we have done testing on board while the ships were at sea.
1083930	1089010	But we have also done a lot of testing while the ships have been in dry dock.
1089830	1101130	In many cases the scope is a bit different because then we can touch a lot of the systems that we can't touch if the ship is in use.
1105730	1110950	So, it's especially network segmentation towards OT and navigation and so on.
1110950	1113970	Checking if air-gapped systems really are air-gapped.
1114350	1117170	And looking for rogue Wi-Fi networks there too.
1117170	1120590	And also spoofing, jamming of communication and navigation.
1121170	1122330	I have to speed up a bit.
1122330	1123790	Five minutes left.
1123790	1128870	On one case, this was a ship in dock.
1128870	1130870	It's a huge LNG tanker.
1130950	1135990	We found that all these networks should be air-gapped.
1136650	1140450	Office, OT, navigation share the same router.
1140450	1142050	Is it then air-gapped?
1142050	1142790	No.
1144190	1156150	In other cases we see that we are able to go from office to navigation, from office to management networks, reaching network equipment, communication equipment, iDRAC, ILA1 servers and so on.
1156410	1163430	And on one test we found that the VDR, the Voyage Data Recorder, isn't it?
1163490	1165810	I'm not so into the maritime words.
1165810	1168290	I seem to forget them because I'm not...
1168290	1171290	The VDR was connected to the crew Wi-Fi.
1171690	1174910	There was this laptop where you can access the VDR.
1175370	1177370	And that was on the guest network.
1177370	1179810	I guess it was because of some updates or something.
1182450	1186230	Also, we have been looking on radio waves.
1186230	1191690	What can we do about the communication systems and the navigation systems through radio?
1193050	1201130	On one ship, Dry Dock Steel, we got in a collaboration with the government, slash military, in that country.
1201230	1205490	So we were able to, and allowed to, do jamming and spoofing.
1205610	1209790	We used HackRF and BladeRF, which you can buy in the vendor area here.
1210470	1212850	To see what can we do.
1212850	1228070	In addition, we used a cheap GPS jammer, China jammer, which we needed to put an attenuator on to dampen the signal because it was too powerful from this cheap, tiny Chinese thing.
1228870	1243330	When we fired up the GPS jammer, standing up above the bridge outside, turned on the jammer, all the GPS screens on the bridge lost the signal.
1243390	1248110	And for some reason, the main screens on the bridge turned black.
1248210	1249270	I don't know why.
1249270	1251110	I never found out why.
1251110	1254730	But it was a really interesting observation.
1255370	1262170	When it comes to AIS spoofing, many people here know AIS, Automatic Identification System.
1262170	1264450	All ships send out that.
1264450	1267190	There's no authentication, no integrity check.
1267190	1268090	It's an open medium.
1268090	1269730	It's just transmitted.
1270110	1278570	For some reason, Trend Micro have an open source AIS spoofer code on their GitHub.
1278870	1280590	Don't know why.
1282390	1291230	When we did this AIS testing, we were able to jam the AIS so the ship would turn invisible.
1291230	1293830	We were able to spoof the AIS.
1293830	1302250	On this screenshot here, if you can see it behind me, there's a spoofed ship just next to the ship that we were doing the test on.
1302270	1305050	The ID of the ship was my phone number.
1307010	1318130	Using AIS, it's also possible to send emergency messages, man overboard messages, which can be almost like the sirens from the Greek mythology.
1318510	1325950	You can send an MOB over AIS and trick people to go there and try to rescue the man overboard.
1327330	1337770	I'm surprised that no pirates have used this to lure ships with valuable cargo into areas where they sit with their AK.
1340330	1344150	Top five findings in testing onboard ships.
1344150	1346010	Network segmentation issues.
1346030	1351030	It's really convenient to reach everything from everywhere, especially for the electrician.
1351030	1356050	We see a lot of default and weak passwords, as most OT systems.
1356830	1360390	There's a lot of non-hardened and outdated operating systems.
1361350	1364370	As I say in quotes here, it's working, don't touch.
1366710	1369490	Network equipment too, a lot of it isn't hardened.
1369490	1373970	For example, a Cisco switch with a default configuration needs some hardening to be secure.
1373970	1381010	It's really easy to jump between VLANs on a Cisco switch if you have the default configuration and don't know what you're doing when you're setting it up.
1381850	1387310	And also there's a lot of weak configuration in communication solutions and all the proprietary protocols.
1388610	1389810	And a few more.
1389810	1399030	Physical security, there's a lot of unlocked doors, weak locking mechanisms, stupid designs, like the big gap on the door and the bars in the door.
1399450	1404330	And for the service providers, there's a lot of missing segmentation between customers.
1404550	1408170	This is not only for the maritime industry, but all over.
1408170	1410350	So do you trust your service provider?
1411030	1412810	So, that's it.
1420160	1421560	Is there time for some questions?
1421700	1422460	No time?
1422600	1423100	Okay.
