mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-03-15 13:32:44 +00:00
Merge branch 'dev_ventura_issue268' into ventura
This commit is contained in:
@@ -5,14 +5,26 @@ discussion: |
|
||||
|
||||
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: |
|
||||
/usr/bin/osascript -l JavaScript << EOS
|
||||
profile="$(/usr/bin/osascript -l JavaScript << EOS
|
||||
$.NSUserDefaults.alloc.initWithSuiteName('com.apple.security.firewall')\
|
||||
.objectForKey('EnableFirewall').js
|
||||
EOS
|
||||
)"
|
||||
|
||||
plist="$(/usr/bin/defaults read /Library/Preferences/com.apple.alf globalstate 2>/dev/null)"
|
||||
|
||||
if [[ "$profile" == "true" ]] && [[ "$plist" =~ [1,2] ]]; then
|
||||
echo "true"
|
||||
else
|
||||
echo "false"
|
||||
fi
|
||||
result:
|
||||
string: "true"
|
||||
fix: |
|
||||
This is implemented by a Configuration Profile.
|
||||
[source,bash]
|
||||
----
|
||||
/usr/bin/defaults write /Library/Preferences/com.apple.alf globalstate -int 1
|
||||
----
|
||||
references:
|
||||
cce:
|
||||
- CCE-91948-0
|
||||
|
||||
@@ -10,14 +10,26 @@ discussion: |
|
||||
Enabling firewall stealth mode may prevent certain remote mechanisms used for maintenance and compliance scanning from properly functioning. Information System Security Officers (ISSOs) are advised to first fully weigh the potential risks posed to their organization before opting not to enable stealth mode.
|
||||
====
|
||||
check: |
|
||||
/usr/bin/osascript -l JavaScript << EOS
|
||||
profile="$(/usr/bin/osascript -l JavaScript << EOS
|
||||
$.NSUserDefaults.alloc.initWithSuiteName('com.apple.security.firewall')\
|
||||
.objectForKey('EnableStealthMode').js
|
||||
EOS
|
||||
)"
|
||||
|
||||
plist=$(/usr/bin/defaults read /Library/Preferences/com.apple.alf stealthenabled 2>/dev/null)
|
||||
|
||||
if [[ "$profile" == "true" ]] && [[ $plist == 1 ]]; then
|
||||
echo "true"
|
||||
else
|
||||
echo "false"
|
||||
fi
|
||||
result:
|
||||
string: "true"
|
||||
fix: |
|
||||
This is implemented by a Configuration Profile.
|
||||
[source,bash]
|
||||
----
|
||||
/usr/bin/defaults write /Library/Preferences/com.apple.alf stealthenabled -int 1
|
||||
----
|
||||
references:
|
||||
cce:
|
||||
- CCE-91949-8
|
||||
|
||||
Reference in New Issue
Block a user