forked from SigmaHQ/sigma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimport-sigma-to-kibana.sh
3034 lines (3034 loc) · 201 KB
/
import-sigma-to-kibana.sh
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
export index_logs__endpoint__winevent__sysmon__X=$(curl -s 'localhost:9200/.kibana/_search?q=index-pattern.title:logs-endpoint-winevent-sysmon-\*' | jq -r '.hits.hits[0]._id | ltrimstr("index-pattern:")')
export index_logs__endpoint__winevent__powershell__X=$(curl -s 'localhost:9200/.kibana/_search?q=index-pattern.title:logs-endpoint-winevent-powershell-\*' | jq -r '.hits.hits[0]._id | ltrimstr("index-pattern:")')
export index_logs__endpoint__winevent__wmiactivity__X=$(curl -s 'localhost:9200/.kibana/_search?q=index-pattern.title:logs-endpoint-winevent-wmiactivity-\*' | jq -r '.hits.hits[0]._id | ltrimstr("index-pattern:")')
export index_logs__endpoint__winevent__system__X=$(curl -s 'localhost:9200/.kibana/_search?q=index-pattern.title:logs-endpoint-winevent-system-\*' | jq -r '.hits.hits[0]._id | ltrimstr("index-pattern:")')
export index_logs__endpoint__winevent__application__X=$(curl -s 'localhost:9200/.kibana/_search?q=index-pattern.title:logs-endpoint-winevent-application-\*' | jq -r '.hits.hits[0]._id | ltrimstr("index-pattern:")')
export index_logs__endpoint__winevent__security__X=$(curl -s 'localhost:9200/.kibana/_search?q=index-pattern.title:logs-endpoint-winevent-security-\*' | jq -r '.hits.hits[0]._id | ltrimstr("index-pattern:")')
export index_logs__X=$(curl -s 'localhost:9200/.kibana/_search?q=index-pattern.title:logs-\*' | jq -r '.hits.hits[0]._id | ltrimstr("index-pattern:")')
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:WMI-Persistence---Script-Event-Consumer-File-Write' <<EOF
{
"type": "search",
"search": {
"description": "Detects file writes of WMI script event consumer",
"version": 1,
"columns": [],
"hits": 0,
"title": "Sigma: WMI Persistence - Script Event Consumer File Write",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"11\\\\\" AND process_path:\\\\\"C\\\\\\\\:\\\\\\\\\\\\\\\\WINDOWS\\\\\\\\\\\\\\\\system32\\\\\\\\\\\\\\\\wbem\\\\\\\\\\\\\\\\scrcons.exe\\\\\")\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:Processes-created-by-MMC' <<EOF
{
"type": "search",
"search": {
"description": "Processes started by MMC could by a sign of lateral movement using MMC application COM object",
"version": 1,
"columns": [
"command_line",
"ParentCommandLine"
],
"hits": 0,
"title": "Sigma: Processes created by MMC",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"1\\\\\" AND process_parent_path:\\\\\"*\\\\\\\\\\\\\\\\mmc.exe\\\\\" AND process_path:\\\\\"*\\\\\\\\\\\\\\\\cmd.exe\\\\\") AND NOT (command_line:\\\\\"*\\\\\\\\\\\\\\\\RunCmd.cmd\\\\\")\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:Suspicious-TSCON-Start' <<EOF
{
"type": "search",
"search": {
"description": "Detects a tscon.exe start as LOCAL SYSTEM",
"version": 1,
"columns": [],
"hits": 0,
"title": "Sigma: Suspicious TSCON Start",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(user:\\\\\"NT AUTHORITY\\\\\\\\\\\\\\\\SYSTEM\\\\\" AND event_id:\\\\\"1\\\\\" AND process_path:\\\\\"*\\\\\\\\\\\\\\\\tscon.exe\\\\\")\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:Suspicious-Program-Location-with-Network-Connections' <<EOF
{
"type": "search",
"search": {
"description": "Detects programs with network connections running in suspicious files system locations",
"version": 1,
"columns": [],
"hits": 0,
"title": "Sigma: Suspicious Program Location with Network Connections",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"3\\\\\" AND process_path:(\\\\\"*\\\\\\\\\\\\\\\\ProgramData\\\\\\\\*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\$Recycle.bin\\\\\" \\\\\"*\\\\\\\\\\\\\\\\Users\\\\\\\\\\\\\\\\All Users\\\\\\\\*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\Users\\\\\\\\\\\\\\\\Default\\\\\\\\*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\Users\\\\\\\\\\\\\\\\Public\\\\\\\\*\\\\\" \\\\\"C\\\\\\\\:\\\\\\\\\\\\\\\\Perflogs\\\\\\\\*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\config\\\\\\\\\\\\\\\\systemprofile\\\\\\\\*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\Windows\\\\\\\\\\\\\\\\Fonts\\\\\\\\*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\Windows\\\\\\\\\\\\\\\\IME\\\\\\\\*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\Windows\\\\\\\\\\\\\\\\addins\\\\\\\\*\\\\\"))\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:Executable-used-by-PlugX-in-Uncommon-Location' <<EOF
{
"type": "search",
"search": {
"description": "Detects the execution of an executable that is typically used by PlugX for DLL side loading started from an uncommon location",
"version": 1,
"columns": [
"command_line",
"ParentCommandLine"
],
"hits": 0,
"title": "Sigma: Executable used by PlugX in Uncommon Location",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"((event_id:\\\\\"1\\\\\" AND process_path:\\\\\"*\\\\\\\\\\\\\\\\CamMute.exe\\\\\") AND NOT (event_id:\\\\\"1\\\\\" AND process_path:\\\\\"*\\\\\\\\\\\\\\\\Lenovo\\\\\\\\\\\\\\\\Communication Utility\\\\\\\\*\\\\\")) OR ((event_id:\\\\\"1\\\\\" AND process_path:\\\\\"*\\\\\\\\\\\\\\\\chrome_frame_helper.exe\\\\\") AND NOT (event_id:\\\\\"1\\\\\" AND process_path:\\\\\"*\\\\\\\\\\\\\\\\Google\\\\\\\\\\\\\\\\Chrome\\\\\\\\\\\\\\\\application\\\\\\\\*\\\\\")) OR ((event_id:\\\\\"1\\\\\" AND process_path:\\\\\"*\\\\\\\\\\\\\\\\dvcemumanager.exe\\\\\") AND NOT (event_id:\\\\\"1\\\\\" AND process_path:\\\\\"*\\\\\\\\\\\\\\\\Microsoft Device Emulator\\\\\\\\*\\\\\")) OR ((event_id:\\\\\"1\\\\\" AND process_path:\\\\\"*\\\\\\\\\\\\\\\\Gadget.exe\\\\\") AND NOT (event_id:\\\\\"1\\\\\" AND process_path:\\\\\"*\\\\\\\\\\\\\\\\Windows Media Player\\\\\\\\*\\\\\")) OR ((event_id:\\\\\"1\\\\\" AND process_path:\\\\\"*\\\\\\\\\\\\\\\\hcc.exe\\\\\") AND NOT (event_id:\\\\\"1\\\\\" AND process_path:\\\\\"*\\\\\\\\\\\\\\\\HTML Help Workshop\\\\\\\\*\\\\\")) OR ((event_id:\\\\\"1\\\\\" AND process_path:\\\\\"*\\\\\\\\\\\\\\\\hkcmd.exe\\\\\") AND NOT (event_id:\\\\\"1\\\\\" AND process_path:(\\\\\"*\\\\\\\\\\\\\\\\System32\\\\\\\\*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\SysNative\\\\\\\\*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\SysWowo64\\\\\\\\*\\\\\"))) OR ((event_id:\\\\\"1\\\\\" AND process_path:\\\\\"*\\\\\\\\\\\\\\\\Mc.exe\\\\\") AND NOT (event_id:\\\\\"1\\\\\" AND process_path:(\\\\\"*\\\\\\\\\\\\\\\\Microsoft Visual Studio*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\Microsoft SDK*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\Windows Kit*\\\\\"))) OR ((event_id:\\\\\"1\\\\\" AND process_path:\\\\\"*\\\\\\\\\\\\\\\\MsMpEng.exe\\\\\") AND NOT (event_id:\\\\\"1\\\\\" AND process_path:(\\\\\"*\\\\\\\\\\\\\\\\Microsoft Security Client\\\\\\\\*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\Windows Defender\\\\\\\\*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\AntiMalware\\\\\\\\*\\\\\"))) OR ((event_id:\\\\\"1\\\\\" AND process_path:\\\\\"*\\\\\\\\\\\\\\\\msseces.exe\\\\\") AND NOT (event_id:\\\\\"1\\\\\" AND process_path:\\\\\"*\\\\\\\\\\\\\\\\Microsoft Security Center\\\\\\\\*\\\\\")) OR ((event_id:\\\\\"1\\\\\" AND process_path:\\\\\"*\\\\\\\\\\\\\\\\OInfoP11.exe\\\\\") AND NOT (event_id:\\\\\"1\\\\\" AND process_path:\\\\\"*\\\\\\\\\\\\\\\\Common Files\\\\\\\\\\\\\\\\Microsoft Shared\\\\\\\\*\\\\\")) OR ((event_id:\\\\\"1\\\\\" AND process_path:\\\\\"*\\\\\\\\\\\\\\\\OleView.exe\\\\\") AND NOT (event_id:\\\\\"1\\\\\" AND process_path:(\\\\\"*\\\\\\\\\\\\\\\\Microsoft Visual Studio*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\Microsoft SDK*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\Windows Kit*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\Windows Resource Kit\\\\\\\\*\\\\\"))) OR ((event_id:\\\\\"1\\\\\" AND process_path:\\\\\"*\\\\\\\\\\\\\\\\OleView.exe\\\\\") AND NOT (event_id:\\\\\"1\\\\\" AND process_path:(\\\\\"*\\\\\\\\\\\\\\\\Microsoft Visual Studio*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\Microsoft SDK*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\Windows Kit*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\Windows Resource Kit\\\\\\\\*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\Microsoft.NET\\\\\\\\*\\\\\")))\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:Taskmgr-as-LOCAL_SYSTEM' <<EOF
{
"type": "search",
"search": {
"description": "Detects the creation of taskmgr.exe process in context of LOCAL_SYSTEM",
"version": 1,
"columns": [],
"hits": 0,
"title": "Sigma: Taskmgr as LOCAL_SYSTEM",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(user:\\\\\"NT AUTHORITY\\\\\\\\\\\\\\\\SYSTEM\\\\\" AND event_id:\\\\\"1\\\\\" AND process_path:\\\\\"*\\\\\\\\\\\\\\\\taskmgr.exe\\\\\")\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:Execution-in-Webserver-Root-Folder' <<EOF
{
"type": "search",
"search": {
"description": "Detects a suspicious program execution in a web service root folder (filter out false positives)",
"version": 1,
"columns": [
"command_line",
"ParentCommandLine"
],
"hits": 0,
"title": "Sigma: Execution in Webserver Root Folder",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"1\\\\\" AND process_path:(\\\\\"*\\\\\\\\\\\\\\\\wwwroot\\\\\\\\*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\wmpub\\\\\\\\*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\htdocs\\\\\\\\*\\\\\")) AND NOT (process_parent_path:(\\\\\"*\\\\\\\\\\\\\\\\services.exe\\\\\") AND process_path:(\\\\\"*bin\\\\\\\\*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\Tools\\\\\\\\*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\SMSComponent\\\\\\\\*\\\\\"))\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:Exploit-for-CVE-2015-1641' <<EOF
{
"type": "search",
"search": {
"description": "Detects Winword starting uncommon sub process MicroScMgmt.exe as used in exploits for CVE-2015-1641",
"version": 1,
"columns": [],
"hits": 0,
"title": "Sigma: Exploit for CVE-2015-1641",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"1\\\\\" AND process_parent_path:\\\\\"*\\\\\\\\\\\\\\\\WINWORD.EXE\\\\\" AND process_path:\\\\\"*\\\\\\\\\\\\\\\\MicroScMgmt.exe \\\\\")\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:Windows-Shell-Spawning-Suspicious-Program' <<EOF
{
"type": "search",
"search": {
"description": "Detects a suspicious child process of a Windows shell",
"version": 1,
"columns": [
"command_line",
"ParentCommandLine"
],
"hits": 0,
"title": "Sigma: Windows Shell Spawning Suspicious Program",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"1\\\\\" AND process_parent_path:(\\\\\"*\\\\\\\\\\\\\\\\mshta.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\powershell.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\cmd.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\rundll32.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\cscript.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\wscript.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\wmiprvse.exe\\\\\") AND process_path:(\\\\\"*\\\\\\\\\\\\\\\\schtasks.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\nslookup.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\certutil.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\bitsadmin.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\mshta.exe\\\\\"))\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:Regsvr32-Anomaly' <<EOF
{
"type": "search",
"search": {
"description": "Detects various anomalies in relation to regsvr32.exe",
"version": 1,
"columns": [
"command_line",
"ParentCommandLine"
],
"hits": 0,
"title": "Sigma: Regsvr32 Anomaly",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"((event_id:\\\\\"1\\\\\" AND process_parent_path:\\\\\"*\\\\\\\\\\\\\\\\powershell.exe\\\\\" AND process_path:\\\\\"*\\\\\\\\\\\\\\\\regsvr32.exe\\\\\") OR (event_id:\\\\\"1\\\\\" AND command_line:\\\\\"*\\\\\\\\\\\\\\\\Temp\\\\\\\\*\\\\\" AND process_path:\\\\\"*\\\\\\\\\\\\\\\\regsvr32.exe\\\\\") OR (event_id:\\\\\"1\\\\\" AND command_line:\\\\\"*..\\\\\\\\\\\\\\\\..\\\\\\\\\\\\\\\\..\\\\\\\\\\\\\\\\Windows\\\\\\\\\\\\\\\\System32\\\\\\\\\\\\\\\\regsvr32.exe *\\\\\" AND process_path:\\\\\"*\\\\\\\\\\\\\\\\EXCEL.EXE\\\\\") OR (event_id:\\\\\"1\\\\\" AND command_line:(\\\\\"*\\\\\\\\/i\\\\\\\\:http* scrobj.dll\\\\\" \\\\\"*\\\\\\\\/i\\\\\\\\:ftp* scrobj.dll\\\\\") AND process_path:\\\\\"*\\\\\\\\\\\\\\\\regsvr32.exe\\\\\") OR (event_id:\\\\\"1\\\\\" AND process_parent_path:\\\\\"*\\\\\\\\\\\\\\\\regsvr32.exe\\\\\" AND process_path:\\\\\"*\\\\\\\\\\\\\\\\wscript.exe\\\\\"))\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:Execution-in-Non-Executable-Folder' <<EOF
{
"type": "search",
"search": {
"description": "Detects a suspicious exection from an uncommon folder",
"version": 1,
"columns": [
"command_line",
"ParentCommandLine"
],
"hits": 0,
"title": "Sigma: Execution in Non-Executable Folder",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"1\\\\\" AND process_path:(\\\\\"*\\\\\\\\\\\\\\\\$Recycle.bin\\\\\" \\\\\"*\\\\\\\\\\\\\\\\Users\\\\\\\\\\\\\\\\All Users\\\\\\\\*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\Users\\\\\\\\\\\\\\\\Default\\\\\\\\*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\Users\\\\\\\\\\\\\\\\Public\\\\\\\\*\\\\\" \\\\\"C\\\\\\\\:\\\\\\\\\\\\\\\\Perflogs\\\\\\\\*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\config\\\\\\\\\\\\\\\\systemprofile\\\\\\\\*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\Windows\\\\\\\\\\\\\\\\Fonts\\\\\\\\*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\Windows\\\\\\\\\\\\\\\\IME\\\\\\\\*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\Windows\\\\\\\\\\\\\\\\addins\\\\\\\\*\\\\\"))\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:MSHTA-Spawning-Windows-Shell' <<EOF
{
"type": "search",
"search": {
"description": "Detects a Windows command line executable started from MSHTA.",
"version": 1,
"columns": [
"command_line",
"ParentCommandLine"
],
"hits": 0,
"title": "Sigma: MSHTA Spawning Windows Shell",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"1\\\\\" AND process_parent_path:\\\\\"*\\\\\\\\\\\\\\\\mshta.exe\\\\\" AND process_path:(\\\\\"*\\\\\\\\\\\\\\\\cmd.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\powershell.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\wscript.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\cscript.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\sh.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\bash.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\reg.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\regsvr32.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\BITSADMIN*\\\\\")) AND NOT (command_line:(\\\\\"*\\\\\\\\/HP\\\\\\\\/HP*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\HP\\\\\\\\\\\\\\\\HP*\\\\\"))\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:UAC-Bypass-via-sdclt' <<EOF
{
"type": "search",
"search": {
"description": "Detects changes to HKCU:\\Software\\Classes\\exefile\\shell\\runas\\command\\isolatedCommand",
"version": 1,
"columns": [],
"hits": 0,
"title": "Sigma: UAC Bypass via sdclt",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"13\\\\\" AND registry_target_object:\\\\\"HKEY_USERS\\\\\\\\*\\\\\\\\\\\\\\\\Classes\\\\\\\\\\\\\\\\exefile\\\\\\\\\\\\\\\\shell\\\\\\\\\\\\\\\\runas\\\\\\\\\\\\\\\\command\\\\\\\\\\\\\\\\isolatedCommand\\\\\")\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:Microsoft-Office-Product-Spawning-Windows-Shell' <<EOF
{
"type": "search",
"search": {
"description": "Detects a Windows command line executable started from Microsoft Word, Excel, Powerpoint, Publisher and Visio.",
"version": 1,
"columns": [
"command_line",
"ParentCommandLine"
],
"hits": 0,
"title": "Sigma: Microsoft Office Product Spawning Windows Shell",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"1\\\\\" AND process_parent_path:(\\\\\"*\\\\\\\\\\\\\\\\WINWORD.EXE\\\\\" \\\\\"*\\\\\\\\\\\\\\\\EXCEL.EXE\\\\\" \\\\\"*\\\\\\\\\\\\\\\\POWERPNT.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\MSPUB.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\VISIO.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\OUTLOOK.EXE\\\\\") AND process_path:(\\\\\"*\\\\\\\\\\\\\\\\cmd.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\powershell.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\wscript.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\cscript.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\sh.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\bash.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\scrcons.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\schtasks.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\regsvr32.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\hh.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\wmic.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\mshta.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\rundll32.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\msiexec.exe\\\\\"))\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:Suspicious-PowerShell-Invocation-based-on-Parent-Process' <<EOF
{
"type": "search",
"search": {
"description": "Detects suspicious powershell invocations from interpreters or unusual programs",
"version": 1,
"columns": [
"command_line",
"ParentCommandLine"
],
"hits": 0,
"title": "Sigma: Suspicious PowerShell Invocation based on Parent Process",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"1\\\\\" AND process_parent_path:(\\\\\"*\\\\\\\\\\\\\\\\wscript.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\cscript.exe\\\\\") AND process_path:(\\\\\"*\\\\\\\\\\\\\\\\powershell.exe\\\\\")) AND NOT (process_current_directory:\\\\\"*\\\\\\\\\\\\\\\\Health Service State\\\\\\\\*\\\\\")\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:Bitsadmin-Download' <<EOF
{
"type": "search",
"search": {
"description": "Detects usage of bitsadmin downloading a file",
"version": 1,
"columns": [
"command_line",
"ParentCommandLine"
],
"hits": 0,
"title": "Sigma: Bitsadmin Download",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"1\\\\\" AND command_line:(\\\\\"\\\\\\\\/transfer\\\\\") AND process_path:(\\\\\"*\\\\\\\\\\\\\\\\bitsadmin.exe\\\\\"))\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:WSF/JSE/JS/VBA/VBE-File-Execution' <<EOF
{
"type": "search",
"search": {
"description": "Detects suspicious file execution by wscript and cscript",
"version": 1,
"columns": [
"command_line",
"ParentCommandLine"
],
"hits": 0,
"title": "Sigma: WSF/JSE/JS/VBA/VBE File Execution",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"1\\\\\" AND command_line:(\\\\\"*.jse\\\\\" \\\\\"*.vbe\\\\\" \\\\\"*.js\\\\\" \\\\\"*.vba\\\\\") AND process_path:(\\\\\"*\\\\\\\\\\\\\\\\wscript.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\cscript.exe\\\\\"))\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:Suspicious-Driver-Load-from-Temp' <<EOF
{
"type": "search",
"search": {
"description": "Detetcs a driver load from a temporary directory",
"version": 1,
"columns": [],
"hits": 0,
"title": "Sigma: Suspicious Driver Load from Temp",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"6\\\\\" AND image_loaded:\\\\\"*\\\\\\\\\\\\\\\\Temp\\\\\\\\*\\\\\")\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:WScript-or-CScript-Dropper' <<EOF
{
"type": "search",
"search": {
"description": "Detects wscript/cscript executions of scripts located in user directories",
"version": 1,
"columns": [
"command_line",
"ParentCommandLine"
],
"hits": 0,
"title": "Sigma: WScript or CScript Dropper",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"1\\\\\" AND command_line:(\\\\\"* C\\\\\\\\:\\\\\\\\\\\\\\\\Users\\\\\\\\*.jse *\\\\\" \\\\\"* C\\\\\\\\:\\\\\\\\\\\\\\\\Users\\\\\\\\*.vbe *\\\\\" \\\\\"* C\\\\\\\\:\\\\\\\\\\\\\\\\Users\\\\\\\\*.js *\\\\\" \\\\\"* C\\\\\\\\:\\\\\\\\\\\\\\\\Users\\\\\\\\*.vba *\\\\\" \\\\\"* C\\\\\\\\:\\\\\\\\\\\\\\\\Users\\\\\\\\*.vbs *\\\\\" \\\\\"* C\\\\\\\\:\\\\\\\\\\\\\\\\ProgramData\\\\\\\\*.jse *\\\\\" \\\\\"* C\\\\\\\\:\\\\\\\\\\\\\\\\ProgramData\\\\\\\\*.vbe *\\\\\" \\\\\"* C\\\\\\\\:\\\\\\\\\\\\\\\\ProgramData\\\\\\\\*.js *\\\\\" \\\\\"* C\\\\\\\\:\\\\\\\\\\\\\\\\ProgramData\\\\\\\\*.vba *\\\\\" \\\\\"* C\\\\\\\\:\\\\\\\\\\\\\\\\ProgramData\\\\\\\\*.vbs *\\\\\") AND process_path:(\\\\\"*\\\\\\\\\\\\\\\\wscript.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\cscript.exe\\\\\"))\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:Suspicious-Svchost-Process' <<EOF
{
"type": "search",
"search": {
"description": "Detects a suspicious scvhost process start",
"version": 1,
"columns": [
"command_line",
"ParentCommandLine"
],
"hits": 0,
"title": "Sigma: Suspicious Svchost Process",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"1\\\\\" AND process_path:\\\\\"*\\\\\\\\\\\\\\\\svchost.exe\\\\\") AND NOT (process_parent_path:\\\\\"*\\\\\\\\\\\\\\\\services.exe\\\\\")\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:Malware-Shellcode-in-Verclsid-Target-Process' <<EOF
{
"type": "search",
"search": {
"description": "Detetcs a process access to verclsid.exe that injects shellcode from a Microsoft Office application / VBA macro",
"version": 1,
"columns": [],
"hits": 0,
"title": "Sigma: Malware Shellcode in Verclsid Target Process",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(process_granted_access:\\\\\"0x1FFFFF\\\\\" AND event_id:\\\\\"10\\\\\" AND target_process_path:\\\\\"*\\\\\\\\\\\\\\\\verclsid.exe\\\\\") AND ((process_calltrace:\\\\\"*|UNKNOWN*\\\\\" AND process_path:\\\\\"*\\\\\\\\\\\\\\\\Microsoft Office\\\\\\\\*\\\\\") OR (process_calltrace:\\\\\"*|UNKNOWN\\\\\\\\(*VBE7.DLL*\\\\\"))\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:Shells-Spawned-by-Web-Servers' <<EOF
{
"type": "search",
"search": {
"description": "Web servers that spawn shell processes could be the result of a successfully placed web shell or an other attack",
"version": 1,
"columns": [
"command_line",
"ParentCommandLine"
],
"hits": 0,
"title": "Sigma: Shells Spawned by Web Servers",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"1\\\\\" AND process_parent_path:(\\\\\"*\\\\\\\\\\\\\\\\w3wp.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\httpd.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\nginx.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\php\\\\\\\\-cgi.exe\\\\\") AND process_path:(\\\\\"*\\\\\\\\\\\\\\\\cmd.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\sh.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\bash.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\powershell.exe\\\\\"))\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:Suspicious-Control-Panel-DLL-Load' <<EOF
{
"type": "search",
"search": {
"description": "Detects suspicious Rundll32 execution from control.exe as used by Equation Group and Exploit Kits",
"version": 1,
"columns": [
"command_line",
"ParentCommandLine"
],
"hits": 0,
"title": "Sigma: Suspicious Control Panel DLL Load",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"1\\\\\" AND command_line:\\\\\"*\\\\\\\\\\\\\\\\rundll32.exe *\\\\\" AND process_parent_path:\\\\\"*\\\\\\\\\\\\\\\\System32\\\\\\\\\\\\\\\\control.exe\\\\\") AND NOT (command_line:\\\\\"*Shell32.dll*\\\\\")\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:cmdkey-Cached-Credentials-Recon' <<EOF
{
"type": "search",
"search": {
"description": "Detects usage of cmdkey to look for cached credentials.",
"version": 1,
"columns": [
"command_line",
"ParentCommandLine",
"user"
],
"hits": 0,
"title": "Sigma: cmdkey Cached Credentials Recon",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"1\\\\\" AND command_line:\\\\\"* \\\\\\\\/list *\\\\\" AND process_path:\\\\\"*\\\\\\\\\\\\\\\\cmdkey.exe\\\\\")\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:Suspicious-PowerShell-Parameter-Substring' <<EOF
{
"type": "search",
"search": {
"description": "Detects suspicious PowerShell invocation with a parameter substring",
"version": 1,
"columns": [],
"hits": 0,
"title": "Sigma: Suspicious PowerShell Parameter Substring",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"((process_path:\\\\\"*\\\\\\\\\\\\\\\\powershell.exe\\\\\") AND (\\\\\" \\\\\\\\-windowstyle h \\\\\" OR \\\\\" \\\\\\\\-windowstyl h\\\\\" OR \\\\\" \\\\\\\\-windowsty h\\\\\" OR \\\\\" \\\\\\\\-windowst h\\\\\" OR \\\\\" \\\\\\\\-windows h\\\\\" OR \\\\\" \\\\\\\\-windo h\\\\\" OR \\\\\" \\\\\\\\-wind h\\\\\" OR \\\\\" \\\\\\\\-win h\\\\\" OR \\\\\" \\\\\\\\-wi h\\\\\" OR \\\\\" \\\\\\\\-win h \\\\\" OR \\\\\" \\\\\\\\-win hi \\\\\" OR \\\\\" \\\\\\\\-win hid \\\\\" OR \\\\\" \\\\\\\\-win hidd \\\\\" OR \\\\\" \\\\\\\\-win hidde \\\\\" OR \\\\\" \\\\\\\\-NoPr \\\\\" OR \\\\\" \\\\\\\\-NoPro \\\\\" OR \\\\\" \\\\\\\\-NoProf \\\\\" OR \\\\\" \\\\\\\\-NoProfi \\\\\" OR \\\\\" \\\\\\\\-NoProfil \\\\\" OR \\\\\" \\\\\\\\-nonin \\\\\" OR \\\\\" \\\\\\\\-nonint \\\\\" OR \\\\\" \\\\\\\\-noninte \\\\\" OR \\\\\" \\\\\\\\-noninter \\\\\" OR \\\\\" \\\\\\\\-nonintera \\\\\" OR \\\\\" \\\\\\\\-noninterac \\\\\" OR \\\\\" \\\\\\\\-noninteract \\\\\" OR \\\\\" \\\\\\\\-noninteracti \\\\\" OR \\\\\" \\\\\\\\-noninteractiv \\\\\" OR \\\\\" \\\\\\\\-ec \\\\\" OR \\\\\" \\\\\\\\-encodedComman \\\\\" OR \\\\\" \\\\\\\\-encodedComma \\\\\" OR \\\\\" \\\\\\\\-encodedComm \\\\\" OR \\\\\" \\\\\\\\-encodedCom \\\\\" OR \\\\\" \\\\\\\\-encodedCo \\\\\" OR \\\\\" \\\\\\\\-encodedC \\\\\" OR \\\\\" \\\\\\\\-encoded \\\\\" OR \\\\\" \\\\\\\\-encode \\\\\" OR \\\\\" \\\\\\\\-encod \\\\\" OR \\\\\" \\\\\\\\-enco \\\\\" OR \\\\\" \\\\\\\\-en \\\\\"))\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:Suspicious-Typical-Malware-Back-Connect-Ports' <<EOF
{
"type": "search",
"search": {
"description": "Detects programs that connect to typical malware back connetc ports based on statistical analysis from two different sandbox system databases",
"version": 1,
"columns": [],
"hits": 0,
"title": "Sigma: Suspicious Typical Malware Back Connect Ports",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"3\\\\\" AND dst_port_number:(\\\\\"4443\\\\\" \\\\\"2448\\\\\" \\\\\"8143\\\\\" \\\\\"1777\\\\\" \\\\\"1443\\\\\" \\\\\"243\\\\\" \\\\\"65535\\\\\" \\\\\"13506\\\\\" \\\\\"3360\\\\\" \\\\\"200\\\\\" \\\\\"198\\\\\" \\\\\"49180\\\\\" \\\\\"13507\\\\\" \\\\\"6625\\\\\" \\\\\"4444\\\\\" \\\\\"4438\\\\\" \\\\\"1904\\\\\" \\\\\"13505\\\\\" \\\\\"13504\\\\\" \\\\\"12102\\\\\" \\\\\"9631\\\\\" \\\\\"5445\\\\\" \\\\\"2443\\\\\" \\\\\"777\\\\\" \\\\\"13394\\\\\" \\\\\"13145\\\\\" \\\\\"12103\\\\\" \\\\\"5552\\\\\" \\\\\"3939\\\\\" \\\\\"3675\\\\\" \\\\\"666\\\\\" \\\\\"473\\\\\" \\\\\"5649\\\\\" \\\\\"4455\\\\\" \\\\\"4433\\\\\" \\\\\"1817\\\\\" \\\\\"100\\\\\" \\\\\"65520\\\\\" \\\\\"1960\\\\\" \\\\\"1515\\\\\" \\\\\"743\\\\\" \\\\\"700\\\\\" \\\\\"14154\\\\\" \\\\\"14103\\\\\" \\\\\"14102\\\\\" \\\\\"12322\\\\\" \\\\\"10101\\\\\" \\\\\"7210\\\\\" \\\\\"4040\\\\\" \\\\\"9943\\\\\")) AND NOT (process_path:\\\\\"*\\\\\\\\\\\\\\\\Program Files*\\\\\")\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:Password-Dumper-Remote-Thread-in-LSASS' <<EOF
{
"type": "search",
"search": {
"description": "Detects password dumper activity by monitoring remote thread creation EventID 8 in combination with the lsass.exe process as TargetImage. The process in field Process is the malicious program. A single execution can lead to hundrets of events.",
"version": 1,
"columns": [],
"hits": 0,
"title": "Sigma: Password Dumper Remote Thread in LSASS",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"8\\\\\" AND target_process_path:\\\\\"C\\\\\\\\:\\\\\\\\\\\\\\\\Windows\\\\\\\\\\\\\\\\System32\\\\\\\\\\\\\\\\lsass.exe\\\\\" AND NOT _exists_:thread_startmodule)\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:WMI-Persistence---Command-Line-Event-Consumer' <<EOF
{
"type": "search",
"search": {
"description": "Detects WMI command line event consumers",
"version": 1,
"columns": [],
"hits": 0,
"title": "Sigma: WMI Persistence - Command Line Event Consumer",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"7\\\\\" AND process_path:\\\\\"C\\\\\\\\:\\\\\\\\\\\\\\\\Windows\\\\\\\\\\\\\\\\System32\\\\\\\\\\\\\\\\wbem\\\\\\\\\\\\\\\\WmiPrvSE.exe\\\\\" AND image_loaded:\\\\\"wbemcons.dll\\\\\")\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:PowerShell-Network-Connections' <<EOF
{
"type": "search",
"search": {
"description": "Detetcs a Powershell process that opens network connections - check for suspicious target ports and target systems - adjust to your environment (e.g. extend filters with company's ip range')",
"version": 1,
"columns": [],
"hits": 0,
"title": "Sigma: PowerShell Network Connections",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"3\\\\\" AND process_path:\\\\\"*\\\\\\\\\\\\\\\\powershell.exe\\\\\") AND NOT (dst_isipv6:\\\\\"false\\\\\" AND user:\\\\\"NT AUTHORITY\\\\\\\\\\\\\\\\SYSTEM\\\\\" AND dst_ip:(\\\\\"10.*\\\\\" \\\\\"192.168.*\\\\\" \\\\\"172.*\\\\\" \\\\\"127.0.0.1\\\\\"))\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:New-RUN-Key-Pointing-to-Suspicious-Folder' <<EOF
{
"type": "search",
"search": {
"description": "Detects suspicious new RUN key element pointing to an executable in a suspicious folder",
"version": 1,
"columns": [
"process_path"
],
"hits": 0,
"title": "Sigma: New RUN Key Pointing to Suspicious Folder",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"13\\\\\" AND registry_details:(\\\\\"C\\\\\\\\:\\\\\\\\\\\\\\\\Windows\\\\\\\\\\\\\\\\Temp\\\\\\\\*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\AppData\\\\\\\\*\\\\\" \\\\\"C\\\\\\\\:\\\\\\\\\\\\\\\\$Recycle.bin\\\\\\\\*\\\\\" \\\\\"C\\\\\\\\:\\\\\\\\\\\\\\\\Temp\\\\\\\\*\\\\\" \\\\\"C\\\\\\\\:\\\\\\\\\\\\\\\\Users\\\\\\\\\\\\\\\\Public\\\\\\\\*\\\\\" \\\\\"C\\\\\\\\:\\\\\\\\\\\\\\\\Users\\\\\\\\\\\\\\\\Default\\\\\\\\*\\\\\") AND registry_target_object:\\\\\"\\\\\\\\\\\\\\\\REGISTRY\\\\\\\\\\\\\\\\MACHINE\\\\\\\\\\\\\\\\SOFTWARE\\\\\\\\\\\\\\\\Microsoft\\\\\\\\\\\\\\\\Windows\\\\\\\\\\\\\\\\CurrentVersion\\\\\\\\\\\\\\\\Run\\\\\\\\*\\\\\")\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:Taskmgr-as-Parent' <<EOF
{
"type": "search",
"search": {
"description": "Detects the creation of a process from Windows task manager",
"version": 1,
"columns": [
"process_path",
"command_line",
"ParentCommandLine"
],
"hits": 0,
"title": "Sigma: Taskmgr as Parent",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"1\\\\\" AND process_parent_path:\\\\\"*\\\\\\\\\\\\\\\\taskmgr.exe\\\\\") AND NOT (process_path:(\\\\\"resmon.exe\\\\\" \\\\\"mmc.exe\\\\\"))\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:Sticky-Key-Like-Backdoor-Usage' <<EOF
{
"type": "search",
"search": {
"description": "Detects the usage and installation of a backdoor that uses an option to register a malicious debugger for built-in tools that are accessible in the login screen",
"version": 1,
"columns": [],
"hits": 0,
"title": "Sigma: Sticky Key Like Backdoor Usage",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"((event_id:\\\\\"1\\\\\" AND command_line:(\\\\\"*\\\\\\\\\\\\\\\\cmd.exe sethc.exe *\\\\\" \\\\\"*\\\\\\\\\\\\\\\\cmd.exe utilman.exe *\\\\\" \\\\\"*\\\\\\\\\\\\\\\\cmd.exe osk.exe *\\\\\" \\\\\"*\\\\\\\\\\\\\\\\cmd.exe Magnify.exe *\\\\\" \\\\\"*\\\\\\\\\\\\\\\\cmd.exe Narrator.exe *\\\\\" \\\\\"*\\\\\\\\\\\\\\\\cmd.exe DisplaySwitch.exe *\\\\\") AND process_parent_path:(\\\\\"*\\\\\\\\\\\\\\\\winlogon.exe\\\\\")) OR (event_id:\\\\\"13\\\\\" AND registry_target_object:(\\\\\"*\\\\\\\\\\\\\\\\SOFTWARE\\\\\\\\\\\\\\\\Microsoft\\\\\\\\\\\\\\\\Windows NT\\\\\\\\\\\\\\\\CurrentVersion\\\\\\\\\\\\\\\\Image File Execution Options\\\\\\\\\\\\\\\\sethc.exe\\\\\\\\\\\\\\\\Debugger\\\\\" \\\\\"*\\\\\\\\\\\\\\\\SOFTWARE\\\\\\\\\\\\\\\\Microsoft\\\\\\\\\\\\\\\\Windows NT\\\\\\\\\\\\\\\\CurrentVersion\\\\\\\\\\\\\\\\Image File Execution Options\\\\\\\\\\\\\\\\utilman.exe\\\\\\\\\\\\\\\\Debugger\\\\\" \\\\\"*\\\\\\\\\\\\\\\\SOFTWARE\\\\\\\\\\\\\\\\Microsoft\\\\\\\\\\\\\\\\Windows NT\\\\\\\\\\\\\\\\CurrentVersion\\\\\\\\\\\\\\\\Image File Execution Options\\\\\\\\\\\\\\\\osk.exe\\\\\\\\\\\\\\\\Debugger\\\\\" \\\\\"*\\\\\\\\\\\\\\\\SOFTWARE\\\\\\\\\\\\\\\\Microsoft\\\\\\\\\\\\\\\\Windows NT\\\\\\\\\\\\\\\\CurrentVersion\\\\\\\\\\\\\\\\Image File Execution Options\\\\\\\\\\\\\\\\Magnify.exe\\\\\\\\\\\\\\\\Debugger\\\\\" \\\\\"*\\\\\\\\\\\\\\\\SOFTWARE\\\\\\\\\\\\\\\\Microsoft\\\\\\\\\\\\\\\\Windows NT\\\\\\\\\\\\\\\\CurrentVersion\\\\\\\\\\\\\\\\Image File Execution Options\\\\\\\\\\\\\\\\Narrator.exe\\\\\\\\\\\\\\\\Debugger\\\\\" \\\\\"*\\\\\\\\\\\\\\\\SOFTWARE\\\\\\\\\\\\\\\\Microsoft\\\\\\\\\\\\\\\\Windows NT\\\\\\\\\\\\\\\\CurrentVersion\\\\\\\\\\\\\\\\Image File Execution Options\\\\\\\\\\\\\\\\DisplaySwitch.exe\\\\\\\\\\\\\\\\Debugger\\\\\") AND registry_event_type:\\\\\"SetValue\\\\\"))\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:Command-Line-Execution-with-suspicious-URL-and-AppData-Strings' <<EOF
{
"type": "search",
"search": {
"description": "Detects a suspicious command line execution that includes an URL and AppData string in the command line parameters as used by several droppers (js/vbs > powershell)",
"version": 1,
"columns": [
"command_line",
"ParentCommandLine"
],
"hits": 0,
"title": "Sigma: Command Line Execution with suspicious URL and AppData Strings",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"1\\\\\" AND command_line:(\\\\\"cmd.exe \\\\\\\\/c *http\\\\\\\\:\\\\\\\\/\\\\\\\\/*%AppData%\\\\\" \\\\\"cmd.exe \\\\\\\\/c *https\\\\\\\\:\\\\\\\\/\\\\\\\\/*%AppData%\\\\\"))\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:DHCP-Callout-DLL-installation' <<EOF
{
"type": "search",
"search": {
"description": "Detects the installation of a Callout DLL via CalloutDlls and CalloutEnabled parameter in Registry, which can be used to execute code in context of the DHCP server (restart required)",
"version": 1,
"columns": [],
"hits": 0,
"title": "Sigma: DHCP Callout DLL installation",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"13\\\\\" AND registry_target_object:(\\\\\"*\\\\\\\\\\\\\\\\Services\\\\\\\\\\\\\\\\DHCPServer\\\\\\\\\\\\\\\\Parameters\\\\\\\\\\\\\\\\CalloutDlls\\\\\" \\\\\"*\\\\\\\\\\\\\\\\Services\\\\\\\\\\\\\\\\DHCPServer\\\\\\\\\\\\\\\\Parameters\\\\\\\\\\\\\\\\CalloutEnabled\\\\\"))\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:Office-Macro-Starts-Cmd' <<EOF
{
"type": "search",
"search": {
"description": "Detects a Windows command line executable started from Microsoft Word or Excel",
"version": 1,
"columns": [
"command_line",
"ParentCommandLine"
],
"hits": 0,
"title": "Sigma: Office Macro Starts Cmd",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"1\\\\\" AND process_parent_path:(\\\\\"*\\\\\\\\\\\\\\\\WINWORD.EXE\\\\\" \\\\\"*\\\\\\\\\\\\\\\\EXCEL.EXE\\\\\") AND process_path:\\\\\"*\\\\\\\\\\\\\\\\cmd.exe\\\\\")\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:SquiblyTwo' <<EOF
{
"type": "search",
"search": {
"description": "Detects WMI SquiblyTwo Attack with possible renamed WMI by looking for imphash",
"version": 1,
"columns": [],
"hits": 0,
"title": "Sigma: SquiblyTwo",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"((event_id:\\\\\"1\\\\\" AND command_line:(\\\\\"wmic * *format\\\\\\\\:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"http*\\\\\" \\\\\"wmic * \\\\\\\\/format\\\\\\\\:'http\\\\\" \\\\\"wmic * \\\\\\\\/format\\\\\\\\:http*\\\\\") AND process_path:(\\\\\"*\\\\\\\\\\\\\\\\wmic.exe\\\\\")) OR (Imphash:(\\\\\"1B1A3F43BF37B5BFE60751F2EE2F326E\\\\\" \\\\\"37777A96245A3C74EB217308F3546F4C\\\\\" \\\\\"9D87C9D67CE724033C0B40CC4CA1B206\\\\\") AND event_id:\\\\\"1\\\\\" AND command_line:(\\\\\"* *format\\\\\\\\:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"http*\\\\\" \\\\\"* \\\\\\\\/format\\\\\\\\:'http\\\\\" \\\\\"* \\\\\\\\/format\\\\\\\\:http*\\\\\")))\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:Registry-Persistence-Mechanisms' <<EOF
{
"type": "search",
"search": {
"description": "Detects persistence registry keys",
"version": 1,
"columns": [],
"hits": 0,
"title": "Sigma: Registry Persistence Mechanisms",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"((event_id:\\\\\"13\\\\\" AND registry_target_object:(\\\\\"*\\\\\\\\\\\\\\\\SOFTWARE\\\\\\\\\\\\\\\\Microsoft\\\\\\\\\\\\\\\\Windows NT\\\\\\\\\\\\\\\\CurrentVersion\\\\\\\\\\\\\\\\Image File Execution Options\\\\\\\\*\\\\\\\\\\\\\\\\GlobalFlag\\\\\" \\\\\"*\\\\\\\\\\\\\\\\SOFTWARE\\\\\\\\\\\\\\\\Microsoft\\\\\\\\\\\\\\\\Windows NT\\\\\\\\\\\\\\\\CurrentVersion\\\\\\\\\\\\\\\\SilentProcessExit\\\\\\\\*\\\\\\\\\\\\\\\\ReportingMode\\\\\" \\\\\"*\\\\\\\\\\\\\\\\SOFTWARE\\\\\\\\\\\\\\\\Microsoft\\\\\\\\\\\\\\\\Windows NT\\\\\\\\\\\\\\\\CurrentVersion\\\\\\\\\\\\\\\\SilentProcessExit\\\\\\\\*\\\\\\\\\\\\\\\\MonitorProcess\\\\\") AND registry_event_type:\\\\\"SetValue\\\\\"))\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:Webshell-Detection-With-Command-Line-Keywords' <<EOF
{
"type": "search",
"search": {
"description": "Detects certain command line parameters often used during reconnissaince activity via web shells",
"version": 1,
"columns": [
"command_line",
"ParentCommandLine"
],
"hits": 0,
"title": "Sigma: Webshell Detection With Command Line Keywords",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"1\\\\\" AND command_line:(\\\\\"whoami\\\\\" \\\\\"net user\\\\\" \\\\\"ping \\\\\\\\-n\\\\\" \\\\\"systeminfo\\\\\") AND process_parent_path:(\\\\\"*\\\\\\\\\\\\\\\\apache*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\tomcat*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\w3wp.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\php\\\\\\\\-cgi.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\nginx.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\httpd.exe\\\\\"))\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:Microsoft-Binary-Github-Communication' <<EOF
{
"type": "search",
"search": {
"description": "Detects an executable in the Windows folder accessing github.com",
"version": 1,
"columns": [],
"hits": 0,
"title": "Sigma: Microsoft Binary Github Communication",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(dst_host:\\\\\"*.github.com\\\\\" AND event_id:\\\\\"3\\\\\" AND process_path:\\\\\"C\\\\\\\\:\\\\\\\\\\\\\\\\Windows\\\\\\\\*\\\\\")\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:Rundll32-Internet-Connection' <<EOF
{
"type": "search",
"search": {
"description": "Detects a rundll32 that communicates with piblic IP addresses",
"version": 1,
"columns": [],
"hits": 0,
"title": "Sigma: Rundll32 Internet Connection",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"3\\\\\" AND process_path:\\\\\"*\\\\\\\\\\\\\\\\rundll32.exe\\\\\") AND NOT (dst_ip:(\\\\\"10.*\\\\\" \\\\\"192.168.*\\\\\" \\\\\"172.*\\\\\"))\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:QuarksPwDump-Dump-File' <<EOF
{
"type": "search",
"search": {
"description": "Detects a dump file written by QuarksPwDump password dumper",
"version": 1,
"columns": [],
"hits": 0,
"title": "Sigma: QuarksPwDump Dump File",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"11\\\\\" AND file_name:\\\\\"*\\\\\\\\\\\\\\\\AppData\\\\\\\\\\\\\\\\Local\\\\\\\\\\\\\\\\Temp\\\\\\\\\\\\\\\\SAM\\\\\\\\-*.dmp*\\\\\")\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:Ping-Hex-IP' <<EOF
{
"type": "search",
"search": {
"description": "Detects a ping command that uses a hex encoded IP address",
"version": 1,
"columns": [
"ParentCommandLine"
],
"hits": 0,
"title": "Sigma: Ping Hex IP",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"1\\\\\" AND command_line:(\\\\\"*\\\\\\\\\\\\\\\\ping.exe 0x*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\ping 0x*\\\\\"))\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:PowerShell-Download-from-URL' <<EOF
{
"type": "search",
"search": {
"description": "Detetcs a Powershell process that contains download commands in its command line string",
"version": 1,
"columns": [
"command_line",
"ParentCommandLine"
],
"hits": 0,
"title": "Sigma: PowerShell Download from URL",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"1\\\\\" AND command_line:(\\\\\"*new\\\\\\\\-object system.net.webclient\\\\\\\\).downloadstring\\\\\\\\(*\\\\\" \\\\\"*new\\\\\\\\-object system.net.webclient\\\\\\\\).downloadfile\\\\\\\\(*\\\\\") AND process_path:\\\\\"*\\\\\\\\\\\\\\\\powershell.exe\\\\\")\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:Exploit-for-CVE-2017-0261' <<EOF
{
"type": "search",
"search": {
"description": "Detects Winword starting uncommon sub process FLTLDR.exe as used in exploits for CVE-2017-0261 and CVE-2017-0262",
"version": 1,
"columns": [],
"hits": 0,
"title": "Sigma: Exploit for CVE-2017-0261",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"1\\\\\" AND process_parent_path:\\\\\"*\\\\\\\\\\\\\\\\WINWORD.EXE\\\\\" AND process_path:\\\\\"*\\\\\\\\\\\\\\\\FLTLDR.exe*\\\\\")\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:System-File-Execution-Location-Anomaly' <<EOF
{
"type": "search",
"search": {
"description": "Detects a Windows program executable started in a suspicious folder",
"version": 1,
"columns": [],
"hits": 0,
"title": "Sigma: System File Execution Location Anomaly",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"1\\\\\" AND process_path:(\\\\\"*\\\\\\\\\\\\\\\\svchost.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\rundll32.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\services.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\powershell.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\regsvr32.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\spoolsv.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\lsass.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\smss.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\csrss.exe\\\\\" \\\\\"*\\\\\\\\\\\\\\\\conhost.exe\\\\\")) AND NOT (process_path:(\\\\\"*\\\\\\\\\\\\\\\\System32\\\\\\\\*\\\\\" \\\\\"*\\\\\\\\\\\\\\\\SysWow64\\\\\\\\*\\\\\"))\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:Suspicious-Reconnaissance-Activity' <<EOF
{
"type": "search",
"search": {
"description": "Detects suspicious command line activity on Windows systems",
"version": 1,
"columns": [
"command_line",
"ParentCommandLine"
],
"hits": 0,
"title": "Sigma: Suspicious Reconnaissance Activity",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"1\\\\\" AND command_line:(\\\\\"net group \\\\\\\\\\\\\"domain admins\\\\\\\\\\\\\" \\\\\\\\/domain\\\\\" \\\\\"net localgroup administrators\\\\\"))\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:Java-Running-with-Remote-Debugging' <<EOF
{
"type": "search",
"search": {
"description": "Detcts a JAVA process running with remote debugging allowing more than just localhost to connect",
"version": 1,
"columns": [
"command_line",
"ParentCommandLine"
],
"hits": 0,
"title": "Sigma: Java Running with Remote Debugging",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:\\\\\"1\\\\\" AND command_line:\\\\\"*transport\\\\\\\\=dt_socket,address\\\\\\\\=*\\\\\") AND NOT (command_line:\\\\\"*address\\\\\\\\=127.0.0.1*\\\\\" OR command_line:\\\\\"*address\\\\\\\\=localhost*\\\\\")\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:Malicious-Named-Pipe' <<EOF
{
"type": "search",
"search": {
"description": "Detects the creation of a named pipe used by known APT malware",
"version": 1,
"columns": [],
"hits": 0,
"title": "Sigma: Malicious Named Pipe",
"sort": [
"@timestamp",
"desc"
],
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"$index_logs__endpoint__winevent__sysmon__X\", \"filter\": [], \"query\": {\"query_string\": {\"query\": \"(event_id:(\\\\\"17\\\\\" \\\\\"18\\\\\") AND pipe_name:(\\\\\"\\\\\\\\\\\\\\\\isapi_http\\\\\" \\\\\"\\\\\\\\\\\\\\\\isapi_dg\\\\\" \\\\\"\\\\\\\\\\\\\\\\isapi_dg2\\\\\" \\\\\"\\\\\\\\\\\\\\\\sdlrpc\\\\\" \\\\\"\\\\\\\\\\\\\\\\ahexec\\\\\" \\\\\"\\\\\\\\\\\\\\\\winsession\\\\\" \\\\\"\\\\\\\\\\\\\\\\lsassw\\\\\" \\\\\"\\\\\\\\\\\\\\\\46a676ab7f179e511e30dd2dc41bd388\\\\\" \\\\\"\\\\\\\\\\\\\\\\9f81f59bc58452127884ce513865ed20\\\\\" \\\\\"\\\\\\\\\\\\\\\\e710f28d59aa529d6792ca6ff0ca1b34\\\\\" \\\\\"\\\\\\\\\\\\\\\\rpchlp_3\\\\\" \\\\\"\\\\\\\\\\\\\\\\NamePipe_MoreWindows\\\\\" \\\\\"\\\\\\\\\\\\\\\\pcheap_reuse\\\\\" \\\\\"\\\\\\\\\\\\\\\\NamePipe_MoreWindows\\\\\"))\", \"analyze_wildcard\": true}}, \"highlight\": {\"fields\": {\"*\": {}}, \"require_field_match\": false, \"post_tags\": [\"@/kibana-highlighted-field@\"], \"fragment_size\": 2147483647, \"pre_tags\": [\"@kibana-highlighted-field@\"]}}"
}
}
}
EOF
curl -s -XPUT -H 'Content-Type: application/json' --data-binary @- 'localhost:9200/.kibana/doc/search:Suspicious-Certutil-Command' <<EOF
{
"type": "search",
"search": {
"description": "Detetcs a suspicious Microsoft certutil execution with sub commands like 'decode' sub command, which is sometimes used to decode malicious code with the built-in certutil utility",
"version": 1,