Skip to content

Wireshark for IT/OT and Hardening Checklists

Wireshark lets you see what devices actually say on the wire. For defenders it answers questions such as “who talks Modbus to this PLC?” and “why is this gateway retransmitting?”. This page gives a filter cheat sheet and practical hardening checklists.

  • Mirror (SPAN) port or network TAP. Configure the switch to copy traffic of the ports of interest to a monitoring port, or place a TAP in line. This is passive and does not touch the devices. Do not plug a laptop into a production control network ad hoc without approval.
  • Use a dedicated capture interface with no IP address where possible.
  • Time-box captures, keep files small and store them securely.
  • To capture on Linux: sudo tcpdump -i eth1 -w capture.pcap -s 0 port 502 (writes a file you open in Wireshark later).
Capture filter Display filter
Syntax BPF (port 502, host 10.0.0.5) Wireshark (tcp.port == 502, modbus)
When applied Before packets are saved After capture, to what is shown
Effect Discards other traffic permanently Hides, nothing is lost
Use Limit volume on busy links Analysis

When in doubt, capture broadly (within authorization) and filter on display.

Goal Filter
Modbus traffic modbus
Modbus TCP port tcp.port == 502
Modbus write requests (function 5, 6, 15, 16) modbus.func_code in {5 6 15 16}
MQTT traffic mqtt
MQTT PUBLISH messages mqtt.msgtype == 3
MQTT CONNECT messages mqtt.msgtype == 1
OPC UA opcua
DNS dns
DNS queries only dns.flags.response == 0
TLS traffic tls
TLS Client Hello tls.handshake.type == 1
TLS server name (SNI) tls.handshake.extensions_server_name
Host (source or destination) ip.addr == 192.168.10.5
Subnet ip.addr == 192.168.10.0/24
Source only ip.src == 192.168.10.5
MAC address eth.addr == aa:bb:cc:dd:ee:ff
TCP SYN (connection attempts) tcp.flags.syn == 1 && tcp.flags.ack == 0
TCP resets tcp.flags.reset == 1
Retransmissions tcp.analysis.retransmission
Any TCP problem flagged by Wireshark tcp.analysis.flags
ARP arp
Everything except noise !(arp or dns or mdns or ssdp)
Combine ip.addr == 192.168.10.5 && tcp.port == 502

Tips:

  • Right-click a packet field and choose Apply as Filter to build filters without memorising names.
  • Statistics > Conversations and Endpoints show who talks to whom; Statistics > Protocol Hierarchy shows what protocols are present.
  • Many SYNs with no replies from one host to many ports can indicate scanning; in an OT network any new talker is worth investigating.
  • A new device sending Modbus writes (modbus.func_code in {5 6 15 16}) to a PLC that has only ever been read is a high-value alert candidate.
  • Unencrypted protocols (Modbus, plain MQTT 1883) expose data to anyone on the segment. Prefer MQTT over TLS (8883) and OPC UA with security enabled. Default ports are in the ports cheat sheet; command-line helpers are in the Linux networking CLI cheat sheet.

To practise safely, generate traffic from the Virtual Modbus Docker Lab (capture on the Docker bridge or host loopback to port 5020; set the Modbus TCP port in Wireshark via Analyze > Decode As so it dissects as Modbus).

Treat these as starting points and adapt to vendor guidance and your change-control process. Test changes on non-production first.

  • Change all default usernames and passwords; use unique credentials per device
  • Update firmware to a vendor-supported version after testing
  • Disable unused services (Telnet, FTP, HTTP admin, SNMP v1/v2c)
  • Management interface only on a dedicated management VLAN
  • Use HTTPS/SSH for administration; disable plain-text management
  • Restrict inbound firewall rules to the specific hosts and ports required (for example only the poller to TCP 502)
  • Use MQTT over TLS with per-device client credentials or certificates and topic ACLs
  • Gateways make outbound connections only; no inbound port-forwards from the internet
  • Enable logging and send it to a central collector with synchronised time (NTP)
  • Back up configuration and store it offline
  • Physically secure the device and disable unused ports and USB
  • No direct internet exposure of PLCs, HMIs or gateways
  • VPN or access broker terminates in the IDMZ, not inside the control zone
  • Multi-factor authentication for all remote users
  • Named accounts, no shared credentials; vendor accounts time-limited and disabled when not in use
  • Modern protocols and strong ciphers only; keep VPN software patched
  • Least privilege: VPN users reach only the specific hosts they need
  • Session logging and review
  • Split-tunnelling policy defined and enforced
  • Tested revocation process when staff or vendors leave

Windows endpoints (HMI, engineering workstation, historian)

Section titled “Windows endpoints (HMI, engineering workstation, historian)”
  • Supported OS with security updates applied on an agreed schedule
  • Standard users for daily work; separate admin accounts
  • BitLocker or equivalent on laptops
  • Windows Firewall on, with allow rules limited to required ports
  • Disable SMBv1; disable unused services and shares
  • RDP only through the jump host, with Network Level Authentication
  • Application allow-listing or at least controlled software installation
  • Restrict USB storage; scan removable media at a kiosk
  • Antivirus/EDR configured per vendor compatibility guidance for the control software
  • Logging forwarded to a SIEM, for example the Wazuh lab
  • Offline backups of images and project files
  • Automatic security updates enabled (or a scheduled patch process)
  • SSH key authentication; disable password login and direct root login
  • Host firewall enabled with default deny inbound (ufw or nftables)
  • Services bound to the correct interface, not 0.0.0.0 unless needed
  • Containers run as non-root, with pinned image versions and no exposed database ports
  • Time sync (chrony or systemd-timesyncd) and centralised logs
  • Remove unused packages and accounts
  • File integrity monitoring on critical config paths
  • Verified backups
  • Segmentation matches your zone design: plan it in the VLAN Planner
  • Unused switch ports disabled; port security or 802.1X where supported
  • Default deny between zones, with documented allowed flows
  • Passive monitoring on a SPAN port or TAP at zone boundaries