-
Notifications
You must be signed in to change notification settings - Fork 3.1k
/
Copy pathInvestigationInsights.json
5645 lines (5645 loc) · 284 KB
/
InvestigationInsights.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": 9,
"content": {
"version": "KqlParameterItem/1.0",
"crossComponentResources": [
"value::all"
],
"parameters": [
{
"id": "903a0628-df2f-4a7d-93ac-80fbf48032ec",
"version": "KqlParameterItem/1.0",
"name": "InternalWSs",
"type": 1,
"isRequired": true,
"query": "where type =~ \"Microsoft.OperationsManagement/solutions\"\r\n| where name startswith \"SecurityInsights\"\r\n| parse id with * '(' WSName ')' *\r\n| take 1\r\n| project WSName",
"crossComponentResources": [
"value::all"
],
"isHiddenWhenLocked": true,
"timeContext": {
"durationMs": 2592000000
},
"queryType": 1,
"resourceType": "microsoft.resourcegraph/resources"
},
{
"id": "8c7b9fc5-b87f-44d7-9cc8-bec025faf2c2",
"version": "KqlParameterItem/1.0",
"name": "DefaultSubscription_Internal",
"type": 1,
"isRequired": true,
"query": "where type =~ 'microsoft.operationalinsights/workspaces'\r\n| take 1\r\n| project subscriptionId",
"crossComponentResources": [
"value::selected"
],
"isHiddenWhenLocked": true,
"queryType": 1,
"resourceType": "microsoft.resourcegraph/resources"
},
{
"id": "f046681a-d502-4370-9a04-736042ed7e47",
"version": "KqlParameterItem/1.0",
"name": "Subscription",
"type": 6,
"query": "resources\r\n| summarize by subscriptionId\r\n| project value = strcat(\"/subscriptions/\", subscriptionId), label = subscriptionId, selected = iff(subscriptionId =~ '{DefaultSubscription_Internal}', true, false)",
"crossComponentResources": [
"value::all"
],
"typeSettings": {
"additionalResourceOptions": []
},
"queryType": 1,
"resourceType": "microsoft.resourcegraph/resources"
},
{
"id": "ef68dc9e-94e2-47c9-bfc8-8206537418a8",
"version": "KqlParameterItem/1.0",
"name": "Workspace",
"type": 5,
"query": "//resources\r\n//| where type =~ 'microsoft.operationalinsights/workspaces'\r\n//| project id\r\n\r\nwhere type =~ 'microsoft.operationalinsights/workspaces'\r\n| project value =id, label = name, selected = iff(name =~ '{InternalWSs}', true, false)",
"crossComponentResources": [
"{Subscription}"
],
"typeSettings": {
"additionalResourceOptions": [],
"showDefault": false
},
"queryType": 1,
"resourceType": "microsoft.resourcegraph/resources",
"value": null
},
{
"id": "f9f6427d-1903-4ebc-9c48-86846ec36119",
"version": "KqlParameterItem/1.0",
"name": "TimeRange",
"type": 4,
"isRequired": true,
"value": {
"durationMs": 604800000
},
"typeSettings": {
"selectableValues": [
{
"durationMs": 900000
},
{
"durationMs": 3600000
},
{
"durationMs": 14400000
},
{
"durationMs": 86400000
},
{
"durationMs": 172800000
},
{
"durationMs": 259200000
},
{
"durationMs": 604800000
},
{
"durationMs": 1209600000
},
{
"durationMs": 2592000000
},
{
"durationMs": 5184000000
},
{
"durationMs": 7776000000
}
],
"allowCustom": true
},
"timeContext": {
"durationMs": 86400000
}
},
{
"id": "ddb7df85-73e6-4a6a-9201-a82c08739c98",
"version": "KqlParameterItem/1.0",
"name": "investigateBy",
"label": "Investigate By",
"type": 10,
"description": "Investigate Incidents or Entities",
"isRequired": true,
"typeSettings": {
"additionalResourceOptions": [],
"showDefault": false
},
"jsonData": "[\r\n { \"value\": \"Incident\", \"label\": \"Incident\", \"selected\":true},\r\n { \"value\": \"Bookmark\", \"label\": \"Bookmark\"},\r\n {\"value\": \"Entity\", \"label\": \"Entity\" }\r\n]\r\n"
},
{
"version": "KqlParameterItem/1.0",
"name": "IncidentView",
"label": "Show Incident Trend",
"type": 10,
"description": "Show incident view or not?",
"isRequired": true,
"query": "datatable(IncidentView:string, InvestigateBy:string)\r\n\t[\"Yes\", \"Incident\",\r\n\t\"No\", \"Incident\"]\r\n| where InvestigateBy =~ \"{investigateBy}\" or IncidentView == \"No\"\r\n| project IncidentView",
"crossComponentResources": [
"{Workspace}"
],
"value": "No",
"typeSettings": {
"additionalResourceOptions": [],
"showDefault": false
},
"timeContext": {
"durationMs": 0
},
"timeContextFromParameter": "TimeRange",
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces",
"id": "5c093daf-515c-45be-a1e4-4b14d211c0eb"
},
{
"id": "44663fe5-5c34-4620-b87c-78fd566ebc2c",
"version": "KqlParameterItem/1.0",
"name": "Help",
"type": 10,
"isRequired": true,
"typeSettings": {
"additionalResourceOptions": []
},
"jsonData": "[\r\n { \"value\": \"Yes\", \"label\": \"Yes\"},\r\n {\"value\": \"No\", \"label\": \"No\", \"selected\":true },\r\n { \"value\": \"Change Log\", \"label\": \"Change Log\"}\r\n]"
},
{
"id": "080aebcf-c127-49ea-af49-cdc32888ee08",
"version": "KqlParameterItem/1.0",
"name": "DefaultUPNSuffix",
"type": 1,
"description": "When extracting the account entity from an alert, if no UPN suffix is included, this suffix will be assumed.",
"value": "",
"isHiddenWhenLocked": true
},
{
"id": "19a40f6a-2429-480f-bc34-067b602d1fa8",
"version": "KqlParameterItem/1.0",
"name": "AlertID",
"type": 1,
"description": "This parameter should be left blank",
"isHiddenWhenLocked": true
},
{
"id": "0c774c1b-f434-480d-ae82-078f7665f11d",
"version": "KqlParameterItem/1.0",
"name": "EntityData",
"type": 1,
"description": "This parameter should be left blank",
"isHiddenWhenLocked": true
},
{
"id": "d663ab0d-fc80-40a5-9d76-71a7401d7324",
"version": "KqlParameterItem/1.0",
"name": "EntityType",
"type": 1,
"description": "This parameter should be left blank",
"isHiddenWhenLocked": true
}
],
"style": "above",
"queryType": 1,
"resourceType": "microsoft.resourcegraph/resources"
},
"name": "GlobalParameters"
},
{
"type": 9,
"content": {
"version": "KqlParameterItem/1.0",
"parameters": [
{
"id": "75399fba-c502-401d-9d4c-ca2e3ec6bd70",
"version": "KqlParameterItem/1.0",
"name": "GlobalCustomTabName",
"type": 1,
"description": "Enter a tab name if you wish to add a customizable section to the Global tab list. This customizable section can be used to link to your own workbook to embed additional content. Otherwise, leave this parameter blank so the tab is hidden.",
"isHiddenWhenLocked": true,
"timeContext": {
"durationMs": 86400000
}
},
{
"id": "ae1a3f68-8153-41d1-9fa2-c4ead5649a77",
"version": "KqlParameterItem/1.0",
"name": "IPCustomTabName",
"type": 1,
"description": "Enter a tab name if you wish to add a customizable section to the IP tab list. This customizable section can be used to link to your own workbook to embed additional content. Otherwise, leave this parameter blank so the tab is hidden.",
"isHiddenWhenLocked": true,
"timeContext": {
"durationMs": 86400000
}
},
{
"id": "4b8d0ad0-14f4-4083-99de-2b5d4573ad7a",
"version": "KqlParameterItem/1.0",
"name": "AccountCustomTabName",
"type": 1,
"description": "Enter a tab name if you wish to add a customizable section to the Account tab list. This customizable section can be used to link to your own workbook to embed additional content. Otherwise, leave this parameter blank so the tab is hidden.",
"isHiddenWhenLocked": true,
"timeContext": {
"durationMs": 86400000
}
},
{
"id": "9150e8c7-bf5d-42ea-b0cf-52499b43fa17",
"version": "KqlParameterItem/1.0",
"name": "HostCustomTabName",
"type": 1,
"description": "Enter a tab name if you wish to add a customizable section to the Host tab list. This customizable section can be used to link to your own workbook to embed additional content. Otherwise, leave this parameter blank so the tab is hidden.",
"isHiddenWhenLocked": true,
"timeContext": {
"durationMs": 86400000
}
},
{
"id": "071760ec-c549-481f-b22f-93be5b8a11fe",
"version": "KqlParameterItem/1.0",
"name": "URLCustomTabName",
"type": 1,
"description": "Enter a tab name if you wish to add a customizable section to the URL tab list. This customizable section can be used to link to your own workbook to embed additional content. Otherwise, leave this parameter blank so the tab is hidden.",
"isHiddenWhenLocked": true,
"timeContext": {
"durationMs": 86400000
}
},
{
"id": "a9100608-ef9e-4c8d-81f9-119e7c8fc134",
"version": "KqlParameterItem/1.0",
"name": "FileHashCustomTabName",
"type": 1,
"description": "Enter a tab name if you wish to add a customizable section to the File Hash tab list. This customizable section can be used to link to your own workbook to embed additional content. Otherwise, leave this parameter blank so the tab is hidden.",
"isHiddenWhenLocked": true,
"timeContext": {
"durationMs": 86400000
}
}
],
"style": "pills",
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces"
},
"name": "customParameters"
},
{
"type": 1,
"content": {
"json": "# Investigation Insights"
},
"name": "text - 21"
},
{
"type": 12,
"content": {
"version": "NotebookGroup/1.0",
"groupType": "editable",
"items": [
{
"type": 1,
"content": {
"json": "### Change Log\r\nBrian Delaney, Clive Watson, Jon Shectman - Microsoft\r\n\r\n Version v1.6\r\n\tAdded support for ASIM NetworkSession schema\r\n\t\r\n\tVersion v1.4\r\n\tFixing issue in table names in FullSearch output\r\n\tAdding open external query/export to excel to FullSearch Results\r\n\t\r\n\tVersion v1.2\r\n\tAdded Tag based filters to Incident View\r\n\tAdded Incident Number filter to Incident View\r\n\tAdded Application Consent to User IOCs\r\n\tAdded Logon Type filter for User Account Logons\r\n\tAdded Defender ATP DeviceLogonEvents to User Account Logons table\r\n\tEnabled support for nesting custom workbooks\r\n\tImproved samAccountName detection using IdentityInfo table\r\n\tImproved Location Anomalies map to color datapoints based on distance\r\n\tOther minor improvements\r\n\t\r\n\tVersion v1.1\r\n\tAdded Investigate by Bookmark\r\n\tAdded Related Bookmarks to each Investigation type\r\n\tAdded Investigate FileHash\r\n\tAdded BehaviorAnalytics for Account Investigation\r\n\tAdded MFA Fraud Query for Account Investigation\r\n\tAdded Owner and Status Filters to Incident View\r\n\tAdded Normalized Network Schema view\r\n\tUpdated Entity Parsing to add additional entity types\r\n\tUpdated Incident Timeline to be based on CreatedTime of Incident\r\n\tOther minor improvements\r\n\t\r\n\t\r\n\tVersion v1.0\r\n\tInitial Release",
"style": "info"
},
"customWidth": "50",
"name": "text - 20"
}
]
},
"conditionalVisibility": {
"parameterName": "Help",
"comparison": "isEqualTo",
"value": "Change Log"
},
"name": "ChangeLogGroup"
},
{
"type": 12,
"content": {
"version": "NotebookGroup/1.0",
"groupType": "editable",
"items": [
{
"type": 1,
"content": {
"json": "## Investigation Insights Help\r\n\r\n### Overview\r\n\r\nThe Investigation Insights Workbook is designed to assist in investigations of Microsoft Sentinel Incidents or individual IP/Account/Host/URL entities. The workbook leverages multiple data sources to provide detailed views of frequently used information during the analysis of an incident.\r\n\r\nDetailed help on this workbook is maintained at the [Microsoft Sentinel Github Wiki](https://github.com/Azure/Azure-Sentinel/wiki/Investigation-Insights---Overview).\r\n\r\nThe workbook is broken up into 2 main sections, Incident Insights and Entity Insights.\r\n\r\n#### Incident Insights\r\n\r\nThe Incident Insights gives the analyst a view of ongoing Sentinel Incidents and allows for quick access to their associated metadata including alerts and entity information.\r\n\r\n#### Entity Insights\r\n\r\nThe Entity Insights allows the analyst to take entity data either from an incident or through manual entry and explore related information about that entity. This workbook presently provides view of the following entity types:\r\n- IP Address\r\n- Account\r\n- Host\r\n- URL\r\n- FileHash\r\n\r\n### Workbook Setup\r\n\r\nThis workbook can be configured using the parameters at the top of the workbook. Some of these parameters are only available in Edit mode.\r\n\r\n\r\n| Parameter | Description |\r\n|---|---|\r\n|Subscription |Select the Azure subscription where your Microsoft Sentinel instance resides |\r\n|Workspace|Select the Azure Log Analytics workspace where your Microsoft Sentinel data resides|\r\n|TimeRange|Select the time window you want to Investigate|\r\n|Investigate by|Investigate by Incident allows you to view Sentinel incident data and investigate by entity, Investigate by Entity allows you to proceed directly to entering the entity data manually for your investigation |\r\n| Show Incident Trend |Use this toggle, to see additonal data about the Trends over the past (TimeRange), compared to the last 24hours.|\r\n|Help|Turn on/off this help data, Turn on/off the change log|\r\n|DefaultUPNSuffix|This parameter is used when the entity data does not include a UPN suffix, the value of this parameter will be the assumed suffix|\r\n|AlertID|This parameter should be left blank and is hidden when using the workbook|\r\n|EntityData|This parameter should be left blank and is hidden when using the workbook|\r\n|EntityType|This parameter should be left blank and is hidden when using the workbook|\r\n\r\n#### Data Sources\r\n\r\nThis workbook leverages a number of different data sources. Most of these data sources are not required for this workbook to function but elements of the workbook may not function if data sources are missing. Our detailed help located on [GitHub](https://github.com/Azure/Azure-Sentinel/wiki/Investigation-Insights---Overview) includes additional information about which data sources are required for specific capabilities of this workbook.\r\n\r\n|Data Source|Type|Data Connector|\r\n|---|---|\r\n| Azure Resource Graph |api| Not Applicable|\r\n| AuditLogs | table| Azure Active Directory |\r\n| AWSCloudTrail | table| Amazon Web Services |\r\n| AzureActivity |table| Azure Activity | \r\n| BehaviorAnalytics | table | Entity Behavior Analytics |\r\n| CommonSecurityLog |table| Multiple Connectors |\r\n| DeviceLogonEvents |table| Defender ATP |\r\n| DnsEvents |table| DNS |\r\n| IdentityInfo | table | Entity Behavior Analytics |\r\n| OfficeActivity |table| Office 365 |\r\n| ProtectionStatus |table| Azure Security Center with Microsoft Monitoring Agent |\r\n| SecurityAlert |table| Multiple Connectors |\r\n| SecurityBaseline | table | Azure Security Center with Microsoft Monitoring Agent |\r\n| SecurityBaselineSummary | table | Azure Security Center with Microsoft Monitoring Agent |\r\n| SecurityEvent |table| Security Events |\r\n| SecurtityIncident | table| Not Applicable |\r\n| SigninLogs |table|Azure Active Directory |\r\n| ThreatIntelligenceIndicator |table| Threat Intelligence (Platforms and/or TAXII)|\r\n| UpdateSummary |table| Azure Security Center with Microsoft Monitoring Agent |\r\n| Update | table | Azure Security Center with Microsoft Monitoring Agent |\r\n| VMConnection | table | Azure Monitor VM Insights |\r\n| W3CIISLog | table | Microsoft Monitoring Agent |\r\n| WindowsFirewall | table | Windows Firewall |\r\n\r\n",
"style": "info"
},
"name": "text - 19"
}
]
},
"conditionalVisibility": {
"parameterName": "Help",
"comparison": "isEqualTo",
"value": "Yes"
},
"name": "HelpGroup"
},
{
"type": 1,
"content": {
"json": "### Incident Insights\n---\n\n"
},
"conditionalVisibility": {
"parameterName": "investigateBy",
"comparison": "isEqualTo",
"value": "Incident"
},
"name": "IncidentHeader"
},
{
"type": 9,
"content": {
"version": "KqlParameterItem/1.0",
"parameters": [
{
"id": "e3e3e2b2-4e83-43a2-b65b-59f1cdd1d30c",
"version": "KqlParameterItem/1.0",
"name": "SelectSeverity",
"label": "Incident Severity",
"type": 2,
"isRequired": true,
"multiSelect": true,
"quote": "'",
"delimiter": ",",
"query": "let SortOrder = datatable(Value:string, SortOrder:int)\r\n[\"High\", 1, \"Medium\", 2, \"Low\", 3, \"Informational\", 4];\r\nSecurityIncident\r\n| where CreatedTime {TimeRange:value}\r\n| summarize arg_max(TimeGenerated,*) by IncidentNumber\r\n| summarize Count=dcount(IncidentNumber) by Severity\r\n| extend Label = strcat(Severity,\" [\",Count,\"]\")\r\n| project Label, Value=Severity\r\n| distinct Value, Label\r\n| join kind=leftouter SortOrder on Value\r\n| project Value, Label",
"crossComponentResources": [
"{Workspace}"
],
"value": [
"value::all"
],
"typeSettings": {
"additionalResourceOptions": [
"value::all"
],
"showDefault": false
},
"defaultValue": "value::all",
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces"
},
{
"id": "2be7af21-dc71-45af-bbac-f4a6a9140390",
"version": "KqlParameterItem/1.0",
"name": "Status",
"type": 2,
"isRequired": true,
"multiSelect": true,
"quote": "'",
"delimiter": ",",
"query": "SecurityIncident\r\n| where CreatedTime {TimeRange:value}\r\n| where Severity in ({SelectSeverity})\r\n| distinct Status\r\n| sort by Status asc",
"crossComponentResources": [
"{Workspace}"
],
"typeSettings": {
"additionalResourceOptions": [
"value::all"
],
"showDefault": false
},
"defaultValue": "value::all",
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces"
},
{
"id": "53c5d5c8-5ea1-4df9-81af-63dc3e80254c",
"version": "KqlParameterItem/1.0",
"name": "Owner",
"type": 2,
"isRequired": true,
"multiSelect": true,
"quote": "'",
"delimiter": ",",
"query": "SecurityIncident\r\n| where CreatedTime {TimeRange:value}\r\n| where Status in ({Status})\r\n| where Severity in ({SelectSeverity})\r\n| project Owner=tostring(Owner.userPrincipalName)\r\n| sort by Owner asc\r\n| extend Owner = iff(isnotempty( Owner), Owner, \"Unassigned\")\r\n| distinct Owner",
"crossComponentResources": [
"{Workspace}"
],
"value": [
"value::all"
],
"typeSettings": {
"additionalResourceOptions": [
"value::all"
],
"showDefault": false
},
"defaultValue": "value::all",
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces"
},
{
"id": "88a6775c-d6de-45b1-a027-3a43731c1d93",
"version": "KqlParameterItem/1.0",
"name": "Tags",
"label": "",
"type": 2,
"isRequired": true,
"multiSelect": true,
"quote": "'",
"delimiter": ",",
"query": "SecurityIncident\r\n| summarize arg_max(TimeGenerated, *) by IncidentNumber\r\n| mv-expand Labels\r\n| project Tags=replace_string(tostring(Labels.labelName),@\"\\\",@\"\\\\\")\r\n| distinct Tags\r\n| sort by Tags asc\r\n| union (datatable(Tags:string)[\"Untagged\"])",
"crossComponentResources": [
"{Workspace}"
],
"value": [
"value::all"
],
"typeSettings": {
"additionalResourceOptions": [
"value::all"
],
"showDefault": false
},
"timeContext": {
"durationMs": 0
},
"timeContextFromParameter": "TimeRange",
"defaultValue": "value::all",
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces"
},
{
"id": "e68521f2-ba48-4df5-bad2-0b434aa8de07",
"version": "KqlParameterItem/1.0",
"name": "IncidentNumber",
"label": "Incident Number",
"type": 1,
"value": ""
}
],
"style": "above",
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces"
},
"conditionalVisibility": {
"parameterName": "investigateBy",
"comparison": "isEqualTo",
"value": "Incident"
},
"customWidth": "45",
"name": "parameters - 19 - Copy"
},
{
"type": 3,
"content": {
"version": "KqlItem/1.0",
"query": "SecurityIncident\r\n//| summarize IncidentCount=count() by TimeGenerated\r\n| summarize arg_max(TimeGenerated, *) by IncidentNumber\r\n| where IncidentNumber == \"{IncidentNumber}\" or isempty(\"{IncidentNumber}\")\r\n| where CreatedTime {TimeRange:value}\r\n| where Status in ({Status})\r\n| where Severity in ({SelectSeverity})\r\n| where tostring(Owner.userPrincipalName) in ({Owner}) or (isempty(tostring(Owner.userPrincipalName)) and \"Unassigned\" in ({Owner}))\r\n| summarize IncidentCount=dcount(IncidentNumber) by bin(CreatedTime, {TimeRange:grain})\r\n",
"size": 1,
"title": "Incident Timeline",
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces",
"crossComponentResources": [
"{Workspace}"
],
"visualization": "linechart",
"sortBy": [],
"chartSettings": {
"ySettings": {
"min": 0
}
}
},
"conditionalVisibility": {
"parameterName": "investigateBy",
"comparison": "isEqualTo",
"value": "Incident"
},
"customWidth": "55",
"name": "IncidentByTime - Copy"
},
{
"type": 12,
"content": {
"version": "NotebookGroup/1.0",
"groupType": "editable",
"items": [
{
"type": 1,
"content": {
"json": "### Incident Trending at a Glance\r\n---"
},
"conditionalVisibilities": [
{
"parameterName": "IncidentView",
"comparison": "isEqualTo",
"value": "Yes"
},
{
"parameterName": "investigateBy",
"comparison": "isEqualTo",
"value": "Incident"
}
],
"name": "IncidentHeader - Copy"
},
{
"type": 12,
"content": {
"version": "NotebookGroup/1.0",
"groupType": "editable",
"items": [
{
"type": 12,
"content": {
"version": "NotebookGroup/1.0",
"groupType": "editable",
"items": [
{
"type": 3,
"content": {
"version": "KqlItem/1.0",
"query": "// lookup all Severities seen in last month \r\nlet pastMonth = SecurityIncident | where TimeGenerated > startofday(ago(30d)) | summarize by Severity;\r\n SecurityIncident\r\n// lookup Severities from today only\r\n| where TimeGenerated > ago(1d)\r\n| summarize todayCount=count() by Severity\r\n| join kind=fullouter (pastMonth) on Severity\r\n| join (\r\n SecurityIncident \r\n // from oldest suplied parameter until this time Yesterday \r\n | where TimeGenerated between (startofday({TimeRange:start}) .. ago(1d))\r\n // get avg from oldest date to this time yesterday\r\n | summarize count() by Severity , bin(TimeGenerated,1d)\r\n | summarize historyCount = round(avg(count_),1) by Severity\r\n | extend low = iif(Severity == \"Low\",\"a\",\"\"),\r\n med = iif(Severity == \"Medium\",\"b\",\"\"),\r\n high = iif(Severity == \"High\",\"c\",\"\"),\r\n info = iif(Severity == \"Informational\",\"d\",\"\")\r\n ) on $left.Severity1 == $right.Severity\r\n | extend todayCount = iif(isempty(todayCount),0,todayCount)\r\n | extend trendIs = case(\r\n todayCount > historyCount,\"Trending Up\",\r\n todayCount == historyCount,\"Equal\",\r\n todayCount < historyCount,\"Trending Down\",\r\n Severity2\r\n )\r\n| project Severity2, todayCount, historyCount, trendIs, low, med, high, info\r\n| order by high, med, low, info",
"size": 1,
"title": "Incident Severity Trend - Average count from {TimeRange:label} vs. Last 24hr Count",
"exportFieldName": "Severity",
"exportParameterName": "Severity",
"exportDefaultValue": "All",
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces",
"crossComponentResources": [
"{Workspace}"
],
"visualization": "tiles",
"gridSettings": {
"sortBy": [
{
"itemKey": "historyCount",
"sortOrder": 2
}
]
},
"sortBy": [
{
"itemKey": "historyCount",
"sortOrder": 2
}
],
"tileSettings": {
"titleContent": {
"columnMatch": "Severity2",
"formatter": 1
},
"subtitleContent": {
"columnMatch": "historyCount",
"tooltipFormat": {
"tooltip": "Average Count"
}
},
"leftContent": {
"columnMatch": "trendIs",
"formatter": 18,
"formatOptions": {
"thresholdsOptions": "icons",
"thresholdsGrid": [
{
"operator": "==",
"thresholdValue": "Trending Up",
"representation": "trendup",
"text": "{0}{1}"
},
{
"operator": "==",
"thresholdValue": "Trending Down",
"representation": "trenddown",
"text": "{0}{1}"
},
{
"operator": "==",
"thresholdValue": "Equal",
"representation": "Normal",
"text": "{0}{1}"
},
{
"operator": "Default",
"thresholdValue": null,
"representation": "Blank",
"text": ""
}
]
},
"numberFormat": {
"unit": 17,
"options": {
"style": "decimal",
"useGrouping": false
}
}
},
"secondaryContent": {
"columnMatch": "todayCount",
"formatter": 12,
"formatOptions": {
"palette": "blue"
},
"tooltipFormat": {
"tooltip": "Today's Count"
}
},
"showBorder": true
}
},
"customWidth": "59",
"conditionalVisibility": {
"parameterName": "IncidentView",
"comparison": "isEqualTo",
"value": "Yes"
},
"name": "IncidentBySev - Incident Trend "
},
{
"type": 3,
"content": {
"version": "KqlItem/1.0",
"query": "let SortOrder = datatable(Severity:string, SortOrder:int)[\"High\", 1, \"Medium\", 2, \"Low\", 3, \"Informational\", 4,];\r\nSecurityIncident\r\n| join kind=leftouter SortOrder on Severity\r\n| make-series count() on bin(TimeGenerated,1d) from {TimeRange:start} to {TimeRange:end} step {TimeRange:grain} by Severity\r\n\r\n\r\n",
"size": 1,
"title": "Incident Severity Trend - Average count from {TimeRange:label} ",
"timeContext": {
"durationMs": 604800000
},
"timeContextFromParameter": "TimeRange",
"exportFieldName": "Severity",
"exportParameterName": "Severity",
"exportDefaultValue": "All",
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces",
"crossComponentResources": [
"{Workspace}"
],
"visualization": "table",
"gridSettings": {
"formatters": [
{
"columnMatch": "count_",
"formatter": 9,
"formatOptions": {
"palette": "greenRed"
}
},
{
"columnMatch": "TimeGenerated",
"formatter": 5
}
],
"labelSettings": [
{
"columnId": "Severity"
},
{
"columnId": "count_",
"label": "Trend"
},
{
"columnId": "TimeGenerated"
}
]
},
"sortBy": [],
"tileSettings": {
"titleContent": {
"columnMatch": "Severity2",
"formatter": 1
},
"subtitleContent": {
"columnMatch": "historyCount",
"tooltipFormat": {
"tooltip": "Average Count"
}
},
"leftContent": {
"columnMatch": "trendIs",
"formatter": 18,
"formatOptions": {
"thresholdsOptions": "icons",
"thresholdsGrid": [
{
"operator": "==",
"thresholdValue": "Trending Up",
"representation": "trendup",
"text": "{0}{1}"
},
{
"operator": "==",
"thresholdValue": "Trending Down",
"representation": "trenddown",
"text": "{0}{1}"
},
{
"operator": "==",
"thresholdValue": "Equal",
"representation": "Normal",
"text": "{0}{1}"
},
{
"operator": "Default",
"thresholdValue": null,
"representation": "Blank",
"text": ""
}
]
},
"numberFormat": {
"unit": 17,
"options": {
"style": "decimal",
"useGrouping": false
}
}
},
"secondaryContent": {
"columnMatch": "todayCount",
"formatter": 12,
"formatOptions": {
"palette": "blue"
},
"tooltipFormat": {
"tooltip": "Today's Count"
}
},
"showBorder": true
}
},
"customWidth": "39",
"conditionalVisibility": {
"parameterName": "IncidentView",
"comparison": "isEqualTo",
"value": "Yes"
},
"name": "IncidentBySev - Incident Trend - Copy"
},
{
"type": 3,
"content": {
"version": "KqlItem/1.0",
"query": "// lookup all Status states seen in last month \r\nlet pastMonth = SecurityIncident | where TimeGenerated > startofday(ago(30d)) | summarize by Status;\r\n SecurityIncident\r\n// lookup Status states, from today only\r\n| where TimeGenerated > ago(1d)\r\n| summarize todayCount=count() by Status\r\n| join kind=fullouter (pastMonth) on Status\r\n| join (\r\n SecurityIncident \r\n // from oldest suplied parameter until 24hrs ago \r\n | where TimeGenerated between (startofday({TimeRange:start}) .. ago(1d))\r\n // get avg from oldest date to this time yesterday\r\n | summarize count() by Status , bin(TimeGenerated,1d)\r\n | summarize historyCount = round(avg(count_),2) by Status\r\n ) on $left.Status1 == $right.Status\r\n| extend todayCount = iif(isempty(todayCount),0,todayCount)\r\n | extend trendIs = case(\r\n todayCount > historyCount,\"Trending Up\",\r\n todayCount == historyCount,\"Equal\",\r\n todayCount < historyCount,\"Trending Down\",\r\n Status2\r\n )\r\n| project Status2, todayCount, historyCount, trendIs ",
"size": 1,
"title": "Incident Status Trend - Average count from {TimeRange:label} vs. Last 24hr Count",
"exportFieldName": "Severity",
"exportParameterName": "Severity",
"exportDefaultValue": "All",
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces",
"crossComponentResources": [
"{Workspace}"
],
"visualization": "tiles",
"gridSettings": {
"sortBy": [
{
"itemKey": "historyCount",
"sortOrder": 2
}
]
},
"sortBy": [
{
"itemKey": "historyCount",
"sortOrder": 2
}
],
"tileSettings": {
"titleContent": {
"columnMatch": "Status2",
"formatter": 1
},
"subtitleContent": {
"columnMatch": "historyCount",
"tooltipFormat": {
"tooltip": "Average Count"
}
},
"leftContent": {
"columnMatch": "trendIs",
"formatter": 18,
"formatOptions": {
"thresholdsOptions": "icons",
"thresholdsGrid": [
{
"operator": "==",
"thresholdValue": "Trending Up",
"representation": "trendup",
"text": "{0}{1}"
},
{
"operator": "==",
"thresholdValue": "Trending Down",
"representation": "trenddown",
"text": "{0}{1}"
},
{
"operator": "==",
"thresholdValue": "Equal",
"representation": "Normal",
"text": "{0}{1}"
},
{
"operator": "Default",
"thresholdValue": null,
"representation": "Blank",
"text": ""
}
]
},
"numberFormat": {
"unit": 17,
"options": {
"style": "decimal",
"useGrouping": false
}
}
},
"secondaryContent": {
"columnMatch": "todayCount",
"formatter": 12,
"formatOptions": {
"palette": "greenRed"
},
"tooltipFormat": {
"tooltip": "Today's Count"
}
},
"showBorder": true
}
},
"customWidth": "59",
"conditionalVisibility": {
"parameterName": "IncidentView",
"comparison": "isEqualTo",
"value": "Yes"
},
"name": "IncidentBySev - Incident Trend - Copy"
},
{
"type": 3,
"content": {
"version": "KqlItem/1.0",
"query": "SecurityIncident\r\n| make-series count() on bin(TimeGenerated,1d) from {TimeRange:start} to {TimeRange:end} step {TimeRange:grain} by Status\r\n\r\n\r\n",
"size": 1,
"title": "Incident Status Trend - Average count from {TimeRange:label} ",
"timeContext": {
"durationMs": 604800000
},
"timeContextFromParameter": "TimeRange",
"exportFieldName": "Severity",
"exportParameterName": "Severity",
"exportDefaultValue": "All",
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces",
"crossComponentResources": [
"{Workspace}"
],
"visualization": "table",
"gridSettings": {
"formatters": [
{
"columnMatch": "count_",
"formatter": 9,
"formatOptions": {
"palette": "greenRed"
}
},
{
"columnMatch": "TimeGenerated",
"formatter": 5
}
],
"labelSettings": [
{
"columnId": "Status"
},
{
"columnId": "count_",
"label": "Trend"
},
{
"columnId": "TimeGenerated"
}
]
},
"sortBy": [],
"tileSettings": {
"titleContent": {
"columnMatch": "Severity2",
"formatter": 1
},
"subtitleContent": {
"columnMatch": "historyCount",
"tooltipFormat": {
"tooltip": "Average Count"
}
},
"leftContent": {
"columnMatch": "trendIs",
"formatter": 18,
"formatOptions": {
"thresholdsOptions": "icons",
"thresholdsGrid": [
{
"operator": "==",
"thresholdValue": "Trending Up",
"representation": "trendup",
"text": "{0}{1}"
},
{
"operator": "==",
"thresholdValue": "Trending Down",
"representation": "trenddown",
"text": "{0}{1}"
},
{
"operator": "==",
"thresholdValue": "Equal",
"representation": "Normal",
"text": "{0}{1}"
},
{
"operator": "Default",
"thresholdValue": null,
"representation": "Blank",
"text": ""
}
]
},
"numberFormat": {
"unit": 17,
"options": {
"style": "decimal",
"useGrouping": false
}
}
},
"secondaryContent": {
"columnMatch": "todayCount",
"formatter": 12,
"formatOptions": {
"palette": "blue"
},
"tooltipFormat": {
"tooltip": "Today's Count"
}
},
"showBorder": true
}
},
"customWidth": "39",
"conditionalVisibility": {
"parameterName": "IncidentView",
"comparison": "isEqualTo",
"value": "Yes"
},
"name": "IncidentBySev - Incident Trend - Copy - Copy"
}