Home / CranFam Homelab / Modbus demo
Interactive demo · Industrial control systems

Stop the overflow.

A five-minute version of my Modbus Detective lab. Watch a water tank’s control traffic, find the packet an attacker used to take over the pump, then block it.

Simulated entirely in your browser · no real devices or network traffic

  1. 01Decode the trafficClick any packet. The HMI polls the PLC about once a second.
  2. 02Find the attackerWhen the tank starts rising, flag the packet that caused it.
  3. 03Defend the PLCTurn on a filter so only the HMI is allowed to write.

Pump station 3 · operator view
40%70%100%
Tank level
52%
Drain pump
Idle
High setpoint
70%
Captured Modbus TCP trafficPLC 192.0.2.10 · HMI 192.0.2.20
#TimeSource → DestinationFCSummary
What this shows

Three ideas behind the demo.

The same concepts students practice in the full CYBR 4650 lab on the CranFam rack.

No authentication

Modbus TCP has no login and no signature. A PLC accepts a write from any host that can reach port 502.

Reads versus writes

Function codes 1–4 read values; 5, 6, 15, and 16 change them. Watching for writes from unexpected hosts is a simple, effective detection.

Protocol-aware filtering

A deep-packet-inspection filter understands function codes, so it can allow routine polling while refusing writes from anyone but the HMI.