Wazuh - Hardened Open Source SIEM and XDR
بواسطة Lynxroute
Wazuh 4.14.8 - CIS Level 1 hardened SIEM and XDR on Ubuntu 24.04, SBOM + CIS
What is Wazuh
Wazuh is a free, open-source security platform that unifies SIEM (Security Information and Event Management) and XDR (Extended Detection and Response). This image runs the complete all-in-one stack on one host: the Wazuh manager (the GPLv2 analysis engine), the Wazuh indexer (an Apache-2.0 OpenSearch fork that stores and searches events), the Wazuh dashboard (an Apache-2.0 OpenSearch-Dashboards fork), and Filebeat. It performs log data analysis, intrusion and threat detection, file integrity monitoring, vulnerability detection, configuration assessment, active response, and MITRE ATT&CK mapping, with out-of-the-box compliance reporting for PCI DSS, HIPAA, NIST 800-53, and GDPR. Lightweight agents for Linux, Windows, and macOS enroll over TCP 1515/1514 and stream telemetry to the manager.
Why self-host Wazuh
Running Wazuh on a VM you control keeps your security telemetry - logs, alerts, file-integrity events and vulnerability findings, often the most sensitive data you hold - inside your own tenant rather than a managed monitoring service. Self-hosting suits teams with data-residency requirements, organisations under GDPR, HIPAA or ISO 27001, and any SOC where event data must stay within your own perimeter with no per-agent SaaS fees. The indexer and dashboard are OpenSearch forks under Apache-2.0, so the full platform is auditable with no vendor lock-in.
What this VM image adds
Security hardening:
- Dashboard admin password generated per instance at first launch - no admin/admin default
- All backing-store credentials rotated - the indexer service account, manager REST API users, and Filebeat are regenerated per instance at first launch and written to /root/wazuh-credentials.txt (mode 0600)
- Indexer bound to localhost - the Wazuh indexer (OpenSearch) listens on 127.0.0.1:9200 only and is never exposed off-host
- Dashboard over HTTPS - the dashboard listens on 127.0.0.1:5601 and is reachable only through a TLS-terminating nginx on port 443, with a loading splash and readiness gate during startup
- UFW firewall - TCP 443 (dashboard), 55000 (manager REST API), and 1514/1515 (agent events and enrollment) open externally for buyer use, TCP 22 for SSH; all other inbound dropped; Azure IMDS and WireServer egress pre-configured
- fail2ban - SSH brute-force protection
- AppArmor - mandatory access control
- CVE scan - every image is scanned with Trivy before release
OS hardening (CIS Level 1):
- CIS Ubuntu 24.04 LTS Level 1 Benchmark via ansible-lockdown
- auditd for system call auditing of critical paths
- SSH hardening - PasswordAuthentication disabled, key-only access, PermitRootLogin no, LoginGraceTime 60
- Kernel hardening - SYN cookies, ASLR, rp_filter, kexec disabled, IPv6 off
- /tmp as tmpfs with nosuid, nodev, noexec
Compliance artifacts (inside the VM):
- SBOM - CycloneDX 1.6 at /etc/lynxroute/sbom.json with components pinned by version, PURL, license, supplier, and hash
- CIS Conformance Report at /etc/lynxroute/cis-report.html (OpenSCAP, Azure tailoring profile, 0 FAIL rules)
- Tailored CIS profile at /usr/share/doc/lynxroute/CIS_TAILORED_PROFILE.md
- Operator credentials file at /root/wazuh-credentials.txt (mode 0600) with the dashboard admin password, the manager REST API user, and the indexer service account
Quick Start
- Deploy VM from Azure Marketplace (Standard_D4s_v3 recommended; 50 GB disk)
- Open NSG: TCP 443 and TCP 55000 from your management IPs, TCP 1514 and 1515 from the networks your agents run in, TCP 22 from your management IPs only
- SSH: ssh -i key.pem azureuser@<PUBLIC_IP>, then sudo cat /root/wazuh-credentials.txt for the admin password
- Open https://<PUBLIC_IP>/ in your browser, accept the self-signed certificate warning, and log in to the dashboard as admin with the password from the credentials file
- Enroll an agent: install the Wazuh agent on a host and point it at the manager (enrollment on TCP 1515, events on TCP 1514); it then appears under Agents in the dashboard
First launch takes several minutes while the indexer warms up and security is initialised; until then the URL shows a loading page that refreshes automatically. The indexer (9200) and dashboard backend (5601) stay bound to localhost. Replace the self-signed certificate (or run sudo certbot --nginx) for production, then restart nginx.