TMAegis
Thêm quy tắc cho cos

Container-Optimized OS

TMA-COS-5.3.1.5

Ensure all users last password change date is in the past

CaoCấp 1Tự độngcos

Mô tả

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.

Cách kiểm tra

Phương pháp kiểm tra: Lệnh shell

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
Đầ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

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.

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
authcontainer-optimized-oscos
Tham chiếu
CIS Google Container-Optimized OS Benchmark v1.2.0 - 5.3.1.5 Ensure all users last password change date is in the past

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.

shell
tmaegis scan --target cos