-
Notifications
You must be signed in to change notification settings - Fork 3k
/
SysmonThreatHunting.json
5267 lines (5267 loc) · 224 KB
/
SysmonThreatHunting.json
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
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"version": "Notebook/1.0",
"items": [
{
"type": 1,
"content": {
"json": "This workbook provides drill-down dashboards to aid the execution of threat hunts targeting Sysmon data mapped to MITRE ATT&CK.\n\nThis workbook is written by [Edoardo Gerosa](https://twitter.com/netevert).\nFor guidance consult [Sentinel ATT&CK's documentation](https://github.com/BlueTeamToolkit/sentinel-attack) or contact [the author](https://twitter.com/netevert). For bug submissions please [open an issue](https://github.com/BlueTeamToolkit/sentinel-attack/issues) on GitHub."
},
"name": "text - 2"
},
{
"type": 11,
"content": {
"version": "LinkItem/1.0",
"style": "tabs",
"links": [
{
"cellValue": "navigation_value",
"linkTarget": "parameter",
"linkLabel": "ATT&CK trigger overview",
"subTarget": "1",
"style": "link"
},
{
"cellValue": "navigation_value",
"linkTarget": "parameter",
"linkLabel": "ATT&CK drilldown",
"subTarget": "2",
"style": "link"
},
{
"cellValue": "navigation_value",
"linkTarget": "parameter",
"linkLabel": "User drilldown",
"subTarget": "3",
"style": "link"
},
{
"cellValue": "navigation_value",
"linkTarget": "parameter",
"linkLabel": "Network connection drilldown",
"subTarget": "6",
"style": "link"
},
{
"cellValue": "navigation_value",
"linkTarget": "parameter",
"linkLabel": "Computer drilldown",
"subTarget": "4",
"style": "link"
},
{
"cellValue": "navigation_value",
"linkTarget": "parameter",
"linkLabel": "Process GUID drilldown",
"subTarget": "5",
"style": "link"
},
{
"cellValue": "navigation_value",
"linkTarget": "parameter",
"linkLabel": "File create drilldown",
"subTarget": "7",
"style": "link"
},
{
"cellValue": "navigation_value",
"linkTarget": "parameter",
"linkLabel": "Pipe name drilldown",
"subTarget": "8",
"style": "link"
}
]
},
"name": "navigation-tabs",
"styleSettings": {
"showBorder": true
}
},
{
"type": 12,
"content": {
"version": "NotebookGroup/1.0",
"groupType": "editable",
"items": [
{
"type": 1,
"content": {
"json": "This tab provides an overview of ATT&CK triggers within a selected time range. Edit the `Time Range` and `Time Interval` below to select a time range and interval. Please note that all tables below report data for non-whitelisted Sysmon events. Consult [this documentation](https://github.com/BlueTeamLabs/sentinel-attack/wiki/Trigger-overview-tab) for additional information."
},
"name": "text - 3"
},
{
"type": 9,
"content": {
"version": "KqlParameterItem/1.0",
"parameters": [
{
"id": "b845def6-6de9-421d-a160-fb4828df0d9c",
"version": "KqlParameterItem/1.0",
"name": "Time_Range",
"label": "Time Range",
"type": 4,
"isRequired": true,
"value": {
"durationMs": 3600000
},
"typeSettings": {
"selectableValues": [
{
"durationMs": 300000
},
{
"durationMs": 900000
},
{
"durationMs": 1800000
},
{
"durationMs": 3600000
},
{
"durationMs": 14400000
},
{
"durationMs": 43200000
},
{
"durationMs": 86400000
},
{
"durationMs": 172800000
},
{
"durationMs": 259200000
},
{
"durationMs": 604800000
},
{
"durationMs": 1209600000
},
{
"durationMs": 2419200000
},
{
"durationMs": 2592000000
},
{
"durationMs": 5184000000
},
{
"durationMs": 7776000000
}
]
},
"resourceType": "microsoft.insights/components"
},
{
"id": "be99fc46-1c82-459b-8053-85d83936b346",
"version": "KqlParameterItem/1.0",
"name": "Time_Interval",
"label": "Time Interval",
"type": 2,
"isRequired": true,
"query": "datatable(key:string, value:string)\r\n[\r\n\"1m\", \"1 minute\",\r\n\"5m\", \"5 minutes\",\r\n\"15m\", \"15 minutes\",\r\n\"30m\", \"30 minutes\",\r\n\"1h\", \"1 hour\"\r\n]",
"value": "15m",
"typeSettings": {
"additionalResourceOptions": []
},
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces"
}
],
"style": "pills",
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces"
},
"name": "parameters - 2"
},
{
"type": 3,
"content": {
"version": "KqlItem/1.0",
"query": "let process_path_create_whitelist = process_create_whitelist | project process_path;\r\nlet process_path_access_whitelist = process_access_whitelist | project process_path;\r\nlet process_path_dns_whitelist = dns_whitelist | project process_path;\r\nlet process_path_file_create_whitelist = file_create_whitelist | project process_path;\r\nlet process_path_image_load_whitelist = image_load_whitelist | project process_path;\r\nlet process_path_network_whitelist = network_whitelist | project process_path;\r\nlet process_path_pipe_whitelist = pipe_whitelist | project process_path;\r\nlet process_path_registry_whitelist = registry_whitelist | project process_path;\r\nSysmon\r\n| where TimeGenerated {Time_Range:query}\r\n| where isnotempty(phase_name)\r\n| where process_path !in~ (process_path_create_whitelist) and process_path !in~ (process_path_access_whitelist) and process_path !in~ (process_path_dns_whitelist) and process_path !in~ (process_path_file_create_whitelist) and process_path !in~ (process_path_image_load_whitelist) and process_path !in~ (process_path_network_whitelist) and process_path !in~ (process_path_pipe_whitelist) and process_path !in~ (process_path_registry_whitelist)\r\n| summarize count() by phase_name",
"size": 4,
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces",
"visualization": "tiles",
"tileSettings": {
"titleContent": {
"columnMatch": "phase_name",
"formatter": 1,
"formatOptions": {
"showIcon": true
}
},
"leftContent": {
"columnMatch": "count_",
"formatter": 12,
"formatOptions": {
"palette": "auto",
"showIcon": true
},
"numberFormat": {
"unit": 17,
"options": {
"maximumSignificantDigits": 3,
"maximumFractionDigits": 2
}
}
},
"showBorder": false
}
},
"name": "query - 0",
"styleSettings": {
"progressStyle": "loader"
}
},
{
"type": 3,
"content": {
"version": "KqlItem/1.0",
"query": "let process_path_create_whitelist = process_create_whitelist | project process_path;\r\nlet process_path_access_whitelist = process_access_whitelist | project process_path;\r\nlet process_path_dns_whitelist = dns_whitelist | project process_path;\r\nlet process_path_file_create_whitelist = file_create_whitelist | project process_path;\r\nlet process_path_image_load_whitelist = image_load_whitelist | project process_path;\r\nlet process_path_network_whitelist = network_whitelist | project process_path;\r\nlet process_path_pipe_whitelist = pipe_whitelist | project process_path;\r\nlet process_path_registry_whitelist = registry_whitelist | project process_path;\r\nSysmon\r\n| where TimeGenerated {Time_Range:query}\r\n| where isnotempty(technique_id)\r\n| where process_path !in~ (process_path_create_whitelist) and process_path !in~ (process_path_access_whitelist) and process_path !in~ (process_path_dns_whitelist) and process_path !in~ (process_path_file_create_whitelist) and process_path !in~ (process_path_image_load_whitelist) and process_path !in~ (process_path_network_whitelist) and process_path !in~ (process_path_pipe_whitelist) and process_path !in~ (process_path_registry_whitelist)\r\n| summarize count() by technique_id, technique_name, phase_name\r\n| sort by count_ desc",
"size": 0,
"showAnalytics": true,
"title": "Top triggered techniques within selected time range",
"timeContext": {
"durationMs": 0
},
"timeContextFromParameter": "Time_Range",
"showExportToExcel": true,
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces",
"gridSettings": {
"formatters": [
{
"columnMatch": "count_",
"formatter": 8,
"formatOptions": {
"palette": "red",
"showIcon": true
}
}
],
"labelSettings": [
{
"columnId": "technique_id",
"label": "Technique ID"
},
{
"columnId": "technique_name",
"label": "Technique Name"
},
{
"columnId": "phase_name",
"label": "Phase Name"
},
{
"columnId": "count_",
"label": "Count"
}
]
}
},
"customWidth": "50",
"name": "query - 4",
"styleSettings": {
"progressStyle": "loader",
"showBorder": true
}
},
{
"type": 3,
"content": {
"version": "KqlItem/1.0",
"query": "let process_path_create_whitelist = process_create_whitelist | project process_path;\r\nlet process_path_access_whitelist = process_access_whitelist | project process_path;\r\nlet process_path_dns_whitelist = dns_whitelist | project process_path;\r\nlet process_path_file_create_whitelist = file_create_whitelist | project process_path;\r\nlet process_path_image_load_whitelist = image_load_whitelist | project process_path;\r\nlet process_path_network_whitelist = network_whitelist | project process_path;\r\nlet process_path_pipe_whitelist = pipe_whitelist | project process_path;\r\nlet process_path_registry_whitelist = registry_whitelist | project process_path;\r\nSysmon\r\n| where TimeGenerated {Time_Range:query}\r\n| where isnotempty(Computer)\r\n| where process_path !in~ (process_path_create_whitelist) and process_path !in~ (process_path_access_whitelist) and process_path !in~ (process_path_dns_whitelist) and process_path !in~ (process_path_file_create_whitelist) and process_path !in~ (process_path_image_load_whitelist) and process_path !in~ (process_path_network_whitelist) and process_path !in~ (process_path_pipe_whitelist) and process_path !in~ (process_path_registry_whitelist)\r\n| summarize count() by Computer, UserName\r\n| sort by count_ desc",
"size": 0,
"title": "Top triggered Computers within selected time range",
"timeContext": {
"durationMs": 0
},
"timeContextFromParameter": "Time_Range",
"showExportToExcel": true,
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces",
"visualization": "table",
"gridSettings": {
"formatters": [
{
"columnMatch": "count_",
"formatter": 8,
"formatOptions": {
"palette": "red",
"showIcon": true,
"aggregation": "Sum"
}
}
],
"labelSettings": [
{
"columnId": "UserName",
"label": "User Name"
},
{
"columnId": "count_",
"label": "Count"
}
]
}
},
"customWidth": "50",
"name": "query - 6",
"styleSettings": {
"progressStyle": "loader",
"showBorder": true
}
},
{
"type": 3,
"content": {
"version": "KqlItem/1.0",
"query": "let process_path_create_whitelist = process_create_whitelist | project process_path;\r\nlet process_path_access_whitelist = process_access_whitelist | project process_path;\r\nlet process_path_dns_whitelist = dns_whitelist | project process_path;\r\nlet process_path_file_create_whitelist = file_create_whitelist | project process_path;\r\nlet process_path_image_load_whitelist = image_load_whitelist | project process_path;\r\nlet process_path_network_whitelist = network_whitelist | project process_path;\r\nlet process_path_pipe_whitelist = pipe_whitelist | project process_path;\r\nlet process_path_registry_whitelist = registry_whitelist | project process_path;\r\nlet min_t = toscalar(Sysmon | summarize min({Time_Range:start}));\r\nlet max_t = toscalar(Sysmon | summarize max({Time_Range:end}));\r\nSysmon\r\n| where isnotempty(phase_name)\r\n| where process_path !in~ (process_path_create_whitelist) and process_path !in~ (process_path_access_whitelist) and process_path !in~ (process_path_dns_whitelist) and process_path !in~ (process_path_file_create_whitelist) and process_path !in~ (process_path_image_load_whitelist) and process_path !in~ (process_path_network_whitelist) and process_path !in~ (process_path_pipe_whitelist) and process_path !in~ (process_path_registry_whitelist)\r\n| make-series num=count() default=0 on TimeGenerated in range(min_t, max_t, {Time_Interval:value}) by phase_name",
"size": 1,
"title": "Overview of ATT&CK tactics triggered over time range by selected time interval",
"timeContext": {
"durationMs": 0
},
"timeContextFromParameter": "Time_Range",
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces",
"visualization": "timechart",
"graphSettings": {
"type": 0
}
},
"name": "query - 7",
"styleSettings": {
"progressStyle": "loader",
"showBorder": true
}
}
]
},
"conditionalVisibility": {
"parameterName": "navigation_value",
"comparison": "isEqualTo",
"value": "1"
},
"name": "trigger-overview-group",
"styleSettings": {
"progressStyle": "squares"
}
},
{
"type": 12,
"content": {
"version": "NotebookGroup/1.0",
"groupType": "editable",
"items": [
{
"type": 1,
"content": {
"json": "The tab provides insights into all ATT&CK triggers registered within the selected timespan. More importantly the data in this tab helps to drill down into Sysmon logs by filtering by ATT&CK tactics, techniques, technique ID and excluded hosts. Consult [this documentation](https://github.com/BlueTeamLabs/sentinel-attack/wiki/ATT&CK-drilldown-tab) for additional information."
},
"name": "intro-text"
},
{
"type": 9,
"content": {
"version": "KqlParameterItem/1.0",
"parameters": [
{
"id": "e7936a65-94c9-40a1-8d5f-e8ef336007a1",
"version": "KqlParameterItem/1.0",
"name": "time_range",
"label": "Timespan",
"type": 4,
"description": "Selects the time range for the drilldown",
"isRequired": true,
"value": {
"durationMs": 86400000
},
"typeSettings": {
"selectableValues": [
{
"durationMs": 300000
},
{
"durationMs": 900000
},
{
"durationMs": 1800000
},
{
"durationMs": 3600000
},
{
"durationMs": 14400000
},
{
"durationMs": 43200000
},
{
"durationMs": 86400000
},
{
"durationMs": 172800000
},
{
"durationMs": 259200000
},
{
"durationMs": 604800000
},
{
"durationMs": 1209600000
},
{
"durationMs": 2419200000
},
{
"durationMs": 2592000000
},
{
"durationMs": 5184000000
},
{
"durationMs": 7776000000
}
],
"allowCustom": true
},
"resourceType": "microsoft.insights/components"
},
{
"id": "e1b35895-cd18-4ca9-a54d-4646445159bc",
"version": "KqlParameterItem/1.0",
"name": "tactic",
"label": "ATT&CK tactic",
"type": 2,
"description": "The ATT&CK tactic to target during the drilldown analysis",
"isRequired": true,
"multiSelect": true,
"quote": "'",
"delimiter": ",",
"query": "Sysmon\r\n| where isnotempty(phase_name)\r\n| summarize by phase_name",
"value": [
"Defense Evasion",
"Persistence",
"Execution",
"Defense Evasion, Execution,phase_name=Execution",
"Privilege Escalation",
"Lateral Movement"
],
"typeSettings": {
"additionalResourceOptions": [
"value::all"
]
},
"timeContext": {
"durationMs": 0
},
"timeContextFromParameter": "time_range",
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces"
},
{
"id": "e54e76ab-79bf-47b6-bae1-69e8a0239774",
"version": "KqlParameterItem/1.0",
"name": "technique",
"label": "ATT&CK technique",
"type": 2,
"description": "The ATT&CK technique to target during the drilldown analysis",
"isRequired": true,
"multiSelect": true,
"quote": "'",
"delimiter": ",",
"query": "Sysmon\r\n| where isnotempty(technique_name)\r\n| summarize by technique_name",
"value": [
"Masquerading",
"Install Root Certificate",
"Windows Management Instrumentation",
"Scheduled Task",
"Regsvr32",
"DLL Side-Loading",
"Indirect Command Execution",
"Command-Line Interface",
"Modify Existing Service",
"Bypass User Account Control",
"Remote Services"
],
"typeSettings": {
"additionalResourceOptions": [
"value::all"
]
},
"timeContext": {
"durationMs": 0
},
"timeContextFromParameter": "time_range",
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces"
},
{
"id": "86e49edd-28ea-4a60-aae3-32e2d6d4b880",
"version": "KqlParameterItem/1.0",
"name": "technique_id_value",
"label": "ATT&CK technique ID",
"type": 2,
"description": "The ATT&CK technique ID to target during the drilldown analysis",
"isRequired": true,
"multiSelect": true,
"quote": "'",
"delimiter": ",",
"query": "Sysmon\r\n| where isnotempty(technique_id)\r\n| summarize by technique_id",
"value": [
"value::all"
],
"typeSettings": {
"additionalResourceOptions": [
"value::all"
]
},
"timeContext": {
"durationMs": 0
},
"timeContextFromParameter": "time_range",
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces"
},
{
"id": "494f5101-a136-4622-89bc-6dcd6983eeac",
"version": "KqlParameterItem/1.0",
"name": "excluded_host",
"label": "Exclude host",
"type": 2,
"description": "The hosts to exclude during the drilldown analysis",
"isRequired": true,
"multiSelect": true,
"quote": "'",
"delimiter": ",",
"query": "Sysmon\r\n| summarize by Computer",
"value": [],
"typeSettings": {
"additionalResourceOptions": [
"value::all"
]
},
"timeContext": {
"durationMs": 0
},
"timeContextFromParameter": "time_range",
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces"
}
],
"style": "pills",
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces"
},
"name": "search-parameters",
"styleSettings": {
"progressStyle": "loader"
}
},
{
"type": 3,
"content": {
"version": "KqlItem/1.0",
"query": "let host_whitelist = process_create_whitelist | project host;\r\nlet user_whitelist = process_create_whitelist | project user;\r\nlet process_ppath_whitelist = process_create_whitelist | project process_parent_path;\r\nlet process_path_whitelist = process_create_whitelist | project process_path;\r\nlet command_line_whitelist = process_create_whitelist | project replace(\"'\", \"\", replace('\"', '', process_command_line));\r\nlet hash_whitelist = process_create_whitelist | project hash_sha256;\r\nSysmon \r\n| where EventID == 1\r\n| where isnotempty(technique_name)\r\n| where phase_name in ({tactic})\r\n| where technique_name in ({technique})\r\n| where technique_id in ({technique_id_value})\r\n| where Computer !in ({excluded_host})\r\n| where process_parent_path !in~ (process_ppath_whitelist) and process_path !in~ (process_path_whitelist) and replace('\"', '', tostring(process_command_line)) !in~ (command_line_whitelist) and hash_sha256 !in~ (hash_whitelist)\r\n| project TimeGenerated, technique_id, technique_name, phase_name, Computer, user_name, process_parent_path, process_path, file_name, process_parent_command_line, process_command_line, process_parent_guid, process_guid, hash_sha256, process_id, process_parent_id",
"size": 0,
"showAnalytics": true,
"title": "Process create (not whitelisted)",
"noDataMessage": "No process create events matching ATT&CK techniques for given timespan and host",
"timeContext": {
"durationMs": 0
},
"timeContextFromParameter": "time_range",
"showExportToExcel": true,
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces",
"gridSettings": {
"formatters": [
{
"columnMatch": "process_parent_guid",
"formatter": 1,
"formatOptions": {
"showIcon": true
}
},
{
"columnMatch": "process_guid",
"formatter": 1,
"formatOptions": {
"showIcon": true
}
}
],
"filter": true,
"labelSettings": [
{
"columnId": "TimeGenerated",
"label": "Time generated"
},
{
"columnId": "technique_id",
"label": "ID"
},
{
"columnId": "technique_name",
"label": "Technique"
},
{
"columnId": "phase_name",
"label": "Category"
},
{
"columnId": "Computer",
"label": "Host"
},
{
"columnId": "user_name",
"label": "User"
},
{
"columnId": "process_parent_path",
"label": "Process parent path"
},
{
"columnId": "process_path",
"label": "Process path"
},
{
"columnId": "file_name",
"label": "Original file name"
},
{
"columnId": "process_parent_command_line",
"label": "Process parent commandline"
},
{
"columnId": "process_command_line",
"label": "Process commandline"
},
{
"columnId": "process_parent_guid",
"label": "Process parent GUID"
},
{
"columnId": "process_guid",
"label": "Process GUID"
},
{
"columnId": "hash_sha256",
"label": "SHA256"
},
{
"columnId": "process_id",
"label": "Process ID"
},
{
"columnId": "process_parent_id",
"label": "Process parent ID"
}
]
}
},
"name": "process-create-query",
"styleSettings": {
"progressStyle": "loader"
}
},
{
"type": 3,
"content": {
"version": "KqlItem/1.0",
"query": "let process_path_whitelist = process_access_whitelist | project process_path;\r\nlet target_process_path_whitelist = process_access_whitelist | project target_process_path;\r\nlet process_granted_access_whitelist = process_access_whitelist | project process_granted_access;\r\nSysmon \r\n| where EventID == 10\r\n| where isnotempty(technique_name)\r\n| where phase_name in ({tactic})\r\n| where technique_name in ({technique})\r\n| where technique_id in ({technique_id_value})\r\n| where Computer !in ({excluded_host})\r\n| where process_path !in~ (process_path_whitelist) and target_process_path !in~ (target_process_path_whitelist) and process_granted_access !in~ (process_granted_access_whitelist)\r\n| project TimeGenerated, technique_id, technique_name, phase_name, Computer, process_path, target_process_path, process_granted_access, target_process_guid, process_id, target_process_id",
"size": 0,
"showAnalytics": true,
"title": "Process access (not whitelisted)",
"noDataMessage": "No process access events matching ATT&CK techniques for given timespan and host",
"timeContext": {
"durationMs": 0
},
"timeContextFromParameter": "time_range",
"showExportToExcel": true,
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces",
"gridSettings": {
"formatters": [
{
"columnMatch": "target_process_guid",
"formatter": 1,
"formatOptions": {
"showIcon": true
}
}
],
"filter": true,
"labelSettings": [
{
"columnId": "TimeGenerated",
"label": "Time generated"
},
{
"columnId": "technique_id",
"label": "ID"
},
{
"columnId": "technique_name",
"label": "Technique"
},
{
"columnId": "phase_name",
"label": "Category"
},
{
"columnId": "Computer",
"label": "Host"
},
{
"columnId": "process_path",
"label": "Process path"
},
{
"columnId": "target_process_path",
"label": "Target process path"
},
{
"columnId": "process_granted_access",
"label": "Process granted access"
},
{
"columnId": "target_process_guid",
"label": "Target process GUID"
},
{
"columnId": "process_id",
"label": "Process ID"
},
{
"columnId": "target_process_id",
"label": "Target process ID"
}
]
}
},
"name": "process-access-query ",
"styleSettings": {
"progressStyle": "loader"
}
},
{
"type": 3,
"content": {
"version": "KqlItem/1.0",
"query": "let file_name_whitelist = file_create_whitelist | project file_name;\r\nlet file_path_whitelist = file_create_whitelist | project file_path;\r\nlet proc_path_whitelist = file_create_whitelist | project process_path;\r\nSysmon \r\n| where EventID == 11\r\n| where isnotempty(technique_name)\r\n| where phase_name in ({tactic})\r\n| where technique_name in ({technique})\r\n| where technique_id in ({technique_id_value})\r\n| where Computer !in ({excluded_host})\r\n| where process_path !in~ (proc_path_whitelist) and file_name !in~ (file_name_whitelist)\r\n| project TimeGenerated, technique_id, technique_name, phase_name, Computer, process_path, file_name, process_guid, process_id",
"size": 0,
"showAnalytics": true,
"title": "File created (not whitelisted)",
"noDataMessage": "No file created events matching ATT&CK techniques for given timespan and host",
"timeContext": {
"durationMs": 0
},
"timeContextFromParameter": "time_range",
"showExportToExcel": true,
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces",
"gridSettings": {
"formatters": [
{
"columnMatch": "process_guid",
"formatter": 1,
"formatOptions": {
"showIcon": true
}
}
],
"filter": true,
"labelSettings": [
{
"columnId": "TimeGenerated",
"label": "Time generated"
},
{
"columnId": "technique_id",
"label": "ID"
},
{
"columnId": "technique_name",
"label": "Technique"
},
{
"columnId": "phase_name",
"label": "Category"
},
{
"columnId": "Computer",
"label": "Host"
},
{
"columnId": "process_path",
"label": "Process path"
},
{
"columnId": "file_name",
"label": "File name"
},
{
"columnId": "process_guid",
"label": "Process GUID"
},
{
"columnId": "process_id",
"label": "Process ID"
}
]
}
},
"name": "file-create-query",
"styleSettings": {
"progressStyle": "loader"
}
},
{
"type": 3,
"content": {
"version": "KqlItem/1.0",
"query": "let process_path__whitelist = image_load_whitelist | project process_path;\r\nlet driver_loaded_whitelist = image_load_whitelist | project driver_loaded;\r\nlet driver_signed_whitelist = image_load_whitelist | project driver_is_signed;\r\nlet drv_signature_whitelist = image_load_whitelist | project driver_signature;\r\nlet signat_status_whitelist = image_load_whitelist | project driver_signature_status;\r\nSysmon \r\n| where EventID == 7\r\n| where isnotempty(technique_name)\r\n| where phase_name in ({tactic})\r\n| where technique_name in ({technique})\r\n| where technique_id in ({technique_id_value})\r\n| where Computer !in ({excluded_host})\r\n| where process_path !in~ (process_path__whitelist) and module_loaded !in~ (driver_loaded_whitelist) and module_is_signed !in~ (driver_signed_whitelist) and module_signature !in~ (drv_signature_whitelist) and module_signature_status !in~ (signat_status_whitelist)\r\n| project TimeGenerated, technique_id, technique_name, phase_name, Computer, process_path, module_loaded, module_is_signed, module_signature, module_signature_status, process_id, process_guid",
"size": 0,
"showAnalytics": true,
"title": "Image loaded (not whitelisted)",
"noDataMessage": "No image loaded events matching ATT&CK techniques for given timespan and host",
"timeContext": {
"durationMs": 0
},
"timeContextFromParameter": "time_range",
"showExportToExcel": true,
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces",
"gridSettings": {
"formatters": [
{
"columnMatch": "process_guid",
"formatter": 1,
"formatOptions": {
"showIcon": true
}
}
],
"filter": true,
"labelSettings": [
{
"columnId": "TimeGenerated",
"label": "Time generated"
},
{
"columnId": "technique_id",
"label": "ID"
},
{
"columnId": "technique_name",
"label": "Technique"
},
{
"columnId": "phase_name",
"label": "Category"
},
{
"columnId": "Computer",
"label": "Host"
},
{
"columnId": "process_path",
"label": "Process path"
},
{
"columnId": "module_loaded",
"label": "Driver loaded"
},
{
"columnId": "module_is_signed",
"label": "Driver is signed"
},
{
"columnId": "module_signature",
"label": "Driver signature"
},
{
"columnId": "module_signature_status",
"label": "Driver signature status"
},
{
"columnId": "process_id",
"label": "Process ID"
},
{
"columnId": "process_guid",
"label": "Process GUID"
}
]
}
},
"name": "image-loaded-query",
"styleSettings": {
"progressStyle": "loader"
}
},
{
"type": 3,
"content": {
"version": "KqlItem/1.0",
"query": "let process_path_whitelist = network_whitelist | project process_path;\r\nlet src_ip_whitelist = network_whitelist | project src_ip;\r\nlet dst_ip_whitelist = network_whitelist | project dst_ip;\r\nlet dst_port_whitelist = network_whitelist | project dst_port;\r\nSysmon \r\n| where EventID == 3\r\n| where isnotempty(technique_name)\r\n| where phase_name in ({tactic})\r\n| where technique_name in ({technique})\r\n| where technique_id in ({technique_id_value})\r\n| where Computer !in ({excluded_host})\r\n| where process_path !in~ (process_path_whitelist) and src_ip !in~ (src_ip_whitelist) and dst_ip !in~ (dst_ip_whitelist) and dst_port !in~ (dst_port_whitelist)\r\n| project TimeGenerated, technique_id, technique_name, phase_name, Computer, user_name, process_path, process_id, process_guid, src_ip, dst_ip, dst_port, src_host_name, dst_host_name",
"size": 0,
"showAnalytics": true,
"title": "Network connection (not whitelisted)",
"noDataMessage": "No network connection events matching ATT&CK techniques for given timespan and host",
"timeContext": {
"durationMs": 0
},
"timeContextFromParameter": "time_range",
"showExportToExcel": true,
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces",
"gridSettings": {
"formatters": [
{
"columnMatch": "process_guid",
"formatter": 1,
"formatOptions": {
"showIcon": true
}
}
],
"filter": true,
"labelSettings": [
{
"columnId": "TimeGenerated",
"label": "Time generated"
},
{
"columnId": "technique_id",
"label": "ID"
},
{
"columnId": "technique_name",
"label": "Technique"
},
{
"columnId": "phase_name",
"label": "Category"
},
{
"columnId": "Computer",
"label": "Host"
},
{
"columnId": "user_name",
"label": "User"
},
{
"columnId": "process_path",
"label": "Process path"
},
{
"columnId": "process_id",
"label": "Process ID"
},
{
"columnId": "process_guid",
"label": "Process GUID"
},
{
"columnId": "src_ip",
"label": "Source IP"
},
{
"columnId": "dst_ip",
"label": "Destination IP"
},
{
"columnId": "dst_port",
"label": "Destination port"
},
{
"columnId": "src_host_name",
"label": "Source host name"
},
{
"columnId": "dst_host_name",
"label": "Destination host name"
}
]
}
},
"name": "netwrok-connection-query",
"styleSettings": {
"progressStyle": "loader"