TMAegis
Aturan lainnya untuk cos

TMA-COS-5.3.1.5

Ensure all users last password change date is in the past

TinggiLevel 1Otomatiscos

Deskripsi

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.

Cara pemeriksaan

Metode audit: Perintah 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
Output yang diharapkan
compliant

Cara perbaikan

Metode perbaikan: Panduan atau patch infrastruktur

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.

Properti

Sistem operasi
Apa saja
Tag
authcontainer-optimized-oscos
Referensi
CIS Google Container-Optimized OS Benchmark v1.2.0 - 5.3.1.5 Ensure all users last password change date is in the past

Periksa host ini

Jalankan ini pada mesin yang diizinkan untuk Anda audit. Pemindaian bersifat hanya baca.

shell
tmaegis scan --target cos