John Lamb
11/15/2023, 8:12 PMStefano Bonicatti
11/15/2023, 8:20 PM--audit_allow_sockets
?John Lamb
11/15/2023, 8:25 PMJohn Lamb
11/15/2023, 8:25 PMJohn Lamb
11/15/2023, 8:26 PMStefano Bonicatti
11/15/2023, 8:26 PMJohn Lamb
11/15/2023, 8:26 PMJohn Lamb
11/15/2023, 8:27 PMJohn Lamb
11/15/2023, 8:29 PMStefano Bonicatti
11/15/2023, 8:31 PMsocket_events
should not depend on process_events
. But I'm noticing this tooStefano Bonicatti
11/15/2023, 8:34 PM--audit_allow_config
makes it workJohn Lamb
11/15/2023, 8:35 PMStefano Bonicatti
11/15/2023, 8:35 PM--audit_allow_config
)?Stefano Bonicatti
11/15/2023, 8:36 PMJohn Lamb
11/15/2023, 8:37 PMpgrep auditd
?Stefano Bonicatti
11/15/2023, 8:37 PMJohn Lamb
11/15/2023, 8:37 PMJohn Lamb
11/15/2023, 8:38 PMStefano Bonicatti
11/15/2023, 8:42 PMJohn Lamb
11/15/2023, 8:43 PMJohn Lamb
11/15/2023, 8:43 PMStefano Bonicatti
11/15/2023, 9:12 PMaudit_control
, otherwise auditd
won't pick up the change.Stefano Bonicatti
11/15/2023, 9:12 PMauditd
without restarting the systemStefano Bonicatti
11/15/2023, 9:17 PMStefano Bonicatti
11/15/2023, 9:17 PMBrad Girardeau
11/15/2023, 9:20 PM--audit_allow_config
(and the various other flags) works for us to collect both socket_events
and es_process_events
. Just make sure to be on latest version with this fix https://github.com/osquery/osquery/issues/8076 otherwise there are sporadic crashesJohn Lamb
11/15/2023, 9:24 PMJohn Lamb
11/15/2023, 9:30 PMJohn Lamb
11/15/2023, 9:30 PMJohn Lamb
11/15/2023, 9:33 PMBrad Girardeau
11/15/2023, 9:40 PMsudo osqueryi --disable_audit=false --disable_events=false --disable_endpointsecurity=false --audit_allow_sockets=true --audit_allow_config=true
(I haven't looked into how to get things working without --audit_allow_config though)Stefano Bonicatti
11/15/2023, 9:44 PMosqueryi
. events do work with the shell, it's just that expiration behaves slightly differently (and only looks at the value in the events_expiry
flag).
The link I provided above mentions that you can edit audit_control
, but then you need to reboot yourself.Stefano Bonicatti
11/15/2023, 9:44 PMJohn Lamb
11/15/2023, 9:46 PMJohn Lamb
11/15/2023, 9:47 PMselect * from osquery_events
shows there are thousands of openbsm events, and 22 subscriptionsJohn Lamb
11/15/2023, 9:48 PMStefano Bonicatti
11/15/2023, 9:59 PMWhat’s weird isI think this is a shortcoming/bug of the implementation. As far I can see theshows there are thousands of openbsm events, and 22 subscriptionsselect * from osquery_events
process_events
table itself is always active, it's just that `audit_allow_process_events`controls the configuration onlyStefano Bonicatti
11/15/2023, 9:59 PMStefano Bonicatti
11/15/2023, 9:59 PMaudit_allow_process_events
is falseStefano Bonicatti
11/15/2023, 10:00 PMJohn Lamb
11/15/2023, 10:01 PMStefano Bonicatti
11/15/2023, 10:01 PMStefano Bonicatti
11/15/2023, 10:10 PMJohn Lamb
11/15/2023, 10:27 PM