Use cases

NetSim Cyber in research

Research use cases · NetSim Cyber 15.1

Research labs connect NetSim Cyber to the communication path between power-system devices. The devices keep their addresses and their protocols. NetSim Cyber applies each attack at the time and for the time that the study sets. Its captures give labelled data for detection research. Each use case gives the testbed, the NetSim Cyber setup, the attacks and the results.

The use cases

Use case 1 · Availability attacks DoS attacks on synchrophasor data NetSim Cyber applies timed DoS attacks to live PMU traffic in a hardware-in-the-loop testbed. The labelled captures train a real-time detector. PMUs→NetSim Cyber→PDC C37.118Multi-systemLabelled data Go to use case → Use case 2 · Integrity attacks Custom false data injection A custom Python attacker changes a measured value in live C37.118 frames. Detection and mitigation run separate from NetSim Cyber. PMU→Custom attacker→PDC C37.118Python callbackFDI Go to use case → Use case 3 · DNP3 attacks Stealthy DNP3 false data injection NetSim Cyber hides an increase in feeder voltage from the SCADA master. A deep-learning host detects and classifies the attack. RTU→NetSim Cyber→Master DNP3 20000Stealthy FDIDL detection Go to use case → Use case 4 · IEC 61850 attacks GOOSE, SV and R-GOOSE manipulation NetSim Cyber injects false GOOSE commands and changes SV samples on the substation bus. The same command attack runs on R-GOOSE over a WAN. Publisher IED→NetSim Cyber→Relay IEC 61850GOOSE + SVR-GOOSE Go to use case → Use case 5 · IEC 104 at utility scale IEC 60870-5-104 on a utility SCADA network NetSim Cyber attacks the IEC 104 flow of one substation in a network of 120 sites. The other sites report as usual. 120 RTUs→NetSim Cyber→Control centre IEC 104 · 2404Utility scaleTelemetry + command Go to use case → Use case 6 · Multi-protocol Coordinated attack on a 440 kV bay NetSim Cyber attacks GOOSE, SV and C37.118 on one protection and monitoring path. It also shifts the C37.118 time fields. SV + GOOSE→Relay→C37.118 PDC IEC 61850C37.118Time fields Go to use case → Use case 7 · MATLAB/Simulink FDI on an IEEE 9-bus Simulink model NetSim Cyber changes a Simulink measurement on the network. The model does not change. Simulink→NetSim Cyber→Controller TCP / UDP / ModbusIEEE 9-busFDI Go to use case → Use case 8 · NetSim + NetSim Cyber IEC 104 over an emulated WAN, under attack The NetSim emulator models the utility WAN between real IEC 104 devices. NetSim Cyber attacks the same traffic. Source→NetSim→NetSim Cyber→Dest IEC 104 · 2404Emulated WANNetwork + attack Go to use case →

What NetSim Cyber gives a research testbed

Three functions are the same in all the use cases. The sections below give only the data that is different for each study.

Real devices on the path

NetSim Cyber connects to a switch or a router on the path between real PMUs, PDCs, relays or a real-time simulator. The devices do not change. The Real Nodes in the scenario use their IP addresses.

Timed attacks

The Threat Agent applies an attack to the flow that the Application Traffic Filter selects. Start Attack, Modify Attack and Stop Attack set the attack windows during the run.

Labelled captures

NetSim Cyber writes four captures: PRE.pcap (source traffic), MOD.pcap (modified), POST.pcap (forwarded) and DROP.pcap (dropped). The attack start and stop times label each packet.

DoS attacks on synchrophasor data

A university power-systems lab connected NetSim Cyber to the path between its PMUs and its PDC, in a hardware-in-the-loop testbed. NetSim Cyber applied four types of DoS attack to live IEEE C37.118 traffic. The lab used the labelled captures to train a detector. The detector finds an attack in about 1 ms and rebuilds the dropped data in about 2 ms per packet.

Testbed

PMU data crosses a utility WAN; NetSim Cyber is connected to a compromised router on the path to the PDC Substation Utility WAN RTDS grid model in real time Hardware PMU Hardware PMU Software PMU Switch substation Router 1 Router 2 compromised Router 3 NetSim Cyber drops, errors, delays PDC control redirected returned In the lab testbed, NetSim Cyber is connected to the substation switch instead of a router.
The PMU data goes from the substation through a utility WAN to the PDC. The attacker controls one router on the path, and NetSim Cyber connects to that router. NetSim Cyber applies the attack to each PMU packet and sends the packet back to the path.

NetSim Cyber setup

Deployment
Multi-system. The PMUs, the real-time simulator and the PDC are separate devices.
Routing
The compromised router sends each PMU packet to the NetSim Cyber host. In the lab testbed, the network switch does this.
Real Nodes
Three source nodes with the PMU IP addresses. One destination node with the PDC IP address.
Threat Agent
Between the PMU nodes and the PDC node
Traffic filter
Each PMU-to-PDC C37.118 flow, by source, destination, protocol and port
Attack type
Availability (DoS). The phasor values do not change.

Testbed

