Hello Wazuh Team
Is there a decoder in the wazuh default rules that extract EPOCH from audit logs and convert in a redeable format ?
=== DECODING===
AUDIT LOG
type=SYSCALL msg=audit(1778776059.726:230239): arch=c000003e syscall=59 success=yes exit=0 a0=55fa73375820 a1=55fa733741d0 a2=55fa7336e9d0 a3=8 items=2 ppid=3368964 pid=3368966 auid=5014 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts1 ses=35928 comm="awk" exe="/usr/bin/gawk" key="user-commands"ARCH=x86_64 SYSCALL=execve AUID="root" UID="root" GID="root" EUID="root" SUID="root" FSUID="root" EGID="root" SGID="root" FSGID="root"
DECODE
**Phase 1: Completed pre-decoding.
full event: 'type=SYSCALL msg=audit(1778776059.726:230239): arch=c000003e syscall=59 success=yes exit=0 a0=55fa73375820 a1=55fa733741d0 a2=55fa7336e9d0 a3=8 items=2 ppid=3368964 pid=3368966 auid=5014 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts1 ses=35928 comm="awk" exe="/usr/bin/gawk" key="user-commands"ARCH=x86_64 SYSCALL=execve AUID="root" UID="root" GID="root" EUID="root" SUID="root" FSUID="root" EGID="root" SGID="root" FSGID="root"'
**Phase 2: Completed decoding.
name: 'auditd'
parent: 'auditd'
audit.arch: 'c000003e'
audit.auid: '5014'
audit.command: 'awk'
audit.egid: '0'
audit.euid: '0'
audit.exe: '/usr/bin/gawk'
audit.exit: '0'
audit.fsgid: '0'
audit.fsuid: '0'
audit.gid: '0'
audit.id: '230239'
audit.key: 'user-commands'
audit.pid: '3368966'
audit.ppid: '3368964'
audit.session: '35928'
audit.sgid: '0'
audit.success: 'yes'
audit.euid: '0'
audit.exe: '/usr/bin/gawk'
audit.exit: '0'
audit.fsgid: '0'
audit.gid: '0'
audit.key: 'user-commands'
audit.pid: '3368966'
audit.ppid: '3368964'
audit.session: '35928'
audit.sgid: '0'
audit.success: 'yes'
audit.suid: '0'
audit.syscall: '59'
audit.tty: 'pts1'
audit.type: 'SYSCALL'
audit.uid: '0'
**Phase 3: Completed filtering (rules).
id: '80700'
level: '3'
description: 'Audit: Messages grouped.'
groups: '['audit', 'audit-log']'
firedtimes: '1'
mail: 'False'
**Alert to be generated.
NOTE: The default wazuh rule was modified for increasing severity from 0 to 3
=== COMMENTS ===
- WAZUH VERSION: 4.14.1
- Theres no field for parsing EPOCH timestamp .
- Wazuh could extract EPOCH timestamp and convert to redeable format ?
Thanks
Isaac