Hello,
Thank you for your patience.
First, You need to enable the audit logs in MS Exchange. This can only be done through Exchange Management Shell (EMS) with the
permissions needed.
MS Exchange
Open the Exchange Management Shell. For more information.
Run the following command to enable mailbox audit logging for all user mailboxes in your organization:
Get-Mailbox -ResultSize Unlimited -Filter "RecipientTypeDetails -eq 'UserMailbox'" | Select PrimarySmtpAddress | ForEach {Set-Mailbox -Identity $_.PrimarySmtpAddress -AuditEnabled $true}
Or the following command if you want to enable it for an specific mailbox:
Set-Mailbox -Identity "MailboxName" -AuditEnabled $true
Replace "MailboxName" with the name of the mailbox you want to enable audit logging
- To enable administrator audit logging, run the following command:
Set-AdminAuditLogConfig -AdminAuditLogEnabled $True
- Verify that the audit logs are being generated. You can do that, by checking the default location where they are stored (C:\Program Files\Microsoft\Exchange Server\V15\Logging\Audit). However, this can be changed during or after installation using the Exchange Management Shell (EMS). In case is needed, please refer to Administrador audit log for more information.
For more information and possible configuration that you may want to do, please visit these references:
- Enable/disable Mailbox audit log 2013
- Enable/disable Mailbox audit log 2016
- Administrador audit log
Once the audit logs are enabled, you can configure Wazuh to monitor and collect them.
Wazuh
- Install the Wazuh agent on the Microsoft Exchange server you want to monitor. You can find the installation instructions in the Wazuh documentation.
- Add the Exchange logs location to the Wazuh agent configuration file. The configuration file is usually located at (C:\Program Files\ossec-agent\ossec.conf)
- Wazuh already provides some decoders and rules for MS exchange, which are located in local_decoder.xml and local_rules.xml, but you can customize the decoders and rules to match your specific monitoring requirements.
- Finally, restart the Wazuh agent service to apply the changes.
If you want to verify that the Wazuh agent is receiving the Exchange logs check the agent log file located in (C:\Program Files (x86)\ossec-agent\logs\ossec.log)
More information about wazuh configuration:
Lastly, the types of logs to be collected for SIEM monitoring are:
- Windows Event Logs
- Internet Information Services Logs (IIS)
- Active Directory Logs
(AD)
- PowerShell Logs
- Remote Desktop Services Logs (RDS)
Let me know if that helped!
Regards.