Skip to content

Commit 5af26d0

Browse files
committed
Polish minitown scenario
1 parent 95bc148 commit 5af26d0

File tree

4 files changed

+55
-37
lines changed

4 files changed

+55
-37
lines changed

main.m

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,14 @@
1111

1212
% Define scenario
1313
scenarioFolder = './scenarios/minitown/';
14-
cpaFilePath = 'temp_attack.cpa';
14+
cpaFilePath = 'minitown_attack.cpa';
1515
noAttackCpaFile = 'minitown_no_attacks.cpa';
1616
exp_name = cpaFilePath(1:strfind(cpaFilePath,'.cpa')-1);
1717

18-
%
19-
% % Similation without attacks (used for comparison).
20-
% simul = EpanetCPA(inpFilePath, [scenarioFolder, noAttackCpaFile]); %
21-
% simul = simul.run();
22-
% simul.outputResults('minitown_no_attacks');
18+
% Similation without attacks (used for comparison).
19+
simul = EpanetCPA(inpFilePath, [scenarioFolder, noAttackCpaFile]); %
20+
simul = simul.run();
21+
simul.outputResults('minitown_no_attacks');
2322

2423
% Similation with attacks
2524
simul = EpanetCPA(inpFilePath, [scenarioFolder,cpaFilePath]); %

plot_results.ipynb

Lines changed: 38 additions & 16 deletions
Large diffs are not rendered by default.
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[CYBERNODES]
2-
;Name, Sensors, Actuators
2+
;Name, Sensors, Actuators
33
PLC1, P_TANK,
44
PLC2, S_PUMP1 S_PUMP2, PUMP1 PUMP2
55
[CYBERLINKS]
@@ -11,7 +11,7 @@
1111
Communication, PLC1-P_TANK-PLC2, TIME==90, TIME==140, DoS
1212
Communication, PLC1-P_TANK-SCADA, TIME==70, TIME==-1, replay 50 0.05 5 0
1313
[CYBEROPTIONS]
14-
verbosity, 1
15-
what_to_store, TANK PUMP1 PUMP2, PRESSURE, FLOW STATUS
16-
initial_conditions, 4
17-
patterns_file, ./minitown_patterns.csv
14+
verbosity, 1
15+
what_to_store, TANK PUMP1 PUMP2, PRESSURE, FLOW STATUS
16+
initial_conditions, 4
17+
patterns_file, ./minitown_patterns.csv
Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
[CYBERNODES]
2-
;Name, Sensors, Actuators
2+
;Name, Sensors, Actuators
33
PLC1, P_TANK,
4-
PLC2, F_PUMP1 F_PUMP2 S_PUMP1, PUMP1 PUMP2
5-
4+
PLC2, S_PUMP1 S_PUMP2, PUMP1 PUMP2
65
[CYBERLINKS]
76
;Source, Destination, Sensors
8-
PLC1, SCADA, P_TANK
97
PLC1, PLC2, P_TANK
10-
PLC2, SCADA, F_PUMP1 F_PUMP2
11-
8+
PLC1, SCADA, P_TANK
129
[CYBERATTACKS]
1310
; Type, Target, Init_cond, End_cond, Arguments
14-
1511
[CYBEROPTIONS]
16-
verbosity, 1
17-
initial_conditions, 4
18-
patterns_file, ./minitown_patterns.csv
12+
verbosity, 1
13+
what_to_store, TANK PUMP1 PUMP2, PRESSURE, FLOW STATUS
14+
initial_conditions, 4
15+
patterns_file, ./minitown_patterns.csv

0 commit comments

Comments
 (0)