Нет описания

wazuh_manager.conf 9.1KB

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