Wazuh-Gmail Integration
Wazuh-Gmail Integration
SOC SOPS
SOC-SOP 1
Table of Contents
1. Purpose ....................................................................................................................... 3
2. Scope .......................................................................................................................... 3
3. Introduction ................................................................................................................ 3
4. Deployment Procedure................................................................................................ 3
SOC-SOP 2
1. Purpose
To get alerts for serious events when we are away from the office.
2. Scope
Getting emails for serious alerts provides an extra layer of security to an organization’s incident
response abilities. It saves the SOC team from all-night monitoring especially when an organization
can’t afford 8-hour shifts 3/day or they simply don’t care much about the security to pay for separate
shifts.
3. Introduction
Email integration in Wazuh provides us a way to get high level alerts even when the SOC team is off
work going about their business.
4. Procedure
2. Choose no configuration
o relayhost = [smtp.gmail.com]:587
o smtp_sasl_auth_enable = yes
o smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
o smtp_sasl_security_options = noanonymous
o smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
o smtp_use_tls = yes
o smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated,
defer_unauth_destination
6. Use this link after enabling 2FA to create 16 letter app password: abcd efgh ijkl mnop
7. Type personal Gmail for which you created app password and the app password: -
SOC-SOP 3
o root@ubuntu:/etc/postfix# chown root: root /etc/postfix/sasl_passwd
/etc/postfix/sasl_passwd.db
o root@ubuntu:/etc/postfix# chmod 0600 /etc/postfix/sasl_passwd
/etc/postfix/sasl_passwd.db
9. Send test email (You will receive email if you did above steps right): -
o <global>
o <email_notification>yes</email_notification>
o <smtp_server>localhost</smtp_server>
o <email_from>mabdullah9352@gmail.com@gmail.com</email_from>
o <email_to>mabdullah9352@gmail.com</email_to>
o </global>
SOC-SOP 4