fix[rule]: Fixed system_settings_ssh_disable

Fixed logic for system_settings_ssh_disable and added note.
This commit is contained in:
Allen Golbig
2022-09-29 12:56:00 -04:00
parent d334ce846a
commit aea1451373
2 changed files with 3 additions and 1 deletions

View File

@@ -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

View File

@@ -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