📚 Series Maritime Cybersecurity Learning Roadmap | PART 1 Lesson 4 of 5 · Course Index →
PART 1 · Lesson 4 Fundamentals Security Testing

Kali Linux and Security Testing

What Kali Linux is and why it exists · Vulnerability assessment vs penetration test · The five-phase pentest methodology · Maritime OT assessment constraints · The passive-first approach for shipboard systems · Legal and ethical framework — everything a maritime cyber professional needs to understand before conducting or commissioning any security testing activity.

Captain Paul
Captain Paul
Maritime Cybersecurity · IACS UR E26/E27
September 2026
📌 Editorial Note

This lesson explains security testing concepts for educational and defensive purposes. It describes methodology phases at a conceptual level — how assessors think and what they look for — to help defenders understand what testing reveals and how to interpret findings. This lesson does not provide step-by-step exploitation instructions. Offensive security testing requires written authorisation from the system owner; conducting it without authorisation is illegal in virtually all jurisdictions.

Maritime Cybersecurity Learning Roadmap
🎯 Lesson Objective

After this lesson you can explain what Kali Linux is and why it is the standard security testing platform, distinguish a vulnerability assessment from a penetration test and know when each is appropriate, describe the five phases of a standard penetration test methodology, explain why maritime OT environments require a fundamentally different assessment approach than standard IT systems, articulate the passive-first methodology and why it exists, and understand the full legal and ethical framework that governs all security testing activity.

In the previous three lessons of this Part 1 series, you built the conceptual and technical foundation for cybersecurity: what you are protecting and why (Lesson 1), how systems communicate and where networks fail (Lesson 2), and how operating systems manage the processes, users, and services that attackers target (Lesson 3). This lesson applies that knowledge to a different perspective: what it looks like when a professional security assessor actively tests those defences.

Understanding how security testing works is valuable whether you intend to conduct assessments yourself or whether you are on the receiving end as a ship operator, fleet manager, or security officer commissioning a maritime cyber assessment for IACS UR E26 compliance. In either case, you need to know: what does a competent assessor actually do? What should they be allowed to do? What should they absolutely not do on a live vessel? And what does the report they deliver actually mean?

The platform that most security professionals use for this work is Kali Linux. This lesson explains what it is, how professional security testing is structured, and why the maritime OT context demands a fundamentally different approach than standard corporate IT penetration testing.

1. What Is Kali Linux?

Kali Linux is a Debian-based Linux distribution developed and maintained by Offensive Security, designed specifically for security professionals performing penetration testing, digital forensics, and security research. It comes pre-installed with over 600 security tools organised by category: information gathering, vulnerability analysis, web application testing, exploitation frameworks, post-exploitation, wireless analysis, password attacks, digital forensics, reverse engineering, and more.

Kali is not an "attack operating system" designed to break into systems without permission. It is a professional assessment platform — the same tools that security professionals use are also available to malicious actors, but the difference is authorisation, scope, and intent. A surgeon's scalpel is not an assassination weapon because of who holds it and under what circumstances.

Because it is built on Debian Linux, everything from Lesson 3 applies: the same process model, the same user/group/permission system, the same file system structure, the same service management via systemd. Kali is simply Debian with a curated collection of security tools pre-installed and optimised. Learning Kali is therefore learning Linux with a security focus.

Kali Linux Tool Categories — Selected Examples
Information Gathering
  • nmap — port and service scanning
  • theHarvester — OSINT aggregation
  • Recon-ng — web intelligence framework
  • Maltego — relationship/entity mapping
  • Shodan integration — exposed devices
Vulnerability Analysis
  • OpenVAS — vulnerability scanner
  • Nikto — web server scanning
  • Lynis — Linux hardening audit
  • enum4linux — SMB enumeration
  • sqlmap — SQL injection detection
Exploitation / Forensics
  • Metasploit Framework — exploitation
  • Wireshark — traffic analysis (passive)
  • Volatility — memory forensics
  • Autopsy — disk forensics
  • John the Ripper — password analysis

