phoenixdigital

osquery.conf

Jan 31st, 2021
1,457
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 6.76 KB | None | 0 0
  1. {
  2.   // Configure the daemon below:
  3.   "options": {
  4.     // Select the osquery config plugin.
  5.     "config_plugin": "filesystem",
  6.  
  7.     // Select the osquery logging plugin.
  8.     "logger_plugin": "filesystem",
  9.  
  10.     // The log directory stores info, warning, and errors.
  11.     // If the daemon uses the 'filesystem' logging retriever then the log_dir
  12.     // will also contain the query results.
  13.     //"logger_path": "/var/log/osquery",
  14.  
  15.     // Set 'disable_logging' to true to prevent writing any info, warning, error
  16.     // logs. If a logging plugin is selected it will still write query results.
  17.     "disable_logging": "false",
  18.  
  19.     // Splay the scheduled interval for queries.
  20.     // This is very helpful to prevent system performance impact when scheduling
  21.     // large numbers of queries that run a smaller or similar intervals.
  22.     //"schedule_splay_percent": "10",
  23.  
  24.     // A filesystem path for disk-based backing storage used for events and
  25.     // query results differentials. See also 'use_in_memory_database'.
  26.     //"database_path": "/var/osquery/osquery.db",
  27.  
  28.     // Comma-delimited list of table names to be disabled.
  29.     // This allows osquery to be launched without certain tables.
  30.     "disable_tables": "windows_events",
  31.  
  32.     // Comma-delimited list of table names to be enabled.
  33.     // This allows osquery to be launched with certain tables only.
  34.     //"enable_tables": "foo_bar,time",
  35.  
  36.     // hopefully turns off windows event monitoring.
  37. //    "windows_event_channels: "",
  38.  
  39.     // debug logging set to true
  40.     "verbose": "true",
  41.    
  42.     // Needed for Linux FIM
  43.     "enable_monitor": "true",
  44.     "disable_events": "false",
  45. //      "disable_audit": "false",
  46.    
  47.     "utc": "true"
  48.  
  49.   },
  50.  
  51.   // Define a schedule of queries:
  52.   "schedule": {
  53.     // This is a simple example query that outputs basic system information.
  54.     "system_info": {
  55.       // The exact query to run.
  56.       "query": "SELECT hostname, cpu_brand, physical_memory FROM system_info;",
  57.       // The interval in seconds to run this query, not an exact interval.
  58.       "interval": 3600
  59.     }
  60.   },
  61.  
  62.   // Decorators are normal queries that append data to every query.
  63.   "decorators": {
  64.     "load": [
  65.       "SELECT uuid AS host_uuid FROM system_info;",
  66.       "SELECT user AS username FROM logged_in_users ORDER BY time DESC LIMIT 1;"
  67.     ]
  68.   },
  69.  
  70.   // Add default osquery packs or install your own.
  71.   //
  72.   // There are several 'default' packs installed with 'make install' or via
  73.   // packages and/or Homebrew.
  74.   //
  75.   // Linux:        /usr/share/osquery/packs
  76.   // OS X:         /var/osquery/packs
  77.   // Homebrew:     /usr/local/share/osquery/packs
  78.   // make install: {PREFIX}/share/osquery/packs
  79.   //
  80.   "packs": {
  81.     "splunk-all": "/usr/share/osquery/packs/splunk-pack-all.conf",
  82.     "splunk-nix": "/usr/share/osquery/packs/splunk-pack-nix.conf",
  83.     "osquery-monitoring": "/usr/share/osquery/packs/osquery-monitoring.conf"
  84.     // "incident-response": "/usr/share/osquery/packs/incident-response.conf",
  85.     // "it-compliance": "/usr/share/osquery/packs/it-compliance.conf",
  86.     // "osx-attacks": "/usr/share/osquery/packs/osx-attacks.conf",
  87.     // "vuln-management": "/usr/share/osquery/packs/vuln-management.conf",
  88.     // "hardware-monitoring": "/usr/share/osquery/packs/hardware-monitoring.conf",
  89.     // "ossec-rootkit": "/usr/share/osquery/packs/ossec-rootkit.conf",
  90.     // "windows-hardening": "C:\\Program Files\\osquery\\packs\\windows-hardening.conf",
  91.     // "windows-attacks": "C:\\Program Files\\osquery\\packs\\windows-attacks.conf"
  92.   },
  93.  
  94.   // Provides feature vectors for osquery to leverage in simple statistical
  95.   // analysis of results data.
  96.   //
  97.   // Currently this configuration is only used by Windows in the Powershell
  98.   // Events table, wherein character_frequencies is a list of doubles
  99.   // representing the aggregate occurrence of character values in Powershell
  100.   // Scripts. A default configuration is provided which was adapated from
  101.   // Lee Holmes cobbr project:
  102.   // https://gist.github.com/cobbr/acbe5cc7a186726d4e309070187beee6
  103.   //
  104.   "feature_vectors": {
  105.     "character_frequencies": [
  106.       0.0,      0.0,      0.0,      0.0,       0.0,      0.0,      0.0,
  107.       0.0,      0.0,      0.0,      0.0,       0.0,      0.0,      0.0,
  108.       0.0,      0.0,      0.0,      0.0,       0.0,      0.0,      0.0,
  109.       0.0,      0.0,      0.0,      0.0,       0.0,      0.0,      0.0,
  110.       0.0,      0.0,      0.0,      0.0,       0.0,      0.00045,  0.01798,
  111.       0.0,      0.03111,  0.00063,  0.00027,   0.0,      0.01336,  0.0133,
  112.       0.00128,  0.0027,   0.00655,  0.01932,   0.01917,  0.00432,  0.0045,
  113.       0.00316,  0.00245,  0.00133,  0.001029,  0.00114,  0.000869, 0.00067,
  114.       0.000759, 0.00061,  0.00483,  0.0023,    0.00185,  0.01342,  0.00196,
  115.       0.00035,  0.00092,  0.027875, 0.007465,  0.016265, 0.013995, 0.0490895,
  116.       0.00848,  0.00771,  0.00737,  0.025615,  0.001725, 0.002265, 0.017875,
  117.       0.016005, 0.02533,  0.025295, 0.014375,  0.00109,  0.02732,  0.02658,
  118.       0.037355, 0.011575, 0.00451,  0.005865,  0.003255, 0.005965, 0.00077,
  119.       0.00621,  0.00222,  0.0062,   0.0,       0.00538,  0.00122,  0.027875,
  120.       0.007465, 0.016265, 0.013995, 0.0490895, 0.00848,  0.00771,  0.00737,
  121.       0.025615, 0.001725, 0.002265, 0.017875,  0.016005, 0.02533,  0.025295,
  122.       0.014375, 0.00109,  0.02732,  0.02658,   0.037355, 0.011575, 0.00451,
  123.       0.005865, 0.003255, 0.005965, 0.00077,   0.00771,  0.002379, 0.00766,
  124.       0.0,      0.0,      0.0,      0.0,       0.0,      0.0,      0.0,
  125.       0.0,      0.0,      0.0,      0.0,       0.0,      0.0,      0.0,
  126.       0.0,      0.0,      0.0,      0.0,       0.0,      0.0,      0.0,
  127.       0.0,      0.0,      0.0,      0.0,       0.0,      0.0,      0.0,
  128.       0.0,      0.0,      0.0,      0.0,       0.0,      0.0,      0.0,
  129.       0.0,      0.0,      0.0,      0.0,       0.0,      0.0,      0.0,
  130.       0.0,      0.0,      0.0,      0.0,       0.0,      0.0,      0.0,
  131.       0.0,      0.0,      0.0,      0.0,       0.0,      0.0,      0.0,
  132.       0.0,      0.0,      0.0,      0.0,       0.0,      0.0,      0.0,
  133.       0.0,      0.0,      0.0,      0.0,       0.0,      0.0,      0.0,
  134.       0.0,      0.0,      0.0,      0.0,       0.0,      0.0,      0.0,
  135.       0.0,      0.0,      0.0,      0.0,       0.0,      0.0,      0.0,
  136.       0.0,      0.0,      0.0,      0.0,       0.0,      0.0,      0.0,
  137.       0.0,      0.0,      0.0,      0.0,       0.0,      0.0,      0.0,
  138.       0.0,      0.0,      0.0,      0.0,       0.0,      0.0,      0.0,
  139.       0.0,      0.0,      0.0,      0.0,       0.0,      0.0,      0.0,
  140.       0.0,      0.0,      0.0,      0.0,       0.0,      0.0,      0.0,
  141.       0.0,      0.0,      0.0,      0.0,       0.0,      0.0,      0.0,
  142.       0.0,      0.0,      0.0
  143.     ]
  144.   }    
  145. }
  146.  
Advertisement
Add Comment
Please, Sign In to add comment