-
Notifications
You must be signed in to change notification settings - Fork 200
Customization
The project supports modifying existing rules and adding new rules to a baseline, to meet an organizations requirements. For existing rules, only the fields that are being customized need to remain — this ensures that your custom rules will continue working as the project is updated (including updates to meet the needs of future OS releases). Where tailoring is used to select which rules to include in a benchmark, customizing is modifying the rules themselves.
To modify an existing rule do the following:
-
Copy the existing rule file to the
custom
folder. The name must rename the same. -
Remove any fields that don’t need to be modified.
-
Modify the fields that meet your organizational defined values.
-
Run
generate_guidance.py
, the custom version of the rule will be added to the output.
references:
custom:
MSCP:
- MSCP-OS-001
URL:
- https://developer.apple.com/documentation/devicemanagement/timeserver
Remediation Tool:
- MDM
To add an new rule, follow these steps:
-
Create a new rules.yaml file in the
custom
folder.-
If the rule contains a configuration profile payload not in the project, add the new payload to
supported_payloads.yaml
in theincludes
folder.
-
-
Run
generate_baseline.py
to add the new rule to your baseline. -
Run
generate_guidance.py
against the customized baseline.
Use Case:
If you want to include a custom version of rule that still explains the control, but do not want to include a check, result, or fix see below. By adding the manual
tag to the custom rule will also ensure it does not show up in the compliance script.
check: |
result: |
fix: |
tag:
- manual