AlmaLinux OS 9 must log username information when unsuccessful logon attempts occur.

STIG ID: ALMA-09-008050  |  SRG: SRG-OS-000021-GPOS-00005 |  Severity: medium |  CCI: CCI-000044,CCI-000172 |  Vulnerability Id: V-269152

Vulnerability Discussion

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

Satisfies: SRG-OS-000021-GPOS-00005, SRG-OS-000470-GPOS-00214

Check

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

$ 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 AlmaLinux OS 9 to log username information when unsuccessful logon attempts occur.

Add/modify the "/etc/security/faillock.conf" file to match the following line:

audit