TMAegisBeta
Više pravila za azure-container-linux

Azure Container Linux

TMA-AZURE-CONTAINER-LINUX-7.2.1

Ensure accounts in /etc/passwd use shadowed passwords

VisokaNivo 1Automatskaazure-container-linux

Opis

Local accounts can use shadowed passwords. With shadowed passwords, the passwords are saved in shadow password file, /etc/shadow, encrypted by a salted one-way hash. Accounts with a shadowed password have an x in the second field in /etc/passwd. Audit: Passes when every account in /etc/passwd has x in the password field.

Kako se proverava

Metod provere: Komanda ljuske

shell
awk -F: '($2 != "x"){f=1} END{exit f}' /etc/passwd && echo compliant || echo noncompliant
Očekivani izlaz
compliant

Kako se ispravlja

Metod ispravke: Smernica ili zakrpa infrastrukture

Run the following command to set accounts to use shadowed passwords and migrate passwords in /etc/passwd to /etc/shadow: # pwconv Investigate to determine if the account is logged in and what it is being used for, to determine if it needs to be forced off.

Svojstva

Operativni sistemi
Bilo koji
Oznake
azure-container-linuxaccounts
Referenca
CIS Azure Container Linux Benchmark v1.0.0 - 7.2.1 Ensure accounts in /etc/passwd use shadowed passwords

Proverite ovaj računar

Pokrenite ovo na računaru za koji imate dozvolu za proveru. Skeniranje radi u režimu samo za čitanje.

shell
tmaegis scan --target azure-container-linux