-
Notifications
You must be signed in to change notification settings - Fork 203
/
0020-syslog_rules.xml
952 lines (794 loc) · 32.7 KB
/
0020-syslog_rules.xml
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
<!--
- Syslog rules
- Author: Daniel Cid.
- Updated by Wazuh, Inc.
- Copyright (C) 2015-2020, Wazuh Inc.
- Copyright (C) 2009 Trend Micro Inc.
- This program is a free software; you can redistribute it and/or modify it under the terms of GPLv2.
-->
<!-- Default variables for the SYSLOG rules. -->
<!-- Bad words matching. Any log containing these messages will be triggered. -->
<var name="BAD_WORDS">core_dumped|failure|error|attack| bad |illegal |denied|refused|unauthorized|fatal|failed|Segmentation Fault|Corrupted</var>
<!-- Syslog errors. -->
<group name="syslog,errors,">
<rule id="1001" level="2">
<match>^Couldn't open /etc/securetty</match>
<description>File missing. Root access unrestricted.</description>
<group>pci_dss_10.2.4,gpg13_4.1,gdpr_IV_35.7.d,hipaa_164.312.b,nist_800_53_AU.14,nist_800_53_AC.7,tsc_CC6.1,tsc_CC6.8,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
<rule id="1002" level="2">
<match>$BAD_WORDS</match>
<description>Unknown problem somewhere in the system.</description>
<group>gpg13_4.3,</group>
</rule>
<rule id="1003" level="13" maxsize="1025" noalert="1">
<description>Non standard syslog message (size too large).</description>
<mitre>
<id>T1499</id>
</mitre>
<group>gpg13_4.3,</group>
</rule>
<rule id="1004" level="5">
<match>^exiting on signal</match>
<description>Syslogd exiting (logging stopped).</description>
<group>pci_dss_10.6.1,gpg13_10.1,gpg13_4.14,gdpr_IV_35.7.d,hipaa_164.312.b,nist_800_53_AU.6,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
<rule id="1005" level="5">
<program_name>syslogd</program_name>
<match>^restart</match>
<description>Syslogd restarted.</description>
<group>pci_dss_10.6.1,gpg13_10.1,gpg13_4.14,gdpr_IV_35.7.d,hipaa_164.312.b,nist_800_53_AU.6,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
<rule id="1006" level="5">
<regex>^syslogd \S+ restart</regex>
<description>Syslogd restarted.</description>
<group>pci_dss_10.6.1,gpg13_10.1,gpg13_4.14,gdpr_IV_35.7.d,hipaa_164.312.b,nist_800_53_AU.6,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
<rule id="1007" level="7">
<match>file system full|No space left on device</match>
<description>File system full.</description>
<group>low_diskspace,pci_dss_10.6.1,gpg13_4.1,gdpr_IV_35.7.d,hipaa_164.312.b,nist_800_53_AU.6,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
<rule id="1008" level="5">
<match>killed by SIGTERM</match>
<description>Process exiting (killed).</description>
<group>service_availability,pci_dss_10.6.1,gpg13_4.3,gpg13_4.14,gdpr_IV_35.7.d,hipaa_164.312.b,nist_800_53_AU.6,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
<rule id="1009" level="0">
<if_sid>1002</if_sid>
<match>terminated without error|can't verify hostname: getaddrinfo|</match>
<match>PPM exceeds tolerance</match>
<description>Ignoring known false positives on rule 1002.</description>
</rule>
<rule id="1010" level="5">
<match>segfault at </match>
<description>Process segfaulted.</description>
<group>service_availability,gdpr_IV_35.7.d,</group>
</rule>
</group> <!-- SYSLOG,ERRORS -->
<!-- NFS messages -->
<group name="syslog,nfs,">
<!-- XXX All These NFS rules need to be fixed. -->
<rule id="2100" level="0" noalert="1">
<program_name>^automount|^mount</program_name>
<description>NFS rules grouped.</description>
</rule>
<rule id="2101" level="4">
<if_sid>2100</if_sid>
<match>nfs: mount failure</match>
<description>Unable to mount the NFS share.</description>
<group>pci_dss_10.6.3</group>
</rule>
<rule id="2102" level="4">
<if_sid>2100</if_sid>
<match>reason given by server: Permission denied</match>
<description>Unable to mount the NFS directory.</description>
<group>pci_dss_10.6.3</group>
</rule>
<rule id="2103" level="4">
<match>^rpc.mountd: refused mount request from</match>
<description>Unable to mount the NFS directory.</description>
<group>pci_dss_10.6.3</group>
</rule>
<rule id="2104" level="2">
<if_sid>2100</if_sid>
<regex>lookup for \S+ failed</regex>
<description>Automount informative message.</description>
<group>pci_dss_10.6.1,hipaa_164.312.b</group>
</rule>
</group> <!-- SYSLOG,NFS -->
<!-- xinetd messages -->
<group name="syslog,xinetd,">
<rule id="2301" level="10">
<match>^Deactivating service </match>
<description>xinetd: Excessive number connections to a service.</description>
<mitre>
<id>T1499</id>
</mitre>
<group>pci_dss_10.6.1,gdpr_IV_35.7.d,hipaa_164.312.b,nist_800_53_AU.6,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
</group> <!-- SYSLOG,XINETD -->
<!-- Access control messages -->
<group name="syslog,access_control,">
<rule id="2501" level="5">
<match>FAILED LOGIN |authentication failure|</match>
<match>Authentication failed for|invalid password for|</match>
<match>LOGIN FAILURE|auth failure: |authentication error|</match>
<match>authinternal failed|Failed to authorize|</match>
<match>Wrong password given for|login failed|Auth: Login incorrect|</match>
<match>Failed to authenticate user</match>
<group>authentication_failed,pci_dss_10.2.4,pci_dss_10.2.5,gpg13_7.8,gdpr_IV_35.7.d,gdpr_IV_32.2,hipaa_164.312.b,nist_800_53_AU.14,nist_800_53_AC.7,tsc_CC6.1,tsc_CC6.8,tsc_CC7.2,tsc_CC7.3,</group>
<description>syslog: User authentication failure.</description>
</rule>
<rule id="2502" level="10">
<match>more authentication failures;|REPEATED login failures</match>
<description>syslog: User missed the password more than one time</description>
<mitre>
<id>T1110</id>
</mitre>
<group>authentication_failed,pci_dss_10.2.4,pci_dss_10.2.5,gpg13_7.8,gdpr_IV_35.7.d,gdpr_IV_32.2,hipaa_164.312.b,nist_800_53_AU.14,nist_800_53_AC.7,tsc_CC6.1,tsc_CC6.8,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
<rule id="2503" level="5">
<regex>^refused connect from|</regex>
<regex>^libwrap refused connection|</regex>
<regex>Connection from \S+ denied</regex>
<description>syslog: Connection blocked by Tcp Wrappers.</description>
<mitre>
<id>T1095</id>
</mitre>
<group>access_denied,pci_dss_10.2.4,gdpr_IV_35.7.d,hipaa_164.312.b,nist_800_53_AU.14,nist_800_53_AC.7,tsc_CC6.1,tsc_CC6.8,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
<rule id="2504" level="9">
<match>ILLEGAL ROOT LOGIN|ROOT LOGIN REFUSED</match>
<description>syslog: Illegal root login.</description>
<mitre>
<id>T1169</id>
</mitre>
<group>invalid_login,pci_dss_10.2.4,pci_dss_10.2.5,pci_dss_10.2.2,gpg13_7.8,gdpr_IV_35.7.d,gdpr_IV_32.2,hipaa_164.312.b,nist_800_53_AU.14,nist_800_53_AC.7,nist_800_53_AC.6,tsc_CC6.1,tsc_CC6.8,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
<rule id="2505" level="3">
<match>^ROOT LOGIN on</match>
<description>syslog: Physical root login.</description>
<group>pci_dss_10.2.2,gpg13_7.8,gdpr_IV_32.2,hipaa_164.312.b,nist_800_53_AU.14,nist_800_53_AC.6,tsc_CC6.8,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
<rule id="2506" level="3">
<match>^Authentication passed</match>
<description>syslog: Pop3 Authentication passed.</description>
<group>pci_dss_10.2.5,gpg13_7.1,gdpr_IV_35.7.d,gdpr_IV_32.2,hipaa_164.312.b,nist_800_53_AU.14,nist_800_53_AC.7,tsc_CC6.8,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
<rule id="2507" level="0">
<decoded_as>openldap</decoded_as>
<description>OpenLDAP group.</description>
</rule>
<rule id="2508" level="3">
<if_sid>2507</if_sid>
<match>ACCEPT from</match>
<description>OpenLDAP connection open.</description>
<group>gdpr_IV_32.2,</group>
</rule>
<rule id="2509" level="5" timeframe="10" frequency="2">
<if_sid>2507</if_sid>
<if_matched_sid>2508</if_matched_sid>
<same_id />
<match>RESULT tag=97 err=49</match>
<description>OpenLDAP authentication failed.</description>
<group>pci_dss_10.2.4,pci_dss_10.2.5,gpg13_7.1,gdpr_IV_35.7.d,gdpr_IV_32.2,hipaa_164.312.b,nist_800_53_AU.14,nist_800_53_AC.7,tsc_CC6.1,tsc_CC6.8,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
</group> <!-- SYSLOG,ACESSCONTROL -->
<!-- rshd -->
<group name="syslog,access_control,">
<rule id="2550" level="0" noalert="1">
<decoded_as>rshd</decoded_as>
<description>rshd messages grouped.</description>
</rule>
<rule id="2551" level="10">
<if_sid>2550</if_sid>
<regex>^Connection from \S+ on illegal port$</regex>
<description>Connection to rshd from unprivileged port. Possible network scan.</description>
<mitre>
<id>T1046</id>
</mitre>
<group>connection_attempt,pci_dss_10.6.1,gpg13_7.1,gdpr_IV_35.7.d,hipaa_164.312.b,nist_800_53_AU.6,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
</group>
<!-- Mail/Procmail messages -->
<group name="syslog,mail,">
<rule id="2701" level="0">
<program_name>^procmail</program_name>
<description>Ignoring procmail messages.</description>
</rule>
</group> <!-- SYSLOG,SENDMAIL -->
<!-- Smartd messages -->
<group name="syslog,smartd,">
<rule id="2800" level="0" noalert="1">
<program_name>^smart</program_name>
<description>Pre-match rule for smartd.</description>
</rule>
<rule id="2801" level="0">
<if_sid>2800</if_sid>
<match>No configuration file /etc/smartd.conf found</match>
<description>Smartd Started but not configured.</description>
<group>pci_dss_10.6.1,hipaa_164.312.b</group>
</rule>
<rule id="2802" level="0">
<if_sid>2800</if_sid>
<match>Unable to register ATA device</match>
<description>Smartd configuration problem.</description>
</rule>
<rule id="2803" level="0">
<if_sid>2800</if_sid>
<match>No such device or address</match>
<description>Device configured but not available to Smartd.</description>
<group>pci_dss_10.6.1,hipaa_164.312.b</group>
</rule>
</group> <!-- SYSLOG,SMARTD -->
<!-- Linux Kernel messages -->
<group name="syslog,linuxkernel,">
<rule id="5100" level="0" noalert="1">
<program_name>^kernel</program_name>
<description>Pre-match rule for kernel messages.</description>
</rule>
<rule id="5101" level="0">
<if_sid>5100</if_sid>
<match>PCI: if you experience problems, try using option</match>
<description>Informative message from the kernel.</description>
<group>pci_dss_10.6.1,hipaa_164.312.b</group>
</rule>
<rule id="5102" level="0">
<if_sid>5100</if_sid>
<match>modprobe: Can't locate module sound</match>
<description>Informative message from the kernel.</description>
<group>pci_dss_10.6.1,hipaa_164.312.b</group>
</rule>
<rule id="5103" level="9">
<if_sid>5100</if_sid>
<match>Oversized packet received from</match>
<description>Error message from the kernel. </description>
<description>Ping of death attack.</description>
<mitre>
<id>T1499</id>
</mitre>
<group>gdpr_IV_35.7.d,</group>
</rule>
<rule id="5104" level="8">
<if_sid>5100</if_sid>
<regex>Promiscuous mode enabled|</regex>
<regex>device \S+ entered promiscuous mode</regex>
<description>Interface entered in promiscuous(sniffing) mode.</description>
<mitre>
<id>T1040</id>
</mitre>
<group>promisc,pci_dss_10.6.1,pci_dss_11.4,gpg13_4.13,gdpr_IV_35.7.d,hipaa_164.312.b,nist_800_53_AU.6,nist_800_53_SI.4,tsc_CC7.2,tsc_CC7.3,tsc_CC6.1,tsc_CC6.8,</group>
</rule>
<rule id="5105" level="0">
<if_sid>5100</if_sid>
<match>end_request: I/O error, dev fd0, sector 0|</match>
<match>Buffer I/O error on device fd0, logical block 0</match>
<description>Invalid request to /dev/fd0 (bug on the kernel).</description>
<group>pci_dss_10.6.1,hipaa_164.312.b</group>
</rule>
<rule id="5106" level="0">
<if_sid>5100</if_sid>
<match>svc: unknown program 100227 (me 100003)</match>
<description>NFS incompatibility between Linux and Solaris.</description>
<group>pci_dss_10.6.1,hipaa_164.312.b</group>
</rule>
<rule id="5107" level="0">
<if_sid>5100</if_sid>
<match>svc: bad direction </match>
<description>NFS incompatibility between Linux and Solaris.</description>
<group>pci_dss_10.6.1,hipaa_164.312.b</group>
</rule>
<rule id="5108" level="12">
<if_sid>5100</if_sid>
<match>Out of Memory: </match>
<description>System running out of memory. </description>
<description>Availability of the system is in risk.</description>
<mitre>
<id>T1499</id>
</mitre>
<group>service_availability,pci_dss_10.6.1,gpg13_4.12,gdpr_IV_35.7.d,hipaa_164.312.b,nist_800_53_AU.6,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
<rule id="5109" level="4">
<if_sid>5100</if_sid>
<match>I/O error: dev |end_request: I/O error, dev</match>
<description>Kernel Input/Output error.</description>
<group>pci_dss_10.6.1,hipaa_164.312.b</group>
</rule>
<rule id="5110" level="4">
<if_sid>5100</if_sid>
<match>Forged DCC command from</match>
<description>IRC misconfiguration.</description>
</rule>
<rule id="5111" level="0">
<if_sid>5100</if_sid>
<match>ipw2200: Firmware error detected.| ACPI Error</match>
<description>Kernel device error.</description>
<group>pci_dss_10.6.1,hipaa_164.312.b</group>
</rule>
<rule id="5112" level="0">
<if_sid>5100</if_sid>
<match>usbhid: probe of</match>
<description>Kernel usbhid probe error (ignored).</description>
<group>pci_dss_10.6.1,hipaa_164.312.b</group>
</rule>
<rule id="5113" level="7">
<if_sid>5100</if_sid>
<match>Kernel log daemon terminating</match>
<group>system_shutdown,pci_dss_10.6.1,gpg13_4.14,gdpr_IV_35.7.d,hipaa_164.312.b,nist_800_53_AU.6,tsc_CC7.2,tsc_CC7.3,</group>
<description>System is shutting down.</description>
<mitre>
<id>T1529</id>
</mitre>
</rule>
<rule id="5130" level="7">
<if_sid>5100</if_sid>
<match>ADSL line is down</match>
<description>Monitor ADSL line is down.</description>
</rule>
<rule id="5131" level="3">
<if_sid>5100</if_sid>
<match>ADSL line is up</match>
<description>Monitor ADSL line is up.</description>
</rule>
<rule id="5132" level="11">
<if_sid>5100</if_sid>
<match>module verification failed</match>
<description>Unsigned kernel module was loaded</description>
<mitre>
<id>T1215</id>
</mitre>
</rule>
<rule id="5133" level="11">
<if_sid>5100</if_sid>
<match>PKCS#7 signature not signed with a trusted key</match>
<description>Signed but untrusted kernel module was loaded</description>
<mitre>
<id>T1215</id>
</mitre>
</rule>
<rule id="5134" level="7">
<program_name>^rngd</program_name>
<match>failure</match>
<description>RNGD failure</description>
</rule>
<rule id="5135" level="7">
<if_sid>5100</if_sid>
<match>Disk failure</match>
<description>RAID disk failure</description>
</rule>
<rule id="5136" level="2">
<program_name>^mdadm</program_name>
<description>General RAID mdadm event</description>
</rule>
<rule id="5137" level="7">
<if_sid>5136</if_sid>
<match>Fail</match>
<description>RAID mdadm disk failure</description>
</rule>
<rule id="5138" level="7">
<if_sid>5100</if_sid>
<regex>ata\S+: failed command</regex>
<description>General SATA disk failure</description>
</rule>
<rule id="5139" level="7">
<if_sid>5100</if_sid>
<match>device not ready</match>
<description>General device failure</description>
</rule>
<rule id="5140" level="2">
<program_name>^zpool</program_name>
<description>General ZFS pool event</description>
</rule>
<rule id="5141" level="7">
<if_sid>5140</if_sid>
<match>cannot import</match>
<description>Cannot import a ZFS pool due to an error</description>
</rule>
<rule id="5200" level="0">
<match>^hpiod: unable to ParDevice</match>
<description>Ignoring hpiod for producing useless logs.</description>
<group>pci_dss_10.6.1,hipaa_164.312.b</group>
</rule>
</group> <!-- SYSLOG,LINUXKERNEL -->
<!-- Cron messages -->
<group name="syslog,cron,">
<rule id="2830" level="0">
<program_name>crond|crontab</program_name>
<description>Crontab rule group.</description>
</rule>
<rule id="2831" level="0">
<if_sid>2830</if_sid>
<match>^unable to exec</match>
<description>Wrong crond configuration.</description>
</rule>
<rule id="2834" level="5">
<if_sid>2830</if_sid>
<match>BEGIN EDIT</match>
<description>Crontab opened for editing.</description>
</rule>
<rule id="2832" level="5">
<if_sid>2830</if_sid>
<match>REPLACE</match>
<description>Crontab entry changed.</description>
<group>pci_dss_10.2.7,pci_dss_10.6.1,gpg13_4.13,gdpr_IV_35.7.d,hipaa_164.312.b,nist_800_53_AU.14,nist_800_53_AU.6,tsc_CC6.8,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
<rule id="2833" level="8">
<if_sid>2832</if_sid>
<match>^(root)</match>
<description>Root's crontab entry changed.</description>
<mitre>
<id>T1169</id>
</mitre>
<group>pci_dss_10.2.7,pci_dss_10.6.1,pci_dss_10.2.2,gpg13_4.13,gdpr_IV_35.7.d,gdpr_IV_32.2,hipaa_164.312.b,nist_800_53_AU.14,nist_800_53_AU.6,nist_800_53_AC.6,tsc_CC6.8,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
</group> <!-- SYSLOG,CRON -->
<!-- Su messages -->
<group name="syslog,su,">
<rule id="5300" level="0" noalert="1">
<decoded_as>su</decoded_as>
<description>Initial grouping for su messages.</description>
</rule>
<rule id="5301" level="5">
<if_sid>5300</if_sid>
<match>authentication failure; |failed|BAD su|^-</match>
<description>User missed the password to change UID (user id).</description>
<group>authentication_failed,pci_dss_10.2.4,pci_dss_10.2.5,gpg13_7.8,gdpr_IV_35.7.d,gdpr_IV_32.2,hipaa_164.312.b,nist_800_53_AU.14,nist_800_53_AC.7,tsc_CC6.1,tsc_CC6.8,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
<rule id="5302" level="9">
<if_sid>5301</if_sid>
<user>^root</user>
<description>User missed the password to change UID to root.</description>
<mitre>
<id>T1169</id>
</mitre>
<group>authentication_failed,pci_dss_10.2.4,pci_dss_10.2.5,gpg13_7.8,gdpr_IV_35.7.d,gdpr_IV_32.2,hipaa_164.312.b,nist_800_53_AU.14,nist_800_53_AC.7,tsc_CC6.1,tsc_CC6.8,tsc_CC7.2,tsc_CC7.3,tsc_CC7.4</group>
</rule>
<rule id="5303" level="3">
<if_sid>5300</if_sid>
<regex>session opened for user root|^'su root'|</regex>
<regex>^+ \S+ \S+\proot$|^\S+ to root on|^SU \S+ \S+ + \S+ \S+-root$</regex>
<description>User successfully changed UID to root.</description>
<mitre>
<id>T1078</id>
</mitre>
<group>authentication_success,pci_dss_10.2.5,gpg13_7.6,gpg13_7.8,gpg13_7.9,gdpr_IV_35.7.d,gdpr_IV_32.2,hipaa_164.312.b,nist_800_53_AU.14,nist_800_53_AC.7,tsc_CC6.8,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
<rule id="5304" level="3">
<if_sid>5300</if_sid>
<regex>session opened for user|succeeded for|</regex>
<regex>^+|^\S+ to |^SU \S+ \S+ + </regex>
<description>User successfully changed UID.</description>
<mitre>
<id>T1078</id>
</mitre>
<group>authentication_success,pci_dss_10.2.5,gpg13_7.6,gpg13_7.8,gdpr_IV_35.7.d,gdpr_IV_32.2,hipaa_164.312.b,nist_800_53_AU.14,nist_800_53_AC.7,tsc_CC6.8,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
<rule id="5305" level="4">
<if_sid>5303, 5304</if_sid>
<if_fts></if_fts>
<description>First time (su) is executed by user.</description>
</rule>
<rule id="5306" level="0">
<if_sid>5300</if_sid>
<match>unknown class</match>
<info>OpenBSD uses login classes, and an inappropriate login class was used.</info>
<description>A user has attempted to su to an unknown class.</description>
<group>pci_dss_10.6.1,hipaa_164.312.b</group>
</rule>
</group> <!-- SYSLOG,SU -->
<!-- Tripwire messages -->
<group name="syslog,tripwire,">
<rule id="7101" level="8">
<match>Integrity Check failed: File could not</match>
<description>Problems with the tripwire checking.</description>
<group>pci_dss_10.5.5,pci_dss_10.6.1,gdpr_II_5.1.f,gdpr_IV_35.7.d,hipaa_164.312.b,nist_800_53_AU.9,nist_800_53_AU.6,tsc_PI1.4,tsc_PI1.5,tsc_CC7.1,tsc_CC7.2,tsc_CC7.3,tsc_CC8.1,</group>
</rule>
</group> <!-- SYSLOG,TRIPWIRE -->
<!-- Adduser messages -->
<group name="syslog,adduser,">
<rule id="5901" level="8">
<match>^new group</match>
<description>New group added to the system.</description>
<group>pci_dss_10.2.7,pci_dss_10.2.5,pci_dss_8.1.2,gpg13_4.13,gdpr_IV_35.7.d,gdpr_IV_32.2,hipaa_164.312.b,hipaa_164.312.a.2.I,hipaa_164.312.a.2.II,nist_800_53_AU.14,nist_800_53_AC.7,nist_800_53_AC.2,nist_800_53_IA.4,tsc_CC6.8,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
<rule id="5902" level="8">
<match>^new user|^new account added</match>
<description>New user added to the system.</description>
<mitre>
<id>T1136</id>
</mitre>
<group>pci_dss_10.2.7,pci_dss_10.2.5,pci_dss_8.1.2,gpg13_4.13,gdpr_IV_35.7.d,gdpr_IV_32.2,hipaa_164.312.b,hipaa_164.312.a.2.I,hipaa_164.312.a.2.II,nist_800_53_AU.14,nist_800_53_AC.7,nist_800_53_AC.2,nist_800_53_IA.4,tsc_CC6.8,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
<rule id="5903" level="3">
<match>^delete user|^account deleted|^remove group</match>
<description>Group (or user) deleted from the system.</description>
<mitre>
<id>T1531</id>
</mitre>
<group>pci_dss_10.2.7,pci_dss_10.2.5,pci_dss_8.1.2,gpg13_4.13,gdpr_IV_35.7.d,gdpr_IV_32.2,hipaa_164.312.b,hipaa_164.312.a.2.I,hipaa_164.312.a.2.II,nist_800_53_AU.14,nist_800_53_AC.7,nist_800_53_AC.2,nist_800_53_IA.4,tsc_CC6.8,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
<rule id="5904" level="8">
<match>^changed user</match>
<description>Information from the user was changed.</description>
<mitre>
<id>T1098</id>
</mitre>
<group>pci_dss_10.2.7,pci_dss_10.2.5,pci_dss_8.1.2,gpg13_4.13,gdpr_IV_35.7.d,gdpr_IV_32.2,hipaa_164.312.b,hipaa_164.312.a.2.I,hipaa_164.312.a.2.II,nist_800_53_AU.14,nist_800_53_AC.7,nist_800_53_AC.2,nist_800_53_IA.4,tsc_CC6.8,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
<rule id="5905" level="0">
<program_name>useradd</program_name>
<match>failed adding user </match>
<description>useradd failed.</description>
</rule>
</group> <!-- SYSLOG,ADDUSER -->
<!-- Sudo messages -->
<group name="syslog,sudo,">
<rule id="5400" level="0" noalert="1">
<decoded_as>sudo</decoded_as>
<description>Initial group for sudo messages.</description>
</rule>
<rule id="5401" level="5">
<if_sid>5400</if_sid>
<match>incorrect password attempt</match>
<description>Failed attempt to run sudo.</description>
<mitre>
<id>T1169</id>
</mitre>
<group>pci_dss_10.2.4,pci_dss_10.2.5,gpg13_7.8,gdpr_IV_35.7.d,gdpr_IV_32.2,hipaa_164.312.b,nist_800_53_AU.14,nist_800_53_AC.7,tsc_CC6.1,tsc_CC6.8,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
<rule id="5402" level="3">
<if_sid>5400</if_sid>
<regex> ; USER=root ; COMMAND=| ; USER=root ; TSID=\S+ ; COMMAND=</regex>
<description>Successful sudo to ROOT executed.</description>
<mitre>
<id>T1169</id>
</mitre>
<group>pci_dss_10.2.5,pci_dss_10.2.2,gpg13_7.6,gpg13_7.8,gpg13_7.13,gdpr_IV_32.2,hipaa_164.312.b,nist_800_53_AU.14,nist_800_53_AC.7,nist_800_53_AC.6,tsc_CC6.8,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
<rule id="5407" level="3">
<if_sid>5400</if_sid>
<regex> ; USER=\S+ ; COMMAND=| ; USER=\S+ ; TSID=\S+ ; COMMAND=</regex>
<description>Successful sudo executed.</description>
<mitre>
<id>T1169</id>
</mitre>
<group>pci_dss_10.2.5,pci_dss_10.2.2,gpg13_7.6,gpg13_7.8,gpg13_7.13,gdpr_IV_32.2,tsc_CC6.8,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
<rule id="5403" level="4">
<if_sid>5400</if_sid>
<if_fts></if_fts>
<description>First time user executed sudo.</description>
<mitre>
<id>T1169</id>
</mitre>
</rule>
<rule id="5404" level="10">
<if_sid>5401</if_sid>
<match>3 incorrect password attempts</match>
<description>Three failed attempts to run sudo</description>
<mitre>
<id>T1169</id>
</mitre>
<group>pci_dss_10.2.4,pci_dss_10.2.5,gpg13_7.8,gdpr_IV_35.7.d,gdpr_IV_32.2,hipaa_164.312.b,nist_800_53_AU.14,nist_800_53_AC.7,tsc_CC6.1,tsc_CC6.8,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
<rule id="5405" level="5">
<if_sid>5400</if_sid>
<match>user NOT in sudoers</match>
<description>Unauthorized user attempted to use sudo.</description>
<mitre>
<id>T1169</id>
</mitre>
<group>pci_dss_10.2.2,pci_dss_10.2.5,gpg13_7.8,gdpr_IV_35.7.d,gdpr_IV_32.2,hipaa_164.312.b,nist_800_53_AU.14,nist_800_53_AC.6,nist_800_53_AC.7,tsc_CC6.8,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
<rule id="5406" level="5">
<if_sid>5400</if_sid>
<match>command not allowed</match>
<description>Command not allowed.</description>
<group>pci_dss_10.2.4,pci_dss_10.2.5,gpg13_7.8,gdpr_IV_35.7.d,gdpr_IV_32.2,hipaa_164.312.b,nist_800_53_AU.14,nist_800_53_AC.7,tsc_CC6.1,tsc_CC6.8,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
</group> <!-- SYSLOG, SUDO -->
<!-- PPTP messages -->
<group name="syslog,pptp,">
<rule id="9100" level="0" noalert="1">
<program_name>^pptpd</program_name>
<description>PPTPD messages grouped.</description>
</rule>
<rule id="9101" level="0">
<if_sid>9100</if_sid>
<regex>^GRE: \S+ from \S+ failed: status = -1 </regex>
<description>PPTPD failed message (communication error).</description>
<info type="link">http://poptop.sourceforge.net/dox/gre-protocol-unavailable.phtml</info>
</rule>
<rule id="9102" level="0">
<if_sid>9100</if_sid>
<match>^tcflush failed: Bad file descriptor</match>
<description>PPTPD communication error.</description>
</rule>
</group>
<!-- Syslog FTS -->
<group name="syslog,fts,">
<rule id="10100" level="4">
<if_group>authentication_success</if_group>
<if_fts></if_fts>
<group>authentication_success,</group>
<description>First time user logged in.</description>
<mitre>
<id>T1078</id>
</mitre>
</rule>
</group>
<group name="syslog,squid,">
<rule id="9200" level="0" noalert="1">
<program_name>^squid</program_name>
<description>Squid syslog messages grouped.</description>
</rule>
<rule id="9201" level="0">
<if_sid>9200</if_sid>
<match>^ctx: enter level|^sslRead|^urlParse: Illegal |</match>
<match>^httpReadReply: Request not yet |^httpReadReply: Excess data</match>
<description>Squid debug message.</description>
<group>pci_dss_10.6.1,hipaa_164.312.b</group>
</rule>
</group>
<!-- 2015-10-08 17:21:56 remove libsmokebase3v5:amd64 4:4.14.3-1 <none> -->
<!-- 2018-08-02 00:03:36 status installed nano:amd64 2.5.3-2ubuntu2 -->
<!-- 2016-01-14 13:20:51 status half-configured gconf2:amd64 3.2.6-0ubuntu2 -->
<!-- 2016-01-14 13:20:51 trigproc gconf2:amd64 3.2.6-0ubuntu2 -->
<group name="syslog,dpkg,">
<rule id="2900" level="0">
<decoded_as>dpkg-decoder</decoded_as>
<description>Dpkg (Debian Package) log.</description>
</rule>
<rule id="2901" level="3">
<if_sid>2900</if_sid>
<field name="dpkg_status">^install$</field>
<description>New dpkg (Debian Package) requested to install.</description>
<group>pci_dss_10.6.1,gpg13_4.10,gdpr_IV_35.7.d,hipaa_164.312.b,nist_800_53_AU.6,tsc_CC7.2,tsc_CC7.3,tsc_CC8.1,</group>
</rule>
<rule id="2902" level="7">
<if_sid>2900</if_sid>
<field name="dpkg_status">^status installed$</field>
<description>New dpkg (Debian Package) installed.</description>
<group>config_changed,pci_dss_10.6.1,pci_dss_10.2.7,gpg13_4.10,gdpr_IV_35.7.d,hipaa_164.312.b,nist_800_53_AU.6,nist_800_53_AU.14,tsc_CC7.2,tsc_CC7.3,tsc_CC6.8,tsc_CC8.1,</group>
</rule>
<rule id="2903" level="7">
<if_sid>2900</if_sid>
<field name="dpkg_status">^remove$|^purge$</field>
<description>Dpkg (Debian Package) removed.</description>
<group>config_changed,pci_dss_10.6.1,pci_dss_10.2.7,gpg13_4.10,gdpr_IV_35.7.d,hipaa_164.312.b,nist_800_53_AU.6,nist_800_53_AU.14,tsc_CC7.2,tsc_CC7.3,tsc_CC6.8,tsc_CC8.1,</group>
</rule>
<rule id="2904" level="7">
<if_sid>2900</if_sid>
<field name="dpkg_status">^status half-configured$</field>
<description>Dpkg (Debian Package) half configured.</description>
<group>config_changed,pci_dss_10.6.1,pci_dss_10.2.7,gpg13_4.10,gdpr_IV_35.7.d,hipaa_164.312.b,nist_800_53_AU.6,nist_800_53_AU.14,tsc_CC7.2,tsc_CC7.3,tsc_CC6.8,tsc_CC8.1,</group>
</rule>
</group>
<group name="syslog,yum,">
<rule id="2930" level="0">
<program_name>^yum</program_name>
<description>Yum logs.</description>
</rule>
<rule id="2931" level="0">
<hostname>yum.log$</hostname>
<match>^Installed|^Updated|^Erased</match>
<description>Yum logs.</description>
<group>pci_dss_10.6.1,hipaa_164.312.b</group>
</rule>
<rule id="2932" level="7">
<if_sid>2930,2931</if_sid>
<match>^Installed</match>
<group>config_changed,pci_dss_10.6.1,pci_dss_10.2.7,gpg13_4.10,gdpr_IV_35.7.d,hipaa_164.312.b,nist_800_53_AU.6,nist_800_53_AU.14,tsc_CC7.2,tsc_CC7.3,tsc_CC6.8,tsc_CC8.1,</group>
<description>New Yum package installed.</description>
</rule>
<rule id="2933" level="7">
<if_sid>2930,2931</if_sid>
<match>^Updated</match>
<group>config_changed,pci_dss_10.6.1,pci_dss_10.2.7,gpg13_4.10,gdpr_IV_35.7.d,hipaa_164.312.b,nist_800_53_AU.6,nist_800_53_AU.14,tsc_CC7.2,tsc_CC7.3,tsc_CC6.8,tsc_CC8.1,</group>
<description>Yum package updated.</description>
</rule>
<rule id="2934" level="7">
<if_sid>2930,2931</if_sid>
<match>^Erased</match>
<group>config_changed,pci_dss_10.6.1,pci_dss_10.2.7,gpg13_4.10,gdpr_IV_35.7.d,hipaa_164.312.b,nist_800_53_AU.6,nist_800_53_AU.14,tsc_CC7.2,tsc_CC7.3,tsc_CC6.8,tsc_CC8.1,</group>
<description>Yum package deleted.</description>
</rule>
<!-- SCSI CONTROLLER -->
<rule id="2935" level="0" noalert="1">
<if_sid>5100</if_sid>
<id>mptscsih</id>
<description>Grouping for the mptscrih rules.</description>
</rule>
<rule id="2936" level="0" noalert="1">
<if_sid>5100</if_sid>
<id>mptbase</id>
<description>Grouping for the mptbase rules.</description>
</rule>
<rule id="2937" level="12">
<if_sid>2935</if_sid>
<status>FAILED</status>
<description>Possible Disk failure. SCSI controller error.</description>
<group>pci_dss_10.6.1,gpg13_4.3,gdpr_IV_35.7.d,hipaa_164.312.b,nist_800_53_AU.6,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
<rule id="2938" level="12">
<if_sid>2936</if_sid>
<action>failed</action>
<description>SCSI RAID ARRAY ERROR, drive failed.</description>
<group>pci_dss_10.6.1,gpg13_4.3,gdpr_IV_35.7.d,hipaa_164.312.b,nist_800_53_AU.6,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
<rule id="2939" level="12">
<if_sid>2936</if_sid>
<action>degraded</action>
<description>SCSI RAID is now in a degraded status.</description>
<group>pci_dss_10.6.1,gpg13_4.3,gdpr_IV_35.7.d,hipaa_164.312.b,nist_800_53_AU.6,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
<rule id="2940" level="0">
<program_name>^NetworkManager</program_name>
<description>NetworkManager grouping.</description>
</rule>
<rule id="2941" level="3">
<if_sid>2940</if_sid>
<match> No chain/target/match by that name.$</match>
<description>Incorrect chain/target/match.</description>
</rule>
<rule id="2942" level="0">
<if_sid>1002</if_sid>
<match>g_slice_set_config: assertion `sys_page_size == 0' failed</match>
<description>Uninteresting gnome error.</description>
</rule>
<rule id="2943" level="0">
<match>^nouveau </match>
<description>nouveau driver grouping.</description>
</rule>
<rule id="2944" level="1">
<if_sid>2943</if_sid>
<match> DATA_ERROR BEGIN_END_ACTIVE$| DATA_ERROR$</match>
<description>Uninteresting nouveau error.</description>
</rule>
<rule id="2945" level="4">
<program_name>^rsyslogd</program_name>
<match>^imuxsock begins to drop messages </match>
<info>https://isc.sans.edu/diary/Are+you+losing+system+logging+information+%28and+don%27t+know+it%29%3F/15106</info>
<description>rsyslog may be dropping messages due to rate-limiting.</description>
</rule>
<rule id="2960" level="2">
<decoded_as>gpasswd</decoded_as>
<match>added by</match>
<description>User added to group.</description>
<mitre>
<id>T1136</id>
</mitre>
<group>gpg13_7.9,gpg13_4.13,gdpr_IV_32.2,</group>
</rule>
<rule id="2961" level="5">
<if_sid>2960</if_sid>
<field name="group">sudo</field>
<description>User added to group sudo.</description>
<mitre>
<id>T1136</id>
</mitre>
<group>gpg13_7.9,gpg13_4.13,gdpr_IV_32.2,</group>
</rule>
</group>
<group name="syslog,perdition,">
<rule id="2962" level="0">
<decoded_as>perdition</decoded_as>
<description>Perdition custom app group.</description>
</rule>
<rule id="2963" level="3">
<if_sid>2962</if_sid>
<match>Connect: </match>
<description>perdition: New connection.</description>
<group>connection_attempt,pci_dss_10.6.1,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
<rule id="2964" level="10" frequency="4" timeframe="30">
<if_matched_sid>2963</if_matched_sid>
<same_source_ip />
<description>perdition: Multiple connection attempts from same source.</description>
<mitre>
<id>T1499</id>
</mitre>
<group>recon,pci_dss_11.4,tsc_CC6.1,tsc_CC6.8,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
</group>