An EDR for the home
The firewall sees the network, but not what happens on the machines. Wazuh, Sysmon and five questions to tell alerts from noise.
The firewall at home sees everything that crosses the network. The DNS filter knows which names are looked up, intrusion detection looks for malware in the traffic, and traffic analysis shows who talks to whom. But none of them see what happens on the machines. A program starting another program, a file appearing where it shouldn't, someone logging in to the server out on the internet, a package that hasn't been updated in three weeks. That was the missing layer. So I built an EDR for the home, with open source.
What I wanted
Roughly what a company gets from a commercial EDR, but free and on my own hardware: an agent on every computer and server, one place where everything comes together, and rules that speak up when something looks like an attack. The choice was Wazuh:
- Agents for Windows, Linux and macOS, and a plugin for the firewall.
- Detection mapped to MITRE ATT&CK, so every alert says which attack technique it resembles.
- File integrity: which files in system directories changed, and when.
- Vulnerabilities per machine: installed packages compared with known CVEs.
- CIS checks: how well each machine follows a hardening standard, item by item.
- Logs and logins from every machine in one place.
An honest limit: Wazuh detects and shows, but doesn't stop things like a commercial EDR does. Protection on Windows is still Microsoft Defender's job, and Wazuh reads Defender's events. So that Wazuh can see what Windows is actually doing, the PC also runs Microsoft's Sysmon with a well-known open configuration, logging every process, network connection and file change that matters.
I looked at two alternatives. Velociraptor is excellent for hunting and investigating, but more tool than guard; it may become an add-on later. Elastic Defend is the closest to a real EDR with blocking, but it isn't open source and needs more memory.
Where it runs
The firewall should only be a firewall, so the Wazuh server runs in Docker on the small Debian server at home, which had the most capacity to spare. Every container has a memory limit, about six gigabytes in total, and the services already running there were checked before and after. The web interface is reachable from the home network only.
Agents now sit on four machines: the Debian server, the home server with the Docker services, the rented server out on the internet and my Windows PC. The rented server was the interesting one. Home has no open ports and shouldn't get any. The answer is the same as for my own access: the Debian server at home opens an SSH tunnel out to the rented server, and the agent there talks to the tunnel's end on its own machine. The tunnel has its own key that may only forward Wazuh's traffic and can't start a shell. No new port was opened, at home or outside.
The first thing it found
The vulnerability read returned almost 7,700 hits. That sounds like a disaster, but the number on its own says almost nothing. Two things stood out:
- The Debian machines: a few hundred hits each, all with the same status, "no fix from Debian yet". That's noise until Debian ships a fix, and then it's installed automatically.
- The home server: almost 7,000 hits, more than 6,000 of them on an old kernel left behind after an operating system upgrade. And the real finding: automatic security updates had been switched off for three weeks, three days after the upgrade, with nobody writing down why. 43 security updates were waiting.
Old kernel removed and every pending package installed. Automatic updates go back on next, this time without the automatic reboot, so there's no reason to switch them off. The home server went from almost 7,000 to around 550 hits, and zero that can be fixed. That's the number I watch now: not how many CVEs exist, but how many have a fix that isn't installed.
Alerts, noise and five questions
Within minutes of installing the Windows agent, two alerts arrived at levels 12 and 15, near the top of the scale:
# the first two serious alerts from the Windows PC (shortened) level 12 T1546.011 sdbinst.exe -m -bg "compatibility shim installed" – a known persistence technique level 15 T1105 __PSScriptPolicyTest_*.ps1 "script written to %TEMP%" – 31 times
The first was Windows registering compatibility data after installing the agent itself. The second is PowerShell, which writes and deletes a small test file in the temp directory every time it starts, to check the script policy. The timestamps matched exactly when I ran PowerShell myself.
So I wrote down how to judge an alert, and use the same five questions every time:
- Who started it? Parent process and user. Windows' own service host as SYSTEM is not the same as a browser or an Office program as me.
- When? Does the time match something I did: an install, a script, an update?
- Is the file genuine? Hash and signature. Signed by Microsoft and in the right system directory is normal.
- What exactly? Command line and file name. A fixed, documented pattern is routine; odd paths and names are not.
- Why does the rule exist? The MITRE id describes a technique. The rule can't know the intent.
Each got its own rule that lowers exactly that pattern to level 3: stored and searchable, but never an alert. The rules are narrow on purpose. The same thing from another program, another path or another file name still alerts at full level. Every decision goes into a learning log with what happened, why it was harmless and what would have been real, for example a shim file from an unknown path, or a program that a browser wrote to the temp directory.
One more decision: Wazuh sends no pushes to my phone yet. The firewall's IDS does, but it has been quiet for weeks. Wazuh gets to run for a while as I learn what's normal, and pushes come only once the noise is mapped and trimmed. An alert that cries wolf every day teaches you to ignore it.

