Falcon-V
04/12/2024, 11:39 PM{
“options”:{
“config_plugin”:“filesystem”,
“logger_plugin”:“filesystem”,
“logger_path”:“/var/log/osquery”,
“disable_logging”:“false”,
“log_result_events”:“true”,
“schedule_splay_percent”:“10”,
“audit_persist”:“true”,
“disable_audit”:“false”,
“audit_allow_sockets”:“true”,
“disable_events”:“false”,
“pack_refresh_interval”: “3600”,
“audit_allow_config”: “true”
},
"bpf_socket_events":{
“query”:“SELECT * FROM bpf_socket_events;“,
“interval”:10
},FG
04/15/2024, 12:51 PMSELECT * FROM osquery_flags WHERE value <> default_value
or you could add in specific WHERE clause for the events related flags so you can first validate whether or not you are actually creating events or not.Falcon-V
04/15/2024, 1:43 PMFG
04/15/2024, 2:31 PMFalcon-V
04/15/2024, 2:35 PMFG
04/15/2024, 2:43 PM--enable_bpf_events=true
Falcon-V
04/15/2024, 2:44 PM--config_plugin=filesystem
--logger_plugin=filesystem
--logger_path=/var/log/osquery
--disable_logging=false
--log_result_events=true
--schedule_splay_percent=10
--audit_persist=true
--disable_audit=false
--audit_allow_sockets=true
--disable_events=false
--pack_refresh_interval=3600
--audit_allow_config=true
--enable_bpf_events=trueFG
04/15/2024, 2:45 PMFalcon-V
04/15/2024, 2:45 PMFG
04/15/2024, 2:47 PMFalcon-V
04/15/2024, 2:48 PMFalcon-V
04/15/2024, 2:49 PM[Unit]
Description=The osquery Daemon
After=network.service syslog.service
[Service]
TimeoutStartSec=0
EnvironmentFile=/etc/sysconfig/osqueryd
ExecStartPre=/bin/sh -c “if [ ! -f $FLAG_FILE ]; then touch $FLAG_FILE; fi”
ExecStartPre=/bin/sh -c “if [ -f $LOCAL_PIDFILE ]; then mv $LOCAL_PIDFILE $PIDFILE; fi”
ExecStart=/opt/osquery/bin/osqueryd \
--flagfile $FLAG_FILE \
--config_path $CONFIG_FILE
Restart=on-failure
KillMode=control-group
KillSignal=SIGTERM
TimeoutStopSec=15
CPUQuota=20%
[Install]
WantedBy=multi-user.targetFalcon-V
04/15/2024, 2:49 PMFG
04/15/2024, 2:51 PMFalcon-V
04/15/2024, 2:54 PMsudo osqueryi --disable_events=false --enable_bpf_events=true --verbose
FG
04/15/2024, 2:56 PMFalcon-V
04/15/2024, 2:57 PMFalcon-V
04/15/2024, 2:57 PMFalcon-V
04/15/2024, 3:04 PMStefano Bonicatti
04/16/2024, 9:12 AMStefano Bonicatti
04/16/2024, 9:13 AM--help
or in the code, since CLI_FLAG
is the macro used to define CLI only flags, the others use FLAG
Stefano Bonicatti
04/16/2024, 9:14 AM