Hello guys. Has anyone managed to enable `user_eve...
# general
k
Hello guys. Has anyone managed to enable
user_events
table on MacOS? I've enabled the following tables but still am not getting anything:
Copy code
--audit_allow_config
--audit_allow_user_events
--disable_audit=false
--disable_events=false
s
there are a couple of more flags needed
--enable_keyboard_events=true
and
--enable_mouse_events=true
, and osquery will also need relevant macOS permissions
k
Thanks for the quick response. By relevant macos permissions, would you be referring to the correct auditd configuration? I've modified mine to match the one suggested in the osquery docs. Just wondering if I missed out on any other macos settings
s
No, these are the “Input Monitoring” permissions in macOS system preference/settings, osquery will need to be on the allow list there iirc
k
Gave your suggestion a go, I see events under user_interaction_events rather than user_events
s
ah okay..I see, I think you might have to add relevant flags to your
/etc/security/audit_control
file
and the
audit_user
file, I don’t know the flags off the top of my head, but I think the
man
page should have an example for it
and just a heads up, this uses OpenBSM, and apple has deprecated it since the last few macOS releases, so while it sill works, it could also be broken/go away in the future release
k
Gotcha, I'll tinker around. Cheers!