Azure Container Linux
TMA-AZURE-CONTAINER-LINUX-7.2.1
Ensure accounts in /etc/passwd use shadowed passwords
Mô tả
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.
Cách kiểm tra
Phương pháp kiểm tra: Lệnh shell
awk -F: '($2 != "x"){f=1} END{exit f}' /etc/passwd && echo compliant || echo noncompliant- Đầu ra mong đợi
compliant
Cách khắc phục
Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng
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.
Thuộc tính
- Hệ điều hành
- Bất kỳ
- Thẻ
- azure-container-linuxaccounts
- Tham chiếu
- CIS Azure Container Linux Benchmark v1.0.0 - 7.2.1 Ensure accounts in /etc/passwd use shadowed passwords
Kiểm tra máy này
Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.
tmaegis scan --target azure-container-linux