Kali can be deployed as a full installation on dedicated hardware, as a bootable live USB (no persistent changes to the host system), as a virtual machine (VMware, VirtualBox, Hyper-V), as a Docker container, or as a Windows Subsystem for Linux (WSL) instance. For maritime assessments, the live USB or read-only deployment model is often preferred: no data persists on the assessment device after the engagement ends, protecting both the assessor and the ship operator.

Kali is the industry-standard environment for certifications including OSCP (Offensive Security Certified Professional — considered the gold standard of hands-on penetration testing certification), GPEN (GIAC Penetration Tester), and PNPT (Practical Network Penetration Tester). It is also the environment most maritime cybersecurity assessors carry when conducting CRSI (Cyber Resilience Services Implementation) or IACS UR E26 compliance assessments.

2. Vulnerability Assessment vs Penetration Test

The two most common forms of security testing are frequently confused — even by people who commission them. They have different scopes, methods, resource requirements, and outputs. Choosing the wrong one for the situation provides false confidence or wastes budget.

Vulnerability Assessment (VA)
  • Identifies and catalogues weaknesses — does not attempt exploitation
  • Primarily automated scanning (Nessus, OpenVAS, Qualys)
  • Wide coverage of the target environment
  • Output: vulnerability list with CVSS severity ratings
  • Suitable for periodic compliance checks and broad baseline
  • Lower cost per engagement; suitable for quarterly cadence
  • Risk: scanner findings include false positives — manual verification recommended
Penetration Test
  • Simulates a real attacker — actively attempts exploitation
  • Combination of automated tools and experienced manual testing
  • Proves whether vulnerabilities are exploitable in practice
  • Narrower scope, much higher depth
  • Output: exploited vulnerabilities with demonstrated real-world impact
  • Required for high-assurance validation and regulatory compliance
  • Higher cost; typically annual or post-major-change

The critical distinction: a vulnerability assessment tells you what might be exploitable. A penetration test tells you what actually is exploitable and what an attacker could do with it. A high-severity CVSS 9.8 vulnerability that requires local authenticated access on a system with no local users may be lower priority than a CVSS 5.3 vulnerability that is trivially exploitable from the internet and grants access to a navigation network.

A third type — the Red Team Exercise — goes further still: it simulates a full adversary campaign, including social engineering, physical access attempts, and multi-stage attack chains against a defined objective (e.g., "demonstrate ability to disrupt cargo operations from the public internet"), often without the defensive team knowing the timing. Red teaming is covered in Part 3 of this series.

3. The Standard Penetration Test Methodology — Five Phases

Security testing follows a structured process. The most widely referenced methodologies — PTES (Penetration Testing Execution Standard) and the OWASP Testing Guide — converge on five distinct phases. Understanding these phases helps defenders identify exactly which controls must be strongest, and at what point in an attacker's kill chain they can best interrupt progress.

1
Reconnaissance (Information Gathering)

Passive: OSINT with no direct interaction with the target — public DNS records, WHOIS, certificate transparency logs (crt.sh), Shodan results, LinkedIn/job postings (revealing internal tool names and technology stack), GitHub repositories (credentials accidentally committed), and Google dorking (finding exposed login pages, configuration files, backup files via Google search operators).

Active: Direct interaction begins — port scanning with nmap, service fingerprinting, banner grabbing, web crawling. Goal: build a complete map of the attack surface before any exploitation is attempted. A professional assessor spends significant time here — attacking the wrong target or the wrong port wastes time and increases noise.

Defender action: Regularly audit your external footprint via OSINT on your own organisation. Scrub sensitive data from job postings. Monitor certificate transparency logs for unauthorised certificates issued on your domains. Ensure Shodan doesn't surface internal systems.
2
Scanning and Enumeration

Active, directed probing of in-scope systems: identify open ports, running services, software versions, and known CVEs. Vulnerability scanners (Nessus, OpenVAS) cross-reference discovered software versions against vulnerability databases and generate a prioritised finding list. Enumeration extracts deeper information: usernames, SMB shares, domain structure, SNMP community strings, web application directory listings, API endpoints.

A critical sub-task here is service fingerprinting — determining exactly what software and version is running on each port. An HTTP server on port 80 might be Apache 2.2.15 (a version with known critical vulnerabilities) or NGINX 1.24 (current). The version matters enormously for both the attacker's next steps and the defender's prioritisation.

