Skip to content

Gurulhu/Wazuh-Homelab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wazuh-Homelab

DISCLAIMER:

This is by no means production-ready, not even production-oriented. There's event a hardcoded cluster key. Please be sure that deploying it for anything other than testing and learning purposes requires either heavy customization or an acknowledgment of pwn.

Purpose:

This is a fully dockerized Wazuh environment. It expands the original Wazuh-Docker repository clusterizing the Wazuh manager with a scalabe number of workers, a NGINX load balancer and a scalable number of agents.

I made this to test the viability of a contanerized deploy and make some stress tests, but those evolved into failure tests and load balancing tuning tests after some time. For tips and tricks on how to run a Wazuh setup, check my medium post here.

All agents deployed will generate logs after ~30 seconds, creating fake sshd logs by reshuffling the auth.log. This behavior is controlled by the sshd_log_generator.sh, and uses the cropped.log as base. The original logs are kept in the sample.log if you might need it.

How to Use

Assuming your machine is already registered as a swarm node, you just need to build our custom images and run the compose. I made a handy script to build then all so you just need to run:

build.sh 
docker stack deploy wazuh -c docker-compose.yml

About

Wazuh-Docker fork to tinker and learn

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages