TMAegisBeta
Weitere Regeln für azure-container-linux

Azure Container Linux

TMA-AZURE-CONTAINER-LINUX-5.3.1

Ensure re-authentication for privilege escalation is not disabled globally

HochStufe 1Automatisiertazure-container-linux

Beschreibung

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.

So wird geprüft

Prüfmethode: Shell-Befehl

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

So wird behoben

Behebungsmethode: Anleitung oder Infrastruktur-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).

Eigenschaften

Betriebssysteme
Beliebig
Tags
azure-container-linuxsudo
Referenz
CIS Azure Container Linux Benchmark v1.0.0 - 5.3.1 Ensure re-authentication for privilege escalation is not disabled globally

Diesen Host prüfen

Führen Sie dies auf einem Rechner aus, den Sie prüfen dürfen. Der Scan ist schreibgeschützt.

shell
tmaegis scan --target azure-container-linux