RHEL 10 must log username information when unsuccessful login attempts occur.

STIG ID: RHEL-10-500020  |  SRG: SRG-OS-000021-GPOS-00005 |  Severity: medium (CAT II)  |  CCI: CCI-000044 |  Vulnerability Id: V-281100

Vulnerability Discussion

Without auditing of these events, it may be harder or impossible to identify what an attacker did after an attack.

Check

Verify RHEL 10 "/etc/security/faillock.conf" is configured to log username information when unsuccessful login attempts occur with the following command:

$ sudo grep audit /etc/security/faillock.conf
audit

If the "audit" option is not set, is missing, or is commented out, this is a finding.

Fix

Configure RHEL 10 to log username information when unsuccessful login 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