UBTU-20-010072 - The Ubuntu operating system must automatically lock an account until the locked account is released by an administrator when three unsuccessful logon attempts have been made.

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

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.

Satisfies: SRG-OS-000329-GPOS-00128, SRG-OS-000021-GPOS-00005

Solution

Configure the Ubuntu operating system to lock an account after three unsuccessful login attempts.

Edit the '/etc/pam.d/common-auth' file. The 'pam_tally2.so' entry must be placed at the top of the 'auth' stack.

Add the following line before the first 'auth' entry in the file:

auth required pam_tally2.so onerr=fail deny=3

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_CAN_Ubuntu_20-04_LTS_V1R1_STIG.zip

Item Details

References: CAT|III, CCI|CCI-000044, CCI|CCI-002238, Rule-ID|SV-238235r653880_rule, STIG-ID|UBTU-20-010072, Vuln-ID|V-238235

Plugin: Unix

Control ID: 5ef8c1d57d19409fd285421636bf8101b695f7f758e00132c1bd98c281bfca31