os_anti_virus_installed errors: Load Failed 5 (Sonoma) #153

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

Originally created by @cipineda on GitHub.

Summary

when running the remediation commands for 'os_anti_virus_installed' in Sonoma Beta 7 I'm getting error 5

(Summarize the bug encountered concisely)

Steps to reproduce

Run the remediation code:
/bin/launchctl load -w /Library/Apple/System/Library/LaunchDaemons/com.apple.XProtect.daemon.scan.plist
/bin/launchctl load -w /Library/Apple/System/Library/LaunchDaemons/com.apple.XProtectFramework.PluginService.plist

both of the above commands return the following:
' "Load failed: 5: Input/output error
Try running: launchctl bootstrap as root for richer errors" `

(How one can reproduce the issue - this is very important)
Same as in steps to reproduce

Operating System version

Sonoma 14.0 Beta 7 (23A5337a)

Intel or Apple Silicon

Silicon

What is the current bug behavior?

the item is not remediated

What is the expected correct behavior?

daemons get properly loaded and item remediated

Relevant logs and/or screenshots

Output of checks

' "Load failed: 5: Input/output error
Try running: launchctl bootstrap as root for richer errors" `

Possible fixes

(If you can, link to the line of code that might be responsible for the problem)

Originally created by @cipineda on GitHub. <!--- Please read this! Before opening a new issue, make sure to search for keywords in the issues filtered by the "regression" or "bug" label and verify the issue you're about to submit isn't a duplicate. ---> ### Summary when running the remediation commands for 'os_anti_virus_installed' in Sonoma Beta 7 I'm getting error 5 (Summarize the bug encountered concisely) ### Steps to reproduce Run the remediation code: `/bin/launchctl load -w /Library/Apple/System/Library/LaunchDaemons/com.apple.XProtect.daemon.scan.plist` `/bin/launchctl load -w /Library/Apple/System/Library/LaunchDaemons/com.apple.XProtectFramework.PluginService.plist` both of the above commands return the following: ' "Load failed: 5: Input/output error Try running: `launchctl bootstrap` as root for richer errors" ` (How one can reproduce the issue - this is very important) Same as in steps to reproduce ### Operating System version Sonoma 14.0 Beta 7 (23A5337a) ### Intel or Apple Silicon Silicon ### What is the current *bug* behavior? the item is not remediated ### What is the expected *correct* behavior? daemons get properly loaded and item remediated ### Relevant logs and/or screenshots ### Output of checks ' "Load failed: 5: Input/output error Try running: `launchctl bootstrap` as root for richer errors" ` ### Possible fixes (If you can, link to the line of code that might be responsible for the problem)
Author
Owner

@robertgendler commented on GitHub:

The launchctl load works just fine.

When SIP is enabled, you can't disable Xprotect and so you can't load XProtect.

If you disable SIP, then stop and unload Xprotect the load -w will work fine.

@robertgendler commented on GitHub: The launchctl load works just fine. When SIP is enabled, you can't disable Xprotect and so you can't load XProtect. If you disable SIP, then stop and unload Xprotect the load -w will work fine.
Author
Owner

@robertgendler commented on GitHub:

If you have an additional questions. Feel free to re-open it.

@robertgendler commented on GitHub: If you have an additional questions. Feel free to re-open it.
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#153