GEN000460 - The system must disable accounts after three consecutive unsuccessful login attempts.

Information

Disabling accounts after a limited number of unsuccessful login attempts improves protection against password guessing attacks.

Solution

By default link /etc/pam.d/system-auth points to /etc/pam.d/system-auth-ac which is the file maintained by the authconfig utility. In order to add pam options other than those available via the utility create /etc/pam.d/system-auth-local with the options and including system-auth-ac. In order to set the account lockout to three failed attempts the content should be similar to:

auth required pam_access.so
auth required pam_tally2.so deny=3
auth include system-auth-ac
account required pam_tally2.so
account include system-auth-ac
password include system-auth-ac
session include system-auth-ac

Once system-auth-local is written reset the /etc/pam.d/system-auth to point to system-auth-local. This is necessary because authconfig writes directly to system-auth-ac so any changes made by hand will be lost if authconfig is run.

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Oracle_Linux_5_V2R1_STIG.zip

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-7a., CAT|II, CCI|CCI-000044, Rule-ID|SV-218218r603259_rule, STIG-ID|GEN000460, STIG-Legacy|SV-63383, STIG-Legacy|V-766, Vuln-ID|V-218218

Plugin: Unix

Control ID: 69dd7c8203b1d503c92809b1a3afcdfb6be15ee2ed06dcd07833f7c218e59c04