-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathOOB_ Malware Installation Triage.json
More file actions
3267 lines (3267 loc) · 145 KB
/
OOB_ Malware Installation Triage.json
File metadata and controls
3267 lines (3267 loc) · 145 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
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
{
"flows": [
{
"name": "OOB: Malware Installation Triage",
"nodes": [
{
"id": "start-node-e145f20b-ae17-42de-9cc9-610c17fff300",
"name": "_Start_Node",
"kind": "start",
"isLeaf": false,
"warnings": [],
"description": "",
"isExplainable": true,
"x": 0,
"y": 0,
"vertices": [],
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"categoryKind": "Unknown",
"iconTitle": "Unknown",
"usedByEventTypes": []
},
{
"id": "5f56657d-d324-4544-aaa3-5c16d18fb2dd",
"name": "Convert_JSON_List_to_Array",
"kind": "augmentation",
"lql": "jsonListToArray(Parse_Event_JSON_List, \"Event_List\")",
"operator": "jsonListToArray",
"isLeaf": false,
"warnings": [],
"description": "Use of jsonListToArray operator to convert the previously parsed JSON list to an array.",
"isExplainable": true,
"x": 0,
"y": 1220,
"vertices": [],
"title": "",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"formType": "OperatorForm",
"contentItemIdentifier": {
"kind": "OperatorContentKind",
"id": "jsonListToArray"
},
"categoryKind": "Transform",
"iconTitle": "Transform: Json List To Array",
"usedByEventTypes": []
},
{
"id": "222f1914-3b7a-4209-bc09-b324bd4ba7ea",
"name": "Explode_Events_Array",
"kind": "augmentation",
"lql": "`SELECT EXPLODE(array_Event_List) AS Event_Data,\n* FROM Convert_JSON_List_to_Array`",
"operator": "SELECT",
"isLeaf": false,
"warnings": [],
"description": "Explode the previously created array into individual rows based on the event details.",
"isExplainable": true,
"x": 0,
"y": 1455,
"vertices": [],
"title": "",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"formType": "LQLEditor",
"categoryKind": "Code",
"iconTitle": "Code: SQL",
"usedByEventTypes": []
},
{
"id": "cf7fa600-18fd-4f85-a478-21621d0b51f5",
"name": "Unique_Lookup_File_Hashes",
"kind": "augmentation",
"lql": "`SELECT DISTINCT lookup_hash FROM Get_Lookup_Hash_For_Each_Alert WHERE lookup_hash != \"none\"`",
"operator": "SELECT",
"isLeaf": false,
"warnings": [],
"description": "Grab unique lookup hashes for detected files.",
"isExplainable": true,
"x": 460,
"y": 2265,
"vertices": [],
"title": "",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"formType": "LQLEditor",
"categoryKind": "Code",
"iconTitle": "Code: SQL",
"usedByEventTypes": []
},
{
"id": "3342094d-64dd-4781-a575-35abadf077d3",
"name": "Tags_List_to_Array",
"kind": "augmentation",
"lql": "jsonListToArray(Anomali_Hash_Results_Parse, \"tags\")",
"operator": "jsonListToArray",
"isLeaf": false,
"warnings": [],
"description": "Convert tags JSON list to array.",
"isExplainable": true,
"x": 160,
"y": 2953,
"vertices": [],
"title": "",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"formType": "OperatorForm",
"contentItemIdentifier": {
"kind": "OperatorContentKind",
"id": "jsonListToArray"
},
"categoryKind": "Transform",
"iconTitle": "Transform: Json List To Array",
"usedByEventTypes": []
},
{
"id": "c753bb2c-08af-4c3c-b724-7d170a90980a",
"name": "Hybrid_Analysis_Details_Parse",
"kind": "augmentation",
"lql": "`SELECT \nGET_JSON_OBJECT(hybrid_results, \"$[0][0].size\") AS file_size,\nGET_JSON_OBJECT(hybrid_results, \"$[0][0].md5\") AS file_md5,\nGET_JSON_OBJECT(hybrid_results, \"$[0][0].sha1\") AS file_sha1,\nGET_JSON_OBJECT(hybrid_results, \"$[0][0].sha256\") AS file_sha256,\nGET_JSON_OBJECT(hybrid_results, \"$[0][0].verdict\") AS ha_verdict,\nGET_JSON_OBJECT(hybrid_results, \"$[0][0].av_detect\") AS ha_av_detect,\nGET_JSON_OBJECT(hybrid_results, \"$[0][0].vx_family\") AS ha_vx_family,\nGET_JSON_OBJECT(hybrid_results, \"$[0][0].submit_name\") AS ha_submit_name,\nGET_JSON_OBJECT(hybrid_results, \"$[0][0].threat_score\") AS ha_threat_score,\n* FROM Hybrid_Hash_Results_Parse`",
"operator": "SELECT",
"isLeaf": false,
"warnings": [],
"description": "Parsing the file size, md5 hash, sha1 hash, Hybrid Analysis verdict and Hybrid Analysis AV detection value from the Hybrid Analysis results.",
"isExplainable": true,
"x": 760,
"y": 2910,
"vertices": [],
"title": "",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"formType": "LQLEditor",
"categoryKind": "Code",
"iconTitle": "Code: SQL",
"usedByEventTypes": []
},
{
"id": "4277eb93-ddef-49d4-b0cb-db24894f563b",
"name": "Explode_Tags_Array",
"kind": "augmentation",
"lql": "`SELECT EXPLODE(array_tags) AS new_tags, * FROM Tags_List_to_Array`",
"operator": "SELECT",
"isLeaf": false,
"warnings": [],
"description": "Explode the tags array into multiple rows.",
"isExplainable": true,
"x": 160,
"y": 3178,
"vertices": [],
"title": "",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"formType": "LQLEditor",
"categoryKind": "Code",
"iconTitle": "Code: SQL",
"usedByEventTypes": []
},
{
"id": "cc4a85b5-c8e7-44ca-953a-1bd60b996bc3",
"name": "Get_Lookup_Hash_For_Each_Alert",
"kind": "augmentation",
"lql": "`SELECT *,\nCASE\nWHEN LENGTH(file_sha256)>0 THEN file_sha256\nWHEN LENGTH(file_md5)>0 THEN file_md5\nWHEN LENGTH(file_sha1)>0 THEN file_sha1\nELSE \"none\" END AS lookup_hash\nFROM Event_Detail_Full_Parse`",
"operator": "SELECT",
"isLeaf": false,
"warnings": [],
"description": "The type of file hash is not consistent across alerts. A field called lookup_hash is created that iterates through hash values to populate.",
"isExplainable": true,
"x": 0,
"y": 2030,
"vertices": [],
"title": "",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"formType": "LQLEditor",
"categoryKind": "Code",
"iconTitle": "Code: SQL",
"usedByEventTypes": []
},
{
"id": "fd23242a-f1bb-4bdb-83a9-20134ff04048",
"name": "Parse_Tag_Name",
"kind": "augmentation",
"lql": "`SELECT *,\nGET_JSON_OBJECT(new_tags, \"$.name\") AS tag_name \nFROM Explode_Tags_Array`",
"operator": "SELECT",
"isLeaf": false,
"warnings": [],
"description": "Parsing the tag name from the tag JSON.",
"isExplainable": true,
"x": 160,
"y": 3380,
"vertices": [],
"title": "",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"formType": "LQLEditor",
"categoryKind": "Code",
"iconTitle": "Code: SQL",
"usedByEventTypes": []
},
{
"id": "3682e1c9-de71-4b43-96a5-61636eba47d3",
"name": "Collect_Tag_Names_Per_Hash",
"kind": "augmentation",
"lql": "`SELECT result, lookup_hash, anom_itype, anom_threat_type, anom_source, anom_confidence, CONCAT_WS(\"\\n\", COLLECT_SET(tag_name)) AS anom_tags \nFROM Parse_Tag_Name \nGROUP BY result, lookup_hash, anom_itype, anom_threat_type, anom_source, anom_confidence`",
"operator": "SELECT",
"isLeaf": false,
"warnings": [],
"description": "Collect and list tags into single field per hash.",
"isExplainable": true,
"x": 160,
"y": 3550,
"vertices": [],
"title": "",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"formType": "LQLEditor",
"categoryKind": "Code",
"iconTitle": "Code: SQL",
"usedByEventTypes": []
},
{
"id": "4344cbad-d205-4817-909f-dc1f43a79012",
"name": "Integration_Parent",
"kind": "augmentation",
"lql": "`SELECT * FROM _Start_Node`",
"operator": "SELECT",
"isLeaf": false,
"warnings": [],
"description": "",
"isExplainable": true,
"x": 0,
"y": 130,
"vertices": [],
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"formType": "LQLEditor",
"categoryKind": "Code",
"iconTitle": "Code: SQL",
"usedByEventTypes": []
},
{
"id": "a7d65fa2-b7cd-4b5e-8bdf-4e941c3d975b",
"name": "Join_Virustotal_and_Hybrid_Analysis",
"kind": "augmentation",
"lql": "`SELECT COALESCE(vt.file_md5, ha.file_md5) AS file_md5, COALESCE(vt.file_sha1, ha.file_sha1) AS file_sha1, COALESCE(vt.file_sha1, ha.file_sha256) AS file_sha256, vt.lookup_hash, ha.file_size, vt.vt_response_code, vt.vt_positives, ha.ha_verdict, ha.ha_av_detect, ha.ha_vx_family, ha.ha_submit_name, ha.ha_threat_score, ha.hybrid_results, vt.result AS vt_results, vt.malwarebytes_verdict, vt.malwarebytes_result, vt.kaspersky_verdict, vt.kaspersky_result, vt.mcafee_verdict, vt.mcafee_result, vt.trendmicro_verdict, vt.trendmicro_result, vt.trendmicro_housecall_verdict, vt.trendmicro_housecall_result, vt.microsoft_verdict, vt.microsoft_result, vt.crowdstrike_verdict, vt.crowdstrike_result FROM Parse_Virustotal_Hash_Query_Results vt LEFT JOIN Hybrid_Analysis_Details_Parse ha ON vt.lookup_hash = ha.lookup_hash`",
"operator": "SELECT",
"isLeaf": false,
"warnings": [],
"description": "Joining Virustotal and Hybrid Analysis results together for triage and attempting to enrich file hash data.",
"isExplainable": true,
"x": 610,
"y": 3145,
"vertices": [],
"title": "",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"formType": "LQLEditor",
"categoryKind": "Code",
"iconTitle": "Code: SQL",
"usedByEventTypes": []
},
{
"id": "b3a3a4fc-a498-42ed-a91f-9ca0dfdb707c",
"name": "Join_Virustotal_and_Hybrid_Analysis_With_Anomali",
"kind": "augmentation",
"lql": "`SELECT vh.file_md5, vh.file_sha1, vh.file_sha256, vh.lookup_hash, vh.file_size, vh.vt_response_code, vh.vt_positives, vh.ha_verdict, vh.ha_av_detect, vh.ha_vx_family, vh.ha_submit_name, vh.ha_threat_score, vh.hybrid_results, vh.vt_results, vh.malwarebytes_verdict, vh.malwarebytes_result, vh.kaspersky_verdict, vh.kaspersky_result, vh.mcafee_verdict, vh.mcafee_result, vh.trendmicro_verdict, vh.trendmicro_result, vh.trendmicro_housecall_verdict, vh.trendmicro_housecall_result, vh.microsoft_verdict, vh.microsoft_result, vh.crowdstrike_verdict, vh.crowdstrike_result, an.result AS anom_results, an.anom_itype, an.anom_threat_type, an.anom_source, an.anom_confidence, an.anom_tags\nFROM Join_Virustotal_and_Hybrid_Analysis vh\nLEFT JOIN Collect_Tag_Names_Per_Hash an\nON vh.lookup_hash=an.lookup_hash`",
"operator": "SELECT",
"isLeaf": false,
"warnings": [],
"description": "Joining all analysis results together in preparation to join back in with the original logs.",
"isExplainable": true,
"x": 460,
"y": 3745,
"vertices": [],
"title": "",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"formType": "LQLEditor",
"categoryKind": "Code",
"iconTitle": "Code: SQL",
"usedByEventTypes": []
},
{
"id": "59889ee3-551b-4485-8784-8c36a6bad0d8",
"name": "Parse_Event_Name_and_Details",
"kind": "augmentation",
"lql": "`SELECT\nJSON_TUPLE(Event_Data, \"Event\"),\n* FROM Explode_Events_Array`",
"operator": "SELECT",
"isLeaf": false,
"warnings": [],
"description": "Parse event name and details from newly created rows.",
"isExplainable": true,
"x": 0,
"y": 1645,
"vertices": [],
"title": "",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"formType": "LQLEditor",
"categoryKind": "Code",
"iconTitle": "Code: SQL",
"usedByEventTypes": []
},
{
"id": "a0f5c91e-1b71-4bd2-9e21-d775dab675f9",
"name": "Join_With_Original_Populate_MD5",
"kind": "augmentation",
"lql": "`SELECT o.offense_id, o.event_id, o.event_name, o.offense_time, COALESCE(o.file_md5, vh.file_md5, \"unknown\") AS file_md5, COALESCE(o.file_sha1, vh.file_sha1, \"unknown\") AS file_sha1, COALESCE(o.file_sha256, vh.file_sha256, \"unknown\") AS file_sha256, COALESCE(vh.file_size, \"unknown\") AS file_size, COALESCE(vh.vt_response_code, \"none\") AS vt_response_code, COALESCE(vh.vt_positives, \"none\") AS vt_positives, COALESCE(vh.vt_results, \"none\") AS vt_results, COALESCE(vh.malwarebytes_verdict, \"none\") AS malwarebytes_verdict, COALESCE(vh.malwarebytes_result, \"none\") AS malwarebytes_result, COALESCE(vh.kaspersky_verdict, \"none\") AS kaspersky_verdict, COALESCE(vh.kaspersky_result, \"none\") AS kaspersky_result, COALESCE(vh.mcafee_verdict, \"none\") AS mcafee_verdict, COALESCE(vh.mcafee_result, \"none\") AS mcafee_result, COALESCE(vh.trendmicro_verdict, \"none\") AS trendmicro_verdict, COALESCE(vh.trendmicro_result, \"none\") AS trendmicro_result, COALESCE(vh.trendmicro_housecall_verdict, \"none\") AS trendmicro_housecall_verdict, COALESCE(vh.trendmicro_housecall_result, \"none\") AS trendmicro_housecall_result, COALESCE(vh.microsoft_verdict, \"none\") AS microsoft_verdict, COALESCE(vh.microsoft_result, \"none\") AS microsoft_result, COALESCE(vh.crowdstrike_verdict, \"none\") AS crowdstrike_verdict, COALESCE(vh.crowdstrike_result, \"none\") AS crowdstrike_result, COALESCE(vh.anom_itype, \"none\") AS anom_itype, COALESCE(vh.anom_threat_type, \"none\") AS anom_threat_type, COALESCE(vh.anom_source, \"none\") AS anom_source, COALESCE(vh.anom_confidence, \"none\") AS anom_confidence, COALESCE(vh.anom_tags, \"none\") AS anom_tags, COALESCE(vh.anom_results, \"none\") AS anom_results, COALESCE(vh.ha_verdict, \"none\") AS ha_verdict, COALESCE(vh.ha_av_detect, \"none\") AS ha_av_detect, COALESCE(vh.ha_vx_family, \"none\") AS ha_vx_family, COALESCE(vh.ha_submit_name, \"none\") AS ha_submit_name, COALESCE(vh.ha_threat_score, \"none\") AS ha_threat_score, COALESCE(vh.hybrid_results, \"none\") AS ha_results\nFROM Join_Virustotal_and_Hybrid_Analysis_With_Anomali vh\nLEFT JOIN Get_Lookup_Hash_For_Each_Alert o\nON vh.lookup_hash =o.lookup_hash `",
"operator": "SELECT",
"isLeaf": false,
"warnings": [],
"description": "Some of the original logs are missing the MD5 hash, joining with found results in Virustotal can populate some of those unknown values.",
"isExplainable": true,
"x": 380,
"y": 3985,
"vertices": [],
"title": "",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"formType": "LQLEditor",
"categoryKind": "Code",
"iconTitle": "Code: SQL",
"usedByEventTypes": []
},
{
"id": "b1a66854-2938-4962-91fc-62eb955bd1a6",
"name": "Join_Original_With_Enriched_Data",
"kind": "augmentation",
"lql": "`SELECT k.offense_id, k.event_name, k.offense_time, k.vt_count_score, k.vt_trusted_scanner_score, k.anomali_itype_score, k.anomali_confidence_score, k.ha_count_score, k.ha_confidence_score, o.event_type, o.hostname, o.user, o.external_ip, o.file_disposition, o.file_name, o.file_path, o.detection, k.file_sha256, k.file_sha1, k.file_md5, k.anom_itype, k.anom_threat_type, k.anom_confidence, k.anom_tags, k.vt_positives, k.malwarebytes_verdict, k.malwarebytes_result, k.kaspersky_verdict, k.kaspersky_result, k.mcafee_verdict, k.mcafee_result, k.trendmicro_verdict, k.trendmicro_result, k.trendmicro_housecall_verdict, k.trendmicro_housecall_result, k.microsoft_verdict, k.microsoft_result, k.crowdstrike_verdict, k.crowdstrike_result, k.ha_verdict, k.ha_av_detect, k.ha_threat_score, k.ha_vx_family, k.ha_submit_name\nFROM Get_Lookup_Hash_For_Each_Alert o\nLEFT JOIN Initial_Scoring k\nON k.offense_id=o.offense_id`",
"operator": "SELECT",
"isLeaf": false,
"warnings": [],
"description": "The data that has been enriched is joined back with the original logs.",
"isExplainable": true,
"x": 300,
"y": 4580,
"vertices": [],
"title": "",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"formType": "LQLEditor",
"categoryKind": "Code",
"iconTitle": "Code: SQL",
"usedByEventTypes": []
},
{
"id": "5d7c44f7-7bc0-44d4-bce2-a0f03054fa40",
"name": "Collect_Event_ID_Group",
"kind": "augmentation",
"lql": "`SELECT offense_id, event_name, offense_time, CONCAT_WS(\", \", COLLECT_SET(event_id)) AS event_id_list, file_md5, file_sha1, file_sha256, file_size, vt_response_code, vt_positives, vt_results, malwarebytes_verdict, malwarebytes_result, kaspersky_verdict, kaspersky_result, mcafee_verdict, mcafee_result, trendmicro_verdict, trendmicro_result, trendmicro_housecall_verdict, trendmicro_housecall_result, microsoft_verdict, microsoft_result, crowdstrike_verdict, crowdstrike_result, anom_itype, anom_threat_type, anom_source, anom_confidence, anom_tags, anom_results, ha_verdict, ha_av_detect, ha_vx_family, ha_submit_name, ha_threat_score, ha_results \nFROM Join_With_Original_Populate_MD5 \nGROUP BY offense_id, event_name, offense_time, file_md5, file_sha1, file_sha256, file_size, vt_response_code, vt_positives, vt_results, malwarebytes_verdict, malwarebytes_result, kaspersky_verdict, kaspersky_result, mcafee_verdict, mcafee_result, trendmicro_verdict, trendmicro_result, trendmicro_housecall_verdict, trendmicro_housecall_result, microsoft_verdict, microsoft_result, crowdstrike_verdict, crowdstrike_result, anom_itype, anom_threat_type, anom_source, anom_confidence, anom_tags, anom_results, ha_verdict, ha_av_detect, ha_vx_family, ha_submit_name, ha_threat_score, ha_results`",
"operator": "SELECT",
"isLeaf": false,
"warnings": [],
"description": "Aggregate table rows by collecting Event IDs.",
"isExplainable": true,
"x": 380,
"y": 4220,
"vertices": [],
"title": "",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"formType": "LQLEditor",
"categoryKind": "Code",
"iconTitle": "Code: SQL",
"usedByEventTypes": []
},
{
"id": "93c0ba91-6c03-446d-af42-cae96ee18592",
"name": "Event_Detail_Full_Parse",
"kind": "augmentation",
"lql": "`SELECT \nOffense_ID,\nREPLACE(Event_Name, \"\\n\", \" \") AS Event_Name,\nFROM_UNIXTIME(Offense_Start_Time/1000, 'yyyy-MM-dd HH:mm:ss z') as Offense_Time,\nCOALESCE(GET_JSON_OBJECT(c0, \"$.id\"),GET_JSON_OBJECT(c0, \"$. AlertId\")) AS event_id,\nCOALESCE(GET_JSON_OBJECT(c0, \"$.event_type\"),GET_JSON_OBJECT(c0, \"$. AlertTitle\")) AS event_type,\nCOALESCE(GET_JSON_OBJECT(c0, \"$.computer.hostname\"),GET_JSON_OBJECT(c0, \"$.MachineName\"),GET_JSON_OBJECT(c0, \"$.ComputerDnsName\")) AS hostname,\nCOALESCE(GET_JSON_OBJECT(c0, \"$.computer.external_ip\"),GET_JSON_OBJECT(c0, \"$.IpAddress\")) AS external_ip,\nCOALESCE(GET_JSON_OBJECT(c0, \"$.computer.user\"),GET_JSON_OBJECT(c0, \"$.UserName\"),GET_JSON_OBJECT(c0, \"$.LogOnUsers\")) AS user,\nGET_JSON_OBJECT(c0, \"$.computer.active\") AS active,\nCOALESCE(GET_JSON_OBJECT(c0, \"$.file.disposition\"),GET_JSON_OBJECT(c0, \"$.Category\")) AS file_disposition,\nCOALESCE(GET_JSON_OBJECT(c0, \"$.file.file_name\"),GET_JSON_OBJECT(c0, \"$.FileName\")) AS file_name,\nCOALESCE(GET_JSON_OBJECT(c0, \"$.file.file_path\"),GET_JSON_OBJECT(c0, \"$.FilePath\")) AS file_path,\nCOALESCE(GET_JSON_OBJECT(c0, \"$.file.identity.sha256\"),GET_JSON_OBJECT(c0, \"$.Sha256\")) AS file_sha256,\nCOALESCE(GET_JSON_OBJECT(c0, \"$.file.identity.sha1\"),GET_JSON_OBJECT(c0, \"$.Sha1\")) AS file_sha1,\nCOALESCE(GET_JSON_OBJECT(c0, \"$.file.identity.md5\"),GET_JSON_OBJECT(c0, \"$.Md5\")) AS file_md5,\nCOALESCE(GET_JSON_OBJECT(c0, \"$.detection\"),GET_JSON_OBJECT(c0, \"$.ThreatName\")) AS detection,\nGET_JSON_OBJECT(c0, \"$.file.parent.disposition\") AS parent_disposition,\nGET_JSON_OBJECT(c0, \"$.file.parent.file_name\") AS parent_file_name,\nGET_JSON_OBJECT(c0, \"$.file.parent.identity.sha256\") AS parent_file_sha256,\nc0 FROM Parse_Event_Name_and_Details`",
"operator": "SELECT",
"isLeaf": false,
"warnings": [],
"description": "Complete parse of event details for every field needed to move forward with analysis.",
"isExplainable": true,
"x": 0,
"y": 1840,
"vertices": [],
"title": "",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"formType": "LQLEditor",
"categoryKind": "Code",
"iconTitle": "Code: SQL",
"usedByEventTypes": []
},
{
"id": "1d5f8642-12ab-49aa-99fb-0ac6f7fe3489",
"name": "Initial_Scoring",
"kind": "augmentation",
"lql": "`SELECT \nCASE \nWHEN vt_positives > 15 THEN 8.0\nWHEN vt_positives > 5 THEN 7.0\nWHEN vt_positives > 0 THEN 2.0\nELSE 0.0 END AS vt_count_score,\nCASE\nWHEN (malwarebytes_verdict = true OR kaspersky_verdict = true OR mcafee_verdict = true OR trendmicro_verdict = true OR trendmicro_housecall_verdict = true OR microsoft_verdict = true OR crowdstrike_verdict = true) THEN 2.0\nELSE 0.0 END AS vt_trusted_scanner_score,\nCASE\nWHEN (anom_itype != \"none\" AND anom_confidence>=50) THEN 8.0\nWHEN anom_itype != \"none\" THEN 3.0\nELSE 0.0 END AS anomali_itype_score,\nCASE\nWHEN anom_confidence>=50 THEN ROUND((anom_confidence/50), 2)\nELSE 0.0 END AS anomali_confidence_score,\nCASE \nWHEN ha_av_detect > 15 THEN 8.0\nWHEN ha_av_detect > 5 THEN ROUND((ha_av_detect/2), 2)\nWHEN ha_av_detect > 0 THEN 2.0\nELSE 0.0 END AS ha_count_score,\nCASE\nWHEN ha_threat_score >=50 THEN ROUND((ha_threat_score/50), 2)\nELSE 0.0 END AS ha_confidence_score,\n* FROM Collect_Event_ID_Group`",
"operator": "SELECT",
"isLeaf": false,
"warnings": [],
"description": "Files hashes that returned results from Hybrid Analysis, Virustotal or Anomali.",
"isExplainable": true,
"x": 380,
"y": 4390,
"vertices": [],
"title": "",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"formType": "LQLEditor",
"categoryKind": "Code",
"iconTitle": "Code: SQL",
"usedByEventTypes": []
},
{
"id": "68d2cdc7-5924-40c4-90fd-2e0c28b9e306",
"name": "Unknown_Files",
"kind": "augmentation",
"lql": "`SELECT lhub_score, offense_id, \"Alert appear to be a false positive, could not find detection data in 3rd party sources.\" AS offense_comment FROM Group_by_Offense_ID WHERE lhub_score=0`",
"operator": "SELECT",
"isLeaf": false,
"warnings": [],
"description": "Files with no lookup data or detected as benign by Anomali, Virustotal and Hybrid Analysis.\nNo case to be created.",
"isExplainable": true,
"x": 0,
"y": 6973,
"vertices": [],
"title": "",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"formType": "LQLEditor",
"categoryKind": "Code",
"iconTitle": "Code: SQL",
"usedByEventTypes": []
},
{
"id": "f0755a0c-ca0f-42f5-8698-3ebf6960cd85",
"name": "Join_All_Possible_Outcomes",
"kind": "augmentation",
"lql": "unionAll(Unknown_Files, Grab_Fields_For_Offense_Close, Low_Severity_Cases_No_Email_Escalation)",
"operator": "unionAll",
"isLeaf": false,
"warnings": [],
"description": "Join all Offense IDs and their comments to close the Offenses.",
"isExplainable": true,
"x": 300,
"y": 7195,
"vertices": [],
"title": "",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"formType": "OperatorForm",
"contentItemIdentifier": {
"kind": "OperatorContentKind",
"id": "unionAll"
},
"categoryKind": "Transform",
"iconTitle": "Transform: Union All",
"usedByEventTypes": []
},
{
"id": "4a1cafc0-2d4b-4214-8172-b5fb43cf1133",
"name": "Group_by_Offense_ID",
"kind": "augmentation",
"lql": "`SELECT MAX(lhub_score) AS lhub_score, offense_time, offense_id, event_name, hostname, user_list, external_ip_list, CONCAT_WS(\"\\n\", COLLECT_SET(case_enrich_dec)) AS case_detail, FIRST(offense_comment) AS offense_comment\nFROM Build_Alert_and_Enrichment_Descriptions\nGROUP BY offense_time, offense_id, event_name, hostname, user_list, external_ip_list`",
"operator": "SELECT",
"isLeaf": false,
"warnings": [],
"description": "Final grouping by Offense ID in order to get the cases created to 1 per Offense ID.",
"isExplainable": true,
"x": 300,
"y": 5815,
"vertices": [],
"title": "",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"formType": "LQLEditor",
"categoryKind": "Code",
"iconTitle": "Code: SQL",
"usedByEventTypes": []
},
{
"id": "40afce71-5c18-4880-ab4d-9fff5b85c096",
"name": "Final_Score_Calculated",
"kind": "augmentation",
"lql": "`SELECT \nCASE \nWHEN overall_score >= 10 AND pup_verdict=\"N\" THEN DOUBLE(10.0)\nWHEN overall_score < 10 AND pup_verdict=\"N\" THEN DOUBLE(overall_score)\nWHEN overall_score >= 10 AND pup_verdict=\"Y\" THEN DOUBLE(5.0)\nWHEN overall_score < 10 AND pup_verdict=\"Y\" THEN DOUBLE(ROUND((overall_score/2), 2))\nWHEN keyword_check=\"Y\" THEN DOUBLE(10.0)\nELSE 0 END AS lhub_score,\n* FROM PUP_Check order by lhub_score desc`",
"operator": "SELECT",
"isLeaf": false,
"warnings": [],
"description": "The final score is calculated taking into account the data from the original alert and data obtained from the intel lookups.",
"isExplainable": true,
"x": 300,
"y": 5240,
"vertices": [],
"title": "",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"formType": "LQLEditor",
"categoryKind": "Code",
"iconTitle": "Code: SQL",
"usedByEventTypes": []
},
{
"id": "c4e1c511-0c43-4e29-92de-6f6a67b52d2a",
"name": "Aggregate_Rows_By_Hash",
"kind": "augmentation",
"lql": "`SELECT lhub_score, overall_score, pup_verdict, keyword_check, offense_id, event_name, offense_time, vt_count_score, vt_trusted_scanner_score, anomali_itype_score, anomali_confidence_score, ha_count_score, ha_confidence_score, event_type, hostname, CONCAT_WS(\", \", COLLECT_SET(user)) AS user_list, CONCAT_WS(\", \", COLLECT_SET(external_ip)) AS external_ip_list, CONCAT_WS(\", \", COLLECT_SET(file_disposition)) AS file_disposition_list, CONCAT_WS(\", \", COLLECT_SET(file_name)) AS file_name_list, CONCAT_WS(\", \", COLLECT_SET(file_path)) AS file_path_list, CONCAT_WS(\", \", COLLECT_SET(detection)) AS detection_list, file_sha256, file_sha1, file_md5, anom_itype, anom_threat_type, anom_confidence, anom_tags, vt_positives, malwarebytes_verdict, malwarebytes_result, kaspersky_verdict, kaspersky_result, mcafee_verdict, mcafee_result, trendmicro_verdict, trendmicro_result, trendmicro_housecall_verdict, trendmicro_housecall_result, microsoft_verdict, microsoft_result, crowdstrike_verdict, crowdstrike_result, ha_verdict, ha_av_detect, ha_threat_score, ha_vx_family, ha_submit_name \nFROM Final_Score_Calculated\nGROUP BY lhub_score, overall_score, pup_verdict, keyword_check, offense_id, event_name, offense_time, vt_count_score, vt_trusted_scanner_score, anomali_itype_score, anomali_confidence_score, ha_count_score, ha_confidence_score, event_type, hostname, file_sha256, file_sha1, file_md5, anom_itype, anom_threat_type, anom_confidence, anom_tags, vt_positives, malwarebytes_verdict, malwarebytes_result, kaspersky_verdict, kaspersky_result, mcafee_verdict, mcafee_result, trendmicro_verdict, trendmicro_result, trendmicro_housecall_verdict, trendmicro_housecall_result, microsoft_verdict, microsoft_result, crowdstrike_verdict, crowdstrike_result, ha_verdict, ha_av_detect, ha_threat_score, ha_vx_family, ha_submit_name`",
"operator": "SELECT",
"isLeaf": false,
"warnings": [],
"description": "Reduce the rows further by grouping on file hash.",
"isExplainable": true,
"x": 300,
"y": 5450,
"vertices": [],
"title": "",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"formType": "LQLEditor",
"categoryKind": "Code",
"iconTitle": "Code: SQL",
"usedByEventTypes": []
},
{
"id": "453ab7c1-7a47-4b83-a297-3fcae4ff54c7",
"name": "Build_Alert_and_Enrichment_Descriptions",
"kind": "augmentation",
"lql": "`SELECT lhub_score, offense_time,offense_id,event_name,hostname,user_list,external_ip_list,\nPRINTF(\"**File & Enrichment Details**\\n\\n* File Disposition: %s\\n* File Name(s): %s\\n* File Path(s): %s\\n* Detection: %s\\n* SHA256: %s\\n* SHA1: %s\\n* MD5: %s\\n* Anomali itype: %s\\n\\t* Anomali Threat Type: %s\\n\\t* Anomali Confidence: %s\\n\\t* Anomali Tags: %s\\n* VirusTotal Positives: %s\\n\\t* Malwarebytes: %s\\n\\t* Kasperksy: %s\\n\\t* McAfee: %s\\n\\t* Trend Micro: %s\\n\\t* Trend Micro Housecall: %s\\n\\t* Microsoft: %s\\n\\t* Crowdstrike: %s\\n* Hybrid Analysis Verdict: %s\\n\\t* Hybrid Analysis AV Detections: %s\\n\\t* Hybrid Analysis Threat Score: %s\\n\\t* Hybrid Analysis VX Family: %s\\n\\t* Hybrid Analysis Submit Name: %s\\n\\n**Decision Factors**\\n\\n* Virustotal Positives Count Score = %s\\n* Virustotal Trusted Scanner Score = %s\\n* Anomali itype Score = %s\\n* Anomali Confidence Score = %s\\n* Hybrid Analysis Score = %s\\n* Hybrid Analysis Confidence Score = %s\\n* Unwanted Software (PUA/PUP) = %s\\n* Detection Keyword Check = %s\\n\\n**Decision** Final Score %.1f\\n\\n\", file_disposition_list,file_name_list,file_path_list,detection_list,file_sha256,file_sha1,file_md5,anom_itype,anom_threat_type,anom_confidence,anom_tags,vt_positives,malwarebytes_result,kaspersky_result,mcafee_result,trendmicro_result,trendmicro_housecall_result,microsoft_result,crowdstrike_result,ha_verdict,ha_av_detect,ha_threat_score,ha_vx_family,ha_submit_name,vt_count_score,vt_trusted_scanner_score,anomali_itype_score,anomali_confidence_score,ha_count_score,ha_confidence_score,pup_verdict,keyword_check,lhub_score) AS case_enrich_dec,\nPRINTF(\"*Decision Factors*\\n\\n* File Disposition: %s\\n* File Name(s): %s\\n* SHA256: %s\\n* SHA1: %s\\n* MD5: %s\\n* Virustotal Positives Count Score = %s\\n* Virustotal Trusted Scanner Score = %s\\n* Anomali itype Score = %s\\n* Anomali Confidence Score = %s\\n* Hybrid Analysis Score = %s\\n* Hybrid Analysis Confidence Score = %s\\n* Unwanted Software (PUA/PUP) = %s\\n* Detection Keyword Check = %s\\n\\n**Decision** Final Score %.1f\\n\\n\", file_disposition_list,file_name_list,file_sha256,file_sha1,file_md5,vt_count_score,vt_trusted_scanner_score,anomali_itype_score,anomali_confidence_score,ha_count_score,ha_confidence_score,pup_verdict,keyword_check,lhub_score) AS offense_comment\nFROM Aggregate_Rows_By_Hash order by lhub_score desc`",
"operator": "SELECT",
"isLeaf": false,
"warnings": [],
"description": "Formatting the details for the case summary.",
"isExplainable": true,
"x": 300,
"y": 5620,
"vertices": [],
"title": "",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"formType": "LQLEditor",
"categoryKind": "Code",
"iconTitle": "Code: SQL",
"usedByEventTypes": []
},
{
"id": "b108b072-7fc4-4357-bb9c-7a8c5e40514d",
"name": "No_Case_Created_Offenses",
"kind": "augmentation",
"lql": "`SELECT *\nFROM Known_Files\nWHERE priority!=\"critical\"`",
"operator": "SELECT",
"isLeaf": false,
"warnings": [],
"description": "",
"isExplainable": true,
"x": 300,
"y": 6788,
"vertices": [],
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"formType": "LQLEditor",
"categoryKind": "Code",
"iconTitle": "Code: SQL",
"usedByEventTypes": []
},
{
"id": "39a11e21-008b-4e99-b611-8791530cb0b4",
"name": "Low_Severity_Cases_No_Email_Escalation",
"kind": "augmentation",
"lql": "`SELECT lhub_score, offense_id, \"Low priority or PUA detected, no case created\"\nAS offense_comment\nFROM No_Case_Created_Offenses`",
"operator": "SELECT",
"isLeaf": false,
"warnings": [],
"description": "Cases that warranted a case be created, but did not score high enough to need to be escalated via email.",
"isExplainable": true,
"x": 300,
"y": 6960,
"vertices": [],
"title": "",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"formType": "LQLEditor",
"categoryKind": "Code",
"iconTitle": "Code: SQL",
"usedByEventTypes": []
},
{
"id": "4ac16ed7-f8d5-4204-9fe0-10d4b35f5910",
"name": "Offenses_for_Case",
"kind": "augmentation",
"lql": "`SELECT *, \"Default\" as case_type\nFROM Known_Files\nWHERE priority=\"critical\"`",
"operator": "SELECT",
"isLeaf": false,
"warnings": [],
"description": "Files found in other information sources; Anomali, Virustotal and Hybrid Analysis.\nCase to be created.",
"isExplainable": true,
"x": 600,
"y": 6195,
"vertices": [],
"title": "",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"formType": "LQLEditor",
"categoryKind": "Code",
"iconTitle": "Code: SQL",
"usedByEventTypes": []
},
{
"id": "ee78bfc1-6ca2-465b-82fb-d220fa38458a",
"name": "PUP_Check",
"kind": "augmentation",
"lql": "`SELECT (vt_count_score + vt_trusted_scanner_score + anomali_itype_score + anomali_confidence_score + ha_count_score + ha_confidence_score) AS overall_score,\nCASE\nWHEN file_disposition=\"UnwantedSoftware\" OR \nLOWER(detection) LIKE '%pua%' OR \nLOWER(detection) LIKE '%pup%' OR \nLOWER(detection) LIKE '%adware%' OR \nLOWER(detection) LIKE '%toolbar%' OR\nLOWER(malwarebytes_result) LIKE '%pua%' OR \nLOWER(malwarebytes_result) LIKE '%pup%' OR \nLOWER(malwarebytes_result) LIKE '%adware%' OR \nLOWER(malwarebytes_result) LIKE '%toolbar%' OR\nLOWER(kaspersky_result) LIKE '%pua%' OR \nLOWER(kaspersky_result) LIKE '%pup%' OR \nLOWER(kaspersky_result) LIKE '%adware%' OR \nLOWER(kaspersky_result) LIKE '%toolbar%' OR\nLOWER(mcafee_result) LIKE '%pua%' OR \nLOWER(mcafee_result) LIKE '%pup%' OR \nLOWER(mcafee_result) LIKE '%adware%' OR \nLOWER(mcafee_result) LIKE '%toolbar%' OR\nLOWER(trendmicro_result) LIKE '%pua%' OR \nLOWER(trendmicro_result) LIKE '%pup%' OR \nLOWER(trendmicro_result) LIKE '%adware%' OR \nLOWER(trendmicro_result) LIKE '%toolbar%' OR\nLOWER(trendmicro_housecall_result) LIKE '%pua%' OR \nLOWER(trendmicro_housecall_result) LIKE '%pup%' OR \nLOWER(trendmicro_housecall_result) LIKE '%adware%' OR \nLOWER(trendmicro_housecall_result) LIKE '%toolbar%' OR\nLOWER(microsoft_result) LIKE '%pua%' OR \nLOWER(microsoft_result) LIKE '%pup%' OR \nLOWER(microsoft_result) LIKE '%adware%' OR \nLOWER(microsoft_result) LIKE '%toolbar%' OR\nLOWER(crowdstrike_result) LIKE '%pua%' OR \nLOWER(crowdstrike_result) LIKE '%pup%' OR \nLOWER(crowdstrike_result) LIKE '%adware%' OR \nLOWER(crowdstrike_result) LIKE '%toolbar%'\nTHEN \"Y\" ELSE \"N\" END AS pup_verdict,\n * FROM Detection_Keyword_Check`",
"operator": "SELECT",
"isLeaf": false,
"warnings": [],
"description": "A check is performed looking for detection names that contain the following strings, pup, pua, adware, toolbar, not-a-virus.",
"isExplainable": true,
"x": 300,
"y": 5030,
"vertices": [],
"title": "",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"formType": "LQLEditor",
"categoryKind": "Code",
"iconTitle": "Code: SQL",
"usedByEventTypes": []
},
{
"id": "43e63cc3-e123-4d8b-87e2-ea6d4c56085f",
"name": "Create_Case",
"kind": "task",
"lql": "runAction(Offenses_for_Case, \"logichub.case_management\", 35, \"create_case_v2\", {\"case_management_custom_fields\": \"\", \"__lh_action_timeout_sec\": \"\", \"__lh_rows_to_process\": \"\", \"case_management_case_type_template\": \"{{case_type}}\", \"case_management_assignee_column_name\": \"\", \"case_management_priority_column_name\": \"priority\", \"case_management_time_between_consecutive_requests_milliseconds\": \"\", \"case_management_reporter_column_name\": \"case_reporter\", \"case_management_description_template\": \"{{case_summary}}\\n\\n{{case_detail}}\\n{{auto_actions}}\", \"case_management_title_template\": \"{{case_title}}\", \"__lh_multithread_count\": \"\"})",
"operator": "runAction",
"isLeaf": false,
"warnings": [],
"description": "A LogicHub Case is created.",
"isExplainable": true,
"maxRowsToProcess": 500,
"delayBetweenRowsMillis": 0,
"x": 600,
"y": 6405,
"vertices": [],
"actionInstance": {
"actionId": "create_case_v2",
"integrationId": "logichub.case_management",
"integrationInstanceId": 35,
"data": {
"case_management_assignee_column_name": "",
"__lh_multithread_count": "",
"case_management_title_template": "{{case_title}}",
"case_management_custom_fields": "",
"case_management_time_between_consecutive_requests_milliseconds": "",
"case_management_description_template": "{{case_summary}}\n\n{{case_detail}}\n{{auto_actions}}",
"case_management_case_type_template": "{{case_type}}",
"case_management_reporter_column_name": "case_reporter",
"__lh_rows_to_process": "",
"__lh_action_timeout_sec": "",
"case_management_priority_column_name": "priority"
}
},
"title": "Create Case",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"contentMetadata": {
"integrationId": "logichub.case_management",
"logoUrl": "https://s3.amazonaws.com/lhub-public/integrations/default-integration-logo.svg",
"name": "Case Management",
"actionId": "create_case_v2",
"actionName": "Create Case"
},
"outputtedNode": false,
"contentItemIdentifier": {
"kind": "IntegrationContentKind",
"id": "logichub.case_management/create_case_v2"
},
"categoryKind": "Integration",
"iconTitle": "Integration: Case Management - Create Case",
"usedByEventTypes": []
},
{
"id": "a681b2e2-dd2c-4969-bed9-4a731de3f967",
"name": "Known_Files",
"kind": "augmentation",
"lql": "`SELECT lhub_score, offense_id, \"todo\" AS status,\nCASE\nWHEN lhub_score>5 THEN \"critical\"\nELSE \"low\" END AS priority,\nCASE\nWHEN lhub_score>5 THEN PRINTF(\"**Automated Actions Taken:**\\n1. Notified SOC Team\")\nELSE PRINTF(\"**Automated Actions Taken:**\\n1. None\") END AS auto_actions,\n\"admin\" AS case_reporter,\nCONCAT_WS(\"-\", offense_id, event_name) AS case_title,\nPRINTF(\"**Offense Details**\\n\\n* Date: %s\\n* Offense ID: %s\\n* Name: %s\\n* Hostname: %s\\n* User(s): %s\\n* External IP(s): %s\", offense_time, offense_id, event_name, hostname, user_list, external_ip_list) AS case_summary, case_detail, offense_comment\nFROM Group_by_Offense_ID \nWHERE lhub_score>0`",
"operator": "SELECT",
"isLeaf": false,
"warnings": [],
"description": "Files that are found in other reputation sources to be malicious.",
"isExplainable": true,
"x": 450,
"y": 6005,
"vertices": [],
"title": "Known Files",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"formType": "LQLEditor",
"categoryKind": "Code",
"iconTitle": "Code: SQL",
"usedByEventTypes": []
},
{
"id": "5b5de984-668c-4d66-b5be-cde86fcde9fd",
"name": "Detection_Keyword_Check",
"kind": "augmentation",
"lql": "`SELECT\nCASE\nWHEN\nLOWER(detection) LIKE '%miner%' OR \nLOWER(detection) LIKE '%exploit%' OR\nLOWER(detection) LIKE '%vbs%' OR \nLOWER(detection) LIKE '%pdf.dropper%'\nTHEN \"Y\" ELSE \"N\" END AS keyword_check,\n* FROM Join_Original_With_Enriched_Data`",
"operator": "SELECT",
"isLeaf": false,
"warnings": [],
"description": "Detection keyword check to pick up on detection names for unknown files. Keywords are (Miner, Exploit, VBS, Pdf.Dropper)",
"isExplainable": true,
"x": 300,
"y": 4795,
"vertices": [],
"title": "Detection Keyword Check",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"formType": "LQLEditor",
"categoryKind": "Code",
"iconTitle": "Code: SQL",
"usedByEventTypes": []
},
{
"id": "a948b183-63f8-4229-b9b8-4b26875f8558",
"name": "Close_Prep",
"kind": "augmentation",
"lql": "`SELECT *,\"LogicHub_Automation\" as assigned_to FROM Join_All_Possible_Outcomes`",
"operator": "SELECT",
"isLeaf": false,
"warnings": [],
"description": "Prepare to close offense in IBM QRadar.",
"isExplainable": true,
"x": 300,
"y": 7410,
"vertices": [],
"title": "Close Prep",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"formType": "LQLEditor",
"categoryKind": "Code",
"iconTitle": "Code: SQL",
"usedByEventTypes": []
},
{
"id": "2ecd0587-fbf2-41d0-94ff-916d928f4363",
"name": "Parse_Event_JSON_List",
"kind": "augmentation",
"lql": "`SELECT \nGET_JSON_OBJECT(result, \"$.events\") AS Event_List,\n* FROM Drop_Integration_Errors`",
"operator": "SELECT",
"isLeaf": false,
"warnings": [],
"description": "Parse JSON list of events from QRadar.",
"isExplainable": true,
"x": 0,
"y": 1050,
"vertices": [],
"title": "",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"formType": "LQLEditor",
"categoryKind": "Code",
"iconTitle": "Code: SQL",
"usedByEventTypes": []
},
{
"id": "6e4dd30f-aeb5-4e84-902a-41d3dc26785d",
"name": "Get_Offenses_and_Parse",
"kind": "step",
"inputs": [
"913aac2d-b2c4-4b5f-9039-94a5420b4c50"
],
"isLeaf": false,
"warnings": [],
"description": "Gets offenses from IBM QRadar and parses the output.",
"isExplainable": true,
"x": 0,
"y": 500,
"vertices": [],
"title": "Get Offenses and Parse",
"moduleId": "25",
"moduleVersion": {
"majorVersion": 1,
"minorVersion": 1,
"patchVersion": 0,
"contentResourceVersionBranch": "Local"
},
"moduleParameters": {
"parent0": "QRadar_Malware_Installation_Offenses"
},
"stepParams": {
"kind": "module",
"title": "Get_Offenses_and_Parse"
},
"isEditable": true,
"isStepImplementable": false,
"executionDependsOn": [],
"contentMetadata": {
"id": "25",
"name": "Get_Offenses_and_Parse",
"latestAvailableVersion": {
"majorVersion": 1,
"minorVersion": 1,
"patchVersion": 0,
"contentResourceVersionBranch": "Local"
}
},
"outputtedNode": false,
"contentItemIdentifier": {
"kind": "ModuleContentKind",
"id": "25"
},
"categoryKind": "Module",
"iconTitle": "Module: Get_Offenses_and_Parse",
"usedByEventTypes": []
},
{
"id": "4ec61d5c-bb5c-4c59-bae7-aa19ae06ec23",
"name": "QRadar_Malware_Installation_Events",
"kind": "step",
"inputs": [
"6e4dd30f-aeb5-4e84-902a-41d3dc26785d"
],
"isLeaf": false,
"warnings": [],
"description": "Replace with IBM QRadar Execute Search action\n\nSELECT DATEFORMAT(\"starttime\", 'YYYY-MM-dd HH:mm') as 'Time', \"Computer Name\",\"Threat Name\",\"Username\",\"Filename\",\"FilePath\",\"Parent Process Name\",UTF8(payload) as 'Event', COUNT(*) as 'Count' \nFROM events where INOFFENSE({{Offense_ID}}) \nGROUP BY \"Time\",\"Computer Name\",\"Threat Name\",\"Username\",\"Filename\" ,\"FilePath\",\"Parent Process Name\",\"Event\" \nLAST 48 Hours\n\nGrabbing events for the offenses that were previously returned.",
"isExplainable": true,
"x": 0,
"y": 650,
"vertices": [],
"title": "QRadar Malware Installation Events",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"contentItemIdentifier": {
"kind": "DraftContentKind",
"id": "draft"
},
"categoryKind": "Draft",
"iconTitle": "Draft",
"usedByEventTypes": []
},
{
"id": "913aac2d-b2c4-4b5f-9039-94a5420b4c50",
"name": "QRadar_Malware_Installation_Offenses",
"kind": "step",
"inputs": [
"4344cbad-d205-4817-909f-dc1f43a79012"
],
"isLeaf": false,
"warnings": [],
"description": "Replace with IBM QRadar Get Offenses action\n\nExample query: status=open and (rules contains (id ='XXXXX')\n\nGrabbing Malware Installation offenses",
"isExplainable": true,
"x": 0,
"y": 260,
"vertices": [],
"title": "QRadar Malware Installation Offenses",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"contentItemIdentifier": {
"kind": "DraftContentKind",
"id": "draft"
},
"categoryKind": "Draft",
"iconTitle": "Draft",
"usedByEventTypes": []
},
{
"id": "c6cd1cc5-e4a5-4360-80cd-da2a785c3f23",
"name": "Drop_Integration_Errors",
"kind": "augmentation",
"lql": "`SELECt * FROM QRadar_Malware_Installation_Events WHERE GET_JSON_OBJECT(result, \"$.error\") IS NULL`",
"operator": "SELECT",
"isLeaf": false,
"warnings": [],
"description": "Only process successful IBM QRadar integration actions.",
"isExplainable": true,
"x": 0,
"y": 880,
"vertices": [],
"title": "Drop Integration Errors",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"formType": "LQLEditor",
"categoryKind": "Code",
"iconTitle": "Code: SQL",
"usedByEventTypes": []
},
{
"id": "7a36bfc8-dc04-4d2c-838e-e5a04df77e82",
"name": "Anomali_Hash_Reputation_Query",
"kind": "step",
"inputs": [
"cf7fa600-18fd-4f85-a478-21621d0b51f5"
],
"isLeaf": false,
"warnings": [],
"description": "Replace with Anomali Get Reputation action\n\nPass the hash to the integration",
"isExplainable": true,
"x": 160,
"y": 2460,
"vertices": [],
"title": "Anomali Hash Reputation Query",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"contentItemIdentifier": {
"kind": "DraftContentKind",
"id": "draft"
},
"categoryKind": "Draft",
"iconTitle": "Draft",
"usedByEventTypes": []
},
{
"id": "a28938f1-c0cf-4539-b4ce-dee123fd6403",
"name": "Anomali_Hash_Results_Parse",
"kind": "augmentation",
"lql": "`SELECT *,\nCOALESCE(GET_JSON_OBJECT(result, \"$.result[0].itype\"), \"none\") AS anom_itype,\nCOALESCE(GET_JSON_OBJECT(result, \"$.result[0].threat_type\"), \"none\") AS anom_threat_type,\nCOALESCE(GET_JSON_OBJECT(result, \"$.result[0].source\"), \"none\") AS anom_source,\nCOALESCE(GET_JSON_OBJECT(result, \"$.result[0].confidence\"), \"none\") AS anom_confidence,\nCOALESCE(GET_JSON_OBJECT(result, \"$.result[0].tags\"), \"none\") AS tags\nFROM Anomali_Hash_Reputation_Query`",
"operator": "SELECT",
"isLeaf": false,
"warnings": [],
"description": "Parsing the itype, threat_type, source and tags from the Anomali results.",
"isExplainable": true,
"x": 160,
"y": 2685,
"vertices": [],
"title": "",
"isEditable": false,
"isStepImplementable": true,
"executionDependsOn": [],
"outputtedNode": false,
"formType": "LQLEditor",
"categoryKind": "Code",
"iconTitle": "Code: SQL",
"usedByEventTypes": []