Hi
Vyom Thaker.
I hope you are doing fine!
Sorry for the delay!
Wazuh alredy support a group of sophos logs, decoders are
0300-sophos_decoders.xml and
0510-sophos_fw_decoders.xml , and rules are
0415-sophos_rules.xml and
0705-sophos_fw_rules.xml. But looks like some sophos firewal events are not supported, I found this example in the community chat, it's not working.
root@wazuh-master:/# /var/ossec/bin/wazuh-logtest
Starting wazuh-logtest v4.3.8
Type one log per line
device=\"SFW\" date=2022-09-23 time=11:33:03 timezone=\"+03\" device_name=\"SFVUNL\" device_id=C01001GF2GVW9A4 log_id=062009617502 log_type=\"Event\" log_component=\"GUI\" log_subtype=\"Admin\" status=\"Successful\" priority=Information user_name=\"admin\" src_ip=x.x.x.x IP_HOST_NAME='Rint' message=\"IP Host 'Rint' settings were changed by 'admin' from 'x.x.x.x' using 'GUI'\"
**Phase 1: Completed pre-decoding.
full event: 'device=\"SFW\" date=2022-09-23 time=11:33:03 timezone=\"+03\" device_name=\"SFVUNL\" device_id=C01001GF2GVW9A4 log_id=062009617502 log_type=\"Event\" log_component=\"GUI\" log_subtype=\"Admin\" status=\"Successful\" priority=Information user_name=\"admin\" src_ip=x.x.x.x IP_HOST_NAME='Rint' message=\"IP Host 'Rint' settings were changed by 'admin' from 'x.x.x.x' using 'GUI'\"'
**Phase 2: Completed decoding.
No decoder matched.Could you share any example log to test it?
The common way to collect events from sophos, is forwarding sophos logs by syslog
This is an example syslog configuration, if you want collecte events from the manager set it on
ossec.conf manager side, if you want collecte events from the agent set it on
ossec.conf agent side. Also configure your sophos to forward events to manager/agent ip and port 514.
<remote>
<connection>syslog</connection>
<port>514</port>
<protocol>tcp</protocol>
<allowed-ips> your cylance ip </allowed-ips>
</remote>
Always restar the agent or manager when it's
ossec.conf file changes.
It's possible enable
archives.json file to check if events are arriving to manager side. events before been processed should be in
/var/ossec/logs/archive/archives.json. If archives file doesn't exist, enalble it on manager
ossec.conf file, include log all options as following configuration
<ossec_config>
<global>
<alerts_log>yes</alerts_log>
<logall>yes</logall>
<logall_json>no</logall_json>
</global>
Then restart the manager. if you find some sophos events in
/var/ossec/logs/archive/archives.json it means collecting events it's working.
Let me know if this information is useful.
Regards.