An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
Hello @Phan Dai Duong Thank you for posting your query on Microsoft Q&A platform.
This is not a configuration issue on the VM. It is a known limitation of Azure Machine Configuration (Guest Configuration) for Linux, specifically for Ubuntu 24.04 LTS.
The Azure policy “Ensure lockout for failed password attempts is configured (CIS: L1 – Server – 5.3.2)” is evaluated using a generic Linux CIS baseline in Azure Machine Configuration.
For Ubuntu / Debian-based distributions, the policy logic expects legacy PAM modules such as:
-
pam_tally.so -
pam_tally2.so
However:
- Ubuntu 24.04 LTS no longer uses
pam_tallyorpam_tally2 - Canonical has deprecated these modules and replaced them with
pam_faillock - Even when
pam_faillockis correctly installed, configured, and working, Azure Machine Configuration does not detect it for this CIS control
As a result, the Guest Configuration extension reports the VM as Non-compliant, with the message: “Neither pam_faillock.so, pam_tally2.so or pam_tally.so PAM modules exist for this distribution. Manually set lockout for failed password attempts following specific instructions for this distribution. Automatic remediation is not possible.”
This message reflects the current policy detection logic, not the actual security state of the VM.
Microsoft confirms that some CIS controls cannot be automatically validated or remediated and require manual verification, depending on the OS and baseline logic used by Guest Configuration.
Reference: https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/guest-configuration?tabs=portal
- Your configuration using
pam_faillockis correct and effective on Ubuntu 24.04. - The user account lockout working after failed login attempts confirms that the CIS requirement is functionally met.
- The non‑compliance status in Azure is a false negative, caused by unsupported detection for Ubuntu 24.04, not by misconfiguration.
Guest Configuration policies use predefined, static checks and do not dynamically adapt to distribution-specific security mechanisms.
As of today there is no Microsoft-supported remediation that will make this control show Compliant for Ubuntu 24.04 using pam_faillock
Installing deprecated modules (pam_tally / pam_tally2) is not supported on Ubuntu 24.04 and not recommended
Microsoft only supports Manual validation or Policy exemption / suppression, or Custom Guest Configuration policy
For controls like this where automatic validation is not supported:
- Treat the finding as Manual / Platform limitation
- Document the configuration and justification
- Optionally apply a policy exemption if it affects Secure Score reporting
Ubuntu official documentation for pam_faillock (supported mechanism in modern Ubuntu) https://manpages.ubuntu.com/manpages/noble/man8/pam_faillock.8.html [manpages.ubuntu.com]
Thanks,
Suchitra.