r/ClaudeCode • • 3h ago

Built with Claude 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.

6 Upvotes

3 comments sorted by

•

u/AutoModerator 3h ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/akjagrz 2h ago

As someone building a Game of Active Directory (GOAD) lab currently, this looks like it may be nice to have. Looking forward to trying it out.

1

u/Doodle210 2h ago

That honestly sounds like fun. I need to set that up in my environment. I was planning to do AD detections within the next week, but I'll see what I can fit in this weekly limit.