One place to look
Wazuh's own interface is good for digging, but too much for a daily glance. The same small exporter that reads the firewall's numbers now reads Wazuh too, with users that can only read, and hands the numbers to Prometheus. The Grafana page shows the rented server first, because that's the one on the internet:
- Is the agent connected, and how many serious alerts in the last day?
- Logins from an address I don't recognise, and failed logins.
- Packages with known vulnerabilities that have a fix.
- The CIS score, who logged in and what changed.
Below that, every machine in one table: alerts per hour, fixable packages and the rules that fire most. CIS checks don't count as alerts. A single such rule produced almost 600 "alerts" on the first day, and then what matters drowns.
Wazuh itself needed hardening too
The official Docker install ships with default passwords for a few internal accounts, including the one the web interface uses against the API. That was changed right away, and the configuration file holding the passwords got permissions so only root can read it. The administrator password lives in the password manager and nowhere else. Before anything was installed on the Windows PC, the signatures were checked: Wazuh's installer signed by Wazuh, Sysmon signed by Microsoft.
The AI agent that helps me in the lab has its own accounts in Wazuh, one that can only read alerts and vulnerabilities and one for the API. The same rule as for the firewall applies: it reads freely, but changes things only after I've said yes.
The whole stack, to learn it
With Wazuh in place, the lab has almost everything a real security setup has, at small scale and with open source. Not because a home network needs it, but because I want to understand every part by having built it:
- Network: segmentation with VLANs, one rule for each allowed thing, no open ports at home.
- DNS: all DNS forced through the firewall, with a blocklist of about a million domains.
- Network detection: Suricata on the firewall, and ntopng showing who talks to what.
- Encryption out: everything leaves through VPN tunnels with post-quantum key exchange.
- The machines: EDR with Wazuh, Sysmon and Defender, vulnerabilities and CIS checks per machine, file integrity.
- Access: SSH with keys only, automatic bans for anyone guessing, a password manager.
- Monitoring: Prometheus, Grafana, a start page and pushes to my phone.
- Recovery: encrypted backup every night, and the restore has been tested.
What still separates it from a company: nobody watching around the clock, no automatic blocking on the machines and no correlation between network alerts and machine alerts. The last one is next. The firewall gets its own Wazuh agent and sends its IDS alerts there, so a suspicious connection on the network and the process on the computer that made it show up in the same place. After that: more clients, pushes once the noise is gone, and the CIS score of the server out on the internet, which is lower than I want.
What I'd tell someone else
- The network layer doesn't see the machines. If you have an IDS but nothing on the computers, you see half the picture.
- Look at the number of vulnerabilities with a fix, not the total. The first one is something you can act on.
- Check that automatic updates are actually on. Mine had been off for three weeks without me noticing.
- Start without pushes. Learn what's normal, write down why, and lower the noise with narrow rules.
- Harden the tool too. A security tool with default passwords is one more door.