Azure Container Linux
TMA-AZURE-CONTAINER-LINUX-5.3.1
Ensure re-authentication for privilege escalation is not disabled globally
ÉlevéeNiveau 1Automatiséeazure-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.
Méthode de vérification
Méthode d'audit: Commande shell
shell
grep -rEq "^[^#]*!authenticate" /etc/sudoers /etc/sudoers.d 2>/dev/null && echo noncompliant || echo compliant- Sortie attendue
compliant
Méthode de correction
Méthode de correction: Recommandation ou correctif d'infrastructure
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).
Propriétés
- Systèmes d'exploitation
- Tous
- Étiquettes
- azure-container-linuxsudo
- Référence
- CIS Azure Container Linux Benchmark v1.0.0 - 5.3.1 Ensure re-authentication for privilege escalation is not disabled globally
Vérifier cet hôte
Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.
shell
tmaegis scan --target azure-container-linux