Skip to content

Commit 0336fe5

Browse files
committed
refactor[rules] Updates to check/fix/ddm
Updated check fix for os_root_disable - in checking and disabling this way, sudo will function how some are expecting Updated rules for ddm info for 26.4
1 parent 45ca50c commit 0336fe5

9 files changed

+39
-6
lines changed

rules/os/os_dictation_disable.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,7 @@ mobileconfig: true
6565
mobileconfig_info:
6666
com.apple.applicationaccess:
6767
allowDictation: false
68+
ddm_info:
69+
declarationtype: com.apple.configuration.keyboard.settings
70+
ddm_key: AllowDictation
71+
ddm_value: false

rules/os/os_genmoji_disable.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,7 @@ mobileconfig: true
4646
mobileconfig_info:
4747
com.apple.applicationaccess:
4848
allowGenmoji: false
49+
ddm_info:
50+
declarationtype: com.apple.configuration.intelligence.settings
51+
ddm_key: AllowGenmoji
52+
ddm_value: false

rules/os/os_image_playground_disable.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,8 @@ tags:
4545
mobileconfig: true
4646
mobileconfig_info:
4747
com.apple.applicationaccess:
48-
allowImagePlayground: false
48+
allowImagePlayground: false
49+
ddm_info:
50+
declarationtype: com.apple.configuration.intelligence.settings
51+
ddm_key: AllowImagePlayground
52+
ddm_value: false

rules/os/os_on_device_dictation_enforce.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,7 @@ mobileconfig: true
7474
mobileconfig_info:
7575
com.apple.applicationaccess:
7676
forceOnDeviceOnlyDictation: true
77+
ddm_info:
78+
declarationtype: com.apple.configuration.intelligence.settings
79+
ddm_key: ForceOnDeviceOnlyTranslation
80+
ddm_value: true

rules/os/os_root_disable.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ discussion: |
55
66
The macOS system _MUST_ require individuals to be authenticated with an individual authenticator prior to using a group authenticator, and administrator users _MUST_ never log in directly as root.
77
check: |
8-
/usr/bin/dscl . -read /Users/root UserShell 2>&1 | /usr/bin/grep -c "/usr/bin/false"
8+
/usr/bin/dscl '/Local/Default' read '/Users/root' AuthenticationAuthority 2>/dev/null | /usr/bin/grep -c 'No such key: AuthenticationAuthority'
99
result:
10-
integer: 1
10+
integer: 0
1111
fix: |
1212
[source,bash]
1313
----
14-
/usr/bin/dscl . -create /Users/root UserShell /usr/bin/false
14+
/usr/bin/fdesetup remove -user root
15+
/usr/bin/dscl '/Local/Default' delete '/Users/root' AuthenticationAuthority
1516
----
1617
references:
1718
cce:

rules/os/os_writing_tools_disable.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,7 @@ mobileconfig: true
5858
mobileconfig_info:
5959
com.apple.applicationaccess:
6060
allowWritingTools: false
61+
ddm_info:
62+
declarationtype: com.apple.configuration.intelligence.settings
63+
ddm_key: AllowWritingTools
64+
ddm_value: false

rules/system_settings/system_settings_external_intelligence_disable.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,8 @@ severity: medium
6666
mobileconfig: true
6767
mobileconfig_info:
6868
com.apple.applicationaccess:
69-
allowExternalIntelligenceIntegrations: false
69+
allowExternalIntelligenceIntegrations: false
70+
ddm_info:
71+
declarationtype: com.apple.configuration.external-intelligence.settings
72+
ddm_key: Enabled
73+
ddm_value: false

rules/system_settings/system_settings_external_intelligence_sign_in_disable.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,8 @@ severity: medium
6969
mobileconfig: true
7070
mobileconfig_info:
7171
com.apple.applicationaccess:
72-
allowExternalIntelligenceIntegrationsSignIn: false
72+
allowExternalIntelligenceIntegrationsSignIn: false
73+
ddm_info:
74+
declarationtype: com.apple.configuration.external-intelligence.settings
75+
ddm_key: AllowSignIn
76+
ddm_value: false

rules/system_settings/system_settings_siri_disable.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,7 @@ mobileconfig: true
7070
mobileconfig_info:
7171
com.apple.applicationaccess:
7272
allowAssistant: false
73+
ddm_info:
74+
declarationtype: com.apple.configuration.siri.settings
75+
ddm_key: Enabled
76+
ddm_value: false

0 commit comments

Comments
 (0)