Grid
A transmission-grid model on an RTDS real-time digital simulator
PMUs
Two hardware PMUs and one software PMU. C37.118 at 60 frames per second.
Network
A substation switch and a WAN of routers to the control centre
PDC
Receives the three PMU streams at the control centre
Transport
TCP for most runs. The partial-drop runs used TCP and UDP.

Attacks that NetSim Cyber applied

AttackNetSim Cyber controlSettings in this studyEffect at the PDC
Fixed-rate DoSDrop all packets on the flow for the windowOne PMU flow, 2 s, 5 s or 10 sNo data from that PMU for the window
Variable-rate DoSMore than one drop window in one run4 s, 10 s and 2 s in one minute. Also 6 s and 8 s.More than one interval with no data in one stream
Partial dropPacket error rate on the flowIncreased error rate, over TCP and over UDPUDP: some packets are lost. TCP: the source sends the packets again, so the monitor shows no loss.
JitterDelay on the flowAdded at random intervalsThe packets are late. The largest interval between packets increases from about 4 ms to about 23 ms.
Variable-rate DoS from NetSim Cyber: three outages of 4 s, 10 s and 2 s in one minute 0 s 10 s 20 s 30 s 40 s 50 s 60 s NetSim Cyber attackData at the PDC 4 s 10 s 2 s Variable-rate DoS on one PMU flow. The durations are as run. The start times are illustrative.
A variable-rate DoS run. The PDC stream stops for the windows that NetSim Cyber sets. The start and stop times of each attack label the data.

From NetSim Cyber captures to a labelled dataset

NetSim Cyber sets each attack window, so the lab labelled each packet without manual review. The lab collected about 37,000 labelled packets.

LabelSource of the eventShare of packets
HealthyUsual operationAbout 70%
FaultL-G, L-L and L-L-L-G faults in the real-time simulatorAbout 13%
AttackDoS windows from NetSim CyberAbout 17%

What the lab built on NetSim Cyber data

The lab trained a machine-learning detector and a model that rebuilds the dropped phasors. Detection takes about 1 ms. The rebuild takes about 2 ms per packet and continues until NetSim Cyber stops the attack. The total of about 3 ms is less than the 16.67 ms between packets at 60 frames per second. The times were the same in each attack window, from 2 s to 10 s and in the variable-rate runs.

Notes for NetSim Cyber users

  1. Select the transport with care. Over TCP, a packet error rate causes retransmissions, not visible loss. To see the loss at the application, use UDP or read the NetSim Cyber captures.
  2. Use the attack windows to label the data. Timed Start Attack and Stop Attack give the labels, with no manual work.
  3. Run faults and attacks on the same grid model. The detector then learns the difference between a cyber attack and a physical fault.
  4. One NetSim Cyber host covers all flows on the path. The Application Traffic Filter selects the PMU flow to attack. The other flows pass without change.

Do this in NetSim Cyber

  1. Make a multi-system scenario. Add a Real Node for each PMU and for the PDC. Put the Threat Agent between them.
  2. Send the PMU-to-PDC traffic through the NetSim Cyber host. Use a router redirect, static routes, NetSimCyberClient.exe or a two-NIC gateway.
  3. Set the Application Traffic Filter to one PMU flow (C37.118, TCP port 4712 by default).
  4. Select the attack: packet drop for an outage, packet error rate for a partial drop, or delay for jitter.
  5. Start the run and record a baseline. Start the attack for the window, then stop it. For a variable-rate run, do this step again.
  6. Keep the NetSim Cyber captures and the PDC data. Label each packet from the attack times.

Custom false data injection

In this use case, NetSim Cyber is a custom false-data-injection attacker on a synchrophasor link. A Python attacker changes the measured values in live IEEE C37.118 frames. The PDC and the programs after it receive false phasors in valid frames. Detection and mitigation run separate from NetSim Cyber, on the stream from the PDC.

Testbed

An RTDS grid model drives a real PMU. The PMU sends C37.118 data to the PDC across three WAN routers. NetSim Cyber connects between two of the routers, and the routers send the PMU-to-PDC traffic through it. A separate workstation runs detection and mitigation on the PDC output.

RTDS drives a real PMU; its data reaches the PDC across three routers, with NetSim Cyber between two of themRTDS drives a real PMU, and NetSim Cyber is between the routers on the path to the PDCRTDS hardware-in-the-loop, real PMU, routed WAN, detection on the PDC outputRTDSgrid modelReal PMUC37.118Router 1Router 2NetSim CyberFDI attackerRouter 3PDCcontrol centreDetection + mitigationseparate host on the PDC outputvalue changed, CRC calculated again
The WAN routers send the PMU-to-PDC traffic through NetSim Cyber, so the PMU and the PDC do not change. The custom attacker changes the value in transit.

Testbed parts

RTDS
Real-time simulator. It operates the real PMU with a grid model.
Real PMU
Sends C37.118 data to the control centre at 60 frames per second
WAN routers
Three routers carry the PMU-to-PDC link
NetSim Cyber
Between two of the routers. The routers send the PMU-to-PDC traffic through it.
PDC
Aligns the phasors in time at the control centre
Detection host
A separate workstation that subscribes to the PDC output

NetSim Cyber setup

