Skip to content

Wazuh SIEM & XDR / EDR Enterprise Agent Deployment, Hardening & Active Response

SOP-SEC-002 Standard Operating Procedure v1.0.0
Last Updated 2026-10-15
Author Security Operations Team
đŸ’ģ Target OS / Systems:
Wazuh Manager 4.8+Windows Server 2019/2022/2025 & Windows 10/11Linux Server (Debian / Ubuntu / RHEL)Active Directory Domain Services (GPO)

Before you begin

  • Applies to:Managed deployment and hardening of Wazuh agents and response policies.
  • Where to start:Start in the Wazuh management environment with an approved pilot endpoint group.
  • What you need:Have deployment access, the approved agent configuration, and an owner for reviewing alerts and any active response changes.
Guide tools
Guide tools
0/0 Steps (0%)

Scope, Architecture & Agent Communication

This standard operating procedure governs the enterprise rollout, security hardening, File Integrity Monitoring (FIM), and automated Active Response mechanisms for the Wazuh Security Information & Event Management (SIEM) / Extended Detection and Response (XDR) platform across all server and workstation assets.

Port & Protocol Communication Matrix (per REF-NET-002):

Destination PortProtocolSourceService DescriptionEncryption
1514TCPAll EndpointsWazuh Agent Data Reporting & EventsTLS 1.3 AES-GCM
1515TCPEnrolling EndpointsAgent Auto-Enrollment Auth DaemonTLS Encrypted
55000TCPAdmin WorkstationsWazuh RESTful API DaemonHTTPS
┌────────────────────────────────────────────────────────┐
│ Wazuh Manager Cluster (10.10.10.50) │
└───────▲────────────────────────▲───────────────▲───────┘
│ TCP 1514 (Events) │ │
│ TCP 1515 (Enrollment) │ │
┌───────┴──────────────┐ ┌───────┴────────┐ ┌────┴───────────────────┐
│ Windows Domain Ctrls │ │ Linux Servers │ │ User Workstations │
│ (FIM + EventLog 4625)│ │ (Auditd + FIM) │ │ (Sysmon + Active Resp) │
└──────────────────────┘ └────────────────┘ └────────────────────────┘

Pre-Flight Preparation & Registration Credentials

01

Configure Manager Registration Secret & Validate Ports

Manager Prep

On the Wazuh Manager, configure the pre-shared enrollment password in authd.pass and verify connectivity on TCP ports 1514 and 1515.

Terminal window
# On Wazuh Manager (/var/ossec/etc/authd.pass)
echo "SuperSecretEnrollmentPassword2026!" > /var/ossec/etc/authd.pass
chmod 640 /var/ossec/etc/authd.pass
chown root:wazuh /var/ossec/etc/authd.pass
systemctl restart wazuh-manager
# Test port from endpoint
# Test-NetConnection -ComputerName 10.10.10.50 -Port 1514

Windows Enterprise Agent Deployment

02

Silent Automated MSI Installation & Registration

Windows Agent

Deploy via Active Directory Group Policy (Startup Script) or automated PowerShell deployment to install the MSI, pass enrollment parameters, and start the service.

