SIP protected services #121

Closed
opened 2026-01-19 18:29:18 +00:00 by michael · 2 comments
Owner

Originally created by @nihil-admirari on GitHub.

Originally assigned to: @robertgendler on GitHub.

os_anti_virus_installed and os_time_server_enabled are trying to configure services that are SIP protected, i.e. these services cannot be loaded or unloaded, and their disablement status is always ignored.

Since SIP is enforced by os_sip_enable, it may be better to check that these services were not added to /System/Library/Sandbox/com.apple.xpc.launchd.rootless.plist, rather than trying to launchctl load -w them (which errors anyway)?

Originally created by @nihil-admirari on GitHub. Originally assigned to: @robertgendler on GitHub. [os_anti_virus_installed](https://github.com/usnistgov/macos_security/blob/sonoma/rules/os/os_anti_virus_installed.yaml) and [os_time_server_enabled](https://github.com/usnistgov/macos_security/blob/sonoma/rules/os/os_time_server_enabled.yaml) are trying to configure services that are SIP protected, i.e. these services cannot be loaded or unloaded, and their disablement status is always ignored. Since SIP is enforced by [os_sip_enable](https://github.com/usnistgov/macos_security/blob/sonoma/rules/os/os_sip_enable.yaml), it may be better to check that these services were not added to `/System/Library/Sandbox/com.apple.xpc.launchd.rootless.plist`, rather than trying to `launchctl load -w` them (which errors anyway)?
Author
Owner

@robertgendler commented on GitHub:

We're going to make some changes to the rules that check SIP protected services. It's important to check the status since someone could disable SIP, disable the service, enable SIP.

@robertgendler commented on GitHub: We're going to make some changes to the rules that check SIP protected services. It's important to check the status since someone could disable SIP, disable the service, enable SIP.
Author
Owner

@robertgendler commented on GitHub:

@nihil-admirari check out dev_sonoma_issue345

@robertgendler commented on GitHub: @nihil-admirari check out `dev_sonoma_issue345`
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: usnistgov/macos_security#121