macOS
TMA-MACOS-4.3
Ensure NFS Server Is Disabled
СреднийУровень 1Автоматическаяmacos
Описание
macOS can act as an NFS fileserver. NFS sharing could be enabled to allow someone on another computer to mount shares and gain access to information from the user's computer. File sharing from a user endpoint has long been considered questionable, and Apple has removed that capability from the GUI.
Как проверяется
Метод проверки: Команда оболочки
shell
s=$(/sbin/nfsd status 2>/dev/null | /usr/bin/awk '/nfsd service/ { print $NF }') || exit 1
if [ "$s" = disabled ] && [ ! -e /etc/exports ]; then echo compliant; else echo "nfsd=${s:-unknown}; /etc/exports present or service enabled"; fi- Ожидаемый вывод
compliant
Как исправляется
Метод исправления: Рекомендация или патч инфраструктуры
Terminal: sudo /bin/launchctl disable system/com.apple.nfsd ; sudo /bin/rm -rf /etc/exports.
Свойства
- Операционные системы
- macos-26
- Теги
- macosnetwork
- Источник
- CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 4.3 Ensure NFS Server Is Disabled
Проверить этот хост
Выполните команду на компьютере, аудит которого вам разрешён. Сканирование работает только на чтение.
shell
tmaegis scan --target macos