Terminal window
[CmdletBinding()]
param(
[string]$ManagerIP = "10.10.10.50",
[string]$EnrollmentPassword = "SuperSecretEnrollmentPassword2026!",
[string]$AgentGroup = "windows-servers",
[string]$InstallerUrl = "https://packages.wazuh.com/4.x/windows/wazuh-agent-4.8.0-1.msi"
)
$DownloadPath = "$env:TEMP\wazuh-agent.msi"
Invoke-WebRequest -Uri $InstallerUrl -OutFile $DownloadPath
$Arguments = @(
"/i", "`"$DownloadPath`"",
"/q",
"WAZUH_MANAGER=`"$ManagerIP`"",
"WAZUH_REGISTRATION_SERVER=`"$ManagerIP`"",
"WAZUH_REGISTRATION_PASSWORD=`"$EnrollmentPassword`"",
"WAZUH_AGENT_GROUP=`"$AgentGroup`""
)
Start-Process -FilePath "msiexec.exe" -ArgumentList $Arguments -Wait -NoNewWindow
Set-Service -Name "WazuhSvc" -StartupType Automatic
Start-Service -Name "WazuhSvc"
Get-Service -Name "WazuhSvc"

Linux Enterprise Agent Deployment (Debian / Ubuntu / RHEL)

03

Automated APT / RPM Agent Deployment

Linux Agent

Import the official Wazuh repository key, configure the package source, install the agent with enrollment parameters, and arm the systemd daemon.

#!/bin/bash
set -euo pipefail
# 1. Install Wazuh GPG key and APT repository
curl -s https://packages.wazuh.com/key/GPG-KEY-WAZUH | gpg --no-default-keyring --keyring gnupg-ring:/usr/share/keyrings/wazuh.gpg --import
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" | tee -a /etc/apt/sources.list.d/wazuh.list
# 2. Install Agent package with enrollment parameters
apt update
WAZUH_MANAGER="10.10.10.50" \
WAZUH_REGISTRATION_SERVER="10.10.10.50" \
WAZUH_REGISTRATION_PASSWORD="SuperSecretEnrollmentPassword2026!" \
WAZUH_AGENT_GROUP="linux-servers" \
apt install -y wazuh-agent
# 3. Enable and start Wazuh agent daemon
systemctl daemon-reload
systemctl enable --now wazuh-agent
systemctl status wazuh-agent --no-pager

Security Hardening & File Integrity Monitoring (FIM)

04

Centralized FIM Rule Hardening (agent.conf)

FIM Hardening

Configure centralized real-time File Integrity Monitoring within /var/ossec/etc/shared/default/agent.conf on the Wazuh Manager to automatically synchronize across all registered agents.

<agent_config>
<!-- Real-Time File Integrity Monitoring (Syscheck) -->
<syscheck>
<disabled>no</disabled>
<frequency>43200</frequency>
<scan_on_start>yes</scan_on_start>
<!-- Linux Critical Filesystems -->
<directories check_all="yes" realtime="yes" report_changes="yes">/etc,/usr/bin,/usr/sbin,/bin,/sbin</directories>
<ignore>/etc/mtab</ignore>
<ignore>/etc/hosts.deny</ignore>
<!-- Windows System Critical Locations -->
<directories check_all="yes" realtime="yes" report_changes="yes">C:\Windows\System32\drivers\etc</directories>
<directories check_all="yes" realtime="yes" report_changes="yes">C:\Windows\System32\GroupPolicy</directories>
<!-- Registry Keys for Persistence Detection -->
<windows_registry>HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run</windows_registry>
<windows_registry>HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce</windows_registry>
<windows_registry>HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services</windows_registry>
</syscheck>
</agent_config>

Automated Active Response (Brute Force Defense & Quarantine)

05

Configure Automated Firewall Drop & IP Ban

Active Response

In /var/ossec/etc/ossec.conf on the Wazuh Manager, configure automated host-level firewall drop rules to ban offending IPs for 30 minutes upon repeated SSH/RDP failure detection.

<!-- Define Active Response Command -->
<command>
<name>firewall-drop</name>
<executable>firewall-drop</executable>
<timeout_allowed>yes</timeout_allowed>
</command>
<!-- Trigger active response on SSH/RDP repeated authentication failures (Rule 5712 / 60122) -->
<active-response>
<command>firewall-drop</command>
<location>local</location>
<rules_id>5712,60122</rules_id>
<timeout>1800</timeout> <!-- Block IP for 30 minutes -->
</active-response>

Operational Verification & Alert Testing

06

Validate Agent Telemetry & Trigger Test FIM Alert

Verification

Verify agent status on the manager, then generate a benign file modification on the target endpoint to confirm the real-time FIM alert reaches the dashboard within 5 seconds.

Terminal window
# 1. Verify Registration from Wazuh Manager
/var/ossec/bin/agent_control -l
# 2. Trigger Controlled FIM Test Alert on Endpoint
# On Linux:
echo "# Test SIEM Alert" >> /etc/hosts
# On Windows:
# Add-Content -Path "C:\Windows\System32\drivers\etc\hosts" -Value "# Test SIEM Alert"

Rollback, Agent Removal & SOC Verification Sign-Off

07

Clean Agent Removal & De-registration

Rollback

If an agent must be decommissioned or rolled back due to conflicts, stop the local service, remove the binary packages, and purge the registration record on the manager.

Terminal window
# Windows Rollback:
# Stop-Service -Name "WazuhSvc" -Force
# Start-Process "msiexec.exe" -ArgumentList "/x", "`"$env:TEMP\wazuh-agent.msi`"", "/q" -Wait
# Linux Rollback:
systemctl stop wazuh-agent
apt purge -y wazuh-agent
rm -rf /var/ossec
# Remove Agent Record on Manager:
/var/ossec/bin/manage_agents -r <AGENT_ID>

08

SOC Sign-off & Verification Audit

Audit Sign-off

Verify that each operational checkpoint meets production compliance criteria and record formal SOC sign-off.

AUDIT CHECKPOINT SUMMARY:
[✓] Agent Heartbeat: Active status confirmed in Wazuh Manager console
[✓] FIM Real-Time Trigger: Alert Rule 550 logged for test file modification
[✓] Active Response Validation: Test brute-force IP successfully blocked in firewall table

Comments