TMAegisBeta
更多 cos 规则

Container-Optimized OS

TMA-COS-6.2.1

Ensure password fields are not empty

中级别 1人工审核cos

说明

An account with an empty password field means that anybody may log in as that user without providing a password. All accounts must have passwords or be locked to prevent the account from being used by an unauthorized user.

检查方式

审计方法: 人工审核

此项建议无法自动检查。当您传入 --include-manual 时,扫描结果会列出该项并附带这些说明。

Run the following command and verify that no output is returned: # awk -F: '($2 == "" ) { print $1 " does not have a password "}' /etc/shadow

修复方式

修复方法: 操作指南或基础设施补丁

If any accounts in the /etc/shadow file do not have a password, run the following command to lock the account until it can be determined why it does not have a password: # passwd -l <username> Also, check to see if the account is logged in and investigate what it is being used for to determine if it needs to be forced off.

属性

操作系统
任意
标签
authcontainer-optimized-oscos
参考
CIS Google Container-Optimized OS Benchmark v1.2.0 - 6.2.1 Ensure password fields are not empty