Files
macos_security/rules/sysprefs/sysprefs_ssh_disable.yaml

46 lines
842 B
YAML

id: sysprefs_ssh_disable
title: "Disable SSH Server for Remote Access Sessions"
discussion: |
SSH service _MUST_ be disabled for remote access.
Remote access sessions _MUST_ use FIPS validated encrypted methods to protect unauthorized individuals from gaining access.
check: |
/bin/launchctl print-disabled system | /usr/bin/grep -c '"com.openssh.sshd" => true'
result:
integer: 1
fix: |
[source,bash]
----
/bin/launchctl disable system/com.openssh.sshd
----
references:
cce:
- CCE-91077-8
cci:
- N/A
800-53r5:
- CM-7
- CM-7(1)
- AC-17
800-53r4:
- AC-3
- CM-7
- CM-7(1)
srg:
- N/A
disa_stig:
- N/A
800-171r2:
- 3.1.1
- 3.1.2
- 3.4.6
cisv8:
- 4.1
- 4.8
macOS:
- "12.0"
tags:
- cisv8
severity: "medium"
mobileconfig: false
mobileconfig_info: