Geen omschrijving

local_decoder.xml 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!--
  2. SOC custom decoders (production-focused baseline)
  3. - Decodes real correlation payloads produced by SOC Integrator
  4. - Decodes real DNS IOC payloads
  5. - Decodes modern ESXi 7/8 syslog format (groups: vmware)
  6. -->
  7. <!--
  8. Modern VMware ESXi / vCenter syslog decoder
  9. Matches ESXi 7.x and 8.x syslog output (built-in vmware decoder only handles old ESX 4.x format).
  10. How if_group=vmware works: rule 19100 (decoded_as vmware) fires first and places the event in
  11. the vmware group. Our B1 rules then match via if_group=vmware.
  12. To hook into this chain, our decoder must also be NAMED "vmware" (Wazuh allows multiple
  13. decoders with the same name — they are evaluated in order).
  14. ESXi 7.x format: <ISO-TS> <HOSTNAME> <PROCESS>: <SEV> <proc[pid]> [<meta>] <msg>
  15. ESXi 8.x format: <ISO-TS> <HOSTNAME> <process[pid]>: [<sev>] <msg>
  16. Known process names seen from FPVM70-H1/H2 (ESXi 7) and ESXi 8.0:
  17. Hostd, Vpxa, Rhttpproxy, vmkernel, vmkwarning, healthd, healthdPlugins,
  18. hostd-probe, net-cdp, vdtc, envoy-access, fdm, kmxa, sandboxd, crond
  19. -->
  20. <decoder name="vmware">
  21. <program_name type="pcre2">(?i)^(Hostd|Vpxa|Rhttpproxy|vmkernel|vmkwarning|vmkdump|healthd|healthdPlugins|hostd-probe|net-cdp|vdtc|envoy-access|fdm|kmxa|sandboxd|vpxd|dcui|crond|ImageConfigManager|sysboot|sfcb|vsanmgmtd)$</program_name>
  22. </decoder>
  23. <decoder name="vmware-esxi-severity">
  24. <parent>vmware</parent>
  25. <prematch type="pcre2">^(?:verbose|info|warning|error|critical|debug) </prematch>
  26. <regex type="pcre2">^(verbose|info|warning|error|critical|debug)</regex>
  27. <order>status</order>
  28. </decoder>
  29. <decoder name="soc-prod-dns">
  30. <prematch>soc_event=dns_ioc</prematch>
  31. <regex type="pcre2">event_type=(\S+)(?:.*?src_ip=([\d.]+))?</regex>
  32. <order>status, srcip</order>
  33. </decoder>
  34. <decoder name="soc-prod-integrator">
  35. <prematch>soc_event=correlation</prematch>
  36. <regex type="pcre2">event_type=(\S+)(?:.*?user="([^"]+)")?(?:.*?src_ip=([\d.]+))?</regex>
  37. <order>status, srcuser, srcip</order>
  38. </decoder>