Add macOS CIS 2.3.3.6 (Remote Management) (#9664)

I can't find any way of adding a policy to remove ARD but this uses an
officially documented script to disable it which works on my mac.
This commit is contained in:
Artemis Tosini 2023-02-06 13:13:38 -05:00 committed by GitHub
parent 7aefd5c73b
commit 985c051ebb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 0 deletions

View file

@ -274,6 +274,34 @@ spec:
---
apiVersion: v1
kind: policy
spec:
name: CIS - Ensure Remote Management is Disabled
platforms: macOS
platform: darwin
description: |
Remote Management is the client portion of Apple Remote Desktop (ARD).
Remote Management can be used by remote administrators to view the current screen,
install software, report on, and generally manage client Macs.
Remote Management should only be enabled on trusted networks with strong
user controls present in a Directory system.
Mobile devices without strict controls are vulnerable to exploit and monitoring.
resolution: |
Graphical Method:
1. Open System Settings
2. Select General
3. Select Sharing
4. Set Remote Management to disabled
query: |
SELECT 1 WHERE NOT EXISTS (
SELECT * FROM processes WHERE
path = '/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAgent'
);
purpose: Informational
tags: compliance, CIS, CIS_Level1, CIS2.3.3.6
contributors: artemist-work
---
apiVersion: v1
kind: policy
spec:
name: CIS - Ensure Backup Automatically is Enabled If Time Machine Is Enabled (FDA Required)
platforms: macOS

View file

@ -0,0 +1,3 @@
#!/bin/bash
/usr/bin/sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -deactivate -stop