Wazuh log tampering

221 views
Skip to first unread message

YASHWANTH S

unread,
Nov 8, 2023, 12:37:28 AM11/8/23
to Wazuh | Mailing List
"How can I set up Wazuh's File Integrity Monitoring (FIM) to effectively detect unauthorized log tampering in files, such as Nginx access logs etc. , and differentiate between legitimate logs generated by default Nginx processes and potentially malicious logs added by unauthorized users or processes?" Consider this for all log files in general.. Please Help!

Jorge Alberto Marino

unread,
Nov 8, 2023, 12:41:47 AM11/8/23
to Wazuh | Mailing List
Hello,

I will be taking care of this request and will come back as soon as possible.

Thank you.

Jorge Alberto Marino

unread,
Nov 8, 2023, 4:56:29 PM11/8/23
to Wazuh | Mailing List
Hello,

There is something of a chicken-and-egg situation here. First and foremost, Wazuh collects logs in many ways. Check out this link: https://documentation.wazuh.com/current/user-manual/capabilities/log-data-collection/index.html. We can also collect and analyze remote events, for example, through syslog: https://documentation.wazuh.com/current/user-manual/capabilities/log-data-collection/syslog.html.

In any case, for a malicious process to make changes to the transport files, it is necessary to have bypassed the basic security provided by an environment with credentials. In other words, to gain access to modify files in the specified location, we must first find several potential events to be intercepted, such as a user login, a login rejection, etc.

However, it is possible to monitor some files or directories with FIM. But unless we include additional data like who-data (https://documentation.wazuh.com/current/user-manual/capabilities/file-integrity/advanced-settings.html#who-data-monitoring), it will not be possible to reach a conclusion.

The nature of your question is perfectly understandable, but for practical purposes, we must rely on other layers of security before checking for tampering in a logfile. Because if that user can modify the file, they could easily gain access to vital elements of Wazuh.

Regards,
Jorge Marino (WAZUH)
Reply all
Reply to author
Forward
0 new messages