Hi gulguly64,
From what I understand you are using custom rules. Have you tested the logs you want to generate an alert with wazuh-logtest
? Could you provide me the complete log and the rule you want to generate alert?
Thanks
Hi gulguly64,
The problem is that the predecoder does not work because the log arrives at the manager without the host name.
The original log is this one:
Apr 3 11:53:34 filterlog[28959]: 824,,,1634136718,hn6,match,pass,in,4,0x0,,59,56106,0,DF,6,tcp,60,172.27.128.30,*.*.*.*,49883,50092,0,S,1137582303,,64240,,mss;sackOK;TS;nop;wscale
And it should be:
Apr 3 11:53:34 HOSTNAME_HERE filterlog[28959]: 824,,,1634136718,hn6,match,pass,in,4,0x0,,59,56106,0,DF,6,tcp,60,172.27.128.30,*.*.*.*,49883,50092,0,S,1137582303,,64240,,mss;sackOK;TS;nop;wscale
If you could add the hostname
, the decoder and the rule would work perfectly.
Logtest output:
Apr 3 11:53:34 ACA_NOMBRE_HOST filterlog[28959]: 824,,,1634136718,hn6,match,pass,in,4,0x0,,59,56106,0,DF,6,tcp,60,172.27.128.30,*.*.*.*,49883,50092,0,S,1137582303,,64240,,mss;sackOK;TS;nop;wscale
**Phase 1: Completed pre-decoding.
full event: 'Apr 3 11:53:34 test filterlog[28959]: 824,,,1634136718,hn6,match,pass,in,4,0x0,,59,56106,0,DF,6,tcp,60,172.27.128.30,*.*.*.*,49883,50092,0,S,1137582303,,64240,,mss;sackOK;TS;nop;wscale'
timestamp: 'Apr 3 11:53:34'
hostname: 'ACA_NOMBRE_HOST'
program_name: 'filterlog'
**Phase 2: Completed decoding.
name: 'pf'
action: 'pass'
dstip: '*.*.*.*'
dstport: '50092'
id: '1634136718'
length: '0'
protocol: 'tcp'
srcip: '172.27.128.30'
srcport: '49883'
**Phase 3: Completed filtering (rules).
id: '87703'
level: '3'
description: 'pfSense firewall pass event.'
groups: '['local', 'syslog', 'sshd', 'firewall_pass']'
firedtimes: '1'
gpg13: '['4.12']'
hipaa: '['164.312.a.1']'
mail: 'False'
nist_800_53: '['SC.7']'
pci_dss: '['1.4']'
tsc: '['CC6.7', 'CC6.8']'
**Alert to be generated.
Regards !