TMAegisBeta
More rules for azure-container-linux

Azure Container Linux

TMA-AZURE-CONTAINER-LINUX-5.3.1

Ensure re-authentication for privilege escalation is not disabled globally

HighLevel 1Automatedazure-container-linux

Description

The operating system must be configured so that users must re-authenticate for privilege escalation. Audit: Passes when no uncommented !authenticate tag exists in /etc/sudoers or /etc/sudoers.d.

How it is checked

Audit method: Shell command

shell
grep -rEq "^[^#]*!authenticate" /etc/sudoers /etc/sudoers.d 2>/dev/null && echo noncompliant || echo compliant
Expected output
compliant

How it is fixed

Fix method: Guidance or infrastructure patch

Configure the operating system to require users to reauthenticate for privilege escalation. Based on the outcome of the audit procedure, use visudo -f <PATH TO FILE> to edit the relevant sudoers file. Remove any occurrences of !authenticate tags in the file(s).

Properties

Operating systems
Any
Tags
azure-container-linuxsudo
Reference
CIS Azure Container Linux Benchmark v1.0.0 - 5.3.1 Ensure re-authentication for privilege escalation is not disabled globally

Check this host

Run this on a machine you are allowed to audit. The scan is read-only.

shell
tmaegis scan --target azure-container-linux