configmap-config.yaml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. apiVersion: v1
  2. kind: ConfigMap
  3. metadata:
  4. name: osquery-cm-config
  5. namespace: osquery
  6. data:
  7. osquery.example.conf: |
  8. {
  9. // Configure the daemon below:
  10. "options": {
  11. // Select the osquery config plugin.
  12. "config_plugin": "filesystem",
  13. // Select the osquery logging plugin.
  14. "logger_plugin": "filesystem",
  15. // The log directory stores info, warning, and errors.
  16. // If the daemon uses the 'filesystem' logging retriever then the log_dir
  17. // will also contain the query results.
  18. //"logger_path": "/var/log/osquery",
  19. // Set 'disable_logging' to true to prevent writing any info, warning, error
  20. // logs. If a logging plugin is selected it will still write query results.
  21. //"disable_logging": "false",
  22. // Splay the scheduled interval for queries.
  23. // This is very helpful to prevent system performance impact when scheduling
  24. // large numbers of queries that run a smaller or similar intervals.
  25. //"schedule_splay_percent": "10",
  26. // A filesystem path for disk-based backing storage used for events and
  27. // query results differentials. See also 'use_in_memory_database'.
  28. //"database_path": "/var/osquery/osquery.db",
  29. // Comma-delimited list of table names to be disabled.
  30. // This allows osquery to be launched without certain tables.
  31. //"disable_tables": "foo_bar,time",
  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. "utc": "true"
  36. },
  37. // Define a schedule of queries:
  38. "schedule": {
  39. // This is a simple example query that outputs basic system information.
  40. "proccess_info": {
  41. "query": "SELECT * FROM process_events;",
  42. // The interval in seconds to run this query, not an exact interval.
  43. "interval": 20
  44. }
  45. },
  46. // Add default osquery packs or install your own.
  47. //
  48. // There are several 'default' packs installed via
  49. // packages and/or Homebrew.
  50. //
  51. // Linux: /opt/osquery/share/osquery/packs
  52. // OS X: /var/osquery/packs
  53. // Homebrew: /usr/local/share/osquery/packs
  54. // make install: {PREFIX}/share/osquery/packs
  55. //
  56. "packs": {
  57. "fim": "/opt/osquery/share/osquery/packs/fim.conf",
  58. // "osquery-monitoring": "/opt/osquery/share/osquery/packs/osquery-monitoring.conf",
  59. "incident-response": "/opt/osquery/share/osquery/packs/incident-response.conf",
  60. // "it-compliance": "/opt/osquery/share/osquery/packs/it-compliance.conf",
  61. // "osx-attacks": "/var/osquery/packs/osx-attacks.conf",
  62. "vuln-management": "/opt/osquery/share/osquery/packs/vuln-management.conf"
  63. // "hardware-monitoring": "/opt/osquery/share/osquery/packs/hardware-monitoring.conf",
  64. // "ossec-rootkit": "/opt/osquery/share/osquery/packs/ossec-rootkit.conf",
  65. // "windows-hardening": "C:\\Program Files\\osquery\\packs\\windows-hardening.conf",
  66. // "windows-attacks": "C:\\Program Files\\osquery\\packs\\windows-attacks.conf"
  67. },
  68. // Provides feature vectors for osquery to leverage in simple statistical
  69. // analysis of results data.
  70. //
  71. // Currently this configuration is only used by Windows in the Powershell
  72. // Events table, wherein character_frequencies is a list of doubles
  73. // representing the aggregate occurrence of character values in Powershell
  74. // Scripts. A default configuration is provided which was adapated from
  75. // Lee Holmes cobbr project:
  76. // https://gist.github.com/cobbr/acbe5cc7a186726d4e309070187beee6
  77. //
  78. "feature_vectors": {
  79. "character_frequencies": [
  80. 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
  81. 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
  82. 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
  83. 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
  84. 0.0, 0.0, 0.0, 0.0, 0.0, 0.00045, 0.01798,
  85. 0.0, 0.03111, 0.00063, 0.00027, 0.0, 0.01336, 0.0133,
  86. 0.00128, 0.0027, 0.00655, 0.01932, 0.01917, 0.00432, 0.0045,
  87. 0.00316, 0.00245, 0.00133, 0.001029, 0.00114, 0.000869, 0.00067,
  88. 0.000759, 0.00061, 0.00483, 0.0023, 0.00185, 0.01342, 0.00196,
  89. 0.00035, 0.00092, 0.027875, 0.007465, 0.016265, 0.013995, 0.0490895,
  90. 0.00848, 0.00771, 0.00737, 0.025615, 0.001725, 0.002265, 0.017875,
  91. 0.016005, 0.02533, 0.025295, 0.014375, 0.00109, 0.02732, 0.02658,
  92. 0.037355, 0.011575, 0.00451, 0.005865, 0.003255, 0.005965, 0.00077,
  93. 0.00621, 0.00222, 0.0062, 0.0, 0.00538, 0.00122, 0.027875,
  94. 0.007465, 0.016265, 0.013995, 0.0490895, 0.00848, 0.00771, 0.00737,
  95. 0.025615, 0.001725, 0.002265, 0.017875, 0.016005, 0.02533, 0.025295,
  96. 0.014375, 0.00109, 0.02732, 0.02658, 0.037355, 0.011575, 0.00451,
  97. 0.005865, 0.003255, 0.005965, 0.00077, 0.00771, 0.002379, 0.00766,
  98. 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
  99. 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
  100. 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
  101. 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
  102. 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
  103. 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
  104. 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
  105. 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
  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.0, 0.0,
  111. 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
  112. 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
  113. 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
  114. 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
  115. 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
  116. 0.0, 0.0, 0.0
  117. ]
  118. }
  119. }