From 6b50914500d0ffebd4e7db77f7aecb7954ee444e Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Thu, 9 Feb 2023 12:55:22 -0500 Subject: [PATCH] Add macOS CIS 2.3.3.10 (Media Sharing) (#9666) --- ee/cis/macos-13/cis-policy-queries.yml | 38 +++++++++++++++++ .../test/profiles/2.3.3.10.mobileconfig | 41 +++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 ee/cis/macos-13/test/profiles/2.3.3.10.mobileconfig diff --git a/ee/cis/macos-13/cis-policy-queries.yml b/ee/cis/macos-13/cis-policy-queries.yml index 5cf173a25f..cff273ffed 100644 --- a/ee/cis/macos-13/cis-policy-queries.yml +++ b/ee/cis/macos-13/cis-policy-queries.yml @@ -529,6 +529,44 @@ spec: --- apiVersion: v1 kind: policy +spec: + name: CIS - Ensure Media Sharing Is Disabled (MDM Required) + platforms: macOS + platform: darwin + description: | + Starting with macOS 10.15, Apple has provided a control which permits a user to share + Apple downloaded content on all Apple devices that are signed in with the same Apple ID. + This allows users to share downloaded Movies, Music, or TV shows with other + controlled macOS, iOS and iPadOS devices, as well as photos with Apple TVs. + Disabling Media Sharing reduces the remote attack surface of the system + resolution: | + Profile Method: + Ask your administrator to deploy a profile that sets + homeSharingUIStatus, legacySharingUIStatus, and mediaSharingUIStatus to 0 + for com.apple.preferences.sharing.SharingPrefsExtension + query: | + SELECT 1 WHERE EXISTS( + SELECT 1 FROM managed_policies WHERE + domain = 'com.apple.preferences.sharing.SharingPrefsExtension' AND + name = 'homeSharingUIStatus' AND + value = '0' + ) AND EXISTS ( + SELECT 1 FROM managed_policies WHERE + domain = 'com.apple.preferences.sharing.SharingPrefsExtension' AND + name = 'legacySharingUIStatus' AND + value = '0' + ) AND EXISTS ( + SELECT 1 FROM managed_policies WHERE + domain = 'com.apple.preferences.sharing.SharingPrefsExtension' AND + name = 'mediaSharingUIStatus' AND + value = '0' + ); + purpose: Informational + tags: compliance, CIS, CIS_Level1, CIS2.3.3.10 + contributors: artemist-work +--- +apiVersion: v1 +kind: policy spec: name: CIS - Ensure Backup Automatically is Enabled If Time Machine Is Enabled (FDA Required) platforms: macOS diff --git a/ee/cis/macos-13/test/profiles/2.3.3.10.mobileconfig b/ee/cis/macos-13/test/profiles/2.3.3.10.mobileconfig new file mode 100644 index 0000000000..28fa7f39e6 --- /dev/null +++ b/ee/cis/macos-13/test/profiles/2.3.3.10.mobileconfig @@ -0,0 +1,41 @@ + + + + + PayloadContent + + + PayloadDisplayName + test + PayloadType + com.apple.preferences.sharing.SharingPrefsExtension + PayloadIdentifier + com.fleetdm.cis-2.3.3.10-check + PayloadUUID + DC34D1FA-3D14-4AEA-844B-FDEC49CD73BB + homeSharingUIStatus + 0 + legacySharingUIStatus + 0 + mediaSharingUIStatus + 0 + + + PayloadDescription + test + PayloadDisplayName + Ensure Media Sharing is Disabled + PayloadIdentifier + com.fleetdm.cis-2.3.3.10 + PayloadRemovalDisallowed + + PayloadScope + System + PayloadType + Configuration + PayloadUUID + 9FD8A0FB-2F7C-41C4-A3FB-90E953BCD433 + PayloadVersion + 1 + +