TMAegis
Plus de règles pour macos

macOS

TMA-MACOS-2.2.2

Ensure Firewall Stealth Mode Is Enabled

ÉlevéeNiveau 1Automatiséemacos

Description

While in Stealth mode, the computer will not respond to unsolicited probes, dropping that traffic. Audit: Passes when EnableStealthMode is true in a profile or socketfilterfw reports stealth mode on.

Méthode de vérification

Méthode d'audit: Commande shell

shell
[ -x /usr/bin/osascript ] || exit 1
p=$(/usr/bin/osascript -l JavaScript <<'EOS'
$.NSUserDefaults.alloc.initWithSuiteName('com.apple.security.firewall').objectForKey('EnableStealthMode').js
EOS
)
s=$(/usr/libexec/ApplicationFirewall/socketfilterfw --getstealthmode 2>/dev/null)
if [ "$p" = true ] || printf '%s' "$s" | /usr/bin/grep -q 'stealth mode is on'; then echo compliant; else echo "EnableStealthMode=${p:-unset}; $s"; fi
Sortie attendue
compliant

Méthode de correction

Méthode de correction: Recommandation ou correctif d'infrastructure

Profile (preferred): com.apple.security.firewall EnableStealthMode = <true/>. Terminal: sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setstealthmode on. GUI: System Settings > Network > Firewall > Options > Set Enabled stealth mode to enabled.

Propriétés

Systèmes d'exploitation
macos-26
Étiquettes
macossystem-settings
Référence
CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 2.2.2 Ensure Firewall Stealth Mode Is Enabled

Vérifier cet hôte

Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.

shell
tmaegis scan --target macos