Information
Amazon Linux 2023 must monitor remote access methods.
GROUP ID: V-274021
RULE ID: SV-274021r1120695
Remote access services, such as those providing remote access to network devices and information systems, which lack automated monitoring capabilities, increase risk and make remote user access management difficult at best.
Solution
Configure Amazon Linux 2023 to monitor all remote access methods by installing rsyslog with the following command:
$ sudo yum install rsyslog
Then add or update the following lines to the "/etc/rsyslog.conf" file:
auth. ;authpriv. ;daemon.* /var/log/secure
The "rsyslog" service must be restarted for the changes to take effect. To restart the "rsyslog" service, run the following command:
$ sudo systemctl restart rsyslog.service