You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: 'Is auto-update enabled on this machine?',
query: "SELECT * FROM plist WHERE path = '/Library/Preferences/com.apple.SoftwareUpdate.plist' AND key = 'CriticalUpdateInstall' UNION SELECT * FROM plist WHERE path = '/Library/Preferences/com.apple.commerce.plist' AND key = 'AutoUpdate' UNION SELECT * FROM plist WHERE path = '/Library/Managed Preferences/com.apple.SoftwareUpdate.plist' AND key = 'CriticalUpdateInstall' UNION SELECT * FROM plist WHERE path = '/Library/Managed Preferences/com.apple.commerce.plist' AND key = 'AutoUpdate'",
}),
I installed osquery and ran the query manually to see what it returned:
osquery> SELECT * FROM plist WHERE path = '/Library/Preferences/com.apple.SoftwareUpdate.plist' AND key = 'CriticalUpdateInstall' UNION SELECT * FROM plist WHERE path = '/Library/Preferences/com.apple.commerce.plist' AND key = 'AutoUpdate' UNION SELECT * FROM plist WHERE path = '/Library/Managed Preferences/com.apple.SoftwareUpdate.plist' AND key = 'CriticalUpdateInstall' UNION SELECT * FROM plist WHERE path = '/Library/Managed Preferences/com.apple.commerce.plist' AND key = 'AutoUpdate'
...> ;
+------------+--------+-------+-----------------------------------------------+
| key | subkey | value | path |
+------------+--------+-------+-----------------------------------------------+
| AutoUpdate | | 1 | /Library/Preferences/com.apple.commerce.plist |
+------------+--------+-------+-----------------------------------------------+
Hmm, no CriticalUpdateInstall response. Querying the first plist directly returned:
Hey, look at that, CriticalUpdateInstall is present now, and the Drata check is passing (it had started failing a few days ago, probably related to the new compliance check for gatekeeper/xprotect).
I unfortunately did not check the other plist files to see what they contained, and I'm not sure how to get it into the broken state my machine was in (I suspect OS upgrades and never touching the settings directly). But at least it seems that looking for CriticalUpdateInstall is not a true reflection of whether the functionality is actually enabled or not.
The text was updated successfully, but these errors were encountered:
Confirmed, everyone in our company has this setting enabled via the GUI (default) but CriticalUpdateInstall is unset. Given how widespread this is, my guess is it's not a "broken" state. Drata should modify their agent to assume unset == enabled.
I'm not sure what went wrong, but this query was not returning the proper information on my Sonoma 14.6.1 machine.
drata-agent/src/main/services/system-query/macos-system-query.service.ts
Lines 124 to 127 in e04e0c1
I installed osquery and ran the query manually to see what it returned:
Hmm, no
CriticalUpdateInstall
response. Querying the first plist directly returned:So it's not a query issue. I then went and toggle on and off all the checkboxes in system settings related to updates, then ran the above query again.
Hey, look at that, CriticalUpdateInstall is present now, and the Drata check is passing (it had started failing a few days ago, probably related to the new compliance check for gatekeeper/xprotect).
I unfortunately did not check the other plist files to see what they contained, and I'm not sure how to get it into the broken state my machine was in (I suspect OS upgrades and never touching the settings directly). But at least it seems that looking for
CriticalUpdateInstall
is not a true reflection of whether the functionality is actually enabled or not.The text was updated successfully, but these errors were encountered: