Lion Cipher Lab

Detect attacks in ICS/Modbus traffic: baseline the normal, then spot the anomaly (OT security, part 2)

Why it matters

Part 1 ended on an uncomfortable fact: the Modbus protocol that runs pumps, breakers, and factory lines has no login and no encryption, so a device simply obeys any command it receives — and you cannot bolt a password onto a 20-year-old PLC. That raises the defender's real question: if you cannot stop the command, how do you even KNOW an attack happened? The answer is the beating heart of Operational Technology (OT) security work — you watch the traffic. Because a real control process is boringly repetitive (the same handful of sensors read on the same steady cadence), 'normal' is unusually…

What you'll learn

Steps in this lab

  1. The one rule, again: only traffic from your own simulator
  2. A 60-second recap: what Modbus is, and the words you need
  3. The function codes are your alphabet — learn which ones READ and which ones WRITE
  4. Set up the toolchain (same as part 1 — one install line)
  5. Stand up the simulated PLC (the device you will defend)
  6. Record the BASELINE: what normal, healthy traffic looks like
  7. Now the intrusion: a simulated attacker writes to the PLC
  8. Spot the anomaly: filter for writes and read exactly what changed
  9. Turn the eyeball into a detector with tshark
  10. The principle: baseline, allow-list, alert on deviation
  11. What you proved, and the career door it opens

Open the full interactive lab →