-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrules_linux_medium.json
More file actions
2672 lines (2672 loc) · 133 KB
/
Copy pathrules_linux_medium.json
File metadata and controls
2672 lines (2672 loc) · 133 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
[
{
"title": "Suspicious Curl Change User Agents - Linux",
"id": "b86d356d-6093-443d-971c-9b07db583c68",
"status": "test",
"description": "Detects a suspicious curl process start on linux with set useragent options",
"author": "Nasreddine Bencherchali (Nextron Systems)",
"tags": [
"attack.command-and-control",
"attack.t1071.001"
],
"falsepositives": [
"Scripts created by developers and admins",
"Administrative activity"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE Image LIKE '%/curl' ESCAPE '\\' AND (CommandLine LIKE '% -A %' ESCAPE '\\' OR CommandLine LIKE '% --user-agent %' ESCAPE '\\')"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "ESXi VSAN Information Discovery Via ESXCLI",
"id": "d54c2f06-aca9-4e2b-81c9-5317858f4b79",
"status": "test",
"description": "Detects execution of the \"esxcli\" command with the \"vsan\" flag in order to retrieve information about virtual storage. Seen used by malware such as DarkSide.",
"author": "Nasreddine Bencherchali (Nextron Systems), Cedric Maurugeon",
"tags": [
"attack.discovery",
"attack.execution",
"attack.t1033",
"attack.t1007",
"attack.t1059.012"
],
"falsepositives": [
"Legitimate administration activities"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE (Image LIKE '%/esxcli' ESCAPE '\\' AND CommandLine LIKE '%vsan%' ESCAPE '\\') AND (CommandLine LIKE '% get%' ESCAPE '\\' OR CommandLine LIKE '% list%' ESCAPE '\\')"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "Enable BPF Kprobes Tracing",
"id": "7692f583-bd30-4008-8615-75dab3f08a99",
"status": "test",
"description": "Detects common command used to enable bpf kprobes tracing",
"author": "Nasreddine Bencherchali (Nextron Systems)",
"tags": [
"attack.execution",
"attack.stealth"
],
"falsepositives": [
"Unknown"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE (CommandLine LIKE '%echo 1 >%' ESCAPE '\\' AND CommandLine LIKE '%/sys/kernel/debug/tracing/events/kprobes/%' ESCAPE '\\') AND (CommandLine LIKE '%/myprobe/enable%' ESCAPE '\\' OR CommandLine LIKE '%/myretprobe/enable%' ESCAPE '\\')"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "Potential Linux Process Code Injection Via DD Utility",
"id": "4cad6c64-d6df-42d6-8dae-eb78defdc415",
"status": "test",
"description": "Detects the injection of code by overwriting the memory map of a Linux process using the \"dd\" Linux command.",
"author": "Joseph Kamau",
"tags": [
"attack.privilege-escalation",
"attack.stealth",
"attack.t1055.009"
],
"falsepositives": [
"Unknown"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE Image LIKE '%/dd' ESCAPE '\\' AND (CommandLine LIKE '%of=%' ESCAPE '\\' AND CommandLine LIKE '%/proc/%' ESCAPE '\\' AND CommandLine LIKE '%/mem%' ESCAPE '\\')"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "Print History File Contents",
"id": "d7821ff1-4527-4e33-9f84-d0d57fa2fb66",
"status": "test",
"description": "Detects events in which someone prints the contents of history files to the commandline or redirects it to a file for reconnaissance",
"author": "Florian Roth (Nextron Systems)",
"tags": [
"attack.reconnaissance",
"attack.t1592.004"
],
"falsepositives": [
"Legitimate administration activities"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE (Image LIKE '%/cat' ESCAPE '\\' OR Image LIKE '%/head' ESCAPE '\\' OR Image LIKE '%/tail' ESCAPE '\\' OR Image LIKE '%/more' ESCAPE '\\') AND ((CommandLine LIKE '%/.bash\\_history%' ESCAPE '\\' OR CommandLine LIKE '%/.zsh\\_history%' ESCAPE '\\') OR (CommandLine LIKE '%\\_history' ESCAPE '\\' OR CommandLine LIKE '%.history' ESCAPE '\\' OR CommandLine LIKE '%zhistory' ESCAPE '\\'))"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "PUA - TruffleHog Execution - Linux",
"id": "d7a650c4-226c-451e-948f-cc490db506aa",
"status": "experimental",
"description": "Detects execution of TruffleHog, a tool used to search for secrets in different platforms like Git, Jira, Slack, SharePoint, etc. that could be used maliciously.\nWhile it is a legitimate tool, intended for use in CI pipelines and security assessments,\nIt was observed in the Shai-Hulud malware campaign targeting npm packages to steal sensitive information.\n",
"author": "Swachchhanda Shrawan Poudel (Nextron Systems)",
"tags": [
"attack.discovery",
"attack.credential-access",
"attack.t1083",
"attack.t1552.001"
],
"falsepositives": [
"Legitimate use of TruffleHog by security teams or developers."
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE Image LIKE '%/trufflehog' ESCAPE '\\' OR ((CommandLine LIKE '% docker --image %' ESCAPE '\\' OR CommandLine LIKE '% Git %' ESCAPE '\\' OR CommandLine LIKE '% GitHub %' ESCAPE '\\' OR CommandLine LIKE '% Jira %' ESCAPE '\\' OR CommandLine LIKE '% Slack %' ESCAPE '\\' OR CommandLine LIKE '% Confluence %' ESCAPE '\\' OR CommandLine LIKE '% SharePoint %' ESCAPE '\\' OR CommandLine LIKE '% s3 %' ESCAPE '\\' OR CommandLine LIKE '% gcs %' ESCAPE '\\') AND CommandLine LIKE '% --results=verified%' ESCAPE '\\')"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "User Has Been Deleted Via Userdel",
"id": "08f26069-6f80-474b-8d1f-d971c6fedea0",
"status": "test",
"description": "Detects execution of the \"userdel\" binary. Which is used to delete a user account and related files. This is sometimes abused by threat actors in order to cover their tracks",
"author": "Tuan Le (NCSGroup)",
"tags": [
"attack.impact",
"attack.t1531"
],
"falsepositives": [
"Legitimate administrator activities"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE Image LIKE '%/userdel' ESCAPE '\\'"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "Access of Sudoers File Content",
"id": "0f79c4d2-4e1f-4683-9c36-b5469a665e06",
"status": "test",
"description": "Detects the execution of a text-based file access or inspection utilities to read the content of /etc/sudoers in order to potentially list all users that have sudo rights.",
"author": "Florian Roth (Nextron Systems)",
"tags": [
"attack.reconnaissance",
"attack.t1592.004"
],
"falsepositives": [
"Legitimate administration activities"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE (Image LIKE '%/cat' ESCAPE '\\' OR Image LIKE '%/ed' ESCAPE '\\' OR Image LIKE '%/egrep' ESCAPE '\\' OR Image LIKE '%/emacs' ESCAPE '\\' OR Image LIKE '%/fgrep' ESCAPE '\\' OR Image LIKE '%/grep' ESCAPE '\\' OR Image LIKE '%/head' ESCAPE '\\' OR Image LIKE '%/less' ESCAPE '\\' OR Image LIKE '%/more' ESCAPE '\\' OR Image LIKE '%/nano' ESCAPE '\\' OR Image LIKE '%/tail' ESCAPE '\\') AND CommandLine LIKE '% /etc/sudoers%' ESCAPE '\\'"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "Mount Execution With Hidepid Parameter",
"id": "ec52985a-d024-41e3-8ff6-14169039a0b3",
"status": "test",
"description": "Detects execution of the \"mount\" command with \"hidepid\" parameter to make invisible processes to other users from the system",
"author": "Joseliyo Sanchez, @Joseliyo_Jstnk",
"tags": [
"attack.credential-access",
"attack.stealth",
"attack.t1564"
],
"falsepositives": [
"Unknown"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE Image LIKE '%/mount' ESCAPE '\\' AND (CommandLine LIKE '%hidepid=2%' ESCAPE '\\' AND CommandLine LIKE '% -o %' ESCAPE '\\')"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "Pnscan Binary Data Transmission Activity",
"id": "97de11cd-4b67-4abf-9a8b-1020e670aa9e",
"status": "test",
"description": "Detects command line patterns associated with the use of Pnscan for sending and receiving binary data across the network.\nThis behavior has been identified in a Linux malware campaign targeting Docker, Apache Hadoop, Redis, and Confluence and was previously used by the threat actor known as TeamTNT\n",
"author": "David Burkett (@signalblur)",
"tags": [
"attack.discovery",
"attack.t1046"
],
"falsepositives": [
"Unknown"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE CommandLine REGEXP '-(W|R)\\s?(\\s|\"|')([0-9a-fA-F]{2}\\s?){2,20}(\\s|\"|')'"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "BPFtrace Unsafe Option Usage",
"id": "f8341cb2-ee25-43fa-a975-d8a5a9714b39",
"status": "test",
"description": "Detects the usage of the unsafe bpftrace option",
"author": "Andreas Hunkeler (@Karneades)",
"tags": [
"attack.execution",
"attack.t1059.004"
],
"falsepositives": [
"Legitimate usage of the unsafe option"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE Image LIKE '%bpftrace' ESCAPE '\\' AND CommandLine LIKE '%--unsafe%' ESCAPE '\\'"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "Linux Base64 Encoded Pipe to Shell",
"id": "ba592c6d-6888-43c3-b8c6-689b8fe47337",
"status": "test",
"description": "Detects suspicious process command line that uses base64 encoded input for execution with a shell",
"author": "pH-T (Nextron Systems)",
"tags": [
"attack.stealth",
"attack.t1140"
],
"falsepositives": [
"Legitimate administration activities"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE CommandLine LIKE '%base64 %' ESCAPE '\\' AND ((CommandLine LIKE '%| bash %' ESCAPE '\\' OR CommandLine LIKE '%| sh %' ESCAPE '\\' OR CommandLine LIKE '%|bash %' ESCAPE '\\' OR CommandLine LIKE '%|sh %' ESCAPE '\\') OR (CommandLine LIKE '% |sh' ESCAPE '\\' OR CommandLine LIKE '%| bash' ESCAPE '\\' OR CommandLine LIKE '%| sh' ESCAPE '\\' OR CommandLine LIKE '%|bash' ESCAPE '\\'))"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "ESXi System Information Discovery Via ESXCLI",
"id": "e80273e1-9faf-40bc-bd85-dbaff104c4e9",
"status": "test",
"description": "Detects execution of the \"esxcli\" command with the \"system\" flag in order to retrieve information about the different component of the system. Such as accounts, modules, NTP, etc.",
"author": "Cedric Maurugeon",
"tags": [
"attack.discovery",
"attack.execution",
"attack.t1033",
"attack.t1007",
"attack.t1059.012"
],
"falsepositives": [
"Legitimate administration activities"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE (Image LIKE '%/esxcli' ESCAPE '\\' AND CommandLine LIKE '%system%' ESCAPE '\\') AND (CommandLine LIKE '% get%' ESCAPE '\\' OR CommandLine LIKE '% list%' ESCAPE '\\')"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "Potentially Suspicious Execution From Tmp Folder",
"id": "312b42b1-bded-4441-8b58-163a3af58775",
"status": "test",
"description": "Detects a potentially suspicious execution of a process located in the '/tmp/' folder",
"author": "Joseliyo Sanchez, @Joseliyo_Jstnk",
"tags": [
"attack.stealth",
"attack.t1036"
],
"falsepositives": [
"Unknown"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE Image LIKE '/tmp/%' ESCAPE '\\' AND (NOT Image LIKE '%/usr/bin/nextcloud' ESCAPE '\\')"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "Python WebServer Execution - Linux",
"id": "3f0f5957-04f8-4792-ad89-192b0303bde6",
"status": "experimental",
"description": "Detects the execution of Python web servers via command line interface (CLI).\nAfter gaining access to target systems, adversaries may use Python's built-in HTTP server modules to quickly establish a web server without requiring additional software.\nThis technique is commonly used in post-exploitation scenarios as it provides a simple method for transferring files between the compromised host and attacker-controlled systems.\n",
"author": "Mohamed LAKRI",
"tags": [
"attack.exfiltration",
"attack.t1048.003"
],
"falsepositives": [
"Testing or development activity"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE ((Image LIKE '%/python' ESCAPE '\\' OR Image LIKE '%/python2' ESCAPE '\\' OR Image LIKE '%/python3' ESCAPE '\\') OR (Image LIKE '%/python2.%' ESCAPE '\\' OR Image LIKE '%/python3.%' ESCAPE '\\')) AND (CommandLine LIKE '%http.server%' ESCAPE '\\' OR CommandLine LIKE '%SimpleHTTPServer%' ESCAPE '\\')"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "Linux Logs Clearing Attempts",
"id": "80915f59-9b56-4616-9de0-fd0dea6c12fe",
"status": "stable",
"description": "Detects logs clearing attempts on Linux systems via utilities such as 'rm', 'rmdir', 'shred', and 'unlink' targeting log files and directories.\nAdversaries often try to clear logs to cover their tracks after performing malicious activities.\n",
"author": "\u00d6mer G\u00fcnal, oscd.community",
"tags": [
"attack.defense-impairment",
"attack.t1685.006"
],
"falsepositives": [
"Legitimate administration activities"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE ((Image LIKE '%/rm' ESCAPE '\\' OR Image LIKE '%/rmdir' ESCAPE '\\' OR Image LIKE '%/shred' ESCAPE '\\' OR Image LIKE '%/unlink' ESCAPE '\\') AND (CommandLine LIKE '%/var/log%' ESCAPE '\\' OR CommandLine LIKE '%/var/spool/mail%' ESCAPE '\\')) AND (NOT ((Image LIKE '%/rm' ESCAPE '\\' AND CommandLine LIKE 'rm -f /var/log/sysstat/%' ESCAPE '\\') OR (Image LIKE '%/rm' ESCAPE '\\' AND CommandLine LIKE 'rm -f -- /var/log//dmesg%' ESCAPE '\\')))"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "Chmod Targeting Sensitive Directories",
"id": "6419afd1-3742-47a5-a7e6-b50386cd15f8",
"status": "test",
"description": "Detects chmod targeting files in sensitive directory paths on Linux systems.\nAttackers may use chmod to change permissions of files in these directories to maintain persistence, escalate privileges, or disrupt system operations.\n",
"author": "Christopher Peacock @SecurePeacock, SCYTHE @scythe_io",
"tags": [
"attack.defense-impairment",
"attack.t1222.002"
],
"falsepositives": [
"Some false positives are to be expected. Apply additional filters as needed before pushing to production."
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE (Image LIKE '%/chmod' ESCAPE '\\' AND (CommandLine LIKE '%/tmp/%' ESCAPE '\\' OR CommandLine LIKE '%/.Library/%' ESCAPE '\\' OR CommandLine LIKE '%/etc/%' ESCAPE '\\' OR CommandLine LIKE '%/opt/%' ESCAPE '\\')) AND (NOT ((CommandLine LIKE '%chmod --reference=/etc/shells%' ESCAPE '\\' AND ParentCommandLine LIKE '%/update-shells' ESCAPE '\\') OR (CommandLine LIKE '%/etc/%' ESCAPE '\\' AND (ParentCommandLine LIKE '%/var/lib/dpkg/info/%' ESCAPE '\\' AND ParentCommandLine LIKE '%.postinst configure%' ESCAPE '\\')) OR CommandLine LIKE 'chmod 700 /tmp/apt-key-gpghome.%' ESCAPE '\\' OR CommandLine LIKE 'chmod 755 /var/tmp/mkinitramfs%' ESCAPE '\\' OR CommandLine='chmod 0775 /etc/landscape/' OR CommandLine='chmod 644 /etc/apparmor.d/tunables/home.d/ubuntu'))"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "Remove Scheduled Cron Task/Job",
"id": "c2e234de-03a3-41e1-b39a-1e56dc17ba67",
"status": "test",
"description": "Detects usage of the 'crontab' utility to remove the current crontab.\nThis is a common occurrence where cryptocurrency miners compete against each other by removing traces of other miners to hijack the maximum amount of resources possible\n",
"author": "Nasreddine Bencherchali (Nextron Systems)",
"tags": [
"attack.stealth"
],
"falsepositives": [
"Unknown"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE Image LIKE '%crontab' ESCAPE '\\' AND CommandLine LIKE '% -r%' ESCAPE '\\'"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "ESXi Network Configuration Discovery Via ESXCLI",
"id": "33e814e0-1f00-4e43-9c34-31fb7ae2b174",
"status": "test",
"description": "Detects execution of the \"esxcli\" command with the \"network\" flag in order to retrieve information about the network configuration.",
"author": "Cedric Maurugeon",
"tags": [
"attack.discovery",
"attack.execution",
"attack.t1033",
"attack.t1007",
"attack.t1059.012"
],
"falsepositives": [
"Legitimate administration activities"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE (Image LIKE '%/esxcli' ESCAPE '\\' AND CommandLine LIKE '%network%' ESCAPE '\\') AND (CommandLine LIKE '% get%' ESCAPE '\\' OR CommandLine LIKE '% list%' ESCAPE '\\')"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "Execution Of Script Located In Potentially Suspicious Directory",
"id": "30bcce26-51c5-49f2-99c8-7b59e3af36c7",
"status": "test",
"description": "Detects executions of scripts located in potentially suspicious locations such as \"/tmp\" via a shell such as \"bash\", \"sh\", etc.",
"author": "Joseliyo Sanchez, @Joseliyo_Jstnk",
"tags": [
"attack.execution"
],
"falsepositives": [
"Unknown"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE (Image LIKE '%/bash' ESCAPE '\\' OR Image LIKE '%/csh' ESCAPE '\\' OR Image LIKE '%/dash' ESCAPE '\\' OR Image LIKE '%/fish' ESCAPE '\\' OR Image LIKE '%/ksh' ESCAPE '\\' OR Image LIKE '%/sh' ESCAPE '\\' OR Image LIKE '%/zsh' ESCAPE '\\') AND CommandLine LIKE '% -c %' ESCAPE '\\' AND CommandLine LIKE '%/tmp/%' ESCAPE '\\'"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "Potential Suspicious Change To Sensitive/Critical Files",
"id": "86157017-c2b1-4d4a-8c33-93b8e67e4af4",
"status": "test",
"description": "Detects changes of sensitive and critical files. Monitors files that you don't expect to change without planning on Linux system.\nThese files include, but are not limited to, system configuration files, authentication files, and critical application files.\nAttackers often target these files to maintain persistence, escalate privileges, or disrupt system operations.\n",
"author": "@d4ns4n_ (Wuerth-Phoenix)",
"tags": [
"attack.impact",
"attack.t1565.001"
],
"falsepositives": [
"Some false positives are to be expected on user or administrator machines. Apply additional filters as needed."
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE (((Image LIKE '%/cat' ESCAPE '\\' OR Image LIKE '%/echo' ESCAPE '\\' OR Image LIKE '%/grep' ESCAPE '\\' OR Image LIKE '%/head' ESCAPE '\\' OR Image LIKE '%/more' ESCAPE '\\' OR Image LIKE '%/tail' ESCAPE '\\') AND CommandLine LIKE '%>%' ESCAPE '\\') OR (Image LIKE '%/emacs' ESCAPE '\\' OR Image LIKE '%/nano' ESCAPE '\\' OR Image LIKE '%/sed' ESCAPE '\\' OR Image LIKE '%/vi' ESCAPE '\\' OR Image LIKE '%/vim' ESCAPE '\\')) AND (CommandLine LIKE '%/bin/login%' ESCAPE '\\' OR CommandLine LIKE '%/bin/passwd%' ESCAPE '\\' OR CommandLine LIKE '%/boot/%' ESCAPE '\\' OR CommandLine LIKE '%/etc/%.conf%' ESCAPE '\\' OR CommandLine LIKE '%/etc/cron.%' ESCAPE '\\' OR CommandLine LIKE '%/etc/crontab%' ESCAPE '\\' OR CommandLine LIKE '%/etc/hosts%' ESCAPE '\\' OR CommandLine LIKE '%/etc/init.d%' ESCAPE '\\' OR CommandLine LIKE '%/etc/sudoers%' ESCAPE '\\' OR CommandLine LIKE '%/opt/bin/%' ESCAPE '\\' OR CommandLine LIKE '%/sbin%' ESCAPE '\\' OR CommandLine LIKE '%/usr/bin/%' ESCAPE '\\' OR CommandLine LIKE '%/usr/local/bin/%' ESCAPE '\\') AND (NOT (Image LIKE '%/bin/sed' ESCAPE '\\' AND (CommandLine LIKE 'sed -i /^%' ESCAPE '\\' OR CommandLine LIKE 'sed -ne s/^%' ESCAPE '\\') AND CommandLine LIKE '%/etc/mdadm/mdadm.conf' ESCAPE '\\'))"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "Linux Base64 Encoded Shebang In CLI",
"id": "fe2f9663-41cb-47e2-b954-8a228f3b9dff",
"status": "test",
"description": "Detects the presence of a base64 version of the shebang in the commandline, which could indicate a malicious payload about to be decoded",
"author": "Nasreddine Bencherchali (Nextron Systems)",
"tags": [
"attack.stealth",
"attack.t1140"
],
"falsepositives": [
"Legitimate administration activities"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE CommandLine LIKE '%IyEvYmluL2Jhc2%' ESCAPE '\\' OR CommandLine LIKE '%IyEvYmluL2Rhc2%' ESCAPE '\\' OR CommandLine LIKE '%IyEvYmluL3pza%' ESCAPE '\\' OR CommandLine LIKE '%IyEvYmluL2Zpc2%' ESCAPE '\\' OR CommandLine LIKE '%IyEvYmluL3No%' ESCAPE '\\'"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "User Added To Root/Sudoers Group Using Usermod",
"id": "6a50f16c-3b7b-42d1-b081-0fdd3ba70a73",
"status": "test",
"description": "Detects usage of the \"usermod\" binary to add users add users to the root or suoders groups",
"author": "TuanLe (GTSC)",
"tags": [
"attack.privilege-escalation",
"attack.persistence"
],
"falsepositives": [
"Legitimate administrator activities"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE Image LIKE '%/usermod' ESCAPE '\\' AND (CommandLine LIKE '%-aG root%' ESCAPE '\\' OR CommandLine LIKE '%-aG sudoers%' ESCAPE '\\')"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "Group Has Been Deleted Via Groupdel",
"id": "8a46f16c-8c4c-82d1-b121-0fdd3ba70a84",
"status": "test",
"description": "Detects execution of the \"groupdel\" binary. Which is used to delete a group. This is sometimes abused by threat actors in order to cover their tracks",
"author": "Tuan Le (NCSGroup)",
"tags": [
"attack.impact",
"attack.t1531"
],
"falsepositives": [
"Legitimate administrator activities"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE Image LIKE '%/groupdel' ESCAPE '\\'"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "ESXi Storage Information Discovery Via ESXCLI",
"id": "f41dada5-3f56-4232-8503-3fb7f9cf2d60",
"status": "test",
"description": "Detects execution of the \"esxcli\" command with the \"storage\" flag in order to retrieve information about the storage status and other related information. Seen used by malware such as DarkSide and LockBit.",
"author": "Nasreddine Bencherchali (Nextron Systems), Cedric Maurugeon",
"tags": [
"attack.discovery",
"attack.execution",
"attack.t1033",
"attack.t1007",
"attack.t1059.012"
],
"falsepositives": [
"Legitimate administration activities"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE (Image LIKE '%/esxcli' ESCAPE '\\' AND CommandLine LIKE '%storage%' ESCAPE '\\') AND (CommandLine LIKE '% get%' ESCAPE '\\' OR CommandLine LIKE '% list%' ESCAPE '\\')"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "Remove Immutable File Attribute",
"id": "34979410-e4b5-4e5d-8cfb-389fdff05c12",
"status": "test",
"description": "Detects usage of the 'chattr' utility to remove immutable file attribute.",
"author": "Nasreddine Bencherchali (Nextron Systems)",
"tags": [
"attack.defense-impairment",
"attack.t1222.002"
],
"falsepositives": [
"Administrator interacting with immutable files (e.g. for instance backups)."
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE Image LIKE '%/chattr' ESCAPE '\\' AND CommandLine LIKE '% -i %' ESCAPE '\\'"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "ESXi VM Kill Via ESXCLI",
"id": "2992ac4d-31e9-4325-99f2-b18a73221bb2",
"status": "test",
"description": "Detects execution of the \"esxcli\" command with the \"vm\" and \"kill\" flag in order to kill/shutdown a specific VM.",
"author": "Nasreddine Bencherchali (Nextron Systems), Cedric Maurugeon",
"tags": [
"attack.execution",
"attack.impact",
"attack.t1059.012",
"attack.t1529"
],
"falsepositives": [
"Legitimate administration activities"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE Image LIKE '%/esxcli' ESCAPE '\\' AND (CommandLine LIKE '%vm process%' ESCAPE '\\' AND CommandLine LIKE '%kill%' ESCAPE '\\')"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "Nohup Execution",
"id": "e4ffe466-6ff8-48d4-94bd-e32d1a6061e2",
"status": "test",
"description": "Detects usage of nohup which could be leveraged by an attacker to keep a process running or break out from restricted environments",
"author": "Christopher Peacock @SecurePeacock, SCYTHE @scythe_io",
"tags": [
"attack.execution",
"attack.t1059.004"
],
"falsepositives": [
"Administrators or installed processes that leverage nohup"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE Image LIKE '%/nohup' ESCAPE '\\'"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "Potential Discovery Activity Using Find - Linux",
"id": "8344c0e5-5783-47cc-9cf9-a0f7fd03e6cf",
"status": "test",
"description": "Detects usage of \"find\" binary in a suspicious manner to perform discovery",
"author": "Nasreddine Bencherchali (Nextron Systems)",
"tags": [
"attack.discovery",
"attack.t1083"
],
"falsepositives": [
"Unknown"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE Image LIKE '%/find' ESCAPE '\\' AND (CommandLine LIKE '%-perm -4000%' ESCAPE '\\' OR CommandLine LIKE '%-perm -2000%' ESCAPE '\\' OR CommandLine LIKE '%-perm 0777%' ESCAPE '\\' OR CommandLine LIKE '%-perm -222%' ESCAPE '\\' OR CommandLine LIKE '%-perm -o w%' ESCAPE '\\' OR CommandLine LIKE '%-perm -o x%' ESCAPE '\\' OR CommandLine LIKE '%-perm -u=s%' ESCAPE '\\' OR CommandLine LIKE '%-perm -g=s%' ESCAPE '\\')"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "Potential Ruby Reverse Shell",
"id": "b8bdac18-c06e-4016-ac30-221553e74f59",
"status": "test",
"description": "Detects execution of ruby with the \"-e\" flag and calls to \"socket\" related functions. This could be an indication of a potential attempt to setup a reverse shell",
"author": "@d4ns4n_",
"tags": [
"attack.execution"
],
"falsepositives": [
"Unknown"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE Image LIKE '%ruby%' ESCAPE '\\' AND (CommandLine LIKE '% -e%' ESCAPE '\\' AND CommandLine LIKE '%rsocket%' ESCAPE '\\' AND CommandLine LIKE '%TCPSocket%' ESCAPE '\\') AND (CommandLine LIKE '% ash%' ESCAPE '\\' OR CommandLine LIKE '% bash%' ESCAPE '\\' OR CommandLine LIKE '% bsh%' ESCAPE '\\' OR CommandLine LIKE '% csh%' ESCAPE '\\' OR CommandLine LIKE '% ksh%' ESCAPE '\\' OR CommandLine LIKE '% pdksh%' ESCAPE '\\' OR CommandLine LIKE '% sh%' ESCAPE '\\' OR CommandLine LIKE '% tcsh%' ESCAPE '\\')"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "Download File To Potentially Suspicious Directory Via Wget",
"id": "cf610c15-ed71-46e1-bdf8-2bd1a99de6c4",
"status": "test",
"description": "Detects the use of wget to download content to a suspicious directory",
"author": "Joseliyo Sanchez, @Joseliyo_Jstnk",
"tags": [
"attack.command-and-control",
"attack.t1105"
],
"falsepositives": [
"Unknown"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE Image LIKE '%/wget' ESCAPE '\\' AND (CommandLine REGEXP '\\s-O\\s' OR CommandLine LIKE '%--output-document%' ESCAPE '\\') AND CommandLine LIKE '%/tmp/%' ESCAPE '\\'"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "Disable Or Stop Services",
"id": "de25eeb8-3655-4643-ac3a-b662d3f26b6b",
"status": "test",
"description": "Detects the usage of utilities such as 'systemctl', 'service'...etc to stop or disable tools and services on Linux systems.\nAttackers may stop or disable security tools and services to evade detection, maintain persistence, or disrupt system operations.\n",
"author": "Nasreddine Bencherchali (Nextron Systems)",
"tags": [
"attack.defense-impairment",
"attack.t1685",
"attack.impact",
"attack.t1489"
],
"falsepositives": [
"Legitimate administration activities",
"Some false positives are to be expected. Apply additional filters as needed before pushing to production."
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE ((Image LIKE '%/service' ESCAPE '\\' OR Image LIKE '%/systemctl' ESCAPE '\\' OR Image LIKE '%/chkconfig' ESCAPE '\\') AND (CommandLine LIKE '% stop %' ESCAPE '\\' OR CommandLine LIKE '% disable %' ESCAPE '\\')) AND (NOT ((Image LIKE '%/systemctl' ESCAPE '\\' AND (CommandLine LIKE '%--no-reload disable snap-snapd-%' ESCAPE '\\' OR CommandLine LIKE '% stop snap-snapd-%' ESCAPE '\\')) OR (Image LIKE '%/systemctl' ESCAPE '\\' AND ParentCommandLine LIKE '%tmp.ci/preinst upgrade%' ESCAPE '\\' AND (CommandLine LIKE '% stop %' ESCAPE '\\' AND CommandLine LIKE '%ssh.%' ESCAPE '\\')) OR (ParentCommandLine LIKE '%/dpkg/info/ubuntu-pro-client.prerm upgrade%' ESCAPE '\\' AND Image LIKE '%/systemctl' ESCAPE '\\'))) AND (NOT (Image LIKE '%/systemctl' ESCAPE '\\' AND CommandLine LIKE '%snap.amazon-ssm-agent.amazon-ssm-agent.service' ESCAPE '\\'))"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "Suspicious Git Clone - Linux",
"id": "cfec9d29-64ec-4a0f-9ffe-0fdb856d5446",
"status": "test",
"description": "Detects execution of \"git\" in order to clone a remote repository that contain suspicious keywords which might be suspicious",
"author": "Nasreddine Bencherchali (Nextron Systems)",
"tags": [
"attack.reconnaissance",
"attack.t1593.003"
],
"falsepositives": [
"Unknown"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE (Image LIKE '%/git' ESCAPE '\\' AND CommandLine LIKE '% clone %' ESCAPE '\\') AND (CommandLine LIKE '%exploit%' ESCAPE '\\' OR CommandLine LIKE '%Vulns%' ESCAPE '\\' OR CommandLine LIKE '%vulnerability%' ESCAPE '\\' OR CommandLine LIKE '%RCE%' ESCAPE '\\' OR CommandLine LIKE '%RemoteCodeExecution%' ESCAPE '\\' OR CommandLine LIKE '%Invoke-%' ESCAPE '\\' OR CommandLine LIKE '%CVE-%' ESCAPE '\\' OR CommandLine LIKE '%poc-%' ESCAPE '\\' OR CommandLine LIKE '%ProofOfConcept%' ESCAPE '\\' OR CommandLine LIKE '%proxyshell%' ESCAPE '\\' OR CommandLine LIKE '%log4shell%' ESCAPE '\\' OR CommandLine LIKE '%eternalblue%' ESCAPE '\\' OR CommandLine LIKE '%eternal-blue%' ESCAPE '\\' OR CommandLine LIKE '%MS17-%' ESCAPE '\\')"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "Suspicious Package Installed - Linux",
"id": "700fb7e8-2981-401c-8430-be58e189e741",
"status": "test",
"description": "Detects installation of suspicious packages using system installation utilities",
"author": "Nasreddine Bencherchali (Nextron Systems)",
"tags": [
"attack.defense-impairment",
"attack.t1553.004"
],
"falsepositives": [
"Legitimate administration activities"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE (((Image LIKE '%/apt' ESCAPE '\\' OR Image LIKE '%/apt-get' ESCAPE '\\') AND CommandLine LIKE '%install%' ESCAPE '\\') OR (Image LIKE '%/yum' ESCAPE '\\' AND (CommandLine LIKE '%localinstall%' ESCAPE '\\' OR CommandLine LIKE '%install%' ESCAPE '\\')) OR (Image LIKE '%/rpm' ESCAPE '\\' AND CommandLine LIKE '%-i%' ESCAPE '\\') OR (Image LIKE '%/dpkg' ESCAPE '\\' AND (CommandLine LIKE '%--install%' ESCAPE '\\' OR CommandLine LIKE '%-i%' ESCAPE '\\'))) AND (CommandLine LIKE '%nmap%' ESCAPE '\\' OR CommandLine LIKE '% nc%' ESCAPE '\\' OR CommandLine LIKE '%netcat%' ESCAPE '\\' OR CommandLine LIKE '%wireshark%' ESCAPE '\\' OR CommandLine LIKE '%tshark%' ESCAPE '\\' OR CommandLine LIKE '%openconnect%' ESCAPE '\\' OR CommandLine LIKE '%proxychains%' ESCAPE '\\' OR CommandLine LIKE '%socat%' ESCAPE '\\')"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "Disabling Security Tools",
"id": "e3a8a052-111f-4606-9aee-f28ebeb76776",
"status": "test",
"description": "Detects disabling security tools",
"author": "\u00d6mer G\u00fcnal, Alejandro Ortuno, oscd.community",
"tags": [
"attack.defense-impairment",
"attack.t1686"
],
"falsepositives": [
"Legitimate administration activities"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE (Image LIKE '%/service' ESCAPE '\\' AND (CommandLine LIKE '%iptables%' ESCAPE '\\' AND CommandLine LIKE '%stop%' ESCAPE '\\')) OR (Image LIKE '%/service' ESCAPE '\\' AND (CommandLine LIKE '%ip6tables%' ESCAPE '\\' AND CommandLine LIKE '%stop%' ESCAPE '\\')) OR (Image LIKE '%/chkconfig' ESCAPE '\\' AND (CommandLine LIKE '%iptables%' ESCAPE '\\' AND CommandLine LIKE '%stop%' ESCAPE '\\')) OR (Image LIKE '%/chkconfig' ESCAPE '\\' AND (CommandLine LIKE '%ip6tables%' ESCAPE '\\' AND CommandLine LIKE '%stop%' ESCAPE '\\')) OR (Image LIKE '%/systemctl' ESCAPE '\\' AND (CommandLine LIKE '%firewalld%' ESCAPE '\\' AND CommandLine LIKE '%stop%' ESCAPE '\\')) OR (Image LIKE '%/systemctl' ESCAPE '\\' AND (CommandLine LIKE '%firewalld%' ESCAPE '\\' AND CommandLine LIKE '%disable%' ESCAPE '\\')) OR (Image LIKE '%/service' ESCAPE '\\' AND (CommandLine LIKE '%cbdaemon%' ESCAPE '\\' AND CommandLine LIKE '%stop%' ESCAPE '\\')) OR (Image LIKE '%/chkconfig' ESCAPE '\\' AND (CommandLine LIKE '%cbdaemon%' ESCAPE '\\' AND CommandLine LIKE '%off%' ESCAPE '\\')) OR (Image LIKE '%/systemctl' ESCAPE '\\' AND (CommandLine LIKE '%cbdaemon%' ESCAPE '\\' AND CommandLine LIKE '%stop%' ESCAPE '\\')) OR (Image LIKE '%/systemctl' ESCAPE '\\' AND (CommandLine LIKE '%cbdaemon%' ESCAPE '\\' AND CommandLine LIKE '%disable%' ESCAPE '\\')) OR (Image LIKE '%/setenforce' ESCAPE '\\' AND CommandLine LIKE '%0%' ESCAPE '\\') OR (Image LIKE '%/systemctl' ESCAPE '\\' AND (CommandLine LIKE '%stop%' ESCAPE '\\' AND CommandLine LIKE '%falcon-sensor%' ESCAPE '\\')) OR (Image LIKE '%/systemctl' ESCAPE '\\' AND (CommandLine LIKE '%disable%' ESCAPE '\\' AND CommandLine LIKE '%falcon-sensor%' ESCAPE '\\'))"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "Python Spawning Pretty TTY Via PTY Module",
"id": "c4042d54-110d-45dd-a0e1-05c47822c937",
"status": "test",
"description": "Detects a python process calling to the PTY module in order to spawn a pretty tty which could be indicative of potential reverse shell activity.\n",
"author": "Nextron Systems",
"tags": [
"attack.execution",
"attack.t1059"
],
"falsepositives": [
"Unknown"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE ((Image LIKE '%/python' ESCAPE '\\' OR Image LIKE '%/python2' ESCAPE '\\' OR Image LIKE '%/python3' ESCAPE '\\') OR (Image LIKE '%/python2.%' ESCAPE '\\' OR Image LIKE '%/python3.%' ESCAPE '\\')) AND (CommandLine LIKE '%import pty%' ESCAPE '\\' OR CommandLine LIKE '%from pty %' ESCAPE '\\') AND CommandLine LIKE '%spawn%' ESCAPE '\\'"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "Shell Invocation via Apt - Linux",
"id": "bb382fd5-b454-47ea-a264-1828e4c766d6",
"status": "test",
"description": "Detects the use of the \"apt\" and \"apt-get\" commands to execute a shell or proxy commands.\nSuch behavior may be associated with privilege escalation, unauthorized command execution, or to break out from restricted environments.\n",
"author": "Nasreddine Bencherchali (Nextron Systems)",
"tags": [
"attack.discovery",
"attack.t1083"
],
"falsepositives": [
"Unknown"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE (Image LIKE '%/apt' ESCAPE '\\' OR Image LIKE '%/apt-get' ESCAPE '\\') AND CommandLine LIKE '%APT::Update::Pre-Invoke::=%' ESCAPE '\\'"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "Potential Xterm Reverse Shell",
"id": "4e25af4b-246d-44ea-8563-e42aacab006b",
"status": "test",
"description": "Detects usage of \"xterm\" as a potential reverse shell tunnel",
"author": "@d4ns4n_",
"tags": [
"attack.execution",
"attack.t1059"
],
"falsepositives": [
"Unknown"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE Image LIKE '%xterm%' ESCAPE '\\' AND CommandLine LIKE '%-display%' ESCAPE '\\' AND CommandLine LIKE '%:1' ESCAPE '\\'"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "Potential Linux Amazon SSM Agent Hijacking",
"id": "f9b3edc5-3322-4fc7-8aa3-245d646cc4b7",
"status": "test",
"description": "Detects potential Amazon SSM agent hijack attempts as outlined in the Mitiga research report.",
"author": "Muhammad Faisal",
"tags": [
"attack.command-and-control",
"attack.persistence",
"attack.t1219.002"
],
"falsepositives": [
"Legitimate activity of system administrators"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE Image LIKE '%/amazon-ssm-agent' ESCAPE '\\' AND (CommandLine LIKE '%-register %' ESCAPE '\\' AND CommandLine LIKE '%-code %' ESCAPE '\\' AND CommandLine LIKE '%-id %' ESCAPE '\\' AND CommandLine LIKE '%-region %' ESCAPE '\\')"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "Touch Suspicious Service File",
"id": "31545105-3444-4584-bebf-c466353230d2",
"status": "test",
"description": "Detects usage of the \"touch\" process in service file.",
"author": "Joseliyo Sanchez, @Joseliyo_Jstnk",
"tags": [
"attack.stealth",
"attack.t1070.006"
],
"falsepositives": [
"Admin changing date of files."
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE Image LIKE '%/touch' ESCAPE '\\' AND CommandLine LIKE '% -t %' ESCAPE '\\' AND CommandLine LIKE '%.service' ESCAPE '\\'"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "Scheduled Cron Task/Job - Linux",
"id": "6b14bac8-3e3a-4324-8109-42f0546a347f",
"status": "test",
"description": "Detects abuse of the cron utility to perform task scheduling for initial or recurring execution of malicious code. Detection will focus on crontab jobs uploaded from the tmp folder.",
"author": "Alejandro Ortuno, oscd.community",
"tags": [
"attack.execution",
"attack.persistence",
"attack.privilege-escalation",
"attack.t1053.003"
],
"falsepositives": [
"Legitimate administration activities"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE Image LIKE '%crontab' ESCAPE '\\' AND CommandLine LIKE '%/tmp/%' ESCAPE '\\'"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "ESXi Account Creation Via ESXCLI",
"id": "b28e4eb3-8bbc-4f0c-819f-edfe8e2f25db",
"status": "test",
"description": "Detects user account creation on ESXi system via esxcli",
"author": "Cedric Maurugeon",
"tags": [
"attack.persistence",
"attack.execution",
"attack.t1136",
"attack.t1059.012"
],
"falsepositives": [
"Legitimate administration activities"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE Image LIKE '%/esxcli' ESCAPE '\\' AND (CommandLine LIKE '%system %' ESCAPE '\\' AND CommandLine LIKE '%account %' ESCAPE '\\' AND CommandLine LIKE '%add %' ESCAPE '\\')"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "Linux Shell Pipe to Shell",
"id": "880973f3-9708-491c-a77b-2a35a1921158",
"status": "test",
"description": "Detects suspicious process command line that starts with a shell that executes something and finally gets piped into another shell",
"author": "Florian Roth (Nextron Systems)",
"tags": [
"attack.stealth",
"attack.t1140"
],
"falsepositives": [
"Legitimate software that uses these patterns"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE (CommandLine LIKE 'sh -c %' ESCAPE '\\' OR CommandLine LIKE 'bash -c %' ESCAPE '\\') AND ((CommandLine LIKE '%| bash %' ESCAPE '\\' OR CommandLine LIKE '%| sh %' ESCAPE '\\' OR CommandLine LIKE '%|bash %' ESCAPE '\\' OR CommandLine LIKE '%|sh %' ESCAPE '\\') OR (CommandLine LIKE '%| bash' ESCAPE '\\' OR CommandLine LIKE '%| sh' ESCAPE '\\' OR CommandLine LIKE '%|bash' ESCAPE '\\' OR CommandLine LIKE '% |sh' ESCAPE '\\'))"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "UFW Disable Attempt",
"id": "84c9e83c-599a-458a-a0cb-0ecce44e807a",
"status": "test",
"description": "Detects attempts to disable the Uncomplicated Firewall (UFW) on Linux systems.\nUFW is a popular firewall management tool that provides an easy-to-use interface for configuring firewall rules.\nDisabling UFW can leave a system vulnerable to attacks, as it may allow unauthorized access to network services and resources.\n",
"author": "Joseliyo Sanchez, @Joseliyo_Jstnk",
"tags": [
"attack.defense-impairment",
"attack.t1686"
],
"falsepositives": [
"Legitimate actions by system administrators to disable UFW."
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE (Image LIKE '%/ufw-init' ESCAPE '\\' AND (CommandLine LIKE '% force-stop%' ESCAPE '\\' OR CommandLine LIKE '% stop%' ESCAPE '\\' OR CommandLine LIKE '% flush%' ESCAPE '\\')) OR (CommandLine LIKE '%ufw %' ESCAPE '\\' AND CommandLine LIKE '%disable%' ESCAPE '\\')"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "ESXi VM List Discovery Via ESXCLI",
"id": "5f1573a7-363b-4114-9208-ad7a61de46eb",
"status": "test",
"description": "Detects execution of the \"esxcli\" command with the \"vm\" flag in order to retrieve information about the installed VMs.",
"author": "Cedric Maurugeon",
"tags": [
"attack.discovery",
"attack.execution",
"attack.t1033",
"attack.t1007",
"attack.t1059.012"
],
"falsepositives": [
"Legitimate administration activities"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE Image LIKE '%/esxcli' ESCAPE '\\' AND CommandLine LIKE '%vm process%' ESCAPE '\\' AND CommandLine LIKE '% list' ESCAPE '\\'"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "Potentially Suspicious Named Pipe Created Via Mkfifo",
"id": "999c3b12-0a8c-40b6-8e13-dd7d62b75c7a",
"status": "test",
"description": "Detects the creation of a new named pipe using the \"mkfifo\" utility in a potentially suspicious location",
"author": "Nasreddine Bencherchali (Nextron Systems)",
"tags": [
"attack.execution"
],
"falsepositives": [
"Unknown"
],
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE Image LIKE '%/mkfifo' ESCAPE '\\' AND CommandLine LIKE '% /tmp/%' ESCAPE '\\'"
],
"filename": "",
"channel": [],
"eventid": []
},
{
"title": "Interactive Bash Suspicious Children",
"id": "ea3ecad2-db86-4a89-ad0b-132a10d2db55",
"status": "test",
"description": "Detects suspicious interactive bash as a parent to rather uncommon child processes",
"author": "Florian Roth (Nextron Systems)",
"tags": [