ALMA-09-008270 - AlmaLinux OS 9 must ensure account locks persist across reboots.

Information

By limiting the number of failed logon attempts, the risk of unauthorized system access via user password guessing, otherwise known as brute-forcing, is reduced. Limits are imposed by locking the account.

Having account locks persist across reboots ensures that a locked account is only unlocked by an administrator.

If the locks did not persist across reboots, an attacker could reboot the system to continue brute force attacks against the accounts on the system.

The default /var/run/faillock directory is cleared upon reboot and should not be used.

Solution

Configure AlmaLinux OS 9 to maintain the contents of the faillock directory after a reboot.

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

dir = /var/log/faillock

See Also

https://workbench.cisecurity.org/benchmarks/0

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-7b., CAT|II, CCI|CCI-002238, Rule-ID|SV-269154r1050036_rule, STIG-ID|ALMA-09-008270, Vuln-ID|V-269154

Plugin: Unix

Control ID: 5aefaa2fc7d8209912e0e18c717f12ce641702b609bee4fb7b5217d4bf63b790