Hi Derrick.
I hope you are doing fine!
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 ossec.conf file change.
To process old events, I create a fake file to collect events from it.
Into agent side, define a fake.txt file in Agent, and set following config into
ossec.conf agent side.
<localfile>
<location>C:\Users\MyUser\fake.txt</location>
<log_format>syslog</log_format>
</localfile>
Restart the agent, and then paste the events that to want to process.
Let me know if this information is useful.
Regards.