mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Add macOS CIS 2.6.7 (Administrator password for preferences) (#10259)
This adds a test for if passwords are required are required to access some system-wide preferences on macOS. It's marked as "Manual" in the CIS pdf but I wasn't sure how to copy that into here.
This commit is contained in:
parent
dc210d594b
commit
07a045301b
2 changed files with 25 additions and 0 deletions
|
|
@ -866,6 +866,25 @@ spec:
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: policy
|
||||
spec:
|
||||
name: CIS - Ensure an Administrator Password Is Required to Access System-Wide Preferences (Fleetd required)
|
||||
platforms: macOS
|
||||
platform: darwin
|
||||
description: Checks that an Administrator Password Is Required to Access System-Wide Preferences
|
||||
resolution: |
|
||||
Graphical method:
|
||||
Perform the following steps to ensure an administrator password is required to access system-wide preferences:
|
||||
1. Open System Settings
|
||||
2. Open Privacy & Security
|
||||
3. Select Advanced
|
||||
4. Set Require an administrator password to access system-wide settings to enabled
|
||||
query: SELECT 1 FROM authdb WHERE right_name = 'system.preferences' AND json_extract(json_result, '$.shared') == 0;
|
||||
purpose: Informational
|
||||
tags: compliance, CIS, CIS_Level1, CIS-macos-13-2.6.7
|
||||
contributors: artemist-work
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: policy
|
||||
spec:
|
||||
name: CIS - Ensure Screen Saver Corners Are Secure (FDA Required)
|
||||
platforms: macOS
|
||||
|
|
|
|||
6
ee/cis/macos-13/test/scripts/CIS_2.6.7.sh
Normal file
6
ee/cis/macos-13/test/scripts/CIS_2.6.7.sh
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
set -eu
|
||||
|
||||
sudo security authorizationdb read system.preferences > /tmp/system.preferences.plist
|
||||
defaults write /tmp/system.preferences.plist shared -bool false
|
||||
sudo security authorizationdb write system.preferences < /tmp/system.preferences.plist
|
||||
Loading…
Reference in a new issue