Container-Optimized OS
TMA-COS-5.3.1.5
Ensure all users last password change date is in the past
高レベル 1自動cos
説明
All users should have a password change date in the past. If a users recorded password change date is in the future then they could bypass any set password expiration.
チェック方法
監査方法: シェルコマンド
shell
[ -r /etc/shadow ] || exit 1; t=$(( $(date +%s) / 86400 )); awk -F: -v t=$t '$2 ~ /^[^*!xX]/ && $3 != "" && $3+0 > t {f=1} END{exit f}' /etc/shadow && echo compliant || echo noncompliant- 期待される出力
compliant
修正方法
修正方法: ガイダンスまたは IaC パッチ
Investigate any users with a password change date in the future and correct them. Locking the account, expiring the password, or resetting the password manually may be appropriate.
プロパティ
- オペレーティングシステム
- すべて
- タグ
- authcontainer-optimized-oscos
- 参照
- CIS Google Container-Optimized OS Benchmark v1.2.0 - 5.3.1.5 Ensure all users last password change date is in the past
このホストをチェック
監査が許可されているマシンで実行してください。スキャンは読み取り専用です。
shell
tmaegis scan --target cos