-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMirai_botnet_0.9.q
206 lines (156 loc) · 4.62 KB
/
Mirai_botnet_0.9.q
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
//This file was generated from (Academic) UPPAAL 4.1.24 (rev. 29A3ECA4E5FB0808), November 2019
/*
*/
//NO_QUERY
/*
*/
<----- MODEL VERIFICATION ----->
/*
Deadlocks never occur
*/
A[] !deadlock
/*
A deadlock implies that all devices have been infected
*/
A[] deadlock imply current_number_bots==total_devices-1
/*
*/
//NO_QUERY
/*
*/
<----- INFECTION REACHABILITY ----->
/*
All devices will always be infected in every possible scenario
*/
A<> current_number_bots==total_devices-1
/*
It is possible for every device to eventually be infected
*/
E<> current_number_bots==total_devices-1
/*
*/
//NO_QUERY
/*
*/
<----- INFECTION TIMES ----->
/*
All devices are always infected by 50 time units
*/
A[] total_time==50 imply current_number_bots==total_devices-1
/*
The probability all devices are compromised in 100 time units
*/
Pr[total_time<=100; 100] (<>current_number_bots==total_devices-1)
/*
The probability all devices are compromised in 50 time units
*/
Pr[total_time<=50] (<>current_number_bots==total_devices-1)
/*
The probability all devices are compromised in 25 time units
*/
Pr[total_time<=25] (<>current_number_bots==total_devices-1)
/*
The expected number of compromised devices in 10 time units (generated with 100 simulation runs)
*/
E [total_time<=10; 100] (max: current_number_bots)
/*
The expected number of compromised devices in 20 time units (generated with 100 simulation runs)
*/
E [total_time<=20; 100] (max: current_number_bots)
/*
The expected number of compromised devices in 25 time units (generated with 100 simulation runs)
*/
E [total_time<=25; 100] (max: current_number_bots)
/*
The expected number of compromised devices in 30 time units (generated with 100 simulation runs)
*/
E [total_time<=30; 100] (max: current_number_bots)
/*
The expected number of compromised devices in 40 time units (generated with 100 simulation runs)
*/
E [total_time<=40; 100] (max: current_number_bots)
/*
The expected number of compromised devices in 50 time units (generated with 100 simulation runs)
*/
E [total_time<=50; 100] (max: current_number_bots)
/*
The expected number of compromised devices in 60 time units (generated with 100 simulation runs)
*/
E [total_time<=60; 100] (max: current_number_bots)
/*
The expected number of compromised devices in 70 time units (generated with 100 simulation runs)
*/
E [total_time<=70; 100] (max: current_number_bots)
/*
The expected number of compromised devices in 80 time units (generated with 100 simulation runs)
*/
E [total_time<=80; 100] (max: current_number_bots)
/*
The expected number of compromised devices in 90 time units (generated with 100 simulation runs)
*/
E [total_time<=90; 100] (max: current_number_bots)
/*
The expected number of compromised devices in 100 time units (generated with 100 simulation runs)
*/
E [total_time<=100; 100] (max: current_number_bots)
/*
The probability bot 1 has been infected by 50 time units
*/
Pr[<=50] (<>in_botnet[1])
/*
The probability bot 2 has been infected by 50 time units
*/
Pr[<=50] (<>in_botnet[2])
/*
The probability bot 3 has been infected by 50 time units
*/
Pr[<=50] (<>in_botnet[3])
/*
The probability bot 4 has been infected by 50 time units
*/
Pr[<=50] (<>in_botnet[4])
/*
The probability bot 5 has been infected by 50 time units
*/
Pr[<=50] (<>in_botnet[5])
/*
The probability bot 1 has been infected by 25 time units
*/
Pr[<=25] (<>in_botnet[1])
/*
The probability bots 1 and 2 have been infected by 25 time units
*/
Pr[<=25] (<>in_botnet[1] && in_botnet[2])
/*
The probability bots 1, 2 , and 3 have been infected by 25 time units
*/
Pr[<=25] (<>in_botnet[1] && in_botnet[2] && in_botnet[3])
/*
simulate 100 runs for 100 time units each and plot the number of infected bots against simulation time
*/
simulate [total_time<=100; 100] {current_number_bots}
/*
simulate 100 runs for 100 time units each and plot when each bot becomes infected
*/
simulate [total_time<=100; 100] {in_botnet[1], in_botnet[2], in_botnet[3], in_botnet[4], in_botnet[5]}
/*
*/
//NO_QUERY
/*
*/
<----- Network Traffic ----->
/*
Probability that at least 75 messages are sent over the network in 32 time units (which is the expected time the infect all 5 devices)
*/
Pr[<=32] (<> total_messages>75)
/*
Simulate 100 runs for either 100 time units, or until every bot is infected, and plot the number of network scans and login attempts
*/
simulate [total_time<=100; 100] {total_scans, total_attempts} : current_number_bots==total_devices-1
/*
Simulate 100 runs for either 100 time units, or until every bot is infected, and plot the number of messages sent over the network
*/
simulate [total_time<=100; 100] {total_messages} : current_number_bots==total_devices-1
/*
*/
//NO_QUERY