chrismsnz
05/29/2023, 9:45 PMscreenlock
table being busted in the newish mac osx releases?seph
chrismsnz
05/29/2023, 10:02 PMseph
Screenlock status can once again be monitored. Please see the following updated article for details on how we reverse engineered a solution and how you can check the state of your devices screenlock settings.https://www.kolide.com/blog/how-kolide-built-its-macos-screenlock-check
chrismsnz
05/29/2023, 10:09 PMseph
screenlock
table uses an undocumented API, and it needs to run as the user you’re looking for. So you need some kind of sudo like functionality. That’s what the kolide table does.seph
screenlock
tablechrismsnz
05/29/2023, 10:12 PMkolide_screenlock
. i was asking if there was a an upstream osquery solution to this issue to a table they supportseph
chrismsnz
05/29/2023, 10:13 PMscreenlock
already had the user limitation and was acceptable, the issue is that mac os x moved the actual setting out of a plist where screenlock is expecting it to beseph
seph
screenlock
table uses
But unlike almost everything else, it must run in the user context. This is not the same as finding something in the user’s homedir.
AFAIK it’s one of the only things with that limitationseph
seph
seph
user:
$ osqueryd -S
Using a virtual database. Need help, type '.help'
osquery> .mode line
osquery> select * from screenlock;
enabled = 1
grace_period = 300
chrismsnz
05/29/2023, 10:30 PMscreenlock
working outside of user context on osx >10.13 but seems I am mistaken.chrismsnz
05/29/2023, 10:35 PMchrismsnz
05/29/2023, 10:36 PMseph
seph
seph