Zero-day attack detection in a smart grid digital twin

Launch known and never-seen-before attacks on a simulated DC microgrid feeder and watch three detectors respond: a signature IDS, a digital-twin residual check and an unsupervised anomaly score trained on normal data only.

Physical grid Digital twin Attack or alarm

Physical grid and its digital twin

Drag to rotate. The copper layer is the real feeder; the cyan wireframe above it is the twin, updated by the dashed data links.

Digital twin layerPhysical layer
Starting simulation…

Launch an attack

Each attack runs for a fixed window. Watch which detector catches it and how fast.

When on, the controller uses the twin’s estimate after a twin alarm, and breaker trips the twin cannot explain are held for verification (ideas from [1] and [6]).

Learning normal behaviour: the unsupervised detector trains on normal data only.
Signature IDS
Rule-based, known attacks only (cf. [7])
Normal
True positive rate–
False positive rate–
F1 score–
Attacks missed–
Digital-twin residual
|y − ŷ| against threshold τ (cf. [1], [6])
Normal
True positive rate–
False positive rate–
F1 score–
Attacks missed–
Unsupervised score
Distance from learned normal (cf. [2])
Normal
True positive rate–
False positive rate–
F1 score–
Attacks missed–
Bus voltage: true (copper), measured (ink), twin estimate (cyan dashed)
Twin residual |r| with threshold τ = 1.2 V
Unsupervised anomaly score with threshold 5.0

Attack log and detection delay

Delay = time of first alarm − attack start. A dash means the detector never fired.

StartAttackSignatureTwinUnsup.
No attacks yet.

GOOSE frames seen by the breaker IED

stNum rises on a new event and sqNum resets to 0; sqNum rises on each repeat.

t (s)stNumsqNumTripAgeNote

Event narration

    This is an illustrative simulation we built from the concepts in the reviewed papers. Voltages, scores and rates in this tab come from a simplified model and are not results reported in [1]–[7].