Lion Cipher Lab

Program a PLC and watch an unauthenticated Modbus write flip its output — OpenPLC (no hardware)

Why it matters

The water plant that keeps your tap running, the elevator in your building, the bottling line at a factory, the power substation down the road -- the physical part of all of it is driven by small ruggedized computers called PLCs (Programmable Logic Controllers). A PLC reads INPUTS (a level sensor, a start button, a limit switch), runs a little program, and drives OUTPUTS (a pump motor, a valve, a light) -- over and over, dozens of times a second. This is OPERATIONAL TECHNOLOGY (OT): computers that move matter and energy in the real world, as opposed to the ordinary INFORMATION TECHNOLOGY (IT)…

What you'll learn

Steps in this lab

  1. First, the safety rule: this is a 100% virtual PLC on YOUR computer
  2. The words you need: OT, ICS, PLC, ladder logic, Structured Text, coil, register, Modbus, HMI
  3. Install and start the OpenPLC Runtime on your machine
  4. Log in to the OpenPLC web interface (your HMI)
  5. Write a tiny PLC program: a self-latching motor
  6. Turn on Modbus, start the PLC, and confirm the motor is OFF
  7. THE ATTACK: write a coil with no password and watch the output flip
  8. Why it worked: Modbus has no authentication, by design
  9. The defenses that actually work (and why 'just add a password' isn't one)
  10. What you did and why it matters

Open the full interactive lab →