Deployment
Multi-system. The WAN routers send the PMU-to-PDC traffic to the NetSim Cyber host (static routes or NetSimCyberClient.exe).
Real Nodes
One source node for the real PMU, one destination node for the PDC
Threat Agent
On the PMU-to-PDC path, between the routers
Traffic filter
The C37.118 flow, by source, destination, protocol and TCP port 4712
Attack type
Integrity (FDI). No drop and no delay.
Target field
Phase A voltage magnitude (VA)
Checksums
NetSim Cyber calculates the IP and TCP checksums again. The callback calculates the C37.118 CRC again.

Why NetSim Cyber

  • A custom attacker: one Python callback sets the change to a selected phasor for each packet.
  • Valid frames: the frame keeps a correct CRC and correct checksums, so only the value is wrong.
  • A reference value: PRE.pcap keeps each unchanged packet. The true value is next to the injected value for each frame.
  • Separate roles: NetSim Cyber is only the attack source. The detector and the mitigation are separate software.

The custom attacker

NetSim Cyber calls modify_payload() for each packet that the Application Traffic Filter selects. The payload argument is a writable buffer. The callback changes bytes in the buffer and keeps the payload length. The iopath argument is the simulation I/O path, for logs and input files. The callback returns its verdict in a dictionary.

NETSIM_PACKET_API_VERSION = 2

def modify_payload(ipv4, ipv6, tcp, udp, payload, iopath, context=None):
    mv = memoryview(payload)    # change bytes in place, do not resize
    changed = False
    # In the attack window:
    #   find the VA magnitude in the C37.118 data frame,
    #   add the bias or the ramp to it,
    #   calculate the frame CRC-CCITT again,
    #   set changed = True.
    return {"modified": changed, "drop": False, "extra_delay_ms": 0.0}

NetSim Cyber calculates the IP and TCP checksums again after the change. The C37.118 CRC is part of the payload, so the callback must calculate it. The built-in IEEE C37.118 attacker applies bias, ramp and override without code, and it corrects the CRC.

Attack shapes from one callback

ShapeWhat the callback doesWhy the lab uses it
Step biasAdds a fixed offset in the windowThe most simple shape. It tests a threshold detector.
Ramp or driftAdds an offset that increases with timeA slow attack that a rate check does not find
Targeted channelChanges one phasor and keeps the other phasors correctIt tests a detector that compares the channels
ReplacementWrites a fixed value over the measured valueThe reading stays constant while the grid changes

What the attack looks like

A slow ramp injection on phase A pulls VA above the fluctuating VB and VC, phase voltage in volts at 60 frames per second A slow ramp injection on phase A pulls VA above VB and VC Example data, not measurements. Phase-voltage magnitudes at 60 frames per second Phase voltage (V) ramp injection on phase A 230 240 250 260 270 0 s 10 s 20 s 30 s 40 s 50 s 60 s VA ramped high phase A (attacked)phase Bphase C
Example values, not lab measurements. All three phase voltages change by small values. In the attack window, the custom attacker adds a slow ramp to phase A only. VA increases away from VB and VC, which stay near the 230 V nominal. Each frame is valid, but a detector that compares the three phases finds the imbalance. The mitigation then replaces phase A with a corrected value.

Detection and mitigation, separate from NetSim Cyber

NetSim Cyber applies the attack and captures the traffic. The detector and the mitigation are separate software that use the PDC stream. The lab can move them to a control centre with no change.

StageWhere it runsWhat it does
AttackNetSim Cyber (Threat Agent and custom attacker)Puts the false value into live frames
CaptureNetSim CyberWrites PRE.pcap (true values) and POST.pcap (values as delivered)
DetectionExternal program on the PDC streamFinds an attacked frame from limit checks and a comparison of the channels
MitigationExternal programReplaces the marked value with an estimated value
ScoringOfflineCompares its output with the attack window from NetSim Cyber

Notes for NetSim Cyber users

  1. Write the attack as a callback. One function sets the window, the shape and the target channel.
  2. Keep PRE.pcap as the ground truth. The unchanged value next to the injected value makes the integrity study measurable.
  3. Attack one channel to test the consistency checks. This is not easy for a detector, and easy to set up.
  4. Keep the detector separate from NetSim Cyber. The lab can then measure the same code here and use it later in operation.

Do this in NetSim Cyber

  1. Make a scenario with a source node for the real PMU and a destination node for the PDC. Put the Threat Agent on the link between them.
  2. Write the modify_payload() callback. In the window, find the target phasor, apply the bias or the ramp, and calculate the CRC again.
  3. Load the callback with Import Custom Attacker, and start the run.
  4. Record PRE.pcap and POST.pcap across the baseline, the attack window and the recovery.
  5. Send the POST stream to the external detector and the mitigation. Compare their marks with the attack window.

Stealthy false data injection on DNP3

In this use case, NetSim Cyber is a DNP3 attacker on an active distribution network. NetSim Cyber changes the values that an RTU reports to the SCADA master in live DNP3 traffic. The master receives false readings in valid frames. The change is small and stays in the operator limits, so a simple bad-data check does not find it. Detection, classification and mitigation run separate from NetSim Cyber.

Testbed

