Skip to content

Releases

v0.13.0 — Guided Tutorial System

Choose a tag to compare

@iburres iburres released this 19 May 14:05

What's New in v0.13.0

Guided Tutorial System

ICS Simulator now includes a built-in step-by-step tutorial engine for guided attack scenarios.

TutorialPanel — A floating, draggable overlay that appears automatically when you open a scenario containing tutorial steps:

  • Progress bar showing current step position
  • Instructional body with inline Markdown (bold, code spans, bullet lists)
  • Command copy block — one click to copy shell commands into the attack terminal
  • Success-check hint confirming what to look for after each step
  • Previous / Next navigation + keyboard arrow support (← →)
  • Minimise button collapses to a header strip so the canvas stays visible
  • Amber 🎓 Tutorial toolbar button reopens the panel after dismissal

Schema additions:

  • TutorialStep interface: id, title, body, command?, successCheck?
  • meta.tutorialSteps?: TutorialStep[] in ICSLabMeta
  • DnsConfig interface: domain?, webServerIp?, upstream?
  • DeviceConfig.dns?: DnsConfig with env injection in compose generator

Tutorial 01 — Modbus Coil Write Attack

scenarios/tutorial-01-modbus-coil-write.icslab

An 8-step guided scenario covering a complete ICS attack chain against a water treatment facility:

Step What students do
1 — OSINT curl the Meridian Process Controls website; discover OT subnet + credentials in HTML source
2 — Page source Fetch /remote.html; grab HTTP banner (nginx 1.27 via server_tokens on)
3 — DNS enum Query the dnsmasq DNS server for all meridian-process.com subdomains
4 — Nmap OT scan Identify Modbus TCP hosts at 10.200.10.10 (PLC) and 10.200.10.20 (process unit)
5 — Modbus read Read baseline coil + register state via pymodbus
6 — Coil write Start inlet pump (Coil 0=1) + close outlet valve (Coil 1=0) → tank overflow
7 — Observe Watch Grafana dashboard; tank level register rises past overflow threshold
8 — Debrief Remediation: add firewall rule blocking Modbus from attacker-net; explanation of detection signals

Topology: PLC · Process Unit (water tank) · OT Switch · HMI · Historian · Firewall · DMZ Router · Meridian company website · DNS server · Kali Linux attack machine

Deliberately insecure: The scenario firewall allows Modbus TCP from the attacker subnet — students add a deny rule as the remediation exercise.


What's Next (v0.14.0)

  • macOS + Linux Electron packaging and distribution

Phase 12 — Attack Infrastructure: Meridian Process Controls

Choose a tag to compare

@iburres iburres released this 19 May 02:57

Phase 12 — Attack Infrastructure: Meridian Process Controls

This release adds a realistic internet-facing target for the first tutorial scenario. Students begin on the attack machine in the external attacker zone, perform OSINT against a fictitious ICS company, pivot through DNS and HTTP reconnaissance, and eventually reach the OT network to execute a Modbus coil write.


New: Meridian Process Controls Company Website

A professionally designed three-page industrial automation company site served by nginx on port 80. Students use this as their OSINT starting point.

Page Content
index.html Company overview — 340+ active sites, 26 years, 18 countries
services.html Protocol stack with port numbers (Modbus TCP :502, S7comm :102, IEC 104 :2404, etc.)
remote.html Remote Access Portal — login form plus a developer comment in the HTML source

The OSINT discovery: viewing source on remote.html reveals a developer deployment comment containing the OT subnet (172.20.10.0/24), admin credentials, and the internal Modbus TCP port. This is a deliberate realistic vulnerability students learn to look for.

Image: ghcr.io/iburres/ics-sim-web-company:latest (~40 MB, nginx:1.27-alpine)


New: DNS Server — meridian-process.com Zone

dnsmasq authoritative resolver for the company domain. Answers A-record queries for:

  • meridian-process.com / www. → company web server IP
  • remote. / vpn. → same host
  • mail. → configurable

Every DNS query is logged to stdout — students observe their own recon with docker logs. Zone configuration is fully environment-driven (DNS_DOMAIN, WEB_SERVER_IP, DNS_UPSTREAM).

Image: ghcr.io/iburres/ics-sim-dns:latest (~8 MB, alpine:3.20 + dnsmasq)

Tutorial recon commands:

# From the attack machine container:
dig @<dns-server-ip> meridian-process.com
dig @<dns-server-ip> ANY meridian-process.com
curl -v http://<web-server-ip>/
curl -s http://<web-server-ip>/remote.html | grep -i '<!--' -A 10

Updated: Attack Machine — Custom Kali noVNC Image

The attack machine device now uses the custom ics-sim-attack-base image (built from containers/attack-base) instead of the generic linuxserver/kali-linux image.

