Hello everyone.
I configured the Auditd to have the agent read the logs and forward to the server but it didn't get it to work
I used the documentation as recommended. I put as keys and the file to be cute but it didn't work
output commands:
auditctl -l:
-w /etc/apparmor -p or -k MAC-policy
-w /etc/apparmor.d -p wa -k MAC policy
-w /etc/group -p or -k identity
-w /etc/passwd -p or -k identity
-w /etc/gshadow -p or -k identity
-w /etc/shadow -p or -k identity
-w /etc/security/opasswd -p or -k identity
-w /var/log/loadlog -p wa -k logins
-w /var/run/faillock -p wa -k logins
-w /etc/sudoers -p or -k scope
-w /etc/sudoers.d -p or -k scope
-w /var/run/utmp -p wa -k session
-w /var/log/wtmp -p wa -k session
-w /var/log/btmp -p wa -k session
-w /etc/issue -p or -k system-locale
-w /etc/
issue.net -p wa -k system-locale
-w /etc/hosts -p or -k system-locale
-w /etc/networks -p or -k system-locale
-w /etc/network -p or -k system-locale
-w /etc/localtime -p of -k time-change
-a always,exit -F arch=b64 -S execve -C uid!=euid -F auid!=-1 -F key=user_emulation
-a always,exit -F arch=b32 -S execve -C uid!=euid -F auid!=-1 -F key=user_emulation
-a always,exit -F arch=b64 -S execve -F euid=0 -F key=audit-wazuh-c
-a always,exit -F arch=b32 -S execve -F euid=0 -F key=audit-wazuh-c
Keys:
audit - wazuh - w : write
audit - wazuh - r : read
audit-wazuh - a : attribute
audit - wazuh - x : execute
audit - wazuh - c : command
Ossec File:
< ossec_config >
<localfile>
<log_format>audit</log_format>
<location>/var/log/audit/audit.log</location>
</localfile>
<localfile>
<log_format>syslog</log_format>
<location>/var/ossec/logs/active-responses.log</location>
</localfile>
<localfile>
<log_format>syslog</log_format>
<location>/var/log/dpkg.log</location>
</localfile>
</ossec_config>\
I have do something wrong?
Thanks.