CIS: implement controls so that "remember" is not used together with pam_unix#14202
Merged
Mab879 merged 5 commits intoComplianceAsCode:masterfrom Dec 3, 2025
Merged
Conversation
1204bd9 to
448fde4
Compare
… rule on systems not based on DEbian modify rule description and ocil, Bash and Oval
448fde4 to
08c89dc
Compare
|
@vojtapolasek: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Mab879
approved these changes
Dec 3, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
Extends the
accounts_password_pam_unix_no_rememberrule to support RHEL-based systems (RHEL 8, 9, 10, Fedora, Oracle Linux, AlmaLinux) in addition to the existing Ubuntu/Debian support. This also implements appropriate CIS control for RHEL 8, 9, and 10.Key changes:
rule.ymlwith platform-specific descriptions, CCE identifiers, authselect warnings, and OCIL manual verification instructions/etc/pam.d/{system,password}-auth, Debian:/etc/pam.d/common-*)Rationale:
The
rememberoption inpam_unix.souses the deprecated MD5 password hashing algorithm, which is less secure than modern alternatives. The CIS Benchmark recommends removing this option and using thepam_pwhistorymodule instead, which supports stronger hashing algorithms like yescrypt or SHA512.This rule was previously only implemented for Ubuntu/Debian systems.
Review Hints: