Configure the Use of the pam_faillock.so Module in the /etc/pam.d/password-auth File.
An XCCDF Rule
Description
The pam_faillock.so module must be loaded in preauth in /etc/pam.d/password-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_password_auth
- Severity
- Medium
- Updated
Remediation Templates
A 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.
It is not recommended to manually edit the PAM files when authselect tool is available.
An Ansible Snippet
- name: Configure the Use of the pam_faillock.so Module in the /etc/pam.d/password-auth
File. - Check if system relies on authselect tool
ansible.builtin.stat:
path: /usr/bin/authselect
register: result_authselect_present
tags: