Geen omschrijving

wazuh_manager.conf 8.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. <ossec_config>
  2. <global>
  3. <jsonout_output>yes</jsonout_output>
  4. <alerts_log>yes</alerts_log>
  5. <logall>no</logall>
  6. <logall_json>no</logall_json>
  7. <email_notification>no</email_notification>
  8. <smtp_server>smtp.example.wazuh.com</smtp_server>
  9. <email_from>wazuh@example.wazuh.com</email_from>
  10. <email_to>recipient@example.wazuh.com</email_to>
  11. <email_maxperhour>12</email_maxperhour>
  12. <email_log_source>alerts.log</email_log_source>
  13. <agents_disconnection_time>10m</agents_disconnection_time>
  14. <agents_disconnection_alert_time>0</agents_disconnection_alert_time>
  15. </global>
  16. <alerts>
  17. <log_alert_level>3</log_alert_level>
  18. <email_alert_level>12</email_alert_level>
  19. </alerts>
  20. <!-- Choose between "plain", "json", or "plain,json" for the format of internal logs -->
  21. <logging>
  22. <log_format>plain</log_format>
  23. </logging>
  24. <remote>
  25. <connection>secure</connection>
  26. <port>1514</port>
  27. <protocol>tcp</protocol>
  28. <queue_size>131072</queue_size>
  29. </remote>
  30. <!-- Policy monitoring -->
  31. <rootcheck>
  32. <disabled>no</disabled>
  33. <check_files>yes</check_files>
  34. <check_trojans>yes</check_trojans>
  35. <check_dev>yes</check_dev>
  36. <check_sys>yes</check_sys>
  37. <check_pids>yes</check_pids>
  38. <check_ports>yes</check_ports>
  39. <check_if>yes</check_if>
  40. <!-- Frequency that rootcheck is executed - every 12 hours -->
  41. <frequency>43200</frequency>
  42. <rootkit_files>etc/rootcheck/rootkit_files.txt</rootkit_files>
  43. <rootkit_trojans>etc/rootcheck/rootkit_trojans.txt</rootkit_trojans>
  44. <skip_nfs>yes</skip_nfs>
  45. </rootcheck>
  46. <wodle name="cis-cat">
  47. <disabled>yes</disabled>
  48. <timeout>1800</timeout>
  49. <interval>1d</interval>
  50. <scan-on-start>yes</scan-on-start>
  51. <java_path>wodles/java</java_path>
  52. <ciscat_path>wodles/ciscat</ciscat_path>
  53. </wodle>
  54. <!-- Osquery integration -->
  55. <wodle name="osquery">
  56. <disabled>yes</disabled>
  57. <run_daemon>yes</run_daemon>
  58. <log_path>/var/log/osquery/osqueryd.results.log</log_path>
  59. <config_path>/etc/osquery/osquery.conf</config_path>
  60. <add_labels>yes</add_labels>
  61. </wodle>
  62. <!-- System inventory -->
  63. <wodle name="syscollector">
  64. <disabled>no</disabled>
  65. <interval>1h</interval>
  66. <scan_on_start>yes</scan_on_start>
  67. <hardware>yes</hardware>
  68. <os>yes</os>
  69. <network>yes</network>
  70. <packages>yes</packages>
  71. <ports all="yes">yes</ports>
  72. <processes>yes</processes>
  73. <!-- Database synchronization settings -->
  74. <synchronization>
  75. <max_eps>10</max_eps>
  76. </synchronization>
  77. </wodle>
  78. <sca>
  79. <enabled>yes</enabled>
  80. <scan_on_start>yes</scan_on_start>
  81. <interval>12h</interval>
  82. <skip_nfs>yes</skip_nfs>
  83. </sca>
  84. <vulnerability-detection>
  85. <enabled>yes</enabled>
  86. <index-status>yes</index-status>
  87. <feed-update-interval>60m</feed-update-interval>
  88. </vulnerability-detection>
  89. <indexer>
  90. <enabled>yes</enabled>
  91. <hosts>
  92. <host>https://wazuh1.indexer:9200</host>
  93. <host>https://wazuh2.indexer:9200</host>
  94. <host>https://wazuh3.indexer:9200</host>
  95. </hosts>
  96. <ssl>
  97. <certificate_authorities>
  98. <ca>/etc/ssl/root-ca.pem</ca>
  99. </certificate_authorities>
  100. <certificate>/etc/ssl/filebeat.pem</certificate>
  101. <key>/etc/ssl/filebeat.key</key>
  102. </ssl>
  103. </indexer>
  104. <!-- File integrity monitoring -->
  105. <syscheck>
  106. <disabled>no</disabled>
  107. <!-- Frequency that syscheck is executed default every 12 hours -->
  108. <frequency>43200</frequency>
  109. <scan_on_start>yes</scan_on_start>
  110. <!-- Generate alert when new file detected -->
  111. <alert_new_files>yes</alert_new_files>
  112. <!-- Don't ignore files that change more than 'frequency' times -->
  113. <auto_ignore frequency="10" timeframe="3600">no</auto_ignore>
  114. <!-- Directories to check (perform all possible verifications) -->
  115. <directories>/etc,/usr/bin,/usr/sbin</directories>
  116. <directories>/bin,/sbin,/boot</directories>
  117. <!-- Files/directories to ignore -->
  118. <ignore>/etc/mtab</ignore>
  119. <ignore>/etc/hosts.deny</ignore>
  120. <ignore>/etc/mail/statistics</ignore>
  121. <ignore>/etc/random-seed</ignore>
  122. <ignore>/etc/random.seed</ignore>
  123. <ignore>/etc/adjtime</ignore>
  124. <ignore>/etc/httpd/logs</ignore>
  125. <ignore>/etc/utmpx</ignore>
  126. <ignore>/etc/wtmpx</ignore>
  127. <ignore>/etc/cups/certs</ignore>
  128. <ignore>/etc/dumpdates</ignore>
  129. <ignore>/etc/svc/volatile</ignore>
  130. <!-- File types to ignore -->
  131. <ignore type="sregex">.log$|.swp$</ignore>
  132. <!-- Check the file, but never compute the diff -->
  133. <nodiff>/etc/ssl/private.key</nodiff>
  134. <skip_nfs>yes</skip_nfs>
  135. <skip_dev>yes</skip_dev>
  136. <skip_proc>yes</skip_proc>
  137. <skip_sys>yes</skip_sys>
  138. <!-- Nice value for Syscheck process -->
  139. <process_priority>10</process_priority>
  140. <!-- Maximum output throughput -->
  141. <max_eps>100</max_eps>
  142. <!-- Database synchronization settings -->
  143. <synchronization>
  144. <enabled>yes</enabled>
  145. <interval>5m</interval>
  146. <max_interval>1h</max_interval>
  147. <max_eps>10</max_eps>
  148. </synchronization>
  149. </syscheck>
  150. <!-- Active response -->
  151. <global>
  152. <white_list>127.0.0.1</white_list>
  153. <white_list>^localhost.localdomain$</white_list>
  154. </global>
  155. <command>
  156. <name>disable-account</name>
  157. <executable>disable-account</executable>
  158. <timeout_allowed>yes</timeout_allowed>
  159. </command>
  160. <command>
  161. <name>restart-wazuh</name>
  162. <executable>restart-wazuh</executable>
  163. </command>
  164. <command>
  165. <name>firewall-drop</name>
  166. <executable>firewall-drop</executable>
  167. <timeout_allowed>yes</timeout_allowed>
  168. </command>
  169. <command>
  170. <name>host-deny</name>
  171. <executable>host-deny</executable>
  172. <timeout_allowed>yes</timeout_allowed>
  173. </command>
  174. <command>
  175. <name>route-null</name>
  176. <executable>route-null</executable>
  177. <timeout_allowed>yes</timeout_allowed>
  178. </command>
  179. <command>
  180. <name>win_route-null</name>
  181. <executable>route-null.exe</executable>
  182. <timeout_allowed>yes</timeout_allowed>
  183. </command>
  184. <command>
  185. <name>netsh</name>
  186. <executable>netsh.exe</executable>
  187. <timeout_allowed>yes</timeout_allowed>
  188. </command>
  189. <!--
  190. <active-response>
  191. active-response options here
  192. </active-response>
  193. -->
  194. <!-- Log analysis -->
  195. <localfile>
  196. <log_format>command</log_format>
  197. <command>df -P</command>
  198. <frequency>360</frequency>
  199. </localfile>
  200. <localfile>
  201. <log_format>full_command</log_format>
  202. <command>netstat -tulpn | sed 's/\([[:alnum:]]\+\)\ \+[[:digit:]]\+\ \+[[:digit:]]\+\ \+\(.*\):\([[:digit:]]*\)\ \+\([0-9\.\:\*]\+\).\+\ \([[:digit:]]*\/[[:alnum:]\-]*\).*/\1 \2 == \3 == \4 \5/' | sort -k 4 -g | sed 's/ == \(.*\) ==/:\1/' | sed 1,2d</command>
  203. <alias>netstat listening ports</alias>
  204. <frequency>360</frequency>
  205. </localfile>
  206. <localfile>
  207. <log_format>full_command</log_format>
  208. <command>last -n 20</command>
  209. <frequency>360</frequency>
  210. </localfile>
  211. <ruleset>
  212. <!-- Default ruleset -->
  213. <decoder_dir>ruleset/decoders</decoder_dir>
  214. <rule_dir>ruleset/rules</rule_dir>
  215. <rule_exclude>0215-policy_rules.xml</rule_exclude>
  216. <list>etc/lists/audit-keys</list>
  217. <list>etc/lists/amazon/aws-eventnames</list>
  218. <list>etc/lists/security-eventchannel</list>
  219. <list>etc/lists/malicious-ioc/malicious-ip</list>
  220. <list>etc/lists/malicious-ioc/malicious-domains</list>
  221. <list>etc/lists/malicious-ioc/malware-hashes</list>
  222. <!-- User-defined ruleset -->
  223. <decoder_dir>etc/decoders</decoder_dir>
  224. <rule_dir>etc/rules</rule_dir>
  225. </ruleset>
  226. <rule_test>
  227. <enabled>yes</enabled>
  228. <threads>1</threads>
  229. <max_sessions>64</max_sessions>
  230. <session_timeout>15m</session_timeout>
  231. </rule_test>
  232. <!-- Configuration for wazuh-authd -->
  233. <auth>
  234. <disabled>no</disabled>
  235. <port>1515</port>
  236. <use_source_ip>no</use_source_ip>
  237. <purge>yes</purge>
  238. <use_password>no</use_password>
  239. <ciphers>HIGH:!ADH:!EXP:!MD5:!RC4:!3DES:!CAMELLIA:@STRENGTH</ciphers>
  240. <!-- <ssl_agent_ca></ssl_agent_ca> -->
  241. <ssl_verify_host>no</ssl_verify_host>
  242. <ssl_manager_cert>etc/sslmanager.cert</ssl_manager_cert>
  243. <ssl_manager_key>etc/sslmanager.key</ssl_manager_key>
  244. <ssl_auto_negotiate>no</ssl_auto_negotiate>
  245. </auth>
  246. <cluster>
  247. <name>wazuh</name>
  248. <node_name>manager</node_name>
  249. <node_type>master</node_type>
  250. <key>c98b6ha9b6169zc5f67rae55ae4z5647</key>
  251. <port>1516</port>
  252. <bind_addr>0.0.0.0</bind_addr>
  253. <nodes>
  254. <node>wazuh.master</node>
  255. </nodes>
  256. <hidden>no</hidden>
  257. <disabled>no</disabled>
  258. </cluster>
  259. </ossec_config>
  260. <ossec_config>
  261. <localfile>
  262. <log_format>syslog</log_format>
  263. <location>/var/ossec/logs/active-responses.log</location>
  264. </localfile>
  265. </ossec_config>