macOS
TMA-MACOS-4.2
Ensure HTTP Server Is Disabled
中等級 1自動化macos
說明
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.
檢查方式
稽核方法: Shell 指令
shell
out=$(/bin/launchctl list 2>/dev/null) || exit 1
printf '%s\n' "$out" | /usr/bin/grep -c 'org.apache.httpd' || true- 預期輸出
0
修補方式
修補方法: 操作指南或基礎設施修補檔
Terminal: sudo /usr/sbin/apachectl stop ; sudo /bin/launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist.
屬性
- 作業系統
- macos-26
- 標籤
- macosnetwork
- 參考資料
- CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 4.2 Ensure HTTP Server Is Disabled
檢查此主機
請在您有權稽核的機器上執行此指令。掃描為唯讀操作。
shell
tmaegis scan --target macos