TMAegisBeta
Thêm quy tắc cho macos

macOS

TMA-MACOS-3.2

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

Trung bìnhCấp 2Tự độngmacos

Mô tả

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.

Cách kiểm tra

Phương pháp kiểm tra: Lệnh shell

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
Đầu ra mong đợi
compliant

Cách khắc phục

Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng

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.

Thuộc tính

Hệ điều hành
macos-26
Thẻ
macoslogging-auditing
Tham chiếu
CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 3.2 Ensure Security Auditing Flags For User-Attributable Events Are Configured Per Local Organizational Requirements

Kiểm tra máy này

Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.

shell
tmaegis scan --target macos --level 2