macOS
TMA-MACOS-3.3
Ensure install.log Is Retained for 365 or More Days and No Maximum Size
Mô tả
macOS writes information pertaining to system-related events to the file /var/log/install.log and has a configurable retention policy for this file. The default logging setting limits the file size of the logs and the maximum size for all logs. The default allows for an errant application to fill the log files and does not enforce sufficient log retention. Audit: Requires ttl >= 365 and no all_max= setting in /etc/asl/com.apple.install.
Cách kiểm tra
Phương pháp kiểm tra: Lệnh shell
f=/etc/asl/com.apple.install
[ -r "$f" ] || exit 1
t=$(/usr/bin/grep -io 'ttl=[0-9]*' "$f" | /usr/bin/head -1 | /usr/bin/cut -d= -f2)
if [ -n "$t" ] && [ "$t" -ge 365 ] && ! /usr/bin/grep -qi 'all_max=' "$f"; then echo compliant; else echo "ttl=${t:-unset}; all_max present or ttl < 365"; 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/asl/com.apple.install file and add or modify the ttl value to 365 or greater on the file line. Also, remove the all_max= setting and value from the file line.
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.3 Ensure install.log Is Retained for 365 or More Days and No Maximum Size
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.
tmaegis scan --target macos