NetSim Cyber injects false DNP3 values, and a separate host detects and classifies themNetSim Cyber injects false DNP3 values, and a separate host detects and classifies themActive distribution network, DNP3 outstation to SCADA masterReal-time simdistribution feedersRTUDNP3 outstationNetSim CyberDNP3 FDI attackerDNP3 masterSCADA, control centreDetection + mitigationclassifies the attack typeDNP3 TCP 20000, CRCs calculated again
The DNP3 traffic between the outstation and the master goes through NetSim Cyber, so the RTU and the master do not change. The detection host reads the data from the master.

Why NetSim Cyber

  • Real DNP3 traffic between a real outstation and a real master, at field data rates.
  • A stealthy attack: the attacker holds a value constant, or adds a small bias in a selected band.
  • Valid frames: the DNP3 data-link CRCs stay correct, so only the value is wrong.
  • Many attacks from one host: FDI, replay, unauthorised control, time skew, restart and flooding. These give a dataset with many attack classes.

NetSim Cyber setup

Deployment
Multi-system. The DNP3 traffic between the outstation and the master goes through the NetSim Cyber host.
Real Nodes
One source node for the outstation, one destination node for the master
Traffic filter
The DNP3 flow, by source, destination, protocol and TCP port 20000
Attack type
Integrity (stealthy FDI). Also replay, control, time skew, restart and flooding.
Target points
Selected DNP3 analog input points, for example a feeder voltage
CRCs
The built-in DNP3 attacker calculates the data-link CRCs again. A custom attacker must calculate them itself.

DNP3 attacks that NetSim Cyber applies

Attack classNetSim Cyber controlWhat the master sees
False data injection (stealthy)Changes the analog input values in the limitsA wrong measurement that looks correct
ReplaySends earlier valid responses againEarlier values while the conditions change
Unauthorised controlSends a CROB select and operate, or a direct operateAn operate command that the operator did not send
Time skewWrites a shifted time to the outstationEvents with wrong times, or in the wrong sequence
Cold or warm restartSends a restart functionThe outstation starts again
DoS floodingFloods the linkThe polls time out

The stealthy attacker

The built-in DNP3 attacker changes analog input values and calculates the CRCs again. For a different value shape, a lab can write a modify_payload() callback, as in use case 2. For example, the callback can hold the reported value constant, or add a small bias. If the bias is small, the reported value stays in the operator band. A threshold check then does not find the attack.

What the attack looks like

A stealthy DNP3 injection holds the reported feeder voltage flat while the real one climbs past the limit, sampled at 60 frames per second A stealthy DNP3 injection holds the reported voltage flat while the real one climbs Example data, not measurements. Feeder voltage reported to the master Feeder voltage (V) injection window 230 235 240 245 0 s 10 s 20 s 30 s 40 s 50 s 60 s upper limit 241.5 V detector flags the mismatch true value rising reported held flat true voltage (PRE.pcap)reported to master (injected)
Example values, not lab measurements. The real feeder voltage increases in the window, for example when distributed generation increases. The attacker holds the value that the master receives near nominal. The reported reading does not cross the limit, so the operator sees no problem. A model-based or deep-learning detector knows the expected behaviour. It finds that the reading does not follow the network state, and it shows the mismatch.

Detection, classification and mitigation, separate from NetSim Cyber

The labs built two external defences on the NetSim Cyber captures. Both run separate from NetSim Cyber, on the data from the master.

What the labs built

  • A detector for stealthy FDI on an active distribution network, in a hardware-in-the-loop setup. It compares the reported measurements with the expected network state. It finds an injection that stays in the limits.
  • A deep-learning model that detects an attack, identifies the DNP3 attack class and starts the mitigation. Examples of mitigation are a corrected value, or a rejected unauthorised command.

Do this in NetSim Cyber

  1. Make a multi-system scenario with a Real Node for the outstation and one for the master. Put the Threat Agent between them.
  2. Send the DNP3 traffic (TCP 20000) through the NetSim Cyber host.
  3. Select the built-in DNP3 attack. For a different value shape, load a modify_payload() callback.
  4. Record PRE.pcap and POST.pcap across the baseline, the attack window and the recovery.
  5. Send the data from the master to the external detector and classifier. Compare their output with the attack window and the attack class.

IEC 61850 GOOSE, Sampled Values and R-GOOSE

In this use case, NetSim Cyber is an IEC 61850 attacker in a digital substation. GOOSE and Sampled Values (SV) are Layer-2 multicast messages without a TCP session. An attacker on the path can change them directly. NetSim Cyber injects false GOOSE commands and changes SV samples. It encodes each changed frame again, so the subscriber IED accepts it. The same command attack then runs on R-GOOSE, the routable form between substations.

Testbed

NetSim Cyber changes GOOSE and SV on the bus before the relay receives themNetSim Cyber changes GOOSE and SV on the bus before the relay receives themIEC 61850 publisher and subscriber IEDs on a shared Ethernet busPublisher IEDmerging unit /breaker IEDEthernet switchstation & process busSubscriber IEDprotection relay,operates the breakerNetSim CyberGOOSE / SV attackerintercepts GOOSE and SVGOOSE and SV are Layer-2 multicast. R-GOOSE (sub-case 3) carries the same attack over a routed WAN.
A publisher IED sends GOOSE status and SV samples on the bus. A subscriber IED (a protection relay) uses them. NetSim Cyber is inline on the bus, as a bridge between two network adapters. It changes the frames before the relay receives them.

