Information
RHEL 9 must log username information when unsuccessful logon attempts occur.
GROUP ID: V-258070
RULE ID: SV-258070r1045153
Without auditing of these events, it may be harder or impossible to identify what an attacker did after an attack.
Solution
Configure RHEL 9 to log username information when unsuccessful logon attempts occur.
Enable the feature using the following command:
$ sudo authselect enable-feature with-faillock
Add/modify the "/etc/security/faillock.conf" file to match the following line:
audit