TMAegis베타
macos 관련 규칙 더 보기

macOS

TMA-MACOS15-5.2.1

Ensure Password Account Lockout Threshold Is Configured

높음레벨 1자동macos

설명

The account lockout threshold specifies the amount of times a user can enter an incorrect password before a lockout will occur. Ensure that a lockout threshold is part of the password policy on the computer. Audit: policyAttributeMaximumFailedAuthentications must be set and <= 5.

점검 방법

감사 방식: 셸 명령

shell
v=$(/usr/bin/pwpolicy -getaccountpolicies 2>/dev/null | /usr/bin/tail -n +2 | /usr/bin/xmllint --xpath '//dict/key[text()="policyAttributeMaximumFailedAuthentications"]/following-sibling::integer[1]/text()' - 2>/dev/null) || exit 1
v=$(printf '%s\n' "$v" | /usr/bin/head -1)
if [ -n "$v" ] && [ "$v" -le 5 ]; then echo compliant; else echo "policyAttributeMaximumFailedAuthentications=${v:-unset}"; fi
예상 출력
compliant

조치 방법

조치 방식: 가이드 또는 인프라 패치

Profile (preferred): com.apple.mobiledevice.passwordpolicy maxFailedAttempts = <integer><value≤5></integer>. Terminal: sudo /usr/bin/pwpolicy -n /Local/Default -setglobalpolicy "maxFailedLoginAttempts=<value≤5>" ; sudo /usr/bin/pwpolicy -n /Local/Default -setglobalpolicy "maxFailedLoginAttempts=5".

속성

운영 체제
macos-15
태그
macossystem-access
참고 자료
CIS Apple macOS 15.0 Sequoia Benchmark v2.1.0 - 5.2.1 Ensure Password Account Lockout Threshold Is Configured

이 호스트 점검하기

감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.

shell
tmaegis scan --target macos