Testbed parts

Publisher IED or merging unit
Sends GOOSE status and SV samples
Ethernet switch
Carries the Layer-2 multicast on the station bus and the process bus
Subscriber IED (relay)
Subscribes to GOOSE and SV, and operates the breaker
NetSim Cyber
Inline on the bus, as a bridge between two network adapters
Router (R-GOOSE)
Carries R-GOOSE to a remote substation

NetSim Cyber setup

Access
Inline Layer-2 bridge. Packet interception needs Administrator rights.
GOOSE
Dataset tampering (Boolean, float, unsigned integer). Overrides of stNum, sqNum and timeAllowedToLive. Simulation flag toggle.
Sampled Values
Changes to the sample payload (Va, Vb, Vc, Vn, Ia to In). Overrides of smpCnt and smpSynch.
R-GOOSE
GOOSE over UDP. The routers send the R-GOOSE flow through the NetSim Cyber host.
Validity
NetSim Cyber encodes each changed frame again, so the subscriber IED accepts it

Sub-case 1: GOOSE command injection

GOOSE carries a small dataset, for example a trip Boolean. The publisher sends a fast burst after each state change, then sends the message again at longer intervals. A real state change increases stNum. The subscriber accepts a frame with a higher stNum as a new state.

AttackNetSim Cyber controlEffect at the subscriber
Command injectionChanges the dataset Boolean (trip or close) and increases stNumThe relay accepts a new state change and operates
sqNum overrideSets sqNum to a different valueThe retransmissions are out of sequence
timeAllowedToLive overrideSets a shorter timeAllowedToLiveThe next retransmission arrives after the time expires. The relay declares the GOOSE message lost.
Simulation flagToggles the simulation bitThe relay can treat real frames as test frames
A false GOOSE frame with a higher stNum trips the relayA false GOOSE frame with a higher stNum trips the relaySub-case 1: GOOSE command injection (time not to scale)GOOSE framesRelay / breakerfalse: TRIP, stNum+1the relay accepts the higher stNum as a new stateno tripTRIP (spurious)0 ms50 ms100 ms150 ms200 ms
Time not to scale. The relay accepts the false frame because its stNum is higher than the last stNum. The relay operates, but the grid has no fault.

Sub-case 2: SV manipulation

Sampled Values send the instantaneous current and voltage from a merging unit to the relay, at 80 samples per cycle. A change to the samples changes what the relay measures.

AttackNetSim Cyber controlEffect at the relay
Overcurrent injectionIncreases the current samples in the SV payloadThe relay measures a fault that is not there, and trips
MaskingDecreases or holds the samplesThe relay does not see a real fault, and does not trip
smpCnt overrideChanges the sample countThe samples look lost or out of sequence
smpSynch overrideChanges the synchronisation flagThe relay does not trust the stream, or uses wrong times
Manipulated SV samples make the relay see an overcurrent that is not thereManipulated SV samples make the relay see an overcurrent that is not thereExample data, not measurements. Sub-case 2: SV phase current at 80 samples per cyclePhase current (A)false overcurrent injected-500-25002505000 ms20 ms40 ms60 ms80 ms100 msrelay pickup +/- 300 A
Example values, not lab measurements. NetSim Cyber keeps the sample count consistent. The stream looks continuous, and only the values are wrong. The injected samples increase the current above the relay pickup, and the relay trips.

Sub-case 3: R-GOOSE

R-GOOSE (routable GOOSE, IEC 61850-90-5) carries GOOSE messages over UDP/IP. The messages can go through routers between substations. The command attack is the same as in sub-case 1. Only the position of NetSim Cyber changes.

  • NetSim Cyber is on the routed path between the two substations.
  • The Application Traffic Filter selects the R-GOOSE flow by UDP port.
  • Command injection works as in sub-case 1. The stNum rule does not change.
  • R-GOOSE is an IP flow, so the Threat Agent can also add a fixed delay. WAN latency uses part of the timeAllowedToLive. A small added delay can then make a frame late.
R-GOOSE carries the false GOOSE across the WAN, and NetSim Cyber is on the routed pathR-GOOSE carries the false GOOSE across the WAN, and NetSim Cyber is on the routed pathSub-case 3: routable GOOSE (IEC 61850-90-5) between two substationsWAN · R-GOOSE over UDPSubstation ASubstation BPublisher IEDmerging unitRouter ANetSim CyberR-GOOSE attackerRouter BSubscriber IEDprotection relayfalse GOOSE or delay, filter by UDP portWAN latency uses part of the timeAllowedToLive, so a small added delay can make a frame late.
Point the R-GOOSE publisher at the remote subscriber. Send the UDP flow through NetSim Cyber, and use the command attack from sub-case 1.

Notes for NetSim Cyber users

  1. Increase stNum when you inject a command. A GOOSE subscriber accepts a frame with a higher stNum.
  2. Keep smpCnt and smpSynch consistent on SV. The stream then looks continuous.
  3. Test on the bus and on R-GOOSE. The same command attack covers the local Ethernet case and the routed case.
  4. On R-GOOSE, add a delay to test the timeAllowedToLive margin over the WAN.

