macOS
TMA-MACOS15-5.6
Ensure the "root" Account Is Disabled
CaoCấp 1Tự độngmacos
Mô tả
The root account is a superuser account that has access privileges to perform any actions and read/write to any file on the computer. With some versions of Linux, the system administrator may commonly use the root account to perform administrative functions. Previous versions of the benchmark included a graphical check for the audit and remediation as well as a different Terminal command for the remediation.
Cách kiểm tra
Phương pháp kiểm tra: Lệnh shell
shell
out=$(/usr/bin/dscl . -read /Users/root AuthenticationAuthority 2>&1)
printf '%s\n' "$out" | /usr/bin/grep -q "No such key: AuthenticationAuthority" && echo compliant- Đầ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: sudo /usr/bin/fdesetup remove -user root 2>/dev/null ; sudo /usr/bin/dscl /Local/Default delete /Users/root AuthenticationAuthority.
Thuộc tính
- Hệ điều hành
- macos-15
- Thẻ
- macossystem-access
- Tham chiếu
- CIS Apple macOS 15.0 Sequoia Benchmark v2.1.0 - 5.6 Ensure the "root" Account Is Disabled
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