The macOS system must enable macOS Application Firewall.

STIG ID: APPL-15-005050  |  SRG: SRG-OS-000480-GPOS-00232 |  Severity: medium |  CCI: CCI-000366 |  Vulnerability Id: V-268557

Vulnerability Discussion

The macOS Application Firewall is the built-in firewall that comes with macOS, and it must be enabled.

When the macOS Application Firewall is enabled, the flow of information within the information system and between interconnected systems will be controlled by approved authorizations.

Check

Verify the macOS system is configured to enable the Application Firewall with the following command:

/usr/bin/osascript -l JavaScript << EOS
$.NSUserDefaults.alloc.initWithSuiteName('com.apple.security.firewall')\
.objectForKey('EnableFirewall').js
EOS

If the result is not "true", this is a finding.

Fix

Configure the macOS system to enable the Application Firewall by installing the "com.apple.security.firewall" configuration profile.