Get Started

Build a home SIEM with Wazuh and catch a brute-force attack

A SIEM is the screen a security operations centre stares at all day: every login, every file change, every alert from every machine in one place. Build your own with Wazuh, the free open-source one many real SOCs run. Put agents on your PCs, set a tripwire folder, attack your own machine with a burst of bad logins, and watch the alert land on your phone a few seconds later.

120 minIntermediateTools: Free software. Needs a spare PC, mini PC or VM with 8GB RAM and 50GB diskStep 1 free
Your own SIEMWazuh 4.14 server, indexer and dashboard on a spare box, collecting logs from every computer you own
File integrity monitoringa tripwire folder and your Startup folders report every new, changed or deleted file in real time
A detection you proved yourselfa simulated brute-force burst against your own PC firing rules 60204 or 5712
  • Phone alerts: serious alerts pushed to your phone through ntfy with a tested integration script from the kit
Before you start
  • A machine for the server: an old laptop, a mini PC or a virtual machine with 4 CPU cores, 8GB RAM and 50GB disk, running Ubuntu 24.04 (64-bit Intel/AMD or ARM). A Raspberry Pi 5 with 8GB is the absolute minimum and will be slow
  • Admin rights on the computers you want to watch (Windows, Mac or Linux)
  • The ntfy app on your phone (free, Android and iOS, no account needed)
  • Comfortable in a terminal and with SSH. If not, start with Terminal survival kit
01/07What a SIEM does, and what you're building0 done
STEP 01 of 07~10 min

What a SIEM does, and what you're building

Understand the three jobs of a SIEM so every later step has a reason.

  1. Logs are the evidenceEvery computer already records what happens on it: Windows writes event 4625 every time a logon fails, Linux writes Invalid user to its SSH log, and both notice when a file changes if you ask. The problem is that nobody reads them. A SIEM (Security Information and Event Management) collects those logs from every machine, runs detection rules over them, and turns the interesting bits into alerts.

  2. Wazuh does all three jobsIt's free, open source and used by real security teams. The agent sits on each computer and ships logs and file changes over an encrypted link. The manager decodes them and runs thousands of built-in rules. The indexer stores the alerts and the dashboard lets you search them. You'll add the fourth piece yourself: a tiny script that pushes serious alerts to your phone.

    Diagram: Windows, Linux and Mac agents send logs on port 1514 to a Wazuh server on Ubuntu, which pushes alerts to a phone through ntfy
    The whole build. Everything stays inside your home network except the phone push.
  3. The rules you'll meetRule levels run from 0 to 16. One failed Windows logon is rule 60122 at level 5: a note, not an emergency. Eight failures from the same address inside four minutes become rule 60204, *Multiple Windows Logon Failures*, at level 10. On Linux, each SSH login for a user that doesn't exist is rule 5710, and eight of them in two minutes become 5712, *sshd: brute force trying to get access to the system*. That correlation, many small events becoming one meaningful alert, is the whole point of a SIEM.

✓
CheckpointYou can say which rule fires for one failed Windows logon (60122) and which fires for a burst of them (60204).
Stuck? Ask the community
Next mission · Cyber defenceCatch intruders on your network with a honeypot and Canarytokens
→