Skip to content

Rules and decoders for Wazuh to process the syslog from Sophos firewalls

License

Notifications You must be signed in to change notification settings

youngsecurity/Wazuh-Sophos-SOC

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create a SOC with Wazuh and Sophos Firewall

Rules and decoders for Wazuh to process the syslog from Sophos firewalls. You can find a reference document from Sophos here.

Caution

Right now, consider this as a proof of concept. Both rules and decoders are NOT production ready!

Sophos Firewall settings

You need to pass the syslogs to Wazuh without encryption (but there are workarounds with rsyslog afaik). We use the "Standard syslog protocol" here as the legacy format will be removed in a later Sophos Firewall OS update. The port could be adjusted but I'll stay on the standard port 514. Image

Check the syslog categories you want to forward to Wazuh.

Wazuh settings

Wazuh needs to be configured to accept logs. I assume you are running Wazuh in a Docker container (my tests are running in Docker / single node setup), you need something like this in config/wazuh_cluster/wazuh_manager.conf

<remote>
    <connection>syslog</connection>
    <port>514</port>
    <protocol>udp</protocol>
    <allowed-ips>INSERT_SOPHOS_FW_IP/24<allowed-ips>
</remote>

In the same file, change both logall and logall_json to yes. Start your Docker containers and change some settings in the manager container. You can get into the container with the following command (you need to be in the directory with the docker-compose configuration files):

docker-compose exec wazuh.manager bash

In the file /etc/filebeat/filebeat.yml, change archives: -> enabled: to true

Warning

I haven't checked yet if this file change survives updates.

Completed rules

  • Basic firewall events (traffic allowed / denied) are fine
  • Rules for ATP (Advanced Threat Protection) should be done, but need testing
  • Authentication events have according rules, but they are very basic right now (only passing the message from the FW)
  • DDNS events only pass the message, but that should be fine
  • Mail events (SMTP(S), IMAP(S))

About

Rules and decoders for Wazuh to process the syslog from Sophos firewalls

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published