TMA-COS-5.3.1.5
Ensure all users last password change date is in the past
높음레벨 1자동cos
설명
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.
점검 방법
감사 방식: 셸 명령
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- 예상 출력
compliant
조치 방법
조치 방식: 가이드 또는 인프라 패치
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.
속성
- 운영 체제
- 모두
- 태그
- authcontainer-optimized-oscos
- 참고 자료
- CIS Google Container-Optimized OS Benchmark v1.2.0 - 5.3.1.5 Ensure all users last password change date is in the past
이 호스트 점검하기
감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.
shell
tmaegis scan --target cos