Before After
lscr.io/linuxserver/kali-linux:latest ghcr.io/iburres/ics-sim-attack-base:latest
KasmVNC on container port 3000 TigerVNC + noVNC WebSocket on container port 6080
linuxserver PUID/PGID env vars No base-image env var requirements

The custom image includes ICS-specific attack tools pre-installed: nmap, pymodbus, dnp3-python, python-snap7, bacpypes3, metasploit-framework, wireshark, scapy, impacket.


New: dns-server Device Type

Property Value
Category dns-server
Zone Internet DMZ (Level 5)
Palette Internet-Facing section (orange)
Connection target switch, router, firewall, ids-ips, attack-machine
Docker image ghcr.io/iburres/ics-sim-dns:latest
Resource budget 32 MB RAM / 0.05 CPU

Canvas / Connection Matrix Expansion

Infrastructure devices (firewall, IDS/IPS, switch, router) now have explicit connection matrix entries for all enterprise and internet DMZ device types. The attack machine gains enterprise and internet DMZ targets:

  • domain-controller, web-server, business-server, enterprise-desktop
  • email-server, internet-server, dns-server

This enables students to draw realistic lateral movement paths from the attacker zone all the way through the topology.


Tutorial Scenario Preview

The first tutorial scenario (coming next) will use this infrastructure to walk students through:

  1. DNS enumeration against meridian-process.com
  2. HTTP OSINT — discovering the OT subnet from the HTML comment
  3. nmap scan of the OT network
  4. Modbus coil write to a PLC (pymodbus.client.ModbusTcpClient)
  5. Observing the Suricata alert and Zeek Modbus log

Phase Status

Phase Feature Status
1–11 See previous releases ✅ Complete
12 Attack infrastructure — Meridian Process Controls website, DNS, Kali noVNC ✅ Complete
13 macOS + Linux packaging and distribution 🔲 Planned

Phase 11 — Physical Process Simulation Engine

Choose a tag to compare

@iburres iburres released this 18 May 19:30

Phase 11 — Physical Process Simulation Engine

This release adds a real-time physics simulation layer to ICS Simulator. A new process-unit device type runs a self-contained Docker container (ics-sim-process) that models real industrial processes using differential equations and exposes all sensor values and control points as live Modbus TCP registers. Students can read process values, manipulate control setpoints, trigger alarms, and observe how the physics responds — all without connecting to real hardware.


Process Models

Model Primary Outputs Physics
Water Tank Level (m), flow in/out (L/min), pressure (bar), temperature (°C) Volume balance + Torricelli drain + Newton cooling
Pipeline Line pressure (bar), pump/outlet flow (L/min) Bulk-modulus pressure dynamics + orifice outflow
Generator Frequency (Hz), terminal voltage (%), active/reactive power (MW/MVAR) IEEE swing equation + governor lag (τ=5s) + AVR droop
Generic HR 0–3 configurable signals Sine / sawtooth waveform generator

Modbus TCP Register Map

Register Description Scale
HR 0 Level / fill % / frequency ×0.01 m / ×0.01 Hz
HR 1 Flow in (L/min) ×0.1
HR 2 Flow out (L/min) ×0.1
HR 3 Pressure (bar) ×0.01
HR 4 Temperature (°C) / voltage (%) ×0.1
HR 5 STATUS_WORD (alarm bitmask) See below
HR 6–9 Generator extended outputs (Hz, V%, MW, MVAR) ×0.01
HR 100–103 Setpoints: pump speed, inlet valve, outlet valve, load % (0–100)
CO 0–3 Digital coils: pump run, inlet valve open, outlet valve open, ESD reset 0/1

STATUS_WORD alarm bits:

  • 0x0001 — ESD active (Emergency Shutdown)
  • 0x0008 — ESD latch engaged
  • 0x0010 — High level alarm (>85%)
  • 0x0020 — Low level alarm (<15%)
  • 0x0040 — High pressure alarm (>8 bar)
  • 0x0080 — Low flow alarm (pump running, flow <5 L/min)

Educational Attack Scenarios

Because the process unit is a real-time physics model driven by Modbus register writes, students can:

  • Tank overflow / draindown — write CO 0/2 to lock pump on and close outlet, or reverse; watch level drift to alarm thresholds
  • Pressure spike — close outlet valve (HR 102 = 0) while pump runs at 100% and observe bulk-modulus overpressure
  • Grid frequency attack — write HR 103 (load setpoint) to swing active power demand; observe swing equation drive frequency outside 49–51 Hz
  • ESD bypass — clear CO 3 (ESD reset coil) while alarm bits are set to prevent automatic shutdown
  • False sensor injection — directly write HR 0–4 PV registers to feed an upstream HMI spoofed readings while the real physics diverges

New process-unit Device Type

Added to the canvas Device Palette under Process Simulation. Connects via Modbus TCP to PLCs, RTUs, HMIs, and historians in the OT zone.

ProcessUnitConfig schema fields:

