Cyber-Physical Systems (BIL-435), week 11 of 14
Prof. Dr. Utku Kose, Süleyman Demirel University
Two parts of this interactive lab are virtual laboratories in three dimensions (3D) with the hardware in the foreground. Part A attacks the state estimate from the main switchboard of the campus. Part C replays the frequency to the battery controller of the island. Part B computes the formulas of the lecture step by step, and Part D asks for the values of stage 11 by hand. Part E is a field task with the console of the managed switch of the main switchboard. In the calculator every intermediate value is rounded, and the next step continues with the rounded value. The results of Parts A and C can be copied into the Colab notebook. Each laboratory first shows its site. Start moves the view closer, and the view returns to the site at the end. The laboratories work best with a mouse or a touchpad on a computer.
The main switchboard of the campus feeds the five buildings and the car park. Its feeder meters, the meters in the buildings and the main meter report to the control room. The control room estimates the six feeders by weighted least squares and tests the residuals with the chi-square test. When the estimate of the dormitory B3 exceeds 150 kW, the control room sheds B3. An attacker has plugged a laptop into the network switch and can change readings on their way.
Set the changes of the attacker in the table below the view, tick the meters whose readings carry a tag, and press Send the readings. Your missions: First, change one meter and see whether the control room notices. Second, make the control room shed B3 without any alarm. Third, tag six meters so that no hidden attack remains, and send your attack of the second mission again.
| Meter | Reading (kW) | Change of the attacker (kW) | Tag |
|---|
| Run | Changed meters | Tagged meters | J | Alarm | B3 estimate (kW) | B3 |
|---|
Back to the lecture: False data injection, where the text continues after the box of this part.
Continue in Colab, section 2: Paste your attacks into MY_ATTACKS and compare them with the model.
The calculator follows the formulas of the lecture for two feeders, their meters z1 and z2 and the main meter z3, all with σ = 2 kW. It computes the mismatch, the estimates and the test value. It then follows an attack on z1 alone, a hidden attack on z1 and z3 and a hidden attack with the main meter protected.
Back to the lecture: False data injection, where the text continues after the box of this part.
Continue in Colab, section 2: Build the hidden attack on the thirteen meters of the campus.
In island mode the battery inverter holds the frequency of the campus with its droop. The battery controller in the control cabinet reads the frequency meter every 0.1 s over a short serial line. An attacker has cut into that line and inserted a small box. It records the frequency from 20 to 60 s and then plays the recording back to the controller. At 80 s a forged command starts three cars at the chargers with 66 kW.
Choose the watermark of the battery and the window of the detector below the view and press Run the attack. The detector alarms when the response g to the watermark falls below 0.5, and the battery then switches to its own measurement of the frequency. Your missions: First, run the attack without a watermark. Second, detect the replay before the cars start, without a false alarm. Third, do the same with a jitter of the frequency below 8 mHz.
| Run | Watermark (kW) | Window (s) | Alarm (s) | False alarm | Island | Jitter (mHz) |
|---|
Back to the lecture: Attacks on control loops: Replay and denial of service, where the text continues after the box of this part.
Continue in Colab, section 3: Paste your runs into MY_RUNS and compare them with the model.
Two feeders and the main meter read $z_1 = 118$, $z_2 = 84$ and $z_3 = 212$ kW, all with $\sigma = 2$ kW: Compute the test value $J$. The attacker then adds 30 kW to $z_1$ and to $z_3$: Compute the estimate of feeder 1. Three steps of the island have the watermark $\omega = 10, -10$ and 5 kW and the movements $m = 2.0, 3.5$ and $-4.4$ mHz, with $\beta = 1.24$ mHz per kW: Compute the response $g$.
Back to the lecture: The campus microgrid, stage 11: Attacks and defences, where the text continues after the box of this part.
Continue in Colab, section 5: Compute the results of stage 11 of the campus microgrid.
The control room of the campus raises the bad-data alarm of the state estimator, with the test value of a changed meter. The managed switch of the main switchboard connects the control room, the programmable logic controller (PLC) and the meters. It knows each device by its hardware address, the media access control (MAC) address. Its console runs on the laptop of the engineer, and the asset inventory lists the device that belongs to each port.
The console understands the commands help, show mac, show ports, port N shutdown, port N no shutdown and port-security enable. Type a command into the field and press Enter.
Back to the lecture: In the field: An unknown device on the network, where the text continues after the box of this part.
Answer each question, rate your confidence and check the answer. The self-assessment is for your own practice and does not count towards the grade. Results stay in this browser.
Write a short answer to each question. The text is saved in this browser and is included when you export the learning log, together with the results of the practice parts.