TMAegisBeta
macos için daha fazla kural

macOS

TMA-MACOS14-4.2

Ensure HTTP Server Is Disabled

OrtaDüzey 1Otomatikmacos

Açıklama

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. Apache, however, is still part of the Operating System and can be easily turned on to share files and provide remote connectivity to an end-user computer. Web sharing should only be done through hardened web servers and appropriate cloud services. Web serving should not be done from a user desktop. Dedicated web servers or appropriate cloud storage should be used. Open ports make it easier to exploit the computer.

Nasıl denetlenir

Denetim yöntemi: Kabuk komutu

shell
out=$(/bin/launchctl list 2>/dev/null) || exit 1
printf '%s\n' "$out" | /usr/bin/grep -c 'org.apache.httpd' || true
Beklenen çıktı
0

Nasıl düzeltilir

Düzeltme yöntemi: Kılavuz veya altyapı yaması

Terminal Method: Run the following command to disable the HTTP server services: % /usr/bin/sudo /usr/sbin/apachectl stop % /usr/bin/sudo /bin/launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist

Özellikler

İşletim sistemleri
macos-14
Etiketler
macossonoma
Referans
CIS Apple macOS 14.0 Sonoma Benchmark v3.1.0 - 4.2 Ensure HTTP Server Is Disabled

Bu ana makineyi denetle

Bunu denetleme izniniz olan bir makinede çalıştırın. Tarama salt okunurdur.

shell
tmaegis scan --target macos