Defender action: Patch management reduces what a scanner finds. Remove unnecessary services and close unused ports — each open port is an attack surface. Network segmentation limits which ports are reachable from any given network zone.
3
Exploitation

Within the agreed scope, testers attempt to exploit identified vulnerabilities to gain unauthorised access. They use exploit frameworks (Metasploit, which includes a database of ready-to-use exploits for known CVEs), custom code, or manual techniques. The goal is to prove that a vulnerability is practically exploitable, not merely theoretically present — a scanner can flag a vulnerability that requires specific conditions that don't exist in this environment, making it a false alarm in practice.

A professional assessor documents every step — including exploits attempted, what succeeded, what failed, and the exact evidence chain — so that findings can be reproduced and remediated. "We got in" without documentation is not a penetration test; it is just hacking.

Maritime caution: Active exploitation of navigation, propulsion, or safety systems is never performed — even in a contracted penetration test. The consequences of crashing an ECDIS workstation underway are not acceptable, regardless of scope agreement.
4
Post-Exploitation

After gaining initial access, testers ask: what can an attacker do from here? They attempt to: maintain persistence (so access survives reboots), escalate privileges (from regular user to administrator or root), harvest credentials (passwords, API keys, SSH keys from the compromised host), and move laterally to other systems in the network. This phase shows the real business impact of a breach — not just "we got in through the VPN" but "and then we could reach the cargo management system, the ballast water management controller, and the vessel management interface."

The pivot point is particularly revealing for maritime environments. If a tester compromises the crew Wi-Fi network and then finds they can reach the ECDIS workstation — because no network segmentation exists — that finding has immediate safety implications beyond just IT security.

Defender action: Network segmentation (IACS UR E26 zone/conduit model), least-privilege user accounts, and detection capabilities (EDR, SIEM) are all validated by this phase. An attacker who gets in should face internal barriers — not a flat network where everything is reachable from everywhere.
5
Reporting

A penetration test without a clear, actionable report provides no security value. The report is the actual deliverable. Professional reports have two distinct sections: an executive summary that communicates risk posture and business impact to non-technical management without technical jargon, and a technical findings section where each vulnerability is documented with severity rating (CVSS score), supporting evidence (screenshots, logs, command output), step-by-step reproduction procedure, and specific, actionable remediation guidance.

Good reports distinguish between what was found and what was actually exploitable — because that distinction drives prioritisation. A critical CVSS score that cannot be exploited in this specific environment may be lower priority than a medium CVSS finding that yields domain administrator access in three steps.

Follow-through: Track findings in a risk register, assign remediation owners, verify fixes with a formal retest. A penetration test that produces a report that sits unread on a file share has achieved nothing.

4. Security Testing in the Maritime Context — Why OT Changes Everything

Maritime cyber security assessments apply the same five-phase methodology described above, but within constraints that are fundamentally different from standard corporate IT penetration testing. Understanding these constraints is not optional — they exist because of genuine safety risk, operational continuity requirements, and the legal framework of maritime law. Disregarding them on a live vessel can cause loss of life or maritime incident.

Maritime Assessment Constraints — What Changes
⛔ SAFETY PRIMACY — Hard Limit

Active exploitation of propulsion, steering, navigation, or safety management systems is categorically prohibited — even in a contracted penetration test. Crashing an ECDIS workstation underway, sending malformed data to an AMS (Alarm Management System), or disrupting the GPS signal receiver are not acceptable test methods regardless of scope agreement, contractual indemnity, or the assessor's confidence in a "controlled" test. The risks are not manageable at sea.

⚠️ OPERATIONAL CONTINUITY — Timing and Method Control

Port call windows (typically 24–48 hours) are the preferred assessment timing — the vessel is not underway, some systems can be safely taken offline for testing, and there is crew access to support the assessment. Aggressive network scans (high packet-rate nmap scans, SYN floods, UDP probes) can crash legacy OT systems and industrial controllers that were never designed to handle unexpected network traffic. Test intensity must be calibrated to the target environment.

✅ ASSET INVENTORY FIRST — IACS UR E26 Requirement

