Room: Factory SCADA
Room scenario. A water treatment plant has two controllers (PLC-A and PLC-B). Yesterday the pressure on the line controlled by PLC-B rose without explanation. The plant's engineers saved three things: hmi_project.xml (the HMI project: devices, MAC addresses, tag names and Modbus addresses), historian.csv (30-second process values, UTC) and ot.pcap (OT segment traffic: ARP + Modbus/TCP, port 502). The archive name is plant.zip.
Notes: in the project, holding registers are written starting from 1 (40001 = Modbus PDU address 0). MNT_BUF_01..18 is a 'service message buffer': each register holds 2 ASCII characters (big-endian), and the buffer is read in tag order. Modbus/TCP: a 7-byte MBAP (transaction, protocol, length, unit) + PDU; FC16 = Write Multiple Registers; an exception response is the function code | 0x80. Nothing is sent to a live system.
Stages (answers are not submitted):
- Task 1. Which tags in
historian.csvwent out of the norm? There are two deviations: one has passed, one is still ongoing. Link them to devices through the XML and note their start times. - Task 2. ARP in
ot.pcap: for which IP were two different MACs announced? Compare with the list inhmi_project.xml: which MAC is not in the project (a rogue station)? Why is the second IP-MAC pair (GW-01) harmless? - Task 3. Pick out the Modbus connections that came from the rogue MAC (although the IP source is that of the engineering station, the Ethernet source is different). To which PLC, and to which registers, were FC6 and FC16 written? What was the PLC's response (normal or exception)?
- Task 4. Keep only the accepted writes (for overwritten ones the last one counts), convert the addresses to the
MNT_BUF_nntags through the XML, and convert the registers to ASCII in tag order — that is the flag.
Flag format: BAYROQ{...} (the last 16 characters are lowercase hex).