cd ..back to case files

case 001 · closed

Vantage

A home SOC. Wazuh, Suricata and Sysmon watch a lab I attack from Kali, with VirusTotal enrichment.

Summary

A home SOC on one 16 GB laptop: a Wazuh SIEM, host agents on Linux and Windows, and a Suricata network IDS. I attack it from Kali to find out what gets caught and what doesn’t.

The problem

I wanted to see what a SOC analyst actually sees during an attack, not just read about it. The only way to know what a detection stack catches is to attack it and look.

Setup

Everything runs as VMs on one laptop, behind VMware NAT (a private lab subnet, not reachable from outside).

laptop · 16 GB RAM · VMware NAT · 192.168.198.0/24

  kali  .131                        ubuntu  .128
  hydra, python http.server  ────▶  wazuh agent
                                    suricata on ens33
                                        │
                                        │ events
                                        ▼
  windows 10 VM                     wazuh manager  .129
  wazuh agent + sysmon  ─────────▶  ubuntu server, static IP
                                    dashboard, VirusTotal lookups

  one agent VM runs at a time (RAM)
  • Wazuh is the SIEM: the manager collects everything the agents send, runs the rules and raises the alerts.
  • Suricata watches the Ubuntu VM’s network interface and its eve.json goes into Wazuh, so network and host alerts land in one dashboard.
  • Sysmon on Windows records how something happened: process trees, network connections per process, file hashes.
  • VirusTotal: when file integrity monitoring sees a file change, Wazuh looks up its hash on VirusTotal and alerts if it’s known-malicious.

The incident: SSH brute force, Kali → Ubuntu

What I ran: Hydra from Kali against SSH on the Ubuntu VM, aimed at a test user with a deliberately weak password, with a wordlist of about 25 entries.

What fired in Wazuh (host side):

  • 5760 sshd authentication failed (MITRE T1110.001)
  • 5503 PAM login failed
  • 2502 “User missed the password more than one time” (level 10, the brute-force correlation alert)
  • 5758 “Maximum authentication attempts exceeded” (level 8)
  • then Accepted password for soctest from 192.168.198.131. The attack worked.

What Suricata did (network side): it logged 16 SSH flows and even picked out the attack tool from its client string (libssh_0.11.1; a person’s client shows as OpenSSH). It raised zero alerts. SSH is encrypted, so a network IDS can’t count failed passwords.

Only the host sensor caught this attack. That’s why I run both.

What broke and how I fixed it

  • Alerts stopped arriving after months idle. The manager’s DHCP address had changed from 192.168.241.131 to 192.168.198.129, so every agent was still sending to the old one. I gave the manager a static IP through netplan and re-pointed each agent’s <server><address>.
  • The standard IDS test was dead. testmynids.org no longer resolves. I hosted the same uid=0(root) payload from a Python web server on Kali and fetched it from Ubuntu. Suricata fired GPL ATTACK_RESPONSE id check returned root (sig 2100498), which reached the Wazuh dashboard as rule 86601 in under a second.
  • My first brute force was invisible to Suricata. I had run Hydra from Ubuntu against itself by accident. That traffic stays on the loopback interface and never touches ens33, so I reran it from Kali.
  • Smaller ones. A duplicate eve.json entry in the agent’s ossec.conf caused warning 1958; I removed it. After the laptop slept, the VMware NAT service hung; restarting it fixed that.

Lessons

  1. One sensor isn’t enough. Suricata watched the whole brute force and said nothing; the host logs caught it. Network and host detection cover each other’s blind spots.
  2. Check what your sensor can actually see. With VMware NAT and no promiscuous mode, Suricata only sees traffic to and from its own VM. I first claimed it saw all traffic between VMs, and that was wrong. Map coverage before trusting it.
  3. Plan around RAM, and use static IPs from day one. 16 GB set the limits for the whole lab: one agent VM at a time, and no TheHive or MISP. DHCP drift cost me a debugging session I didn’t need.