IACS UR E26 requires a complete inventory of computer-based systems (CBS) as a prerequisite for zone/conduit design. A maritime assessment therefore typically begins with a full asset discovery phase using passive techniques — listening to network traffic (Wireshark), reviewing existing documentation, physically inspecting hardware — before any active scanning. You cannot properly define scope or risk without knowing what is on the network.

📋 SCOPE DOCUMENT — Rules of Engagement

Written, signed Rules of Engagement (RoE) are legally mandatory. This document defines: which systems are in-scope (specific IP ranges, hostnames, OT control system identifiers), which test methods are permitted vs prohibited, which personnel must be notified before testing begins (including Master of the vessel, class society representative, and shore-based fleet manager), the emergency stop procedure (who to call, how quickly testing must cease), and data handling requirements for findings.

🔍 ZONE VERIFICATION — IACS UR E26 Compliance

Assessors verify that the IEC 62443-inspired zone and conduit model required by IACS UR E26 is genuinely implemented — not just documented. Network architecture diagrams may show clean separation; the actual network may tell a different story. Zone verification involves network mapping, firewall rule review, and traffic analysis to confirm that OT zones (navigation, propulsion, cargo) are genuinely isolated from IT zones (crew internet, management systems) with appropriate conduit controls between them.

5. The Passive-First Approach — Maritime OT Assessment in Practice

Given the safety and operational constraints above, a competent maritime cybersecurity assessor defaults to a passive-first methodology: gather as much intelligence as possible through non-intrusive means before any active probing, and restrict active methods to the minimum necessary to answer each specific security question.

Passive Assessment Techniques — Maritime OT
Network Traffic Monitoring (Wireshark / tcpdump)
Connect a monitoring laptop to a network switch port configured for SPAN/mirroring. Capture and analyse traffic for 30–60 minutes. This reveals: which systems are communicating with which (building the actual network topology, not the documented one), which protocols are in use (including unencrypted Modbus, Telnet, FTP), and whether any unexpected external connections are being made.
Configuration Review (Document Analysis)
Review firewall rule sets, switch VLAN configurations, user account lists, and system log archives without touching live systems. Many vulnerabilities — open ports to OT from IT, default credentials, unnecessary services — are visible in configuration files without any active probing.
Physical Inspection
Walk the vessel. Count network switches and their physical locations. Observe which physical interfaces are active on ECDIS workstations, AMS servers, and OT HMIs. Note any USB drives plugged into systems, any maintenance laptops connected to production networks, any unlocked server rooms. Physical access findings are often the most impactful: an unlocked server room on the bridge deck bypasses all network security controls.
Controlled Active Scanning (When Required)
When active scanning of OT systems is necessary (e.g., to confirm software versions on a specific system for CVE analysis), use the lowest-intensity scan options available: nmap -sV --version-intensity 0 -T2 (slow timing, minimal probes). Always scan during a maintenance window with the Master's knowledge. Never run aggressive timing (-T5) or SYN scans against OT targets.

The passive-first approach is not a limitation on assessment quality — it is the appropriate methodology for safety-critical operational technology environments. A well-executed passive assessment of a vessel's network can surface critical findings (open Modbus port accessible from crew Wi-Fi, Telnet HMI visible from VLAN 1, AIS receiver on same switch as cargo management) without touching a single live system. The evidence quality is high, the operational risk is zero, and the findings are directly actionable.

6. Legal and Ethical Framework — No Authorisation, No Testing

Unauthorised access to computer systems is a criminal offence under laws including the Computer Fraud and Abuse Act (CFAA) in the United States, the Computer Misuse Act 1990 (CMA) in the United Kingdom, the Cybercrime Prevention Act in the Philippines (relevant for Filipino-crewed vessels), and equivalent legislation in all IMO member states. "But I wanted to test the security" is not a legal defence. Ignorance of scope boundaries is not a defence. Working from a Kali Linux distribution is not a defence.

The jurisdictional complexity of maritime law adds additional layers: a vessel in international waters is subject to the law of its flag state; in territorial waters, the coastal state's laws apply; at port, the port state's laws apply. An assessor who exceeds their agreed scope while a vessel is at anchor in a foreign port may face prosecution under three different jurisdictions simultaneously.