Do this in NetSim Cyber

  1. Connect NetSim Cyber inline on the bus, as a bridge between two network adapters. Run it with Administrator rights.
  2. Select the GOOSE or SV stream to attack. For R-GOOSE, select the flow by UDP port.
  3. For sub-case 1, change the dataset and increase stNum.
  4. For sub-case 2, change the SV current or voltage samples, and keep smpCnt consistent.
  5. For sub-case 3, send the R-GOOSE flow through the NetSim Cyber host, and use the sub-case 1 attack.
  6. Capture the traffic on the two sides of NetSim Cyber, for example with Wireshark.

IEC 60870-5-104 on a utility-scale SCADA network

In this use case, NetSim Cyber is an IEC 104 attacker in a large utility SCADA network. About 120 substation RTUs report to a national control centre over a WAN. NetSim Cyber is on the IEC 104 link of one substation. It changes the telemetry and the commands on that link, and the other sites operate as usual. The use case shows the effect of one compromised link in a large network. The operator can receive false data, and equipment can operate incorrectly.

Testbed

NetSim Cyber attacks one substation IEC 104 flow in a 120-site SCADA networkNetSim Cyber attacks one substation IEC 104 flow in a 120-site SCADA networkUtility-scale IEC 60870-5-104, RTUs to the national control centre120 substation RTUsRTU · Substation 07RTU · Substation 08RTU · Substation 09+ 117 more sitesRegional gatewayIEC 104 · TCP 2404NetSim Cyberattacks one IEC 104 flowNational control centreSCADA masterpolls, archivesFront-end processorchanges the ASDU in the frameThe other 119 sites report as usual. Only Substation 07 is under attack.
About 120 substation RTUs report to a national control centre over a WAN. NetSim Cyber is on the IEC 104 link of one site. The other sites report as usual.

Testbed parts

Substation RTUs or gateways
About 120 sites that report over IEC 104
WAN
Carries IEC 104 over TCP
NetSim Cyber
On the IEC 104 link of one site, at a WAN router or a front-end processor
Front-end processor
Stops the IEC 104 connections at the control centre
SCADA master
Polls, interrogates and archives the data

NetSim Cyber setup

Deployment
Multi-system. The IEC 104 traffic of the target site goes through the NetSim Cyber host.
Real Nodes
One source node for the RTU or gateway, one destination node for the control-centre master
Traffic filter
The IEC 104 flow, by source, destination, protocol and TCP port 2404
Targets
Selected ASDUs by type and information object address (IOA): measured values, status and commands
Validity
NetSim Cyber changes each ASDU in the frame, so the APDU sequence numbers stay valid

IEC 104 attacks that NetSim Cyber applies

AttackNetSim Cyber controlWhat the control centre sees
Telemetry manipulationChanges measured-value ASDUs (M_ME) for a selected IOA: increment, decrement, ramp, jitter, pulse or overrideA wrong measurement that looks correct (load, voltage, power)
Status manipulationFlips a single-point status (M_SP) or sets a double-point status (M_DP)A breaker or a switch in the wrong position on the display
Command manipulationFlips a single command (C_SC) or sets a double command (C_DC) in transitThe RTU operates the switch in the direction that the operator did not select
ReplaySends earlier valid messages againEarlier values while the conditions change
Delay or dropHolds or drops APDUsLate updates, or no updates
Time-tag manipulationShifts the CP56Time2a time tagsEvents in the wrong sequence in the sequence-of-events log

What the attack looks like

Manipulated IEC 104 telemetry shows the control centre a false busbar voltageManipulated IEC 104 telemetry shows the control centre a false busbar voltageExample data, not measurements. 110 kV busbar, IEC 104 measured valuesBusbar voltage (kV)telemetry injection window1081101121141160 s10 s20 s30 s40 s50 s60 sfalse high reported (+5 kV)true voltage holds near 110 kVtrue voltage (PRE)reported to control centre (injected)
Example values, not lab measurements. NetSim Cyber changes the measured-value ASDUs of one substation. The control centre receives a false busbar voltage, while the real voltage stays near 110 kV. The frame is valid, and only the values of one site change. A detector must compare the reported values with the expected network state to find the attack.

Notes for NetSim Cyber users

  1. Attack one flow in a large network. The filter selects one site, and the other sites operate live.
  2. Change the ASDU in the frame. If the APDU sequence numbers are wrong, the master closes the connection, and the attack is easy to see.
  3. Select the target by ASDU type and IOA. A measured value, a status point and a command each need a different change.
  4. Time tags are important. A shift of CP56Time2a corrupts the sequence-of-events log, and no value changes.

Do this in NetSim Cyber

  1. Make a multi-system scenario. Add a Real Node for the target RTU or gateway, and one for the control-centre master.
  2. Send the IEC 104 traffic of that site (TCP 2404) through the NetSim Cyber host.
  3. In the IEC-104 attacker, select the ASDU type and the IOA to attack.
  4. Apply the attack: telemetry or status manipulation, command manipulation, replay, delay, drop or a time-tag shift.
  5. Record PRE.pcap and POST.pcap. Compare the output of the control-centre detector with the attack window.

A coordinated multi-protocol attack on a 440 kV bay

