SV-258805r933476_rule
V-258805
SRG-OS-000032-GPOS-00013
PHTN-40-000012
CAT II
10
Navigate to and open:
/etc/rsyslog.conf
Add or update the following line:
auth.*;authpriv.*;daemon.* /var/log/audit/sshinfo.log
Note: The path can be substituted for another suitable log destination dedicated to authentication logs.
At the command line, run the following command:
# systemctl restart rsyslog.service
If another package is used to offload logs, such as syslog-ng, and is properly configured, this is not applicable.
At the command line, run the following command to verify rsyslog is configured to log authentication requests:
# grep -E "(^auth.*|^authpriv.*|^daemon.*)" /etc/rsyslog.conf
Example result:
auth.*;authpriv.*;daemon.* /var/log/audit/sshinfo.log
If "auth.*", "authpriv.*", and "daemon.*" are not configured to be logged, this is a finding.
V-258805
False
PHTN-40-000012
If another package is used to offload logs, such as syslog-ng, and is properly configured, this is not applicable.
At the command line, run the following command to verify rsyslog is configured to log authentication requests:
# grep -E "(^auth.*|^authpriv.*|^daemon.*)" /etc/rsyslog.conf
Example result:
auth.*;authpriv.*;daemon.* /var/log/audit/sshinfo.log
If "auth.*", "authpriv.*", and "daemon.*" are not configured to be logged, this is a finding.
M
5569