forked from ControlCompass/ControlCompass.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcvc.js
More file actions
318 lines (318 loc) · 24.6 KB
/
Copy pathcvc.js
File metadata and controls
318 lines (318 loc) · 24.6 KB
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
$(document).ready(function(){
var arrayReturn = [];
$.ajax({
url: "https://raw.githubusercontent.com/ControlCompass/ControlCompass.github.io/main/cvc.json",
async: true,
dataType: 'json',
success: function (data) {
for (var i = 0, len = data.length; i < len; i++) {
arrayReturn.push({'value' : data[i].technique,
'techID' : data[i].techID,
'techName' : data[i].techName,
'tactics' : data[i].tactics,
'url' : data[i].url,
'splunk' : data[i].splunk,
'splunk_threatHunting' : data[i].splunk_threatHunting,
'elastic' : data[i].elastic,
'eql_analytics' : data[i].eql_analytics,
'azure_fullStack' : data[i].azure_fullStack,
'azure_sentinel' : data[i].azure_sentinel,
'logpoint' : data[i].logpoint,
'proofpoint_emergingThreats' : data[i].proofpoint_emergingThreats,
'tanium_threatResponse' : data[i].tanium_threatResponse,
'aws' : data[i].aws,
'gcp' : data[i].gcp,
'car' : data[i].car,
'atc' : data[i].atc,
'sigma' : data[i].sigma,
'th_playbook' : data[i].th_playbook,
'art' : data[i].art,
'car_red' : data[i].car_red,
'rta' : data[i].rta,
'prelude' : data[i].prelude,
'stockpile' : data[i].stockpile,
'scythe' : data[i].scythe,
'mitigations' : data[i].mitigations,
'nist' : data[i].nist,
'cis' : data[i].cis,
'd3fend' : data[i].d3fend,
'engage' : data[i].engage,
'policy_process_volume' : data[i].policy_process_volume,
'detect_volume' : data[i].detect_volume,
'test_volume' : data[i].test_volume,
'validate_potential' : data[i].validate_potential
});
};
loadSuggestions(arrayReturn);
console.log(arrayReturn);
}
});
function loadSuggestions(options) {
$('#autocomplete').autocomplete({
lookup: options,
onSelect: function (suggestion) {
$('#value').html('<h4 style="padding-top:5px"><a style="text-decoration:underline;color:#333333" target="_blank" href="' + suggestion.url + '"><strong>' + suggestion.value + '</strong></h4>');
$('#tactics').html('<p><b>MITRE ATT&CK Tactic(s):</b> ' + suggestion.tactics + '</p>');
if (suggestion.policy_process_volume == 0) {
$('#policy-process_header').html('<h4 style="padding-top:20px"><b style="color:#000000">Volume of Policy/Process Controls:</b><b> N/A</b></h4>');
$('#policy-process_text').html('<p>There are no policy- or process-related controls available for this attacker technique across 5 public resources included in this dataset.</p>');
};
if (suggestion.policy_process_volume == 1) {
$('#policy-process_header').html('<h4 style="padding-top:20px"><b style="color:#000000">Volume of Policy/Process Controls:</b><b> Low</b></h4>');
$('#policy-process_text').html('<p>There are relatively few policy- or process-related controls available for this attacker technique across 5 public resources included in this dataset.</p>');
};
if (suggestion.policy_process_volume == 2) {
$('#policy-process_header').html('<h4 style="padding-top:20px"><b style="color:#000000">Volume of Policy/Process Controls:</b><b> Medium</b></h4>');
$('#policy-process_text').html('<p>There are some policy- or process-related controls available for this attacker technique across 5 public resources included in this dataset.</p>');
};
if (suggestion.policy_process_volume == 3) {
$('#policy-process_header').html('<h4 style="padding-top:20px"><b style="color:#000000">Volume of Policy/Process Controls:</b><b> High</b></h4>');
$('#policy-process_text').html('<p>There are relatively many policy- or process-related controls available for this attacker technique across 5 public resources included in this dataset.</p>');
};
if (suggestion.mitigations != null) {
$('#mitigations').html("<strong>" + suggestion.mitigations + "</strong>" + " mitigation(s) are available from " + '<a style="text-decoration:underline;color:#000000" target="_blank" href="https://controlcompass.github.io/resources#mitigations"><strong>MITRE ATT&CK Mitigations</strong></a>');
};
if (suggestion.mitigations == null) {
$('#mitigations').html("");
};
if (suggestion.nist != null) {
$('#nist').html("<strong>" + suggestion.nist + "</strong>" + " control(s) are available from the " + '<a style="text-decoration:underline;color:#000000" target="_blank" href="https://controlcompass.github.io/resources#nist"><strong>NIST 800-53 Mappings</strong></a>');
};
if (suggestion.nist == null) {
$('#nist').html("");
};
if (suggestion.cis != null) {
$('#cis').html("<strong>" + suggestion.cis + "</strong>" + " Safeguard(s) are available from " + '<a style="text-decoration:underline;color:#000000" target="_blank" href="https://controlcompass.github.io/resources#cis"><strong>CIS Controls</strong></a>');
};
if (suggestion.cis == null) {
$('#cis').html("");
};
if (suggestion.d3fend != null) {
$('#d3fend').html('<strong><a style="text-decoration:underline;color:#000000" target="_blank" href="https://github.com/ControlCompass/ControlCompass.github.io/blob/main/resources/' + suggestion.techID + '.md#mitre-d3fend'+ '">' + suggestion.d3fend + " countermeasure(s)</a></strong> are available from <strong>MITRE D3FEND</strong>");
};
if (suggestion.d3fend == null) {
$('#d3fend').html("");
};
if (suggestion.engage != null) {
$('#engage').html("<strong>" + suggestion.engage + "</strong>" + " adversary engagement activities are available from " + '<a style="text-decoration:underline;color:#000000" target="_blank" href="https://controlcompass.github.io/resources#engage"><strong>MITRE Engage™</strong></a>');
};
if (suggestion.engage == null) {
$('#engage').html("");
};
if (suggestion.detect_volume == 0) {
$('#detect_header').html('<h4 style="padding-top:20px"><b style="color:#1565c0">Volume of Detection Rules:</b><b> N/A</b></h4>');
$('#detect_text').html('<p>There are no detection rules available for this attacker technique across 15 public resources included in this dataset.</p>');
};
if (suggestion.detect_volume == 1) {
$('#detect_header').html('<h4 style="padding-top:20px"><b style="color:#1565c0">Volume of Detection Rules:</b><b> Low</b></h4>');
$('#detect_text').html('<p>There are relatively few detection rules available for this attacker technique across 15 public resources included in this dataset.</p>');
};
if (suggestion.detect_volume == 2) {
$('#detect_header').html('<h4 style="padding-top:20px"><b style="color:#1565c0">Volume of Detection Rules:</b><b> Medium</b></h4>');
$('#detect_text').html('<p>There are some detection rules available for this attacker technique across 15 public resources included in this dataset.</p>');
};
if (suggestion.detect_volume == 3) {
$('#detect_header').html('<h4 style="padding-top:20px"><b style="color:#1565c0">Volume of Detection Rules:</b><b> High</b></h4>');
$('#detect_text').html('<p>There are relatively many detection rules available for this attacker technique across 15 public resources included in this dataset.</p>');
};
if (suggestion.splunk != null) {
$('#splunk').html('<strong><a style="text-decoration:underline;color:#1565c0" target="_blank" href="https://github.com/ControlCompass/ControlCompass.github.io/blob/main/resources/' + suggestion.techID + '.md#splunk-security-content'+ '">' + suggestion.splunk + ' detection rule(s)</a></strong> are available from <strong style="color:#1565c0">Splunk</strong>');
};
if (suggestion.splunk == null) {
$('#splunk').html("");
};
if (suggestion.splunk_threatHunting != null) {
$('#splunk_threatHunting').html("<strong>" + suggestion.splunk_threatHunting + "</strong>" + " detection rule(s) are available from the " + '<a style="text-decoration:underline;color:#1565c0" target="_blank" href="https://controlcompass.github.io/resources#splunk_threatHunting"><strong>ThreatHunting Splunk app</strong></a>');
};
if (suggestion.splunk_threatHunting == null) {
$('#splunk_threatHunting').html("");
};
if (suggestion.elastic != null) {
$('#elastic').html("<strong>" + suggestion.elastic + "</strong>" + " detection rule(s) are available from " + '<a style="text-decoration:underline;color:#1565c0" target="_blank" href="https://controlcompass.github.io/resources#elastic"><strong>Elastic Stack</strong></a>');
};
if (suggestion.elastic == null) {
$('#elastic').html("");
};
if (suggestion.eql_analytics != null) {
$('#eql_analytics').html("<strong>" + suggestion.eql_analytics + "</strong>" + " detection rule(s) are available from the " + '<a style="text-decoration:underline;color:#1565c0" target="_blank" href="https://controlcompass.github.io/resources#eql_analytics"><strong>EQL Analytics Library</strong></a>');
};
if (suggestion.eql_analytics == null) {
$('#eql_analytics').html("");
};
if (suggestion.azure_fullStack != null) {
$('#azure_fullStack').html("<strong>" + suggestion.azure_fullStack + "</strong>" + " detection rule(s) are available from " + '<a style="text-decoration:underline;color:#1565c0" target="_blank" href="https://controlcompass.github.io/resources#azure_fullStack"><strong>Azure full stack mappings</strong></a>');
};
if (suggestion.azure_fullStack == null) {
$('#azure_fullStack').html("");
};
if (suggestion.azure_sentinel != null) {
$('#azure_sentinel').html("<strong>" + suggestion.azure_sentinel + "</strong>" + " detection rule(s) are available from " + '<a style="text-decoration:underline;color:#1565c0" target="_blank" href="https://controlcompass.github.io/resources#azure_sentinel"><strong>Sentinel detection mappings</strong></a>');
};
if (suggestion.azure_sentinel == null) {
$('#azure_sentinel').html("");
};
if (suggestion.logpoint != null) {
$('#logpoint').html("<strong>" + suggestion.logpoint + "</strong>" + " detection rule(s) are available from " + '<a style="text-decoration:underline;color:#1565c0" target="_blank" href="https://controlcompass.github.io/resources#logpoint"><strong>LogPoint</strong></a>');
};
if (suggestion.logpoint == null) {
$('#logpoint').html("");
};
if (suggestion.proofpoint_emergingThreats != null) {
$('#proofpoint_emergingThreats').html("<strong>" + suggestion.proofpoint_emergingThreats + "</strong>" + " detection rule(s) are available from " + '<a style="text-decoration:underline;color:#1565c0" target="_blank" href="https://controlcompass.github.io/resources#proofpoint_emergingThreats"><strong>Network Security Monitoring rule mappings</strong></a>');
};
if (suggestion.proofpoint_emergingThreats == null) {
$('#proofpoint_emergingThreats').html("");
};
if (suggestion.tanium_threatResponse != null) {
$('#tanium_threatResponse').html("<strong>" + suggestion.tanium_threatResponse + "</strong>" + " detection rule(s) are available from " + '<a style="text-decoration:underline;color:#1565c0" target="_blank" href="https://controlcompass.github.io/resources#tanium_threatResponse"><strong>Tanium Threat Response</strong></a>');
};
if (suggestion.tanium_threatResponse == null) {
$('#tanium_threatResponse').html("");
};
if (suggestion.aws != null) {
$('#aws').html("<strong>" + suggestion.aws + "</strong>" + " detection rule(s) are available from " + '<a style="text-decoration:underline;color:#1565c0" target="_blank" href="https://controlcompass.github.io/resources#aws"><strong>AWS security control mappings</strong></a>');
};
if (suggestion.aws == null) {
$('#aws').html("");
};
if (suggestion.gcp != null) {
$('#gcp').html("<strong>" + suggestion.gcp + "</strong>" + " detection rule(s) are available from " + '<a style="text-decoration:underline;color:#1565c0" target="_blank" href="https://controlcompass.github.io/resources#gcp"><strong>GCP Community Security Analytics</strong></a>');
};
if (suggestion.aws == null) {
$('#gcp').html("");
};
if (suggestion.car != null) {
$('#car').html('<strong><a style="text-decoration:underline;color:#1565c0" target="_blank" href="https://github.com/ControlCompass/ControlCompass.github.io/blob/main/resources/' + suggestion.techID + '.md#cyber-analytics-repository'+ '">' + suggestion.car + ' analytic(s)</a></strong> are available from the <strong style="color:#1565c0">Cyber Analytics Repository</strong>');
};
if (suggestion.car == null) {
$('#car').html("");
};
if (suggestion.atc != null) {
$('#atc').html("<strong>" + suggestion.atc + "</strong>" + " detection rule(s) are available from " + '<a style="text-decoration:underline;color:#1565c0" target="_blank" href="https://controlcompass.github.io/resources#atc"><strong>Atomic Threat Coverage</strong></a>');
};
if (suggestion.atc == null) {
$('#atc').html("");
};
if (suggestion.sigma != null) {
$('#sigma').html('<strong><a style="text-decoration:underline;color:#1565c0" target="_blank" href="https://github.com/ControlCompass/ControlCompass.github.io/blob/main/resources/' + suggestion.techID + '.md#sigma-rules-public-repository'+ '">' + suggestion.sigma + ' detection rule(s)</a></strong> are available from the <strong style="color:#1565c0">Sigma rules public repository</strong>'); };
if (suggestion.sigma == null) {
$('#sigma').html("");
};
if (suggestion.th_playbook != null) {
$('#th_playbook').html("<strong>" + suggestion.th_playbook + "</strong>" + " detection rule(s) are available from the " + '<a style="text-decoration:underline;color:#1565c0" target="_blank" href="https://controlcompass.github.io/resources#th_playbook"><strong>ThreatHunter Playbook</strong></a>');
};
if (suggestion.th_playbook == null) {
$('#th_playbook').html("");
};
if (suggestion.test_volume == 0) {
$('#test_header').html('<h4 style="padding-top:20px"><b style="color:#bf2026ff">Volume of Offensive Tests:</b><b> N/A</b></h4>');
$('#test_text').html('<p>There are no offensive security tests available for this attacker technique across 6 public resources included in this dataset.</p>');
};
if (suggestion.test_volume == 1) {
$('#test_header').html('<h4 style="padding-top:20px"><b style="color:#bf2026ff">Volume of Offensive Tests:</b><b> Low</b></h4>');
$('#test_text').html('<p>There are relatively few offensive security tests available for this attacker technique across 6 public resources included in this dataset.</p>');
};
if (suggestion.test_volume == 2) {
$('#test_header').html('<h4 style="padding-top:20px"><b style="color:#bf2026ff">Volume of Offensive Tests:</b><b> Medium</b></h4>');
$('#test_text').html('<p>There are some offensive security tests available for this attacker technique across 6 public resources included in this dataset.</p>');
};
if (suggestion.test_volume == 3) {
$('#test_header').html('<h4 style="padding-top:20px"><b style="color:#bf2026ff">Volume of Offensive Tests:</b><b> High</b></h4>');
$('#test_text').html('<p>There are relatively many offensive security tests available for this attacker technique across 6 public resources included in this dataset.</p>');
};
if (suggestion.art != null) {
$('#art').html('<strong><a style="text-decoration:underline;color:#bf2026ff" target="_blank" href="https://github.com/ControlCompass/ControlCompass.github.io/blob/main/resources/' + suggestion.techID + '.md#atomic-red-team'+ '">' + suggestion.art + ' test(s)</a></strong> are available from <strong style="color:#bf2026ff">Atomic Red Team</strong>');
};
if (suggestion.art == null) {
$('#art').html("");
};
if (suggestion.car_red != null) {
$('#car_red').html('<strong><a style="text-decoration:underline;color:#bf2026ff" target="_blank" href="https://github.com/ControlCompass/ControlCompass.github.io/blob/main/resources/' + suggestion.techID + '.md#cyber-analytics-repository-1'+ '">' + suggestion.car_red + ' test(s)</a></strong> are available from the <strong style="color:#bf2026ff">Cyber Analytics Repository</strong>');
};
if (suggestion.car_red == null) {
$('#car_red').html("");
};
if (suggestion.rta != null) {
$('#rta').html("<strong>" + suggestion.rta + "</strong>" + " test(s) are available from " + '<a style="text-decoration:underline;color:#bf2026ff" target="_blank" href="https://controlcompass.github.io/resources#rta"><strong>Red Team Automation</strong></a>');
};
if (suggestion.rta == null) {
$('#rta').html("");
};
if (suggestion.prelude != null) {
$('#prelude').html("<strong>" + suggestion.prelude + "</strong>" + " test(s) are available from " + '<a style="text-decoration:underline;color:#bf2026ff" target="_blank" href="https://controlcompass.github.io/resources#prelude"><strong>Prelude Community TTPs</strong></a>');
};
if (suggestion.prelude == null) {
$('#prelude').html("");
};
if (suggestion.stockpile != null) {
$('#stockpile').html("<strong>" + suggestion.stockpile + "</strong>" + " test(s) are available from " + '<a style="text-decoration:underline;color:#bf2026ff" target="_blank" href="https://controlcompass.github.io/resources#stockpile"><strong>CALDERA Stockpile</strong></a>');
};
if (suggestion.stockpile == null) {
$('#stockpile').html("");
};
if (suggestion.scythe != null) {
$('#scythe').html("<strong>" + suggestion.scythe + "</strong>" + " test(s) are available from " + '<a style="text-decoration:underline;color:#bf2026ff" target="_blank" href="https://controlcompass.github.io/resources#scythe"><strong>Scythe</strong></a>');
};
if (suggestion.scythe == null) {
$('#scythe').html("");
};
if (suggestion.validate_potential == 0) {
$('#validate_header').html('<h4 style="padding-top:20px"><b style="color:#7466BF">Validation Potential:</b><b> N/A</b></h4>');
$('#validate_text1').html('<p>This represents a <i> purely conceptual</i> measure of the ability to validate the effectiveness of security controls (detections) aligned with this attacker technique. This is based entirely on the presence (or lack) of defensive detection rules and offensive tests in the 21 publicly-accessible resources included in this dataset.</p>');
$('#validate_text2').html('<p>For this technique, there are currently neither any detection rules nor any offensive tests available in the resources included in this dataset.</p>');
};
if (suggestion.validate_potential == 1) {
$('#validate_header').html('<h4 style="padding-top:20px"><b style="color:#7466BF">Validation Potential:</b><b> Low</b></h4>');
$('#validate_text1').html('<p>This represents a <i> purely conceptual</i> measure of the ability to validate the effectiveness of security controls (detections) aligned with this attacker technique. This is based entirely on the presence (or lack) of defensive detection rules and offensive tests in the 21 publicly-accessible resources included in this dataset.</p>');
if (suggestion.detect_volume == 3 && suggestion.test_volume == 0) {
$('#validate_text2').html('<p>For this technique, there is a relatively high volume of defensive detection rules available in the resources included in this dataset. However, no offensive tests are currently available in these resources.</p>');
};
if (suggestion.detect_volume == 2 && suggestion.test_volume == 0) {
$('#validate_text2').html('<p>For this technique, there is a medium volume of defensive detection rules available in the resources included in this dataset. However, no offensive tests are currently available in these resources.</p>');
};
if (suggestion.detect_volume == 1 && suggestion.test_volume == 3) {
$('#validate_text2').html('<p>For this technique, there is a relatively high volume of offensive tests available in the resources included in this dataset. However, there is only a low volume of defensive detection rules currently available in these resources.</p>');
};
if (suggestion.detect_volume == 1 && suggestion.test_volume == 2) {
$('#validate_text2').html('<p>For this technique, there are some offensive tests available in the resources included in this dataset. However, there is only a low volume of defensive detection rules currently available in these resources.</p>');
};
if (suggestion.detect_volume == 1 && suggestion.test_volume == 1) {
$('#validate_text2').html('<p>For this technique, there is a relatively low volume of both defensive detection rules and offensive tests available in the resources included in this dataset.</p>');
};
if (suggestion.detect_volume == 1 && suggestion.test_volume == 0) {
$('#validate_text2').html('<p>For this technique, there is a relatively low volume of defensive detection rules and no offensive tests currently available in the resources included in this dataset.</p>');
};
if (suggestion.detect_volume == 0 && suggestion.test_volume == 1) {
$('#validate_text2').html('<p>For this technique, there are some offensive tests available in the resources included in this dataset. However, there are currently no defensive detection rules available in these resources.</p>');
};
};
if (suggestion.validate_potential == 2) {
$('#validate_header').html('<h4 style="padding-top:20px"><b style="color:#7466BF">Validation Potential:</b><b> Medium</b></h4>');
$('#validate_text1').html('<p>This represents a <i> purely conceptual</i> measure of the ability to validate the effectiveness of security controls (detections) aligned with this attacker technique. This is based entirely on the presence (or lack) of defensive detection rules and offensive tests in the 21 publicly-accessible resources included in this dataset.</p>');
if (suggestion.detect_volume == 3 && suggestion.test_volume == 1) {
$('#validate_text2').html('<p>For this technique, there is a relatively high volume of defensive detection rules; however, there are relatively few offensive tests available in the resources included in this dataset.</p>');
};
if (suggestion.detect_volume == 2 && suggestion.test_volume == 2) {
$('#validate_text2').html('<p>For this technique, there is a medium volume of both defensive detection rules and offensive tests available in the resources included in this dataset.</p>');
};
if (suggestion.detect_volume == 2 && suggestion.test_volume == 1) {
$('#validate_text2').html('<p>For this technique, there is a medium volume of both defensive detection rules and some offensive tests available in the resources included in this dataset.</p>');
};
};
if (suggestion.validate_potential == 3) {
$('#validate_header').html('<h4 style="padding-top:20px"><b style="color:#7466BF">Validation Potential:</b><b> High</b></h4>');
$('#validate_text1').html('<p>This represents a <i> purely conceptual</i> measure of the ability to validate the effectiveness of security controls (detections) aligned with this attacker technique. This is based entirely on the presence (or lack) of defensive detection rules and offensive tests in the 21 publicly-accessible resources included in this dataset.</p>');
if (suggestion.detect_volume == 3 && suggestion.test_volume == 3) {
$('#validate_text2').html('<p>For this technique, there is a relatively high volume of both defensive detection rules and offensive tests available in the resources included in this dataset.</p>');
};
if (suggestion.detect_volume == 2 && suggestion.test_volume == 3) {
$('#validate_text2').html('<p>For this technique, there is a relatively high volume of offensive tests and a medium volume of defensive detection rules available in the resources included in this dataset.</p>');
};
if (suggestion.detect_volume == 3 && suggestion.test_volume == 2) {
$('#validate_text2').html('<p>For this technique, there is a relatively high volume of defensive detection rules and a medium volume of offensive tests available in the resources included in this dataset.</p>');
};
};
}
});
}
})