Field Default Description
processType required water-tank | pipeline | generator | generic
simDtMs 1000 Simulation timestep in ms
tankVolumeL 1000 Tank capacity (L)
tankAreaM2 1.0 Tank cross-section (m²)
pumpFlowMaxLpm 150 Max pump outlet flow (L/min)
valveFlowMaxLpm 200 Max inlet valve flow (L/min)
initialLevelPct 50 Starting fill level (0–100%)
generatorRatedMw 100 Rated active power (MW)
generatorInertiaH 6 Inertia constant H (seconds)
generatorFreqBase 50 Synchronous frequency (Hz)
pipelineVolumeL 500 Pipeline internal volume (L)
pipelinePumpMaxLpm 300 Max pipeline pump flow (L/min)

New Files

  • containers/process-sim/sim.py — asyncio physics engine + pymodbus 3.7.4 async Modbus TCP server
  • containers/process-sim/Dockerfile — python:3.12-alpine, single pymodbus==3.7.4 dependency
  • containers/process-sim/entrypoint.sh — startup logging and PROCESS_TYPE dispatch

Phase Status

Phase Feature Status
1 Project scaffold + Electron shell ✅ Complete
2 Canvas drag-and-drop topology builder ✅ Complete
3 .icslab scenario format + import/export ✅ Complete
4 Docker Compose orchestration + live deploy ✅ Complete
5 Modbus TCP emulation (pymodbus) ✅ Complete
6 DNP3 emulation (OpenDNP3) ✅ Complete
7 OPC-UA emulation (open62541) ✅ Complete
8 Network zone enforcement + ACL/firewall rules ✅ Complete
9 Community scenario pack format (.icspack) ✅ Complete
10 S7comm + IEC 104 legacy device emulation (conpot) ✅ Complete
11 Physical process simulation (water tank, pipeline, generator) ✅ Complete
12 macOS + Linux packaging and distribution 🔲 Planned

Phase 10 — Siemens S7comm & IEC 60870-5-104 Legacy Device Emulation

Choose a tag to compare

@iburres iburres released this 18 May 16:26

Phase 10: Conpot Legacy Device Emulation

This release adds Siemens S7comm and IEC 60870-5-104 protocol emulation — two of the most widely deployed legacy protocols in industrial control systems. Both device types are emulated by a single lightweight pure-Python container (ics-sim-conpot) that responds to real network scanner and exploit framework probes.


New Device Types

Device Protocol Port Emulated Behavior
Siemens S7 PLC (legacy-plc) S7comm TCP 102 RFC 1006 TPKT + COTP handshake, S7 Setup Communication, Read Variable, SZL reads (module ID 0x0011, component ID 0x001C)
IEC 104 RTU (iec104-rtu) IEC 60870-5-104 TCP 2404 STARTDT/STOPDT/TESTFR U-frames, General Interrogation (type 100), spontaneous M_ME_NC_1 floating-point measurements with drift

Both device types are draggable from the OT Layer → Legacy / Protocol palette section.


Attack Surface for Student Labs

The S7 emulator responds to:

  • nmap --script s7-enumerate -p 102 — returns CPU order number and firmware version
  • Metasploit auxiliary/scanner/scada/siemens_simatic_manager — full fingerprinting
  • python-snap7 / custom S7 PDU tools

The IEC 104 emulator responds to:

  • STARTDT activation → spontaneous M_ME_NC_1 process data (power kW, frequency Hz, voltage V, current A, power factor, reactive power kVAR, tap position, temperature)
  • General Interrogation command → full data response with ACT_CON + ACT_TERM
  • Command injection exercises (write command objects via type C_SC_NA_1)

What's in This Release

  • containers/conpot/ — new Docker image (python:3.12-alpine, ~120 MB); one image handles both S7 and IEC 104 via DEVICE_CATEGORY env var
  • Schema — s7comm and iec-104 protocol union members; S7Config and Iec104Config device config interfaces; legacy-plc and iec104-rtu device categories
  • Orchestrator — compose generator injects S7_DEVICE_TYPE, S7_PORT, IEC104_COMMON_ADDRESS, IEC104_PORT environment variables
  • Canvas — ISA-5.1-style icons for both device types; full Purdue Reference Model connection matrix (connections to PLCs, RTUs, IEDs, HMI, Historian, field devices, and infrastructure)
  • Palette — new "Legacy / Protocol" section on the OT layer tab
  • CI — ics-sim-conpot added to the Docker build matrix; image published to GHCR on every push to main

Development Status

Phase Feature Status
0–9 Foundation through community scenario packs ✅ Complete
10 Conpot legacy device emulation (S7comm + IEC 104) ✅ Complete
11 Physical process simulation (tank, pump, valve dynamics) 🔜 Planned
12 macOS + Linux packaging and distribution 🔜 Planned

Author: Ian Burres, Professor of Practice — Cybersecurity, University of Texas at San Antonio (UTSA)