TMAegis
Plus de règles pour cos

Container-Optimized OS

TMA-COS-5.3.1.5

Ensure all users last password change date is in the past

ÉlevéeNiveau 1Automatiséecos

Description

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.

Méthode de vérification

Méthode d'audit: Commande 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
Sortie attendue
compliant

Méthode de correction

Méthode de correction: Recommandation ou correctif d'infrastructure

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.

Propriétés

Systèmes d'exploitation
Tous
Étiquettes
authcontainer-optimized-oscos
Référence
CIS Google Container-Optimized OS Benchmark v1.2.0 - 5.3.1.5 Ensure all users last password change date is in the past

Vérifier cet hôte

Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.

shell
tmaegis scan --target cos