This use case attacks several protocols on one protection and monitoring path. A merging unit at a 440 kV auto-transformer sends Sampled Values and GOOSE on the process bus. A protection relay subscribes to them. The relay also sends C37.118 synchrophasors over a WAN to a PDC at the control centre. All devices take their time from a shared GPS or PTP reference. NetSim Cyber attacks GOOSE, SV and C37.118, and it shifts the C37.118 time fields.

Testbed

NetSim Cyber attacks GOOSE and SV on the process bus, and C37.118 on the WAN, on the 440 kV pathNetSim Cyber attacks the process bus and the WAN on the 440 kV pathGPS / PTP time source440 kVATMerging UnitSV + GOOSENetSim CyberGOOSE / SVRelaysubscriber + PMUNetSim CyberC37.118WANPDCcontrol centreprocess busWAN to control centreNetSim Cyber attacks the process bus (GOOSE and SV) and the WAN (C37.118 and its time fields).
The relay is the central point. It subscribes to the bus, and it sends the synchrophasor stream. An attack on the bus side and an attack on the WAN side go through the relay.

Attacks in this use case

ProtocolAttacks
GOOSECommand injection with a higher stNum, timeAllowedToLive override, simulation flag toggle
Sampled ValuesFalse overcurrent and undercurrent injection, smpCnt override, smpSynch override
IEEE C37.118Magnitude bias and ramp, frequency override, angle bias, replay
Time fieldsC37.118 SOC shift (whole seconds) and fine time shift (FRACSEC)

Attack 1: Sampled Values

NetSim Cyber increases the SV current samples from the merging unit. The relay measures a fault that is not there, and it trips the 440 kV bay.

SV attack: injected samples make the relay see a false overcurrentSV attack: injected samples make the relay see a false overcurrentExample data, not measurements. SV phase current at 80 samples per cyclePhase current (A)false overcurrent injected-500-25002505000 ms20 ms40 ms60 ms80 ms100 msrelay pickup +/- 300 A

Attack 2: GOOSE

NetSim Cyber injects a GOOSE trip with a higher stNum. The relay accepts the frame and trips the bay.

GOOSE attack: a false command trips the relayGOOSE attack: a false command trips the relayCommand injection (time not to scale)GOOSE framesRelay / breakerfalse: TRIP, stNum+1the relay accepts the higher stNum as a new stateno tripTRIP (spurious)0 ms50 ms100 ms150 ms200 ms

Attack 3: C37.118

On the WAN link, NetSim Cyber overrides the frequency field in the synchrophasor stream from the relay. The PDC records a false underfrequency, which can start load shedding.

A C37.118 frequency override shows the PDC a false underfrequencyC37.118 attack: a frequency override shows the PDC a false underfrequencyExample data, not measurements. Reported frequencyFrequency (Hz)frequency override window49.049.550.00 s10 s20 s30 s40 s50 s60 sunder-frequency alarm 49.5 Hzset to 49.2 Hztrue frequency (PRE)reported to PDC (injected)

Attack 4: Time fields

NetSim Cyber shifts the time fields (SOC and FRACSEC) in the C37.118 frames. The PDC then aligns the phasor with the wrong time. At 50 Hz, a time offset of 1 ms gives a phase-angle error of 18 degrees. An angle error that increases can look like a real power swing, and wide-area protection can then operate incorrectly.

Time attack: a shift of the C37.118 time fields gives an angle error at the PDCTime attack: a shift of the C37.118 time fields gives an angle error at the PDCExample data, not measurements. Phasor angle as the PDC aligns itPhasor angle (deg)time-offset injection window152535450 s10 s20 s30 s40 s50 s60 s+18 deg angle errortrue angle holds near 20 degtrue angle (PRE)angle at the PDC (time-shifted)

A coordinated attack in stages

A lab can run the four attacks in sequence. Together they make one attack that looks real, while the real grid has no fault:

  1. The time shift starts, and the phasor angles at the PDC look unusual.
  2. A frequency override adds a false underfrequency.
  3. A false GOOSE frame trips the breaker.
  4. The SV overcurrent agrees with the false trip, so the protection data is consistent.

The lab can run the attacks one at a time to measure each effect, or in sequence for the coordinated case.

Notes for NetSim Cyber users

  1. Give each flow its own attack. The GOOSE and SV attacks run on the bus, and the C37.118 attacks run on the WAN.
  2. The relay is the central point. An attack on the bus shows in the synchrophasor stream on the WAN, so capture at the two points.
  3. The time fields control the angle. A small time shift gives a large angle error at the PDC.
  4. Run the attacks in stages to make one event. An attack that looks real needs data from all protocols that agrees.

Do this in NetSim Cyber

  1. Connect NetSim Cyber inline on the process bus for GOOSE and SV.
  2. Make a scenario with Real Nodes for the relay (as PMU) and the PDC. Put the Threat Agent on the WAN path.
  3. Set the Application Traffic Filter to the C37.118 flow (TCP 4712).
  4. Apply the attack for each protocol from the table. For the time attack, shift SOC or FRACSEC.
  5. Start the attacks one at a time to measure each effect. Then start them in sequence for the coordinated case.
  6. Capture the traffic at the relay and at the PDC.

