Repository navigation
Conversation
CIS 4.3.4 (Ensure re-authentication for privilege escalation is not disabled globally) is about the sudo !authenticate option, but the Amazon Linux 2023 control selected sudo_require_reauthentication, which checks timestamp_timeout and is already selected for 4.3.5. Use sudo_remove_no_authenticate, as the RHEL, Fedora, Ubuntu and Debian CIS controls do. Fixes #15152
|
Hi @cristianchiriac. Thanks for your PR. I'm waiting for a ComplianceAsCode member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
jan-cerny
approved these changes
Oct 19, 2026
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:
controls/cis_al2023.yml, control 4.3.4 "Ensure re-authentication for privilege escalation is not disabled globally" now selectssudo_remove_no_authenticateinstead ofsudo_require_reauthentication.Rationale:
4.3.4 is about
!authenticatein sudoers.sudo_require_reauthenticationchecksDefaults timestamp_timeout=and never looks at!authenticate; it already implements 4.3.5 "Ensure sudo authentication timeout is configured correctly", so it was selected twice.The CIS controls for RHEL 8/9/10, Fedora, Ubuntu 22.04/24.04 and Debian 12/13 map the same control to
sudo_remove_no_authenticate(see Align some sudo rules with RHEL 10 CIS Benchmark #14067 for RHEL 10).Fixes Amazon Linux 2023 CIS 4.3.4 (re-authentication not disabled globally) is mapped to sudo_require_reauthentication instead of sudo_remove_no_authenticate #15152
Review Hints:
sudo_remove_no_authenticatehas no prodtype restriction, and its bash and Ansible remediations aremulti_platform_all.controls/cis_al2023.ymlloads withssg.controls.Policy. It now resolves 4.3.4 tosudo_remove_no_authenticateand 4.3.5 tosudo_require_reauthentication.