TMAegisBeta
Thêm quy tắc cho macos

macOS

TMA-MACOS15-4.2

Ensure HTTP Server Is Disabled

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

Mô tả

macOS used to have a graphical front-end to the embedded Apache web server in the operating system. Personal web sharing could be enabled to allow someone on another computer to download files or information from the user's computer. Personal web sharing from a user endpoint has long been considered questionable, and Apple has removed that capability from the GUI.

Cách kiểm tra

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

shell
out=$(/bin/launchctl list 2>/dev/null) || exit 1
printf '%s\n' "$out" | /usr/bin/grep -c 'org.apache.httpd' || true
Đầu ra mong đợi
0

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/sbin/apachectl stop ; sudo /bin/launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist.

Thuộc tính

Hệ điều hành
macos-15
Thẻ
macosnetwork
Tham chiếu
CIS Apple macOS 15.0 Sequoia Benchmark v2.1.0 - 4.2 Ensure HTTP Server 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