TMAegisBeta
Más reglas para macos

macOS

TMA-MACOS-5.8

Ensure a Login Window Banner Exists

MediaNivel 2Automatizadamacos

Descripción

A Login window banner warning informs the user that the system is reserved for authorized use only. It enforces an acknowledgment by the user that they have been informed of the use policy in the banner if required. The system recognizes either the .txt and the .rtf formats. Audit: A /Library/Security/PolicyBanner.* file must exist and its mode must have 4 as the third digit.

Cómo se verifica

Método de auditoría: Comando de shell

shell
set -- /Library/Security/PolicyBanner.*
[ -e "$1" ] || exit 1
for f in "$@"; do
  p=$(/usr/bin/stat -f %A "$f") || exit 1
  case "$p" in ??4) ;; *) echo "$f mode $p"; exit 0;; esac
done
echo compliant
Salida esperada
compliant

Cómo se corrige

Método de corrección: Guía o parche de infraestructura

Terminal: sudo /bin/chmod o+r /Library/Security/PolicyBanner.txt ; sudo /bin/chmod o+r /Library/Security/PolicyBanner.rtf.

Propiedades

Sistemas operativos
macos-26
Etiquetas
macossystem-access
Referencia
CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 5.8 Ensure a Login Window Banner Exists

Verificar este host

Ejecute esto en un equipo que tenga permiso para auditar. El escaneo es de solo lectura.

shell
tmaegis scan --target macos --level 2