Required before any security test — no exceptions
  • Written authorisation from the legal owner of every system in scope — not verbal agreement, not an email chain, not assumption based on a prior engagement
  • Defined scope document specifying exact IP ranges, hostnames, system types, and testing methods permitted
  • Rules of Engagement signed by both parties, including escalation contacts and emergency stop procedure
  • Notification list — Master of the vessel, fleet manager, class society representative, legal counsel (as required)
  • Confidentiality / NDA — test findings reveal the owner's security posture; handling and disclosure must be governed by contract
  • Insurance verification — professional assessors carry professional liability (E&O) insurance covering security testing activities

Professional certifications such as OSCP (Offensive Security Certified Professional), GPEN (GIAC Penetration Tester), and PNPT (Practical Network Penetration Tester) all include mandatory ethical frameworks. The EC-Council Code of Ethics requires practitioners to obtain explicit authorisation, protect client data, disclose all findings, and report illegal activity encountered during an engagement. These are professional obligations — violating them results in certification revocation in addition to legal consequences.

Captain Paul
✍️ Author Insight — From the Field
Captain Paul · Maritime Cybersecurity Consultant · IACS UR E26/E27

The first thing we do on an IACS UR E26 CRSI assessment is nothing — we do not scan. That may sound counterintuitive, but the rule learned in the field is unambiguous: on a vessel's OT environment, never run a scanner before you know what is connected.

This comes from something that actually happened during an E26 CRSI assessment. During the initial network mapping phase, the moment we opened a Wireshark capture, Modbus TCP port 502 traffic was immediately visible. Something was communicating on that port. Traced back, it was the engine room AMS (Alarm Management System) — sharing a switch segment with the IT network, with no documentation of this connection anywhere. Had we run a Nessus scan against that port, there was a real chance the AMS would have become unresponsive.

This is also exactly why IACS UR E26 requires asset inventory first — you cannot safely plan any test before you know what is there. Field practice diverges from textbook methodology: the textbook says "Phase 1: Reconnaissance, Phase 2: Scanning", but on a vessel it becomes "Phase 1: passive traffic monitoring + physical walkthrough, Phase 2: documentation review with vessel stakeholders, Phase 3: limited scanning only within agreed maintenance windows." That distinction is why this lesson matters beyond tool listings — tools are the means; judgment is the core skill.

✅ What We Learned
  • Kali Linux is a Debian-based professional assessment platform with 600+ pre-installed security tools — not an attack OS, but a practitioner's environment that requires authorisation to use legitimately.
  • A vulnerability assessment identifies weaknesses without exploiting them; a penetration test actively exploits to demonstrate real-world impact. Choose based on the security question you need to answer.
  • The five-phase pentest methodology: Reconnaissance → Scanning/Enumeration → Exploitation → Post-Exploitation → Reporting. Each phase has direct relevance to defensive control design.
  • Maritime OT assessments apply the same methodology but under strict constraints: no active exploitation of safety systems, operational continuity requirements, asset inventory before scanning, zone/conduit verification, and signed Rules of Engagement.
  • The passive-first approach — network traffic monitoring, configuration review, physical inspection — gathers critical intelligence without touching live systems, which is the appropriate methodology for safety-critical OT.
  • No security test may proceed without written, scoped, signed authorisation. Maritime jurisdictional complexity adds flag state, coastal state, and port state law considerations simultaneously.
▶ Where This Leads Next

Lesson 5 — Security+ and the Cybersecurity Knowledge Map zooms out from the specific tools and techniques of this lesson to give you the full map of cybersecurity domains — what you have learned in Part 1, and where the remaining 11 lessons in this series will take you. CompTIA Security+ SY0-701 provides the most recognised vendor-neutral framework for understanding the complete scope of cybersecurity practice: from identity and access management through cryptography, incident response, and risk management. For maritime professionals without a formal cybersecurity background, understanding where Security+ fits in the learning landscape — and how it maps to IACS UR E26/E27 requirements — is the essential orientation for everything that follows.

⚓ Join the ShipPaulJobs Community

Join →
Share

Comments

Top Ranked · All Posts

Popular Posts