TMAegis
Más reglas para cos

TMA-COS-5.3.1.5

Ensure all users last password change date is in the past

AltaNivel 1Automatizadacos

Descripción

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ómo se verifica

Método de auditoría: Comando de 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
Salida esperada
compliant

Cómo se corrige

Método de corrección: Guía o parche de infraestructura

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.

Propiedades

Sistemas operativos
Cualquiera
Etiquetas
authcontainer-optimized-oscos
Referencia
CIS Google Container-Optimized OS Benchmark v1.2.0 - 5.3.1.5 Ensure all users last password change date is in the past

Verificar este host

Ejecute esto en un equipo que tenga permiso para auditar. El escaneo es de solo lectura.

shell
tmaegis scan --target cos