Configure the Use of the pam_faillock.so Module in the /etc/pam.d/system-auth File.
An XCCDF Rule
Description
The pam_faillock.so module must be loaded in preauth in /etc/pam.d/system-auth.
Rationale
If the pam_faillock.so module is not loaded the system will not correctly lockout accounts to prevent password guessing attacks.
- ID
- xccdf_org.ssgproject.content_rule_account_password_pam_faillock_system_auth
- Severity
- Medium
- References
- Updated
Remediation - Shell Script
if [ -f /usr/bin/authselect ]; then
if ! authselect check; then
echo "
authselect integrity check failed. Remediation aborted!
This remediation could not be applied because an authselect profile was not selected or the selected profile is not intact.
Remediation - Ansible
- name: Configure the Use of the pam_faillock.so Module in the /etc/pam.d/system-auth
File. - Check if system relies on authselect tool
ansible.builtin.stat:
path: /usr/bin/authselect
register: result_authselect_present
tags: