@@ -31,6 +31,10 @@ ruleset(name="zroot" queue.type="Direct") {
31
31
then {
32
32
call zpublic
33
33
}
34
+
35
+ if ($programname == 'audit') then stop
36
+ if ($programname == 'systemd-logind') then stop
37
+
34
38
# TODO: Look up ssh keys and annotate with whose key it is
35
39
# Publicly log all root sessions, except cron or sudo
36
40
if (re_match($msg, '^ pam_unix\\([^:]+:session\\): session \\S+ for user root')) then {
@@ -62,7 +66,8 @@ ruleset(name="zroot" queue.type="Direct") {
62
66
if ($msg startswith ' Close session: ') then stop
63
67
if (re_match($msg, '^ Connection from \\S+ port \\S+')) then stop
64
68
if ($msg startswith ' Invalid user') then stop
65
- if ($msg startswith ' Disconnecting invalid user') then stop
69
+ if ($msg startswith ' Did not receive identification string') then stop
70
+ if ($msg startswith ' Disconnecting') then stop
66
71
if ($msg startswith ' input_userauth_request: invalid user') then stop
67
72
if ($msg startswith ' userauth_hostbased mismatch: ') then stop
68
73
if ($msg startswith ' Received disconnect from ') then stop
@@ -71,9 +76,7 @@ ruleset(name="zroot" queue.type="Direct") {
71
76
if ($msg startswith ' Postponed gssapi-with-mic for ') then stop
72
77
if ($msg startswith ' Failed keyboard-interactive/pam') then stop
73
78
if ($msg startswith ' fatal: Read from socket failed: Connection reset by peer') then stop
74
- if ($msg startswith ' error: kex_exchange_identification: read: Connection reset by peer') then stop
75
- if ($msg startswith ' error: kex_exchange_identification: read: Connection closed by remote host') then stop
76
- if ($msg startswith ' error: kex_exchange_identification: Connection closed by remote host') then stop
79
+ if ($msg startswith ' error: kex_exchange_identification: ') then stop
77
80
if ($msg startswith ' Connection reset by ') then stop
78
81
if ($msg startswith ' reverse mapping checking getaddrinfo') then stop
79
82
if ($msg startswith ' pam_succeed_if(sshd:auth):') then stop
@@ -109,6 +112,8 @@ ruleset(name="zroot" queue.type="Direct") {
109
112
if \
110
113
$syslogseverity <= '4' \
111
114
or \
115
+ $syslogfacility-text == 'auth' \
116
+ or \
112
117
$syslogfacility-text == 'authpriv' \
113
118
or \
114
119
($syslogfacility-text == 'kern' and ($msg contains 'Out of memory:' or $msg contains 'Killed process')) \
0 commit comments