OT/ICS Security Tools
Specialized tools for ICS security testing, from protocol analyzers to PLC exploitation frameworks and lab simulation platforms.
Protocol-Specific Tools
Modbus Tools
pymodbus
Full Modbus protocol implementation in Python. Supports TCP, RTU, ASCII.
pip install pymodbusmodbus-cli
Command-line tool for quick Modbus testing and enumeration.
pip install modbus-climbtget
A small pure-Perl Modbus/TCP and RTU client, built from source because it is not in the Debian archive. It reads and writes registers, so keep the writes to the lab replica.
git clone https://github.com/sourceperl/mbtget.git
cd mbtget
perl Makefile.PL
make
sudo make installModbusPal
Java-based Modbus slave simulator for lab testing.
# Download from SourceForgeSiemens S7 Tools
snap7
Open-source S7 communication library. Python bindings available.
pip install python-snap7s7scan
S7 network scanner over TCP/IP or LLC. Unmaintained, and the upstream repository is dormant, so read it to understand the enumeration sequence and prefer the Metasploit S7 modules or a passive capture for current work.
git clone https://github.com/klsecservices/s7scanEtherNet/IP (Allen-Bradley) Tools
pycomm3
Python library for Allen-Bradley PLC communication.
pip install pycomm3cpppo
EtherNet/IP CIP protocol implementation.
pip install cpppoOPC UA Tools
# Python OPC UA client library
pip install asyncua
# GUI client
pip install opcua-client-gui
# Enumeration: Metasploit ships auxiliary/scanner/scada/opcua_enum (listed below)ICS Exploitation Frameworks
Metasploit Framework
Built-in auxiliary modules for ICS protocol enumeration and device discovery. The module list below is the reference; search only finds what your installed tree ships.
msfconsole
search type:auxiliary modbus
search type:auxiliary scadaISF (Industrial Security Framework)
A Python exploitation framework for ICS, archived upstream. Worth reading for how its modules are structured; not something to adopt as maintained tooling.
git clone https://github.com/dark-lbp/isfMetasploit ICS Modules
# Modbus: unit-ID discovery, banner grab, detection
use auxiliary/scanner/scada/modbus_findunitid
use auxiliary/scanner/scada/modbus_banner_grabbing
use auxiliary/scanner/scada/modbusdetect
# Modbus client: reads and writes, so lab replica or shutdown window only
use auxiliary/scanner/scada/modbusclient
# Siemens S7 and PROFINET
use auxiliary/scanner/scada/profinet_siemens
# OPC UA
use auxiliary/scanner/scada/opcua_enum
# BACnet
use auxiliary/scanner/scada/bacnet_l3
# EtherNet/IP (CIP) and vendor gateways
use auxiliary/scanner/scada/ignition_statusping
use auxiliary/scanner/scada/moxa_discover
# Write-capable: sends CIP commands — lab replica or shutdown window only
use auxiliary/admin/scada/multi_cip_command
# Running example (unit-ID discovery, read-only)
use auxiliary/scanner/scada/modbus_findunitid
set RHOSTS 192.168.100.0/24
runNetwork Analysis
Wireshark
Essential for ICS traffic analysis. Has dissectors for most ICS protocols.
apt install wiresharkZeek (Bro)
Network analysis with ICS protocol support.
apt install zeekNetworkMiner
Network forensics with protocol parsing.
# Download from netresec.comGRASSMARLIN
NSA passive ICS network mapping. Archived upstream, so it is frozen at its last release: usable as a known-good passive reference, not as a tool you plan to see fixes in.
git clone https://github.com/nsacyber/GRASSMARLINLab Simulators
Virtual PLCs
| Tool | Description | Cost |
|---|---|---|
| OpenPLC | Open-source PLC runtime (IEC 61131-3) | Free |
| CODESYS | Industrial PLC development system | Free trial |
| Siemens PLCSim | Official Siemens S7 simulator | Commercial |
| Factory I/O | 3D factory simulation for PLC training | Commercial |
Complete ICS Labs
# GRFICSv2 - Virtual ICS/SCADA testbed
# Includes: HMI, PLCs, Process Simulation
git clone https://github.com/Fortiphyd/GRFICSv2
cd GRFICSv2
vagrant up
# SWaT - dataset from the SUTD-iTrust water-treatment testbed
# A physical testbed, not a simulator you can run; the published captures
# are useful for tuning detection against real process traffic.
# https://itrust.sutd.edu.sg/testbeds/secure-water-treatment-swat/
# DVCP - Damn Vulnerable Chemical Process
# Simple process simulation for learning
git clone https://github.com/satejnik/DVCP-VAM
# ConPot - ICS/SCADA honeypot (can be used as lab)
pip install conpot
conpot --template defaultVulnerability Scanners
Nmap ICS Scripts
Built-in scripts for ICS protocol detection.
ls /usr/share/nmap/scripts/*scada*
ls /usr/share/nmap/scripts/*modbus*
ls /usr/share/nmap/scripts/*s7*Redpoint
Digital Bond's ICS enumeration scripts for Nmap.
git clone https://github.com/digitalbond/RedpointAsset Discovery
# Shodan CLI for ICS discovery
pip install shodan
shodan init YOUR_API_KEY
# Search for ICS devices by port
shodan search port:502
shodan search port:102
shodan search "Siemens S7"
# Download results
shodan download results port:502 country:USOT Monitoring & Detection (Blue / Purple Team)
OT assessments often include a defensive component: validating that intrusion detection, asset visibility and anomaly monitoring actually see your activity. Because active scanning is risky in OT, most of these platforms are passive (SPAN/TAP-fed) and purpose-built to parse ICS protocols.
Commercial OT Detection Platforms
Dragos Platform
Passive OT asset visibility and threat detection with ICS-specific threat intelligence (the group that tracks PIPEDREAM, etc.).
Nozomi Networks
Guardian passive monitoring, asset inventory, and process anomaly detection across ICS/IoT.
Claroty (CTD / xDome)
Deep protocol inspection, vulnerability mapping, and secure remote access for OT/XIoT.
Microsoft Defender for IoT
Agentless OT monitoring (formerly CyberX) with Sentinel/Defender XDR integration for IT/OT correlation.
Open-Source Monitoring & Detection
# Malcolm - CISA/INL full-featured network traffic analysis suite
# Bundles Arkime + OpenSearch + Zeek with ICS protocol parsers
git clone https://github.com/idaholab/Malcolm
# Zeek with ICS protocol analyzers (parse OT traffic to logs)
# Modbus/DNP3 ship with Zeek; add community packages:
zkg install icsnpp-modbus
zkg install icsnpp-enip
zkg install icsnpp-bacnet
zkg install icsnpp-s7comm
zkg install icsnpp-dnp3
# Suricata - IDS/IPS with ICS keywords (modbus, dnp3, enip, cip)
suricata -c /etc/suricata/suricata.yaml -i eth0
# Rulesets: Emerging Threats SCADA, plus vendor advisory rules
# ICS honeypots (detect scanning / build threat intel)
pip install conpot # ICS/SCADA honeypot (Modbus, S7, BACnet, ...)
# Also: GridPot, T-Pot (multi-honeypot platform incl. conpot)Purple-Team Value
Tool Installation Script
#!/bin/bash
# ICS Pentesting Tools Installation Script
# Run on Kali Linux
echo "[*] Installing ICS/OT pentesting tools..."
# Update system
sudo apt update
# Python libraries for ICS protocols
pip3 install pymodbus
pip3 install python-snap7
pip3 install pycomm3
pip3 install asyncua
pip3 install BAC0
pip3 install scapy
pip3 install shodan censys
# Nmap (should be installed)
sudo apt install -y nmap
# Wireshark
sudo apt install -y wireshark tshark
# Clone repositories
mkdir -p ~/ics-tools
cd ~/ics-tools
# Redpoint Nmap scripts
git clone https://github.com/digitalbond/Redpoint
sudo cp Redpoint/*.nse /usr/share/nmap/scripts/
# GRFICSv2 (requires vagrant)
git clone https://github.com/Fortiphyd/GRFICSv2
# ConPot honeypot
pip3 install conpot
# OpenPLC (the upstream repository is archived, so it is frozen at its last release)
git clone https://github.com/thiagoralves/OpenPLC_v3
cd OpenPLC_v3
./install.sh linux
cd ..
echo "[+] Installation complete!"
echo "[*] Remember to configure Wireshark for non-root capture:"
echo " sudo dpkg-reconfigure wireshark-common"
echo " sudo usermod -aG wireshark $USER"Resources
-
CISA (Industrial Control Systems) -
cisa.gov/ics
Advisories, alerts, and best practices -
MITRE ATT&CK for ICS -
attack.mitre.org/ics
ICS-specific adversary techniques -
SANS ICS Resources -
sans.org/ics
Free resources and whitepapers -
SCADAhacker -
scadahacker.com
Tools, resources, and training
Certifications
Stand Up a Decoy
Run a simulator (Conpot, ModbusPal or OpenPLC) and a passive observer (Zeek with the ICS protocol parsers) on one isolated host, scan your own decoy, then produce a two-column list — what the scanner saw, what the decoy hid — and name which of those hidden facts a real device would have leaked instead.
Evidence to Capture
A tool review is a review of how a tool is pointed at plant traffic: where it sits, what it sends, and what it would have detected.
Provenance: Version, source, and hash or git reference for each tool in use. A cloned repository and a package from a distribution are different supply chains, and neither is verified by the tool name in a report.
Invocation line: The exact command or profile used: nmap timing template and NSE script set, the protocol client call, the Zeek or Suricata configuration. Passive and active use of the same tool are different risks.
Sensor placement: Where the monitor attaches (SPAN port, tap, inline) and which side of the DMZ it observes. A sensor on the wrong side of the firewall sees half the conduit.
Parser and rule coverage: The protocol parsers loaded (for example the icsnpp Modbus, ENIP, DNP3 and S7 packages) and the rule set revision, with the date. Detection coverage is what was loaded, not what the vendor advertises.
Detection proof: A recorded alert from an authorised simulated action: the write attempt, the source host, and the sensor that reported it. Coverage without a triggering event is a claim.
Likely False Positives
Most tool findings are about placement, and most placement concerns are answered by configuration.
- Exploitation framework installed on a jump host: Tools on a management host outside the control zone are inventory, not exposure. The finding is their presence on a plant-routable segment.
- Active scanner in use: An ICS scanner in passive mode reads mirrored traffic and sends nothing. Read the mode in the configuration before reporting an active scan of the plant.
- No alert on encrypted management traffic: A gateway terminating TLS between zones hides the payload by design. The gap is only real if the same protocol is clear-text elsewhere on that conduit.
- Scanner finding with no passive corroboration: Version-matching scanners guess from banners and generate false positives on controllers. Require corroboration from the passive sensor or the vendor tool.
- Lab simulator reachable from the office network: OpenPLC and GRFICS replicas are supposed to be reachable by the tooling. Check they are confined to the lab segment before scoring them.
Review Checklist
Provenance
- ☐ Confirm each tool has a pinned version and a recorded source.
- ☐ Check the tool is installed on an assessment host, not on plant equipment.
- ☐ Confirm no tool writes to a controller by default: review the default profile, not the documented one.
- ☐ Check scripts and rule packs are version-controlled, so the run is reproducible.
Deployment
- ☐ Confirm sensors attach to a tap or SPAN and that the port is not oversubscribed at peak.
- ☐ Check the sensor observes both directions of each conduit it claims to cover.
- ☐ Confirm the management interface of each passive appliance is not exposed to the control zone.
- ☐ Check clocks are synchronised, so an alert can be placed on the capture timeline.
Coverage
- ☐ Read the loaded protocol parsers against the protocols present in the plant capture.
- ☐ Confirm each detection was validated with a simulated action and the result recorded.
- ☐ Check the alert routes to a responder with the authority to isolate a controller.
- ☐ Confirm the blind spots are written down rather than implied by silence.
Remediation
Keep active tooling out, put passive coverage in
Structural
- • Confine active tooling to the assessment host and the lab replica, and give the plant only passive collection on a tap at each zone boundary.
- • Load the protocol parsers for the protocols actually present, and route alerts into the SOC queue that owns the OT escalation path.
- • Lock the tool inventory to pinned versions with a checksum, so a run can be repeated and attributed.
Compensating
- • Where the sensor cannot see a conduit, record the blind spot in the report and add a compensating procedural check, such as a change-window review of controller sessions.
- • For a tool that must remain on the plant segment, restrict it to a named management host and alert on any other source.