Projects

Real environments, real attack traffic, real logs. These are the things I actually built and ran, not walkthroughs of someone else's lab.

Wazuh SOC Homelab

host-onlyWazuh ManagerUbuntu 22.04DVWA + HoneytrapUbuntu ServerKali LinuxAttackerattack trafficlogs

Three VMs on VirtualBox with a host-only adapter for full network isolation. The Wazuh manager runs independently on its own VM — this three-machine design was a deliberate choice after realizing that running a SIEM and vulnerable services on the same host is not how real environments work. The separation forces proper log forwarding, networking configuration, and an accurate view of which machine sees what traffic.

Setup

3 VMs, VirtualBox, host-only adapter, static IPs. Wazuh manager on Ubuntu 22.04 with 4GB RAM. DVWA and Honeytrap on Ubuntu victim server with 3GB RAM. Kali Linux attacker with 4GB RAM. All log paths configured in ossec.conf: Apache access and error logs, Honeytrap log, ModSecurity audit log.

Attack Scenarios

SSH Brute Force

Hydra targeted Honeytrap on port 22. Custom rule hooks into Wazuh built-in rule 5710 and raises severity. Captured 200+ failed attempts in 30 seconds.

SQL Injection

SQLMap targeted DVWA at /dvwa/vulnerabilities/sqli/. Regex matched UNION SELECT, SLEEP, information_schema in Apache access logs.

Command Injection

DVWA command injection module via web interface. ModSecurity audit log captured POST bodies (Apache does not). Rule matched shell metacharacters.

What I learned

I started with two VMs — Wazuh and everything else on the same machine. It worked technically but it was wrong architecturally. In a real SOC, the SIEM does not run on the same server as the services it monitors. Moving to three VMs introduced friction: I had to configure the host-only network, set static IPs, and manage log forwarding across machines. That friction taught me more than the two-VM setup ever could.

The ModSecurity discovery was the other key moment. I spent hours trying to figure out why my command injection rule would not fire before I realized that Apache does not log POST request bodies by default. A command injection payload in a POST parameter is invisible in the access log. Installing ModSecurity in audit mode and forwarding its log to Wazuh solved it — and taught me to always verify what is actually being logged before writing detection rules.

The difference between knowing how a SIEM works and actually watching raw logs scroll past during an active attack is larger than I expected. Theory gives you the framework. Running the attack yourself gives you the context.

Other Projects

Honeypot Alert System

Python · GitHub

Monitors honeypot interactions, generates structured alerts for analysis. Built in Python with modular design for extensibility.

View on GitHub →