No Description

wazuh_manager.conf 9.0KB

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