TMAegis베타
macos 관련 규칙 더 보기

macOS

TMA-MACOS15-3.2

Ensure Security Auditing Flags For User-Attributable Events Are Configured Per Local Organizational Requirements

보통레벨 2자동macos

설명

Auditing is the capture and maintenance of information about security-related events. Auditable events often depend on differing organizational requirements. Audit: Requires aa, ad, lo and -ex, -fm, -fr, -fw (or -all) in the flags line of /etc/security/audit_control.

점검 방법

감사 방식: 셸 명령

shell
l=$(/usr/bin/grep -e "^flags:" /etc/security/audit_control 2>/dev/null) || exit 1
f=",$(printf '%s' "${l#flags:}" | /usr/bin/tr -d ' '),"
miss=""
for x in aa ad lo; do case "$f" in *",$x,"*) ;; *) miss="$miss $x";; esac; done
case "$f" in
  *",-all,"*|*",all,"*) ;;
  *) for x in ex fm fr fw; do case "$f" in *",-$x,"*|*",$x,"*) ;; *) miss="$miss -$x";; esac; done;;
esac
if [ -z "$miss" ]; then echo compliant; else echo "missing flags:$miss"; fi
예상 출력
compliant

조치 방법

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

Terminal: Edit the /etc/security/audit_control file and add aa, ad, -ex, -fm, -fr, -fw, and lo to flags. You can also substitute -all for -ex, -fm, -fr, and -fw.

속성

운영 체제
macos-15
태그
macoslogging-auditing
참고 자료
CIS Apple macOS 15.0 Sequoia Benchmark v2.1.0 - 3.2 Ensure Security Auditing Flags For User-Attributable Events Are Configured Per Local Organizational Requirements

이 호스트 점검하기

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

shell
tmaegis scan --target macos --level 2