NetSim Cyber with a MATLAB/Simulink model (IEEE 9-bus)

NetSim Cyber connects to a MATLAB/Simulink model over the network. A lab can attack a simulated plant on the network, with no change to the model. This use case uses the IEEE 9-bus example that ships with NetSim Cyber (sample configuration Cyber_IEEE 9-Bus_Example).

What the example does

  • The Simulink plant sends the Bus 6 voltage to a MATLAB supervisory controller over TCP, UDP or Modbus TCP.
  • NetSim Cyber subtracts 0.07 pu from the voltage in the measurement path.
  • The received voltage goes below the 0.95 pu limit, and the controller acts on the false value.
  • The command path from the controller to Simulink does not go through the Threat Agent.

Use it in a study

  • Put the lab model in place of the IEEE 9-bus plant, and keep the same NetSim Cyber setup.
  • Simulink sends with an ordinary TCP/IP or UDP block, and the model does not change.
  • Compare the Simulink scope (the true value) with the value that the controller receives.
  • Keep the command path separate from the Threat Agent to measure only the effect of the false measurement.

Example 2 on the worked examples page gives the frame layout, the ports, the three variants and the plots.

NetSim and NetSim Cyber together: IEC 104 over an emulated WAN

In the other use cases, NetSim Cyber is on one link. In this use case, the NetSim emulator and NetSim Cyber are on the same path. A real IEC 104 outstation sends data to a real IEC 104 master. The traffic goes across a WAN that the NetSim emulator models, and NetSim Cyber attacks it. The test then includes WAN latency, jitter and loss together with the attack.

NetSim emulates the utility WAN and NetSim Cyber attacks the IEC 104 traffic between a real RTU and a real masterNetSim models the WAN, and NetSim Cyber attacks the IEC 104 trafficUC8: source → NetSim → NetSim Cyber → destinationIEC 104 RTUsourceoutstationNetSim · emulated utility WANset latency, jitter, bandwidth, lossR1R2R3NetSim CyberThreat Agentattacks the IEC 104 flowIEC 104 masterdestinationSCADAIEC 104 · TCP 2404NetSim applies WAN conditions to the traffic, and NetSim Cyber attacks it. The source and the destination are real IEC 104 devices.The test includes the attack and the network conditions together, as in the field.
A utility can model its WAN in NetSim between the real RTU and the real master, and use NetSim Cyber for the attack. The utility can then test the SCADA master and a detector in field conditions, with no effect on the live network.

What NetSim adds: example WAN settings

One-way latency
40–80 ms per link
Jitter
±10–20 ms
Bandwidth
A limit per link, for example 2 Mbps
Packet loss
A small rate, as on a real WAN
Topology
Several hops on a selected path

How the attack and the network act together

  • Flood and WAN bandwidth: on a 2 Mbps link, a flood at a low rate fills the link. The same flood on a LAN has almost no effect.
  • Delay and WAN jitter: the WAN adds a latency that changes. A detector that uses arrival times must separate the attack delay from the normal jitter.
  • Loss and replay: real WAN loss causes gaps and TCP retransmissions, so a detector does not easily find the replayed frames.
  • Detector settings: a detector that a lab sets up on a clean LAN can give false alarms on a real WAN.

What the attack looks like

The delay attack adds to the WAN latency and goes above the data-freshness limitThe delay attack adds to the WAN latency and goes above the data-freshness limitExample data, not measurements. End-to-end latency of the IEC 104 updatesEnd-to-end latency (ms)delay attack window02004006008000 s20 s40 s60 s80 s100 s120 sstale-data limit 500 msdelay attack adds on topWAN latency ~60 ms (NetSim)WAN only (NetSim)with delay attack (NetSim Cyber)
Example values, not measurements. NetSim sets a baseline latency of about 60 ms with jitter, as on the real WAN. In the attack window, NetSim Cyber adds a delay that increases. The total latency goes above the 500 ms data-freshness limit. The master then uses stale data, although the link stays up.

Notes for NetSim Cyber users

  1. Put the network emulator in the path when the WAN is important. A LAN test does not show the effect of WAN latency, jitter, bandwidth limits and loss.
  2. Keep the real endpoints. Real IEC 104 devices use their real timers and their k and w windows.
  3. Set the WAN values from field measurements. Measure the latency, jitter, bandwidth and loss of the real link, and use them in NetSim.
  4. Test the detector in the conditions where it will operate.

Do this in NetSim and NetSim Cyber

  1. Use the real RTU and the real master as the endpoints.
  2. Model the WAN in the NetSim emulator: routers, link latency, jitter, bandwidth and loss.
  3. Put the NetSim Cyber Threat Agent after the emulated WAN.
  4. Select an attack: an IEC 104 attack (delay, replay or telemetry), or a SYN flood. Set its values.
  5. Capture the traffic at the two endpoints. Compare the master and the detector with and without the WAN conditions.

Related pages

Sources and trademarks

RTDS is a trademark of RTDS Technologies Inc. MATLAB and Simulink are registered trademarks of The MathWorks, Inc. Wireshark is a registered trademark of the Wireshark Foundation. All other product and company names are trademarks of their respective owners. This page uses them only to identify the products.