Hi Sarah, Hi Julian,
I found this topic while I was struggling about sending Forcepoint NGFW logs to Wazuh using syslog.
I already did something like that for pfSense, but, now, doing it again for Forcepoint NGFW seems to be a challenge.
Since I'm still a newbie, I would like to ask you some questions.
The first question is for Sarah :) How do you set "Log Forwarding" in your Forcepoint Log Server or, in other words, what you sent to Wazuh syslog and how do you filter the logs ? I'm trying to understand what is really interesting to be parsed using Wazuh. I think that it is not important to trace any "discard" action, let's say... So, I can check VPN client authentication, DoS attack, alerts... but the filters list is so long and I have to select the most important ones. Could yu please help me ?
The second question is for Julian :) I'm trying to create a decoder for this kind of "alert", but it doesn't work
2023-10-23T13:09:39.592616+02:00 172.31.3.50 {"ReceptionTime": "2023-10-23 13:09:39","Timestamp":"2023-10-23 13:09:39","LogId":"334","EventId":"7122177247944002005","NodeId":"172.31.0.42","CompId":"Lecce node 2","Alert":"P2P Traffic","SenderType":"Firewall","Situation":"Connection_Discarded","Action":"Discard","Service":"HTTP","Protocol":"6","Src":"192.168.34.27","Dst":"YY.YY.YY.YY","Sport":"55608","Dport":"80","NatSrc":"XX.XX.XX.XX","NatDst":"YY.YY.YY.YY","NatSport":"63923","NatDport":"80"}
<decoder name="forcepoint">
<prematch>"SenderType":"Firewall"</prematch>
</decoder>
<decoder name="forcepoint">
<parent>forcepoint</parent>
<regex type="pcre2">"Username":"(.*?)".*"InfoMsg":"(.*?)"</regex>
<order>dato1,dato2</order>
</decoder>
<decoder name="alert">
<parent>forcepoint</parent>
<regex type="pcre2">"Alert":"(.*?)".*"Situation":"(.*?)".*"Action":"(.*?)".*"Service":"(.*?)".*"Src":"(.*?)".*"Dst":"(.*?)".*"Sport":"(.*?)".*"Dport":"(.*?)".*"NatSrc":"(.*?)".*"NatDst":"(.*?)".*"NatSport":"(.*?)".*"NatDport":"(.*?)"</regex>
<order>alert,situation,action,service,src,dstsport,dport,natsrc,natdst,natsport,natdport</order>
</decoder>
Could you pease help me to start working with it?
Thank you,
Mauro