mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-03-17 06:12:10 +00:00
fix[rule]: Fixed system_settings_ssh_disable
Fixed logic for system_settings_ssh_disable and added note.
This commit is contained in:
@@ -14,7 +14,7 @@ fix: |
|
||||
/usr/sbin/systemsetup -setremoteappleevents off
|
||||
/bin/launchctl disable system/com.apple.AEServer
|
||||
----
|
||||
NOTE: Systemsetup with -setremoteappleevents flag will fail unless you grant Full Disk Access to systemsetup or it's parent process. Requires UAMDM.
|
||||
NOTE: Systemsetup with -setremoteappleevents flag will fail unless you grant Full Disk Access to systemsetup or it's parent process. Requires supervision.
|
||||
references:
|
||||
cce:
|
||||
- CCE-91970-4
|
||||
|
||||
@@ -11,8 +11,10 @@ result:
|
||||
fix: |
|
||||
[source,bash]
|
||||
----
|
||||
/usr/sbin/systemsetup -f -setremotelogin off
|
||||
/bin/launchctl disable system/com.openssh.sshd
|
||||
----
|
||||
NOTE: Systemsetup with -setremotelogin flag will fail unless you grant Full Disk Access to systemsetup or it's parent process. Requires supervision.
|
||||
references:
|
||||
cce:
|
||||
- CCE-91984-5
|
||||
|
||||
Reference in New Issue
Block a user