--- # Generated by tools/hardened.py from ../t1. Edit t1 or the script; this file is regenerated. # # Starting values: Standard's defaults, role by role. Change them here, in # your copy. The rules in policy/ check this file before every run. # ---- osquery ---- # Every setting the role understands, with the value used when you say nothing. # Override in group_vars or host_vars. Do not edit this file. # From osquery.io/downloads: the .deb or .rpm for these hosts, and its SHA-256. # Each release is a new file, so neither has a default. osquery_package_url: "" osquery_package_sha256: "" # Where results go. syslog carries them to the host log template's forwarding. osquery_logger_plugins: [filesystem, syslog] osquery_log_dir: /var/log/osquery # The questions, each with how often it runs in seconds. Results are logged as # differences: rows that appeared and rows that went away since the last run. osquery_queries: users: query: "SELECT uid, username, shell, directory FROM users;" interval: 3600 ssh_authorized_keys: query: "SELECT u.username, k.key_file, k.algorithm, k.key FROM users u CROSS JOIN authorized_keys k USING (uid);" interval: 3600 sudoers: query: "SELECT source, header, rule_details FROM sudoers;" interval: 3600 listening_ports: query: "SELECT p.name, p.path, lp.port, lp.address, lp.protocol FROM listening_ports lp JOIN processes p USING (pid) WHERE lp.port != 0;" interval: 3600 crontab: query: "SELECT event, minute, hour, command, path FROM crontab;" interval: 3600 systemd_units_added_locally: query: "SELECT id, active_state, fragment_path FROM systemd_units WHERE fragment_path LIKE '/etc/systemd/system/%';" interval: 3600 kernel_modules: query: "SELECT name, size, status FROM kernel_modules;" interval: 3600 setuid_programs: query: "SELECT path, username, groupname, permissions FROM suid_bin;" interval: 86400 running_from_deleted_file: query: "SELECT pid, name, path, cmdline FROM processes WHERE on_disk = 0;" interval: 300 osquery_extra_queries: {}