Hands-on with Wazuh SIEM: Security Monitoring, Log Analysis, and Threat Hunting

Listen to this Post

This post provides hands-on experience with Wazuh SIEM, covering Security Monitoring, Log Analysis, Incident Response, and Threat Hunting. Below are essential resources and practical steps to enhance your cybersecurity skills.

Basics of Wazuh

Lab Setup

Log Analysis with Wazuh

Threat Detection

Incident Response

Threat Hunting

1. Installing Wazuh on Ubuntu

curl -s https://packages.wazuh.com/key/GPG-KEY-WAZUH | sudo gpg --no-default-keyring --keyring gnupg-ring:/usr/share/keyrings/wazuh.gpg --import && sudo chmod 644 /usr/share/keyrings/wazuh.gpg 
echo "deb [signed-by=/usr/share/keyrings/wazuh.gpg] https://packages.wazuh.com/4.x/apt/ stable main" | sudo tee /etc/apt/sources.list.d/wazuh.list 
sudo apt update 
sudo apt install wazuh-manager 
sudo systemctl start wazuh-manager 
sudo systemctl enable wazuh-manager 

2. Configuring Log Ingestion

Edit the Wazuh agent config (/var/ossec/etc/ossec.conf) to enable log collection:

<localfile> 
<log_format>syslog</log_format> 
<location>/var/log/syslog</location> 
</localfile> 

3. Blocking SSH Brute-Force Attacks Automatically

Add this rule in `/var/ossec/etc/rules/local_rules.xml`:

<rule id="100100" level="10"> 
<if_sid>5716</if_sid> 
<description>SSH brute-force attempt detected</description> 
<group>authentication_failed,</group> 
</rule> 

4. Integrating VirusTotal with Wazuh

Edit `/var/ossec/etc/ossec.conf` to include:

<integration> 
<name>virustotal</name> 
<api_key>YOUR_VIRUSTOTAL_API_KEY</api_key> 
</integration> 

5. Monitoring File Integrity (FIM) in Linux

Enable FIM in Wazuh agent config:

<syscheck> 
<directories check_all="yes">/etc,/usr/bin,/usr/sbin</directories> 
</syscheck> 

6. Threat Hunting with YARA

Install YARA and scan for malware:

sudo apt install yara 
wazuh-logtest -f /var/ossec/logs/alerts/alerts.json --yara-rules=/path/to/yara_rules.yar 

What Undercode Say

Wazuh is a powerful open-source SIEM for log analysis, intrusion detection, and threat hunting. Key takeaways:
– Use FIM (File Integrity Monitoring) to detect unauthorized changes.
– Automate SSH brute-force blocking to prevent attacks.
– Integrate VirusTotal for malware detection.
– Use YARA rules for advanced threat hunting.
– Suricata + Wazuh enhances network threat detection.

For cybersecurity professionals, mastering Wazuh means better incident response, log analysis, and real-time threat detection.

Expected Output:

A fully configured Wazuh SIEM with log analysis, threat detection, and automated incident response capabilities.

References:

Reported By: Dharamveer Prasad – Hackers Feeds
Extra Hub: Undercode MoN
Basic Verification: Pass ✅

Join Our Cyber World:

💬 Whatsapp | 💬 TelegramFeatured Image