Welcome to my talk, Pirates of the North Sea. My name is John-Andre Bjørkhaug. Jon-Andre Bjørkhaug, if you're Norwegian. I work as a principal penetration tester for a Norwegian company called NetSecurity. I'm an original electronics engineer with a specialization in telecommunication and wireless systems. It's much more fun to break stuff than building stuff, so therefore I do penetration testing. I've been doing pen testing, red teaming, for a bit over 17 years now. In this presentation, there are a lot of pictures. It's a lot of war stories. Mostly it's me and an old colleague and friend. So there's two people that you will see in the photos. When I first started doing maritime penetration testing, I didn't have any clue about anything maritime. I am an inland guy, Norwegian. There's no water where I live. I didn't know the difference between bow and aft. I was told to go to the bow and I went in the back. So, yeah. But I learned a lot since then. We started doing this testing in 2017. And I've been to a lot of countries doing this. Several different types of vessels. Cruise, freight, LNG, ferries, and so on. And I've been doing the test both remotely, on board, in dry dock. So we're doing a lot of different kind of tests. So, what's up with this slide? Let's just fill it up. So why do a pen test of a ship? Lately, there has been an increased focus on attacking the shipping industry. There's a lot of requirements coming from the industry. From the IMO, for example, International Maritime Organization. Earlier, it was really low bandwidth. And a lot of delay on the old satellite communication systems like Inmarsat, Visat, and so on. But today, everything is connected through Starlink. And if you're close to shore, 4G, 5G. So it's much more easier to be an attacker to remotely attack the vessels. In the screenshot here, you have long, long ping times. And it's a bit hard to run Nmap over half a second delay. So, why should the shipping industry take cybersecurity more seriously? It's huge values. A LNG tanker, a gas tanker, can be approximately $300-400 million. Cruise ships, even more expensive. And OT systems, they are old. Many of the new ships, too. For example, I heard a story last year. There was an entirely new vessel. And the OT systems had a lot of Windows XP. There's lives at stake. Earlier this day, there was a talk about how... I don't remember the title of the talk, but it was about... Yeah, lives are at stake when something happens in the floating vessels. And also, there's a waste number of integrated systems, which makes a gigantic attack vector for an adversary. A mix of OT, IT environments, old and new systems, and so on. And no one has the entire picture of how it looks. But, when you're on board ships, you're on board... It's wet, it's slippery, large things are moving, so it's really important to have your proper PPE. The personal protective equipment. Always wear gloves, hard hat, whatever you need. High visibility clothing, maybe not like this. It's maybe not compliant. At least I had a hat and gloves. When we do a test on board a cruise ship, it's usually two parts. We go on board undercover as regular guests or workers. Looking for network sockets and Wi-Fi with interesting access. We take a look at the physical security, do social engineering to try to get into places that they should not be. And the main objective is to get access to critical areas and systems. 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. And it's kind of more like an audit. Typical findings on cruise ships, there is a large number of live network sockets all over. A lot of those sockets are office networks, but you can find them in public spaces, in gaming rooms, in cafeterias, many places. And just connect your computer and you're in the office network. And also access points are spread across the ships in the hallways. And if you disconnect them, you might get into the... if you're unlucky, you'll just get into the guest network. But you might come into the office network or the management network. Or in many cases, you get a trunk with all the networks. When we are connected to the office network, we usually do our regular internal penetration test. And in most cases, we get domain admin in a very short time. Using techniques like responder, password reuse, cleartext passwords found in docx files. Weak passwords, certificate attacks, just regular domain attacks. In many cases, we see that there's a lot of systems without the proper patching. There is a lot of segmentation issues, like ship-to-ship and ship-to-shore. So if you compromise one ship, you're able to go to another ship. And maybe to the shore systems and to the shore locations, and vice versa. If you compromise a shipping company onshore, in the offices, you might be able to get onto the ships. We also have seen a lot of unauthorized rogue access points, rogue Wi-Fi networks. And there are some creative crew members who want to have better Wi-Fi in their cabin or something. Placing access points where they should not be. Maybe connected to networks that they should not have Wi-Fi on. We also see a lot of dual, triple, quadruple, plus, plus, plus home network cards on computers. For example, on one occasion, this was in 2018, 19-ish. We found that an electrician on board the ship had network cards in every single network on the ship. Including the entertainment network that was exposed in the cabins. So if we connected to the TV network in our cabin, we could go through his computer. This was an unpatched Windows 7, vulnerable to MS-17-010. Go to his computer, and from there go into every other network, including the OT networks. So, on board ships, as I mentioned earlier, in many cases we go on board undercover. Buy regular tickets, go on board, and do whatever havoc we can do. Try not to be discovered. And since we are really good at discovered work, we never use any clothing that can expose what we do. This was a meeting room that we borrowed after social engineering the reception. I think it was on the same test I found out that I was going around with a t-shirt saying I hack IOT. So, yeah, maybe not thinking good enough all the time. This was in a bar. The bar was closed. We connected to the cable going through the payment terminal. Sitting in that area for like four, five, six hours. No one noticed. Nothing suspicious about this. This one time we found some network sockets in the hallway, but we didn't want to sit on the floor connected to that. 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. So we can sit on some benches a couple of meters away. Totally stealthy. Just going around connected to whatever network sockets we can find. This is an ATM on a ship. Disconnected it, connected our computers and was inside the office network. No one gave a damn if it didn't. No one cares. This is another ship walking around. Found some network sockets in the hallways. Connected. My colleague Egil is much taller than me, so I just had to be a table for him. Another ship doing testing in the gaming room. We found network sockets behind the arcade machines. I wished that the game was Whack-a-Mole, but it wasn't. Another ship, I mentioned access points earlier. 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. Here, it was far, far away from the access point to our cabin, so we made an access... This was before we went on the ship, because we knew that we might come over this. 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. 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. Just wait for a couple of seconds and the Raspberry Pi had booted, and we could connect to that Wi-Fi network. To make stuff like this is really delicate work. This was my colleague and his grinder making place for the Raspberry Pi inside the access point that we just ripped everything out of. So, war story. This is a bit about how... I should keep my head close to the mic... how stealthy we are during the tests. 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. So we were just sitting around in a restaurant, very stealthy. Of course, black hoodies, hacker t-shirts, didn't think... Sitting there eating breakfast, suddenly I heard on the speaker system, can John-André Bjorka please come to the reception? We had no idea why. So I went to the reception and met way too many people in uniforms. They asked, what are you doing on board? 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... Don't trust the cleaning personnel, they will open the door anyway. Do Not Disturb, they opened the door and they saw this. Computers, network equipment, some radios laying around. So this was how the cabin looked. But when they opened the door, they didn't see this. In their head, they saw this. So they were sure it was FSB, Russian spies, on board. So we had to explain that no, we're not Russian spies. We're just doing a penetration test. Please go talk to the captain. We had to show the Get Out of Jail Free card, unluckily. 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. So, another example from a cruise ship. We did the same thing. Actually, taking down the access points, connecting to that network, many, many times we get a high success of that. We find really interesting stuff. This time, we disconnected the access point and started looking around. Found some devices. Some of them kind of had long ping time, but we thought that, okay, it's a ship-to-ship missing segmentation. We're probably on another ship. We tried to log on to those using default credentials. It was some Cisco switches and some riverbed load balancing systems. And it turned out to be network devising on a totally different ship for a totally different company. 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. So that went bad. Another example. This was from, we did a remote test on an LNG tanker, gas tanker. I think it was in the harbor in Congo or places. Congo cone. This was an assumed breach of the office network. We connected to that and we made the customer execute on an executable, giving us access with our C2 network as an unbreach. We got DA, domain admin, in a very short time, as usual. The domain administrator password was administrator. I think it's one of the quickest domain admins I got. I think it was like five minutes before we got the shell in our C2 till we got domain admin. Looking around, we found that the electrician had a TXT file on his desktop called passwords.txt. And in that file there were the credentials for the ESXi server, the virtualization server. And of course it didn't have any network segmentation. You were able to access the management network from the office network. You connected to that ESXi. We found that that was controlling the ballast tanks on that chip. So we disconnected quickly and called our customer. So, physical. As I mentioned earlier, I do a lot of physical penetration testing too. On the next slides there will be some examples on what we've done. The first one is on one large cruise liner somewhere. We were able to get into the main communication room using just some steel wire, a flashlight and a Leatherman. Another one. This is the door down to the engine room from a public staircase. Do you see what can be the issue about this? Let's see if the video works here now. Hopefully it will work. That was a nice one. The first time that I broke into a place with an umbrella. I just had some pictures in case the video didn't work. So, this was one way of opening a door. Some of you, if you are into physical security, you might have heard of the under-the-door tool. A tool that you take under the door and reach the handle and open it. There was this test that we did that the gap under the door was very large. So I didn't need to use an under-the-door tool. I used an under-the-door colleague instead. If the movie works. I have a movie. Let's see if it works. Luckily he is skinny. I couldn't do that. My head is too big. So, when you are doing a physical test on board ships, this is one of the most valuable things that you can have. You will get into a lot of lockers and lockers with network equipment with very interesting stuff. Open doors with this and you get access to a switch. You can connect and you will have access. It's a really valuable toy. Maybe the most valuable thing I have ever used on a ship. So, dry dock. As I mentioned earlier, we have done testing remotely, we have done testing on board while the ships were at sea. But we have also done a lot of testing while the ships have been in dry dock. 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. So, it's especially network segmentation towards OT and navigation and so on. Checking if air-gapped systems really are air-gapped. And looking for rogue Wi-Fi networks there too. And also spoofing, jamming of communication and navigation. I have to speed up a bit. Five minutes left. On one case, this was a ship in dock. It's a huge LNG tanker. We found that all these networks should be air-gapped. Office, OT, navigation share the same router. Is it then air-gapped? No. 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. And on one test we found that the VDR, the Voyage Data Recorder, isn't it? I'm not so into the maritime words. I seem to forget them because I'm not... The VDR was connected to the crew Wi-Fi. There was this laptop where you can access the VDR. And that was on the guest network. I guess it was because of some updates or something. Also, we have been looking on radio waves. What can we do about the communication systems and the navigation systems through radio? On one ship, Dry Dock Steel, we got in a collaboration with the government, slash military, in that country. So we were able to, and allowed to, do jamming and spoofing. We used HackRF and BladeRF, which you can buy in the vendor area here. To see what can we do. 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. 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. And for some reason, the main screens on the bridge turned black. I don't know why. I never found out why. But it was a really interesting observation. When it comes to AIS spoofing, many people here know AIS, Automatic Identification System. All ships send out that. There's no authentication, no integrity check. It's an open medium. It's just transmitted. For some reason, Trend Micro have an open source AIS spoofer code on their GitHub. Don't know why. When we did this AIS testing, we were able to jam the AIS so the ship would turn invisible. We were able to spoof the AIS. 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. The ID of the ship was my phone number. Using AIS, it's also possible to send emergency messages, man overboard messages, which can be almost like the sirens from the Greek mythology. You can send an MOB over AIS and trick people to go there and try to rescue the man overboard. I'm surprised that no pirates have used this to lure ships with valuable cargo into areas where they sit with their AK. Top five findings in testing onboard ships. Network segmentation issues. It's really convenient to reach everything from everywhere, especially for the electrician. We see a lot of default and weak passwords, as most OT systems. There's a lot of non-hardened and outdated operating systems. As I say in quotes here, it's working, don't touch. Network equipment too, a lot of it isn't hardened. For example, a Cisco switch with a default configuration needs some hardening to be secure. 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. And also there's a lot of weak configuration in communication solutions and all the proprietary protocols. And a few more. 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. And for the service providers, there's a lot of missing segmentation between customers. This is not only for the maritime industry, but all over. So do you trust your service provider? So, that's it. Is there time for some questions? No time? Okay.