Setting up a security operation center shouldn’t be difficult, and thankfully it’s not with Wazuh.
The One Person SOC Team
TLDR:
If you just want to get to installing Wazuh, and don’t care much for reading and my backstory that’s cool too.
Check out [[#whats-wazuh]]
An Introduction
Security is a very large passion of mine, and like most people, I started my computer journey at a very young age. Learning very basic batch scripting, using simple commands like color, goto, and echo.
Over time, it grew and I began building small scripts that helped automate easy and repetitive tasks. I felt like a wizard.
When I ran out of ideas of what to automate next, I decided it was time to broaden my exploration. Try to push things to the limit, much like the hacker mindset.
I shifted my focus from creating to destruction. Trolled through IRC servers, looking for anyone offering free shells to learn Linux.
While learning to break through was great, there had to be a way of preventing this.
Installing things like tcpdump, and snort, without any real knowledge.
As I grew up, got formal education in Computer Programming, I got my first job as a customer service representative for a well know fortune 500 company.
Being my first job, fresh out of school, I wasn’t very experienced with the corporate world.
I showed up for my shift, took my calls, wrote my notes and then went home for the day.
There was a simple problem though. Notes were not consistent. I needed a proper template, I wanted a guide line.
While having having just graduated from a Computer Programming program, I thought I’d put my skills together.
I designed a template application with a simple checklist and a place for my notes. It was simple, yet effective. Each call, 10/10 audits.
Bigger overview and vision. That’s where Wazuh comes into play.
What’s Wazuh?
To be completely honest, the best way of describing it is; an open source security information and event management / extended detection and response all in one.
For more information, I suggest you go to their website.
Let’s Begin
The guide makes no assumptions, it may be very verbose.
It’s meant to be written in a pointform, quick “jump-to” topic; however, it can get wordy.
Technologies Used
- Ubuntu 24.04 - OS
- Wazuh - Security Information and Event Management (SIEM)
- Python Programming language, using custom
active-responseandintegrations
Step 1a. - Installing Ubuntu
For simplicity sake, this does not cover dual booting.
We’ll be completely erasing all the contents of the hard drive.
Make sure you are aware of this.
- Download Ubuntu Server
- Once fully downloaded, create your bootable media
- With the USB flashed let’s reboot.
- While the system is starting, press your device’s boot menu option (this is usually
F2orDelkey on your keyboard.) - Select your USB
- Boot into the Ubuntu USB
- Select install
During the installation, you’ll be asked the following questions:
- Region
- Timezone
- Keyboard layout
When you get to the question about disk space, and partition layout, use full disk as we’re not doing a dual boot situation.
During the networking questions, assign a static IP address. During the duration of this post, we’ll say it’s 10.10.1.13
Don’t install a desktop environment of any sorts as we’ll be connecting remotely using SSH
After setting up your usename, and password it should be time to choose software.
Only server you need to install is the OpenSSH server.
Last final prompt, a system reboot.
Step 1b. - Connecting to Ubuntu Machine
On your main computer, SSH into the Ubuntu server.
Windows 11 has a built-in SSH client. Otherwise you can use an SSH client such as PuTTY
> ssh [email protected]
[email protected]'s password:
ubuntu@wazuh:~ $
Step 2. - Installing Wazuh
Wazuh has a great installation guide, there is also a Cloud option.
This is my quick setup guide.
Hardware Requirements
Varies on how many agents installed, however, for small environments not a lot of traffic the following are sane enough defaults.
| Agents | CPU | RAM | Storage (90 days) |
|---|---|---|---|
| 1 - 25 | 4vCPU | 8 GiB | 50 GB |
| 25 - 50 | 8vCPU | 8 GiB | 100 GB |
| 50 - 100 | 8vCPU | 8 GiB | 200 GB |
Larger environments, distributed deployment is recommended. Multi-node cluster configuration
Automated Assisted Setup
This route is suggested for a quick and easy setup solution. It’s quick, it’s easy. Almost as easy as using the Docker setup (not covered in this.)
- Download the installation script
curl -sO https://packages.wazuh.com/4.14/wazuh-install.sh
- You can view the script to make sure no funny business is happening with
less ./wazuh-install.sh - When you’re satisfied, execute the script
sudo bash ./wazuh-install.sh -athe parameter of-ameans all. - If everything was installed correctly, you should see the following
INFO: --- Summary ---
INFO: You can access the web interface https://10.10.1.13
User: admin
Password: <generated password>
INFO: Installation finished.
- Now you can access the web interface and take a look around. Wazuh Dashboard
NOTE you should have a file named wazuh-install-files.tar. This contains passwords and your private / public keys. Move this somewhere secure, do not keep it on the server itself.
Uninstallation
In the event you want to completely uninstall the Wazuh components there’s an uninstall flag.
curl -sO https://packages.wazuh.com/4.14/wazuh-install.sh
sudo bash ./wazuh-install.sh -u