r/claude • • 4d ago

Showcase I built a self-hosted EDR/XDR + SIEM with Claude Code (Sonnet, Opus, Fable and Mythos). It's open source and has a live demo

I'm a homelabber who works in cybersecurity, and commercial EDR vendors wouldn't sell me a handful of seats or were just too expensive. So I started building my own with Claude Code. HomeXDR is now at v0.1.2 and Apache-2.0.

Repo: https://github.com/Netdoodle/HomeXDR

Live demo available here (made-up data, runs entirely in your browser): https://homexdr.com/

What it is

A self-hosted EDR/XDR with a built-in SIEM. The server is Go with ClickHouse or SQLite, the console is React, and there are agents for Windows, Linux and macOS with no kernel driver. It does Sigma detections, process trees and storyline graphs, a piped search language (index=firewall action=block | stats count by src | sort -count) that compiles to one SQL query, response actions (isolate a host, kill a process tree, quarantine files), vulnerability matching, and firewall syslog from OPNsense, pfSense, FortiGate, Palo Alto, Sophos, MikroTik and Ubiquiti. Alerts can be pushed to you through ntfy, Discord, email or a webhook, with a daily digest. It also has an optional AI analyst that investigates alerts with read-only tools and can run as an MCP server. A mobile app for push notifications and management is planned.

How Claude built it

Four models did the work, each on the part it suited:

  • Sonnet for the routine work: well-specified features, tests, refactors.
  • Opus for the tricky parts: the agents, concurrency, the updater and rollback logic, security fixes.
  • Fable for design decisions and for reviewing things before they shipped.
  • Mythos for security analysis. It also wrote detection rules that regular Claude refused to create.

In Claude Code I ran this as an orchestrator that routes each task to the cheapest model that can handle it, and only escalates when a cheaper one fails. That kept the bill sane over a project this size.

Right now the repo has about 125k lines of Go, 40k lines of TypeScript, 179 Go test files and 207 commits. I wrote none of the code by hand, but I read the diffs, ran everything on my own network, and made the calls on what to build and what to cut.

What worked

  • Giving each agent a narrow, checkable brief ("change this, run these tests") beat open-ended prompts every time.
  • Keeping a roadmap file and a set of project notes in the repo meant new sessions picked up where the last one stopped.
  • Having a stronger model review work from a cheaper one caught real bugs, including security ones.
  • It's good at the boring parts of security tooling that take forever by hand: Sigma rule compilation, syslog decoders for a pile of vendors, a query language with a parser and a SQL compiler.

What didn't

  • The new firewall decoders were written from vendor docs and tested against sample lines, not real devices. Claude can't tell you a log format is wrong if neither of you has seen one from a real box.
  • Models will cheerfully write a plausible claim that isn't true. I had to check every feature claim in the docs against the code, including in this post.
  • Guardrails need to be mechanical. I added git hooks that block commits containing anything from my real network (hostnames, subnets, IPs), because "please don't" in a prompt isn't enough.

Expect to tune it

Like any full-service XDR/SIEM, it needs manual tuning. Depending on which detections you enable, you'll get a lot of alerts at first, and you'll spend time suppressing the noisy ones and adjusting rules for your own environment. Alerts are grouped by rule, host and process, with one-click suppression, which helps, but it won't be quiet out of the box.

Where it stands

It's beta. I run it on my own network, but few other networks have seen it, so don't depend on it anywhere you need an SLA.

If you've built something this size with Claude Code, I'd like to hear how you split the work across models. And if you run a home lab or SOC, tell me what's missing.

5 Upvotes

6 comments sorted by

2

u/3Gigs 4d ago

Very cool! I'm looking into implementing an XDR system for my home lab. Curious how it's different from something like Wazuh.

1

u/Doodle210 4d ago

Wazuh is the more mature one. It has way more built-in coverage: compliance reports, CIS config checks, cloud logs like AWS and M365, and clustering. HomeXDR doesn't have those yet.

Where HomeXDR is different is the investigation side: process trees and a storyline for each alert, one-click response actions, Sigma rules out of the box, and firewall logs tied to the process that made the connection.

It's also much simpler to set up, which was the point for me. When I first started looking at EDR/SIEM/SOAR for my homelab, Wazuh came into the picture, but it took a lot of setup, babysitting and eventually left a bad taste in my mouth. I actually deleted it for this project after running it for just over a year.

1

u/chanc2 3d ago

Does it ingest Firewalla logs?

1

u/dorynz 2d ago

very cool, ive spun it up on a test network and will see how it goes, might put some artex scans through the network and see if it can detect anything

1

u/NerdyNThick 4d ago

Impeccable.style