-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
398 lines (367 loc) · 20.4 KB
/
index.html
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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="tbat (threat box assessment tool) is a tool for analysing different threat actors and their tactics, techniques and procedures.">
<meta name="author" content="OllieJC">
<title>Threat Box Assessment Tool</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/main-202108151726.css" rel="stylesheet">
</head>
<body>
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
<symbol id="home" viewBox="0 0 16 16">
<path d="M8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4.5a.5.5 0 0 0 .5-.5v-4h2v4a.5.5 0 0 0 .5.5H14a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146zM2.5 14V7.707l5.5-5.5 5.5 5.5V14H10v-4a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5v4H2.5z"/>
</symbol>
<symbol id="speedometer2" viewBox="0 0 16 16">
<path d="M8 4a.5.5 0 0 1 .5.5V6a.5.5 0 0 1-1 0V4.5A.5.5 0 0 1 8 4zM3.732 5.732a.5.5 0 0 1 .707 0l.915.914a.5.5 0 1 1-.708.708l-.914-.915a.5.5 0 0 1 0-.707zM2 10a.5.5 0 0 1 .5-.5h1.586a.5.5 0 0 1 0 1H2.5A.5.5 0 0 1 2 10zm9.5 0a.5.5 0 0 1 .5-.5h1.5a.5.5 0 0 1 0 1H12a.5.5 0 0 1-.5-.5zm.754-4.246a.389.389 0 0 0-.527-.02L7.547 9.31a.91.91 0 1 0 1.302 1.258l3.434-4.297a.389.389 0 0 0-.029-.518z"/>
<path fill-rule="evenodd" d="M0 10a8 8 0 1 1 15.547 2.661c-.442 1.253-1.845 1.602-2.932 1.25C11.309 13.488 9.475 13 8 13c-1.474 0-3.31.488-4.615.911-1.087.352-2.49.003-2.932-1.25A7.988 7.988 0 0 1 0 10zm8-7a7 7 0 0 0-6.603 9.329c.203.575.923.876 1.68.63C4.397 12.533 6.358 12 8 12s3.604.532 4.923.96c.757.245 1.477-.056 1.68-.631A7 7 0 0 0 8 3z"/>
</symbol>
<symbol id="people-circle" viewBox="0 0 16 16">
<path d="M11 6a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"/>
<path fill-rule="evenodd" d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm8-7a7 7 0 0 0-5.468 11.37C3.242 11.226 4.805 10 8 10s4.757 1.225 5.468 2.37A7 7 0 0 0 8 1z"/>
</symbol>
<symbol id="collection" viewBox="0 0 16 16">
<path d="M2.5 3.5a.5.5 0 0 1 0-1h11a.5.5 0 0 1 0 1h-11zm2-2a.5.5 0 0 1 0-1h7a.5.5 0 0 1 0 1h-7zM0 13a1.5 1.5 0 0 0 1.5 1.5h13A1.5 1.5 0 0 0 16 13V6a1.5 1.5 0 0 0-1.5-1.5h-13A1.5 1.5 0 0 0 0 6v7zm1.5.5A.5.5 0 0 1 1 13V6a.5.5 0 0 1 .5-.5h13a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-.5.5h-13z"/>
</symbol>
<symbol id="gear-fill" viewBox="0 0 16 16">
<path d="M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872l-.1-.34zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z"/>
</symbol>
<symbol id="speedometer" viewBox="0 0 16 16">
<path d="M8 2a.5.5 0 0 1 .5.5V4a.5.5 0 0 1-1 0V2.5A.5.5 0 0 1 8 2zM3.732 3.732a.5.5 0 0 1 .707 0l.915.914a.5.5 0 1 1-.708.708l-.914-.915a.5.5 0 0 1 0-.707zM2 8a.5.5 0 0 1 .5-.5h1.586a.5.5 0 0 1 0 1H2.5A.5.5 0 0 1 2 8zm9.5 0a.5.5 0 0 1 .5-.5h1.5a.5.5 0 0 1 0 1H12a.5.5 0 0 1-.5-.5zm.754-4.246a.389.389 0 0 0-.527-.02L7.547 7.31A.91.91 0 1 0 8.85 8.569l3.434-4.297a.389.389 0 0 0-.029-.518z"/>
<path fill-rule="evenodd" d="M6.664 15.889A8 8 0 1 1 9.336.11a8 8 0 0 1-2.672 15.78zm-4.665-4.283A11.945 11.945 0 0 1 8 10c2.186 0 4.236.585 6.001 1.606a7 7 0 1 0-12.002 0z"/>
</symbol>
<symbol id="chevron-right" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"/>
</symbol>
<symbol id="geo-fill" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M4 4a4 4 0 1 1 4.5 3.969V13.5a.5.5 0 0 1-1 0V7.97A4 4 0 0 1 4 3.999zm2.493 8.574a.5.5 0 0 1-.411.575c-.712.118-1.28.295-1.655.493a1.319 1.319 0 0 0-.37.265.301.301 0 0 0-.057.09V14l.002.008a.147.147 0 0 0 .016.033.617.617 0 0 0 .145.15c.165.13.435.27.813.395.751.25 1.82.414 3.024.414s2.273-.163 3.024-.414c.378-.126.648-.265.813-.395a.619.619 0 0 0 .146-.15.148.148 0 0 0 .015-.033L12 14v-.004a.301.301 0 0 0-.057-.09 1.318 1.318 0 0 0-.37-.264c-.376-.198-.943-.375-1.655-.493a.5.5 0 1 1 .164-.986c.77.127 1.452.328 1.957.594C12.5 13 13 13.4 13 14c0 .426-.26.752-.544.977-.29.228-.68.413-1.116.558-.878.293-2.059.465-3.34.465-1.281 0-2.462-.172-3.34-.465-.436-.145-.826-.33-1.116-.558C3.26 14.752 3 14.426 3 14c0-.599.5-1 .961-1.243.505-.266 1.187-.467 1.957-.594a.5.5 0 0 1 .575.411z"/>
</symbol>
<symbol id="bi-pen-fill" viewBox="0 0 16 16">
<path d="m13.498.795.149-.149a1.207 1.207 0 1 1 1.707 1.708l-.149.148a1.5 1.5 0 0 1-.059 2.059L4.854 14.854a.5.5 0 0 1-.233.131l-4 1a.5.5 0 0 1-.606-.606l1-4a.5.5 0 0 1 .131-.232l9.642-9.642a.5.5 0 0 0-.642.056L6.854 4.854a.5.5 0 1 1-.708-.708L9.44.854A1.5 1.5 0 0 1 11.5.796a1.5 1.5 0 0 1 1.998-.001z"/>
</symbol>
<symbol id="github" viewBox="0 0 16 16">
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"/>
</symbol>
</svg>
<main>
<div class="d-flex flex-column flex-shrink-0 p-3 bg-light tbat-menu">
<div class="tbat-menu-fixed">
<a href="#threatbox" onclick="load_window(this)" class="d-flex align-items-center mb-3 mb-md-0 me-md-auto link-dark text-decoration-none">
<svg class="bi me-2" width="40" height="32"><use xlink:href="#geo-fill"/></svg>
<span class="label-tbat"></span>
</a>
<hr>
<ul class="nav nav-pills flex-column mb-auto">
<li class="nav-item">
<a href="#threatbox" onclick="load_window(this)" class="nav-link" aria-current="page">
<svg class="bi me-2" width="16" height="16"><use xlink:href="#home"/></svg>
<span class="label-project"></span>
</a>
</li>
<li class="nav-item">
<a href="#threatactorlibrary" onclick="load_window(this)" class="nav-link">
<svg class="bi me-2" width="16" height="16"><use xlink:href="#collection"/></svg>
<span class="label-threatactorlibrary"></span>
</a>
</li>
<li class="nav-item">
<a href="#threatactors" onclick="load_window(this)" class="nav-link">
<svg class="bi me-2" width="16" height="16"><use xlink:href="#people-circle"/></svg>
<span class="label-threatactors"></span>
</a>
</li>
<li class="nav-item">
<a href="#report" onclick="load_window(this)" class="nav-link" aria-current="page">
<svg class="bi me-2" width="16" height="16"><use xlink:href="#speedometer2"/></svg>
<span class="label-report"></span>
</a>
</li>
<!--li class="nav-item">
<a href="#settings" onclick="load_window(this)" class="nav-link">
<svg class="bi me-2" width="16" height="16"><use xlink:href="#gear-fill"/></svg>
<span class="label-settings"></span>
</a>
</li-->
<hr>
<li class="nav-item">
<a href="https://github.com/OllieJC/tbat" target="_blank" rel="noopener noreferrer" class="nav-link" aria-current="page">
<svg class="bi me-2" width="16" height="16"><use xlink:href="#github"/></svg>
<span class="label-githubrepo"></span>
</a>
</li>
</ul>
</div>
</div>
<div class="vertical-divider"></div>
<div class="main-window">
<div id="window-threatbox" class="window-hidden">
<div id="forkMe"><a href="https://github.com/OllieJC/tbat"><span>Fork me</span></a></div>
<h1 class="label-fullprojectname"></h1>
<div>
<p class="label-welcomemessage"></p>
</div>
<div>
<h2 class="label-projectdetails"></h2>
<fieldset class="paddivs">
<div class="form-group">
<label class="label-projectname" for="inputName"></label>
<input type="text" class="form-control" id="inputName" onkeyup="project_details_need_saving()">
</div>
<div class="form-group">
<label class="label-notes" for="inputNotes"></label>
<textarea class="form-control" id="inputNotes" rows="3" onkeyup="project_details_need_saving()"></textarea>
</div>
<div>
<button type="button" onclick="save_project_details()" id="btnProjectDetailsSave" class="btn btn-primary"><span class="label-save"></span></button>
</div>
</fieldset>
</div>
<div>
<h2 class="label-open"></h2>
<form class="paddivs">
<div class="custom-file">
<input type="file" accept=".yml,.yaml" class="custom-file-input" id="inputYaml" onchange="open_yaml()">
</div>
<div>
<button type="button" onclick="click_open_yaml()" id="btnOpen" class="btn btn-primary"><span class="label-openyaml"></span></button>
</div>
</form>
</div>
<div>
<h2 class="label-export"></h2>
<div>
<button type="button" onclick="export_yaml()" id="btnExportYaml" class="btn btn-primary"><span class="label-exportyaml"></span></button>
</div>
</div>
<div>
<h2 class="label-reset"></h2>
<div>
<button type="button" onclick="reset()" class="btn btn-warning"><span class="label-reset"></span></button>
</div>
</div>
</div>
<div id="window-report" class="window-hidden">
<h1 class="label-report"></h1>
<div>
<h2 class="label-threatbox"></h2>
<div class="grid-container">
<div class="intent"><span class="label-intent"></span></div>
<div class="capability"><span class="label-capability"></span></div>
<div class="intent-one">1</div>
<div class="intent-two">2</div>
<div class="intent-three">3</div>
<div class="intent-four">4</div>
<div class="intent-five">5</div>
<div class="capability-one">1</div>
<div class="capability-two">2</div>
<div class="capability-three">3</div>
<div class="capability-four">4</div>
<div class="capability-five">5</div>
<div class="grid-square one-one"></div>
<div class="grid-square one-two"></div>
<div class="grid-square one-three"></div>
<div class="grid-square one-four"></div>
<div class="grid-square one-five"></div>
<div class="grid-square two-five"></div>
<div class="grid-square two-four"></div>
<div class="grid-square two-three"></div>
<div class="grid-square two-two"></div>
<div class="grid-square two-one"></div>
<div class="grid-square three-one"></div>
<div class="grid-square four-one"></div>
<div class="grid-square five-one"></div>
<div class="grid-square three-two"></div>
<div class="grid-square four-two"></div>
<div class="grid-square five-two"></div>
<div class="grid-square three-three"></div>
<div class="grid-square five-three"></div>
<div class="grid-square four-three"></div>
<div class="grid-square three-four"></div>
<div class="grid-square four-four"></div>
<div class="grid-square five-four"></div>
<div class="grid-square three-five"></div>
<div class="grid-square four-five"></div>
<div class="grid-square five-five"></div>
</div>
</div>
<div>
<h2 class="label-threatactors"></h2>
<div>
<div id="actorsList">
N/A
</div>
</div>
</div>
<div>
<h2 class="label-ttps"></h2>
<div>
<div id="ttpList" class="grid">
N/A
</div>
</div>
</div>
<div>
<h2 class="label-mitigations"></h2>
<div>
<div id="mitigationList" class="grid">
N/A
</div>
</div>
</div>
</div>
<div id="window-threatactors" class="window-hidden">
<h1 class="label-threatactors"></h1>
<div>
<table id="threat-actors-table" class="table">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col"><span class="label-actor-groupid"></span></th>
<th scope="col"><span class="label-intentions"></span></th>
<th scope="col"><span class="label-intent"></span></th>
<th scope="col"><span class="label-willingness"></span></th>
<th scope="col"><span class="label-capability"></span></th>
<th scope="col"><span class="label-novelty"></span></th>
<th scope="col"><svg class="bi me-2" width="16" height="16"><use xlink:href="#bi-pen-fill"/></svg></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<button type="button" class="btn btn-primary" onclick="new_actor()"><span class="label-new_actor"></span></button>
</div>
<div id="window-threatactorlibrary" class="window-hidden">
<h1 class="label-threatactorlibrary"></h1>
<div id="actorlibrary">
</div>
</div>
<div id="window-settings" class="window-hidden">
<h1 class="label-settings"></h1>
</div>
</div>
</main>
<div class="modal fade" id="mainModal" tabindex="-1" aria-labelledby="mainModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="mainModalLabel"></h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body" id="mainModalBody">
<div id="mainModalDiv">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal"><span class="label-close"></span></button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="actorModal" tabindex="-1" aria-labelledby="actorModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="actorModalLabel"></h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body" id="actorModalBody">
<input type="hidden" id="hidActorType" value=""></input>
<div class="mb-3">
<label for="taGroup" class="form-label"><span class="label-actor-groupid"></span></label>
<input type="text" class="form-control" id="taGroup"></input>
</div>
<div><span id="pSelectIntentions" class="label-select_intentions"></span></div>
<div class="pad">
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" id="cbxIntentions1" name="intentions" value="espionage">
<label class="form-check-label" for="cbxIntentions1"><span class="label-espionage"></span></label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" id="cbxIntentions2" name="intentions" value="destructive">
<label class="form-check-label" for="cbxIntentions2"><span class="label-destructive"></span></label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" id="cbxIntentions3" name="intentions" value="disruptive">
<label class="form-check-label" for="cbxIntentions3"><span class="label-disruptive"></span></label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" id="cbxIntentions4" name="intentions" value="cyber-crime">
<label class="form-check-label" for="cbxIntentions4"><span class="label-cyber-crime"></span></label>
</div>
</div>
<div class="mb-3">
<label for="taNotes" class="form-label"><span class="label-notes"></span></label>
<textarea class="form-control" id="taNotes" rows="3"></textarea>
</div>
<div><span id="pSelectIntent" class="label-select_intent"></span></div>
<select class="form-select form-select-sm form-intent" aria-labelledby="pSelectIntent">
<option value="na" class="label-select_intent"></option>
<option value="5" class="label-intent-5"></option>
<option value="4" class="label-intent-4"></option>
<option value="3" class="label-intent-3"></option>
<option value="2" class="label-intent-2"></option>
<option value="1" class="label-intent-1"></option>
</select>
<div><span id="pSelectWillingness" class="label-select_willingness"></span></div>
<select class="form-select form-select-sm form-willingness" aria-labelledby="pSelectWillingness">
<option value="na" class="label-select_willingness"></option>
<option value="0" class="label-willingness-0"></option>
<option value="-1" class="label-willingness-min1"></option>
<option value="-2" class="label-willingness-min2"></option>
</select>
<div><span id="pSelectCapability" class="label-select_capability"></span></div>
<select class="form-select form-select-sm form-capability" aria-labelledby="pSelectCapability">
<option value="na" class="label-select_capability"></option>
<option value="5" class="label-capability-5"></option>
<option value="4" class="label-capability-4"></option>
<option value="3" class="label-capability-3"></option>
<option value="2" class="label-capability-2"></option>
<option value="1" class="label-capability-1"></option>
</select>
<div><span id="pSelectNovelty" class="label-select_novelty"></span></div>
<select class="form-select form-select-sm form-novelty" aria-labelledby="pSelectNovelty">
<option value="na" class="label-select_novelty"></option>
<option value="0" class="label-novelty-0"></option>
<option value="-1" class="label-novelty-min1"></option>
<option value="-2" class="label-novelty-min2"></option>
</select>
<div class="accordion" id="accTTPs">
<div class="accordion-item">
<h2 class="accordion-header" id="flush-headingOne">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#accTTPList" aria-expanded="false" aria-controls="flush-collapseOne">
<span class="label-ttps"></span>
</button>
</h2>
<div id="accTTPList" class="accordion-collapse collapse" aria-labelledby="flush-headingOne" data-bs-parent="#accTTPs">
<div class="accordion-body">
</div>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" onclick="save_actor()"><span class="label-save"></span></button>
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal"><span class="label-close"></span></button>
</div>
</div>
</div>
</div>
<div class="position-fixed top-50 start-50 translate-middle p-3" style="z-index: 11">
<div id="notificationToast" class="toast hide" role="alert" aria-live="assertive" aria-atomic="true">
<div class="toast-header">
<span id="notificationHeader"></span>
<button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
</div>
<div class="toast-body">
<span id="notificationText"></span>
</div>
</div>
</div>
<script src="js/bootstrap.bundle.min.js"></script>
<script src="js/js-yaml.js"></script>
<script src="js/main-202108151720.js"></script>
</body>
</html>