Container-Optimized OS
TMA-COS-5.3.1.5
Ensure all users last password change date is in the past
AltaNível 1Automatizadacos
Descrição
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.
Como é verificado
Método de auditoria: Comando 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- Saída esperada
compliant
Como é corrigido
Método de correção: Orientação ou patch de infraestrutura
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.
Propriedades
- Sistemas operacionais
- Qualquer
- Tags
- authcontainer-optimized-oscos
- Referência
- 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
Execute isto em uma máquina que você tenha permissão para auditar. A varredura é somente leitura.
shell
tmaegis scan --target cos