Skip to content
TYFSADIKPublic

About

Daru: self-hosted log analytics and SIEM. Splunk-style search, dashboards, alerts, and authorized recon in one Go binary over ClickHouse. No API keys.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Daru Tech Analytics

Daru

Self-hosted log analytics and SIEM in a single Go binary, plus ClickHouse.

Splunk-style search, dashboards, scheduled alerts, incident triage, and authorized recon tooling. No API keys. No cloud. No per-GB licensing.

CI Release Go License: MIT Platforms PRs welcome Stars

Install . Query language . Screenshots . Recon . Contributing


Why Daru

Most teams want what Splunk does without the bill, the cloud dependency, or the API keys. Daru is a single Go binary that collects logs, stores them in ClickHouse (a required second service, run via Docker or natively), and lets you search them with a pipe query language, build dashboards, run scheduled alerts, triage notable events, and drive authorized security tools, all on hardware you control.

  • One binary. Search API, ingest endpoints, alert scheduler, and web UI are compiled into a single executable. The only other piece is ClickHouse.
  • Drop-in ingest. The HTTP endpoint speaks Splunk HEC, so forwarders already pointed at HEC work unchanged. Raw and JSON are accepted too. Note: Daru has no indexer acknowledgement (ack) endpoint, so Splunk forwarders that require ack will not work; use HEC without ack, or raw and JSON ingest.
  • A real query language. search, where, eval, stats, timechart, chart, top, rare, rex, spath, sort, dedup, rename, bin, fillnull, eventstats, streamstats, and more, compiled to ClickHouse SQL.
  • Runs anywhere. Linux, macOS, Windows, Raspberry Pi, and Android (Termux). See Platform notes: Android cannot run ClickHouse locally, Windows recon tooling is mostly Linux-only, and Pi needs a 64-bit OS with 4 GB+ RAM.
  • No API keys, no telemetry. Your logs never leave your machines, except that Daru's native collectors call crt.sh, DNS, and RDAP over the internet for certificate-transparency, DNS, and TLS lookups. Those are the only external services Daru contacts.

Screenshots

Every feature, from a test install. Device names, addresses, hardware IDs and the Wi-Fi name were replaced with example values before the screenshots were taken. The alerts, incident detail and packet capture screenshots use made-up demo data.

Home

Overview: health strip, plain-language to-do list, number tiles, safety score, donut charts and the live network map:

Overview

Overview: incidents, MITRE ATT&CK and affected entities
Overview: incidents, MITRE ATT&CK and affected entities
Report: a one-page security summary to print or save as PDF
Report: a one-page security summary to print or save as PDF
Overview in the Daylight light theme
Overview in the Daylight light theme
Command palette (Ctrl+K): any page, setting or action
Command palette (Ctrl+K): any page, setting or action

Investigate

Search with the Daru pipeline language and live charts:

Search with a timechart

Search results as events with every field
Search results as events with every field
stats and dc() as a table
stats and dc() as a table
Dashboards list, with ready-made dashboards
Dashboards list, with ready-made dashboards
A dashboard of saved panels, with share link and PDF and CSV export
A dashboard of saved panels, with share link and PDF and CSV export
Search in the light theme
Search in the light theme
Sign in with a local account, LDAP, OIDC or SAML
Sign in with a local account, LDAP, OIDC or SAML

Security

Incidents: triage, assign and close, with MITRE tags
Incidents: triage, assign and close, with MITRE tags
Incident timeline with notes, owner and status
Incident timeline with notes, owner and status
Scheduled alerts and their firing history
Scheduled alerts and their firing history
Threat feeds: 296,000 known-bad addresses and domains, checked every minute
Threat feeds: 296,000 known-bad addresses and domains, checked every minute

Network

Network map: every device on every network, live:

Network map

Device inventory, recent changes and new devices
Device inventory, recent changes and new devices
Per-device intelligence in plain words, with name and trust
Per-device intelligence in plain words, with name and trust
Who visits what: sites and services per device, per home
Who visits what: sites and services per device, per home
Live traffic: packet capture and interface throughput
Live traffic: packet capture and interface throughput
Packet capture with Host/SNI, protocols and top talkers
Packet capture with Host/SNI, protocols and top talkers
World view: a live 3D globe with your connections
World view: a live 3D globe with your connections

Scans and recon

Recon: tasks in plain words, findings and riskiest hosts
Recon: tasks in plain words, findings and riskiest hosts
Catalog of all 59 tools, grouped by category
Catalog of all 59 tools, grouped by category
A dashboard and scan history for every tool
A dashboard and scan history for every tool
Scan permissions for internet targets
Scan permissions for internet targets

Wi-Fi analysis

Adapters and monitor mode, without cutting your internet
Wi-Fi adapters and monitor mode control
24 monitor-mode tools, grouped and driven from the page
Wi-Fi tool catalog grouped by category

AI

Agents: give Hermes and OpenClaw a task and watch every step
Agents: give Hermes and OpenClaw a task and watch every step
Try models: chat with any model and see its speed
Try models: chat with any model and see its speed
AI models: providers, daily spending cap and today's use
AI models: providers, daily spending cap and today's use
Agent settings: models, turns and standing instructions
Agent settings: models, turns and standing instructions

Control center and settings

System diagram: every part of Daru with its live state:

System diagram

Components: install, start, stop, update, settings and logs
Components: install, start, stop, update, settings and logs
Local models: hardware check and models that fit
Local models: hardware check and models that fit
Daru settings, edited from the page
Daru settings, edited from the page
Appearance: colours, spacing, size, motion, charts and pages
Appearance: colours, spacing, size, motion, charts and pages
This computer: its own logs and programs open to the network
This computer: its own logs and programs open to the network
Notifications: ntfy, Telegram, email and webhooks
Notifications: ntfy, Telegram, email and webhooks
Users and roles
Users and roles
Indexes with retention and size
Indexes with retention and size
Append-only audit trail with filters and CSV export
Append-only audit trail with filters and CSV export
Account: two-factor and active sessions
Account: two-factor and active sessions
System: privileges and one-click tool updates
System: privileges and one-click tool updates

Live Monitor

The Live Monitor is a packet capture console with live interface stats:

  • Packet capture on any interface, with an optional BPF filter, in a Wireshark-style table: time to the millisecond, source and destination, protocol, length, and a Host / SNI column (TLS server name, DNS query, or HTTP host). Live packets per second (with a one-minute sparkline), bytes captured, and protocol, top-talker, and top-destination breakdowns.
  • Pause freezes the table so you can read it while packets keep being counted; filter narrows the captured packets by address, protocol, host, or info; click a packet for its decoded fields and a link to search your logs for that peer.
  • Download .pcap: every capture is saved (up to 200 MB) so you can open it in Wireshark. Only the user who ran it, or an admin, can download it; it is kept for 30 minutes and every download is audited.
  • Interfaces: the interfaces carrying traffic first, labeled Wi-Fi, wired, VPN tunnel, or virtual, with live throughput and a sparkline. Wi-Fi shows SSID, band, signal, and link rate on Linux. VPN tunnels and virtual links are folded into a list below.

Capture works without root or wireshark-group membership: Daru captures with tcpdump (which carries CAP_NET_RAW) and decodes with tshark, or uses tshark directly where dumpcap is allowed to capture.

How Daru fits together

flowchart LR
    subgraph Sources["Where data comes from"]
        dev["Home devices<br/>phones, TVs, laptops"]
        host["This computer<br/>system logs"]
        remote["Other machines<br/>syslog, HEC, JSON"]
        ids["Network monitor<br/>Suricata"]
        scans["Scans<br/>59 recon tools"]
    end
    subgraph Daru["daru (one binary)"]
        dns["Daru DNS"]
        ingest["Ingest and<br/>field extraction"]
        query["Query parser<br/>and SQL compiler"]
        sched["Alert scheduler"]
        notify["Notifications<br/>ntfy, Telegram, email, webhook"]
        ui["Web UI<br/>embedded"]
        gw["AI gateway"]
        ctl["Control center"]
    end
    db[("ClickHouse")]
    subgraph AI["Local and cloud models"]
        ollama["Ollama"]
        llama["llama.cpp"]
        vllm["vLLM"]
        cloud["Cloud providers"]
    end
    agents["Hermes and OpenClaw<br/>agents"]
    browser["Browser or phone"]

    dev --> dns --> ingest
    host --> ingest
    remote --> ingest
    ids --> ingest
    scans --> ingest
    ingest --> db
    query --> db
    sched --> query
    sched --> notify
    browser --> ui --> query
    agents --> gw
    gw --> ollama & llama & vllm & cloud
    ctl -. installs and runs .-> ollama & llama & vllm & agents
Loading

Life of a log line

flowchart LR
    A["Log line arrives<br/>HEC, raw, JSON, syslog,<br/>journald, DNS, Suricata"] --> B{"Token and<br/>rate limit OK?"}
    B -- no --> R["Rejected<br/>and counted"]
    B -- yes --> C["Fields extracted<br/>key=value, JSON, timestamps"]
    C --> D["Stamped with home,<br/>device and location"]
    D --> E[("Stored in ClickHouse<br/>per index, with retention")]
    E --> F["Search, dashboards,<br/>reports"]
    E --> G["Scheduled alerts"]
    E --> H["Threat feed matching"]
Loading

From a search to an incident

sequenceDiagram
    autonumber
    participant You
    participant Sched as Alert scheduler
    participant DB as ClickHouse
    participant Inc as Incidents
    participant Out as ntfy / Telegram / email / webhook
    You->>Sched: Save a search as an alert (every N minutes, condition)
    loop every minute
        Sched->>DB: Run the search for its time window
        DB-->>Sched: Result count and rows
        alt condition met
            Sched->>Out: Signed webhook
            Sched->>Inc: Open a notable event (severity, MITRE tag)
            Inc->>Out: Batched notification
        else not met
            Sched-->>Sched: Wait for the next run
        end
    end
Loading
stateDiagram-v2
    [*] --> new: alert fires
    new --> in_progress: someone takes it
    in_progress --> new: handed back
    in_progress --> closed: resolved, with a note
    new --> closed: false alarm
    closed --> [*]
Loading

Who visits what

Daru can tell which device in your home visits which websites and services. Each device asks a DNS server for a site's address before visiting it; when devices ask Daru, it answers them (by asking your normal resolver) and notes which device asked for which name. Live traffic then shows each device with the services it uses (YouTube, Spotify, TikTok, banking, smart home, trackers and more), donut charts of kinds of sites and top services, the busiest devices, and a live feed of the latest lookups.

sequenceDiagram
    autonumber
    participant Phone as Phone in your home
    participant Daru as Daru DNS (port 53 to 5354)
    participant Up as Your normal resolver
    participant DB as ClickHouse (dns index)
    participant Page as Live traffic page
    Phone->>Daru: What is the address of www.youtube.com?
    Daru->>Up: Same question
    Up-->>Daru: 142.250.x.x
    Daru-->>Phone: 142.250.x.x
    Daru->>DB: Phone (hardware address), home, youtube.com, service YouTube, category video
    Page->>DB: Devices and services for this home
    DB-->>Page: Phone uses YouTube 42 times today
Loading

Setup at each home takes two steps on the router: give this computer a fixed address, and set the router's first DNS server to it (with the router itself as the second, so the home keeps working when the computer leaves). The page shows these steps with the right addresses filled in.

Several homes

If you carry the computer between homes, each home is kept apart. Daru recognises a home by its router's hardware address and Wi-Fi name, and a device by its own hardware address, so two devices that get the same IP in two different homes are never mixed up.

flowchart TD
    J["Computer joins a Wi-Fi network"] --> R["Read the default route<br/>and the router's hardware address"]
    R --> K{"Seen this router before?"}
    K -- yes --> H["Same home<br/>names and history kept"]
    K -- no --> N["New home added<br/>named after the Wi-Fi"]
    H & N --> S["Every lookup is stamped with<br/>home id and device hardware address"]
    S --> P["Home picker on Live traffic<br/>one home or all homes"]
    N --> A["Allow phone access on this network<br/>one click adds the network and<br/>this computer's new address to the certificate"]
Loading

AI agents and local models

Two agents, Hermes and OpenClaw, work together on tasks you give them. They reach models only through Daru's AI gateway, which holds a key per agent, keeps a daily spending cap, and logs every request. Local model servers (Ollama, llama.cpp, vLLM) are installed and run from the Control center and join the gateway's model list by themselves while they run. "Try models" lets you chat with any model first and shows its speed in tokens per second.

flowchart LR
    you["You"] -- task --> hermes["Hermes"]
    hermes <-- talk --> openclaw["OpenClaw"]
    hermes & openclaw -- per-agent key --> gw{"AI gateway<br/>spending cap, audit"}
    you -- Try models --> gw
    gw --> ollama["Ollama"] & llama["llama.cpp"] & vllm["vLLM"] & cloud["Cloud providers"]
    guard["Person-only settings<br/>agents can never change them"] -.- gw
Loading

Agents never get the root password. They cannot change the spending cap, the AI switch, their own settings, scan permissions, users, Daru's settings, or phone access.

Control center

Everything Daru uses, in one place, with no second web page: install or update with one click, start and stop services, change each one's settings, read its logs, download models that fit your hardware, and edit Daru's own settings. The System diagram tab draws every part with its live state.

stateDiagram-v2
    [*] --> not_installed
    not_installed --> installing: Install
    installing --> installed: done
    installing --> not_installed: failed, see the log
    installed --> running: Start
    running --> installed: Stop
    running --> running: Restart or change settings
    installed --> installing: Update
    running --> connected: model server answers
    connected --> running: server stops
Loading

Appearance and customizing

Open Settings, Appearance (or press g then p). Everything applies right away and is kept in your browser; Export and Import move your setup to another browser.

mindmap
  root((Appearance))
    Colours
      Follow system, dark or light
      Aurora, Midnight, Forest, Slate
      Daylight, Paper, Mist
      12 accents or any colour
      Background glow
    Layout
      Compact, comfortable, spacious
      Size 80 to 130 percent
      Sharp, soft or round corners
      Five fonts
      Full or icon-only menu
    Motion
      Full, subtle or off
      Follows the system setting
    Charts
      Area, line or bars
    Pages
      Start page
      Pin favourites
      Hide pages
      Pick Overview sections
Loading

Keyboard: Ctrl+K opens the command palette; ? lists shortcuts; g then a letter jumps to a page (o Overview, s Search, l Live traffic, c Control center, p Appearance and more); t switches light and dark; [ collapses the side menu.

God-mode orchestrators

Two one-click actions fuse several tools into a single aggregated result:

  • Deep scan (Network tab), discovery + nmap OS/service detection + NetBIOS names merged into a full device profile per host on your LAN.
  • Web assessment (web-recon), HTTP probe + technology fingerprint + content discovery (and nuclei templates on the full profile) against a URL, with each finding tagged by its source tool.

Install (one command)

Daru runs on Linux, macOS, Raspberry Pi, Windows, and Android (Termux).

flowchart TD
    S(["./install.sh"]) --> G["Go toolchain<br/>and the daru binary"]
    G --> C{"ClickHouse<br/>already answering?"}
    C -- yes --> U["Use it"]
    C -- no --> D{"Docker available?"}
    D -- yes --> DC["Run it in Docker"]
    D -- no --> HC["Install it in your home folder"]
    U & DC & HC --> GEO["Location database"]
    GEO --> AI["Node, World view, Hermes, OpenClaw,<br/>Ollama, llama.cpp, vLLM"]
    AI --> SVC["systemd user service<br/>starts at boot"]
    SVC --> ROOT{"Root parts?<br/>asks first"}
    ROOT -- yes --> R["Recon tools and Suricata"]
    ROOT -- no --> DONE
    R --> DONE(["Summary of what worked<br/>and what to retry"])
Loading

Linux, macOS, Raspberry Pi, Termux:

git clone https://github.com/TYFSADIK/daru
cd daru
./install.sh

On Linux with systemd, that one command sets up everything, one step after another, with no root needed:

  1. Go (if missing) and the Daru binary
  2. The ClickHouse database (an existing one, Docker, or a copy in your home folder)
  3. Daru as a service that starts with the computer
  4. Node.js and the God's Eye View globe
  5. The Hermes and OpenClaw AI agents
  6. The Ollama, llama.cpp and vLLM local model servers
  7. If you say yes, the parts that need your password once: the security scanners and the Suricata network monitor

A step that fails does not stop the rest; the summary lists it and you can retry from Daru. Options:

Option What it does
--minimal Only Daru and its database
--no-ai Skip the agents and model servers
--no-vllm Skip vLLM (a few GB)
--no-root Never ask for your password
--with-tools Install the scanners without asking
--no-clickhouse Skip the database step

Control center

After installing, everything is run from Daru itself, under Settings, Control center:

  • Components: install, update, uninstall, start, stop, and start with the computer, for every model server, agent and app, with live progress, settings and logs.
  • Local models: download Ollama models by name, or any GGUF file from a Hugging Face repository for llama.cpp. While a server runs, its models join the agents' AI models list by themselves (as ollama/<model>, llamacpp/<model>, vllm/<model>).
  • Daru settings: every Daru option (features, phone access, scans, syslog, sign-in, database) with a restart button. The previous file is kept as daru.env.previous.

Windows (PowerShell):

git clone https://github.com/TYFSADIK/daru
cd daru
powershell -ExecutionPolicy Bypass -File install.ps1

On other systems the installer builds Daru (installing a Go toolchain if you do not have one), starts ClickHouse with Docker if it is available, generates admin and database passwords into ~/.daru/daru.env, and prints your login. Without systemd, start Daru yourself:

set -a; . ~/.daru/daru.env; set +a
daru serve

Open http://localhost:8088 and sign in as the admin user printed by the installer.

Platform notes

  • Raspberry Pi: use a 64-bit OS with 4 GB+ RAM; ClickHouse runs natively on arm64.
  • Android (Termux): the Daru binary runs, but ClickHouse does not run on Android. Point Daru at a ClickHouse on another machine with DARU_CLICKHOUSE_URL=http://<host>:8123.
  • macOS: Live Monitor lists interfaces with live throughput and captures packets (tcpdump needs BPF access, which Wireshark's ChmodBPF installer grants). WiFi details (SSID, signal, link rate) come from Linux's iw, so they show on Linux only.
  • Windows: the Daru binary and the web UI run, but most recon tooling (nmap, masscan, tcpdump, tshark, arp-scan) is Linux-only, so Recon and Live Monitor are limited on Windows.
  • No Docker? Install ClickHouse natively (its official installer is curl https://clickhouse.com/ | sh), or point DARU_CLICKHOUSE_URL at an existing instance.

Prebuilt binaries

Each release publishes static binaries for every platform (make release builds them locally into dist/). Download the one for your system, drop it on your PATH, and run daru serve.

Features

  • Collect logs over HTTP in the Splunk HEC format, as raw text, or as JSON, and over syslog (UDP and TCP, RFC 5424 and 3164). Fields are pulled out automatically from key=value pairs and JSON.
  • Search with a pipe language and see results as tables, time charts, and bar charts, with a field sidebar for quick drill-down.
  • Dashboards of saved panels, with a share link per dashboard (#/dashboard/<id>), Export PDF via the browser print dialog, and Export CSV (one section per panel).
  • Scheduled reports: any saved search can be scheduled as an alert from the Search page (cron, condition, severity, optional webhook URL stored with the alert). A dashboard can be printed or exported to CSV on demand.
  • MITRE ATT&CK coverage: the Security page groups notable events by MITRE tactic from the mitre field, with unmapped events shown separately.
  • Alerts: scheduled searches on a cron schedule, with a condition and severity. A firing can open a notable event. For reporting queries (stats count by host) the condition is checked against the total across every group. Webhooks are signed with HMAC-SHA256 when DARU_WEBHOOK_SECRET is set (see Webhook signatures).
  • Security: a notable-event queue for incident triage. Click an incident to see its details and raw event, assign it, change its status, and add analyst notes; every note, status change, and assignment lands on the incident's timeline and in the audit trail.
  • Accounts: built-in users with Argon2id password hashing, roles (admin, power, user), TOTP second factor, and revocable sessions. No external identity provider needed, and optional LDAP / Active Directory, OIDC, and SAML 2.0 sign in when you have one (see Single sign on). Each account has a sign in method, and an external identity can only sign in to an account of its own method, so a directory or IdP user can never take over a local account with the same name.
  • Session management: everyone sees their active sessions (browser, IP, sign in method, age) under Account and can sign out any of them, or every other session at once. Admins can sign a user out on every device (Admin > Users > Sign out everywhere), for a lost laptop or a suspected compromise.
  • Audit trail: every sign in (and failed attempt), user, role, token, and index change, scan, schedule, saved search, dashboard, and incident status change is stored with the user, IP, and outcome. Admins filter and export it under Admin > Audit log. The trail is append-only: Daru's ClickHouse user can add records but not change or delete them, and they are kept for two years. Every event also goes to the server log.
  • Per-index access control: each user can be limited to a set of indexes (Admin > Users > Indexes, or POST /api/admin/users/{name}/indexes). Searches, the index list, and that user's scheduled alerts only read the permitted indexes. Admins always read every index.
  • Indexes and retention: an index is created when an admin adds it (Admin > Indexes) or creates an ingest token for it, with a default of 90 days. Each index keeps its own retention (up to 3650 days), enforced by a sweep that drops expired day partitions every 6 hours. Defaults applied at startup never overwrite a retention an admin has set.
  • Limits: a global ingest rate limit (events per second) plus per user quotas on running scans, scans per hour, and scheduled scans.
  • Operations: /api/health (liveness), /ready (ClickHouse reachable), and /metrics (Prometheus text format).
  • Recon: 59 authorized security tools in 8 categories, each pulling structured findings into search: port and host discovery (nmap, masscan, naabu, rustscan, zmap, and more), web scanning (httpx, katana, ffuf, gobuster, wapiti, wpscan, sqlmap, and more), DNS and subdomains (amass, subfinder, dnsx, dnsrecon, dnstwist, and more), vulnerability scanning (nuclei, nikto, OpenVAS, trufflehog, and more), service enumeration (SMB and SNMP tools), OSINT (theHarvester, SpiderFoot, recon-ng, whois, RDAP), TLS (testssl, sslyze, sslscan), and traffic analysis (tcpdump, tshark). Native collectors (crt.sh, DNS, TLS, RDAP) need no external binary.
  • Network: discover live devices on your LAN with IP, hostname, MAC, vendor, and OS. One-click deep scan (god mode) fuses discovery, nmap OS/service detection, and NetBIOS names into a full profile per device.
  • Live Monitor: real-time per-interface and WiFi link stats (SSID, band, signal, link rate, live throughput) plus an in-browser packet capture that streams decoded packets (source/destination, protocol, ports, DNS queries, TLS SNI, HTTP host) with live protocol, top-talker and top-destination breakdowns. Capture works without root or wireshark-group membership, and captured packets can be saved to a searchable index.
  • Offline PCAP analysis: upload a .pcap/.pcapng and decode it with the same tshark rich decoder (DNS/TLS-SNI/HTTP), no capture permission needed.
  • Per-tool dashboards: every recon tool has its own dashboard at #/tool/<name> with its description, profiles, a run panel, and its own scan history and results, plus a catalog card showing availability.
  • Per-device intelligence: click any device to see everything observed about it (identity, OS, open ports, every finding from every tool), with one-click deep-rescan and HTML report + CSV export.
  • Security posture overview: findings by severity, top hosts by risk, and recent high-severity findings aggregated across all scans.
  • Scheduled scans: run any recon tool on a cron schedule for continuous monitoring; results feed the inventory and posture automatically.
  • Web assessment orchestrator (web-recon): one action fuses HTTP probe, technology fingerprint, content discovery, and template-based vuln scanning against a URL.
  • Resilient tooling: tools with a native equivalent (SMB enumeration, DNS resolution, LAN discovery, certificate-transparency and TLS/RDAP lookups) always return results via a built-in engine when the external binary is missing or cannot run in the environment.

Query language

A query is a series of commands joined by |. The first command is a search over the raw text and extracted fields; later commands transform the results.

index=web status>=500 host=api*
  | eval slow = if(latency_ms > 500, "yes", "no")
  | stats count, avg(latency_ms) as avg_ms by host, slow
  | sort -count

A few more to try once you have data:

* | timechart span=1h count by host
status=500 | stats count by host
* | top url
sourcetype=api_json | stats avg(latency_ms) as avg_latency by user | sort -avg_latency

Time ranges use forms like -15m, -24h, -1d@d (snap to the start of the day), epoch seconds, or ISO timestamps.

Recon

Daru can drive standard, dual-use security tools and pull their findings into search. Every scan is gated: it requires an authorization reference and an explicit "I am authorized to test this target" confirmation, and a scope guard blocks public targets unless you opt in and refuses overly broad ranges. Each tool runs only when its binary is present on the host.

Install the optional scanners (consent-gated) with:

./scripts/install-recon-tools.sh

This installs discovery, vulnerability, web, DNS/OSINT, and traffic-analysis tools. It deliberately installs no denial-of-service tools, no mass auto-exploiters, and no anti-virus evasion tooling.

Network discovery and privileges

The Network tab finds live devices on your LAN. For a complete picture (including silent devices like phones, printers, and IoT that answer no TCP), Daru uses arp-scan, which sends real ARP requests. Without it, Daru falls back to a TCP sweep plus the OS ARP table, which only finds hosts with an open port.

arp-scan, nmap SYN/ARP scans, masscan, and packet capture need the CAP_NET_RAW capability. The right way to grant it is per-binary file capabilities, not running Daru as root. Do that once with:

sh scripts/grant-capabilities.sh

This grants only the raw-socket capability to those specific tools, so they work for your normal user while Daru itself keeps running unprivileged. The --with-tools installer runs this step for you.

Local root mode

On a private box that no one else can reach, you may prefer to just run everything as root so every tool works with no per-tool setup:

sh scripts/serve-root.sh

This loads ~/.daru/daru.env and runs daru serve under sudo -E. Because SUDO_USER is preserved, Daru still finds tools you installed in your own ~/go/bin and ~/.local/bin.

Only do this on a local, non-public instance. Running as root means anyone who can reach this Daru can run root commands through it, so keep it bound to localhost or a trusted LAN:

# in ~/.daru/daru.env, to accept only local connections:
DARU_LISTEN=127.0.0.1:8088

For a shared or internet-exposed instance, use grant-capabilities.sh above and run Daru as a normal user instead.

Wi-Fi analysis

The Wi-Fi analysis tab turns a monitor-mode USB adapter into a full wireless workbench, all driven from the page: no terminal needed. It detects your adapters, puts the right one into monitor mode without touching the card that carries your internet, and then scans, captures, tests and recovers passwords from one place.

flowchart LR
  A["Monitor-mode<br/>USB adapter"] --> M["Monitor mode<br/>(per-interface handoff)"]
  M --> S["Live scan<br/>airodump-ng"]
  S --> C["Capture<br/>handshake / PMKID"]
  C --> V["Convert<br/>hcxpcapngtool"]
  V --> R["Recover<br/>hashcat / aircrack / john / cowpatty"]
  S --> T["Authorized testing<br/>deauth / WPS / beacon"]
Loading

It groups 24 tools into shelves you drive from cards: the Aircrack-ng suite (airmon-ng, airodump-ng, aireplay-ng, aircrack-ng), hcxdumptool, hcxtools, Kismet, Wireshark, horst, wavemon, Wash/Reaver/Bully/Pixiewps for WPS, MDK4, Wifiphisher/EAPHammer/hostapd-wpe for rogue-AP testing, Hashcat/John/coWPAtty/Crunch for password recovery, and the Wifite2, Airgeddon, Fern and Bettercap frameworks.

Install them in one step (Fedora), or use the Show install command button on the Tools tab, which lists exactly what is still missing:

sudo sh scripts/install-wifi-tools.sh

Guardrails, same shape as recon:

  • Administrator only. Every Wi-Fi route requires the admin role.
  • Agents can never use it. The whole /api/wifi surface is person-only, so the AI agents' account is blocked from driving the radio.
  • Active tools are gated. Deauthentication, WPS, rogue-AP and PMKID actions need an explicit "I own this network or am authorized to test it" confirmation before they run.
  • Audited. Monitor changes, captures, tests, cracks, downloads and deletes are all written to the append-only audit log.
  • Your internet is safe. Monitor mode is set per interface; the adapter carrying your default route is refused and left connected.

The radio tools need raw-socket access, so run Daru as root on a local box for Wi-Fi work (sh scripts/serve-root.sh), or grant capabilities to the individual tools. Set DARU_WIFI=0 to turn the section off entirely.

Run with Docker Compose

cd deploy
export CLICKHOUSE_PASSWORD=$(openssl rand -hex 16)      # ClickHouse schema user
export CLICKHOUSE_APP_PASSWORD=$(openssl rand -hex 16)  # least privilege app user
export DARU_ADMIN_PASSWORD=$(openssl rand -hex 16)      # Daru admin login
docker compose up -d

Open http://localhost:8088 and sign in with the admin account you set in DARU_ADMIN_USER and DARU_ADMIN_PASSWORD.

ClickHouse privileges are split, and the audit trail is append-only. Upgrading an existing install? Run this once as a ClickHouse admin so Daru cannot delete audit records:

REVOKE ALTER DELETE, ALTER UPDATE ON daru.audit_log FROM daru_app;

ClickHouse privileges are split. Daru runs as daru_app, which has only SELECT, INSERT, and row level ALTER DELETE/ALTER UPDATE, and uses the daru ClickHouse user only for schema migrations and retention partition drops. User written searches also run with ClickHouse readonly=2. The app user is created on the first start by deploy/clickhouse-init/10-daru-users.sh. For an existing ClickHouse volume, or a ClickHouse you run yourself, apply deploy/clickhouse-users.sql once and set DARU_CLICKHOUSE_ADMIN_USER.

Send some sample logs:

  1. In the UI, go to Admin > Ingest tokens and create a token. Copy it.

  2. Run the generator:

    python3 examples/sendlogs.py --server http://localhost:8088 --token YOUR_TOKEN --count 2000
  3. Go to Search and run a query.

Backup and restore

All Daru state lives in ClickHouse, so back it up with:

./scripts/backup.sh
# writes ~/.daru/backups/daru-YYYY-MM-DD-HHMMSS.tar.gz (readable by you only)

Check a backup and restore it with:

./scripts/restore.sh --dry-run ~/.daru/backups/daru-2026-11-08-030000.tar.gz
./scripts/restore.sh ~/.daru/backups/daru-2026-11-08-030000.tar.gz

The scripts use ClickHouse's HTTP interface (only curl 7.87+ and tar are needed), so they work with ClickHouse in Docker or on another host and need no server side backup configuration. The file holds each table's schema and rows. It includes password, session, and token hashes, so keep it private.

Restore replaces every table in the backup, so stop Daru first and back up the current data if it matters. It needs schema rights: set DARU_CLICKHOUSE_ADMIN_USER and DARU_CLICKHOUSE_ADMIN_PASSWORD (backup works with the least privilege app user too). Test a restore on a scratch ClickHouse before relying on it. Daily cron example:

0 3 * * * /path/to/daru/scripts/backup.sh >> /var/log/daru-backup.log 2>&1
0 4 * * * find "$HOME/.daru/backups" -name 'daru-*.tar.gz' -mtime +7 -delete

The scripts read DARU_CLICKHOUSE_URL, DARU_CLICKHOUSE_DB, the app and admin ClickHouse users and passwords, and DARU_BACKUP_DIR, and load ~/.daru/daru.env when present.

TLS

Daru serves plain HTTP by default on :8088. Do not expose that directly. Put a reverse proxy with TLS in front of it (Caddy, nginx, or Traefik), set DARU_SECURE_COOKIES=true, and bind Daru to localhost (DARU_LISTEN=127.0.0.1:8088) unless the proxy runs on another host. The version shown in the UI footer is stamped by make stamp-version at release time; the binary version comes from git describe --tags via the Makefile.

Running without Docker

You need Go 1.27.4+ and a reachable ClickHouse.

go build -o daru ./cmd/daru
export DARU_CLICKHOUSE_URL=http://127.0.0.1:8123
export DARU_CLICKHOUSE_USER=default
export DARU_CLICKHOUSE_PASSWORD=yourpassword
./daru useradd -u admin -p 'a-strong-password' -role admin
./daru serve

Sending logs

Each ingest token writes to one index, its default index, which Daru creates when the token is made. Create tokens under Admin > Ingest tokens. The HEC endpoint accepts the same JSON shape as Splunk's HTTP Event Collector:

curl http://localhost:8088/services/collector \
  -H "Authorization: Splunk YOUR_TOKEN" \
  -d '{"event":"user=alice action=login status=200","sourcetype":"app","host":"web01"}'

Raw lines (one event per line):

curl http://localhost:8088/services/collector/raw?sourcetype=syslog \
  -H "Authorization: Splunk YOUR_TOKEN" \
  --data-binary @/var/log/syslog

Syslog

Daru receives syslog directly from firewalls, switches, routers, and Linux servers. It reads RFC 5424 and RFC 3164 (BSD) messages, over UDP and TCP, with newline or octet-counted (RFC 6587) framing.

export DARU_SYSLOG_UDP=:5514
export DARU_SYSLOG_TCP=:5514
export DARU_SYSLOG_ALLOW=10.0.0.0/8,192.168.10.5   # senders allowed (CIDR or IP)

Messages land in the syslog index (change it with DARU_SYSLOG_INDEX) with facility, severity, app, pid, and msgid fields, plus any key=value pairs in the message. A message with no hostname uses the sender's address as the host. If a device's clock runs ahead, Daru keeps the device's time in syslog_time and indexes the event at the time it arrived, so it stays searchable. Syslog shares the ingest rate limit.

Set DARU_SYSLOG_ALLOW: syslog has no authentication, so without an allowlist anyone who can reach the port can write logs. Port 514 needs root, so listen on 5514 and point devices there, or redirect 514 to 5514 with your firewall. To forward from a Linux server with rsyslog:

*.* @@daru.example.com:5514    # TCP; use a single @ for UDP

Try index=syslog severity=error | stats count by host, app.

Configuration

Variable Default Meaning
DARU_LISTEN :8088 Listen address
DARU_CLICKHOUSE_URL http://127.0.0.1:8123 ClickHouse HTTP URL
DARU_CLICKHOUSE_DB daru Database name
DARU_CLICKHOUSE_USER default ClickHouse app user (SELECT, INSERT, ALTER DELETE, ALTER UPDATE)
DARU_CLICKHOUSE_PASSWORD ClickHouse app password
DARU_CLICKHOUSE_ADMIN_USER app user ClickHouse user for migrations and retention drops
DARU_CLICKHOUSE_ADMIN_PASSWORD Password for the admin user
DARU_ADMIN_USER Bootstrap admin, created on first run
DARU_ADMIN_PASSWORD Bootstrap admin password
DARU_SECURE_COOKIES Set to true behind HTTPS
DARU_WEBHOOK_SECRET HMAC key (16+ chars) for signing alert webhooks
DARU_METRICS_TOKEN Bearer token (16+ chars) for /metrics; unset means loopback only
DARU_INGEST_MAX_EPS 50000 Ingest events per second for the deployment, -1 disables
DARU_REPLICAS 1 Daru servers sharing one ClickHouse; each enforces its share of the ingest limit
DARU_SCAN_CONCURRENT_PER_USER 2 Running recon scans per user, -1 disables
DARU_SCAN_PER_HOUR_PER_USER 30 Recon scans started per user per hour, -1 disables
DARU_SCHEDULES_PER_USER 20 Scheduled scans owned per user, -1 disables
DARU_SYSLOG_UDP / DARU_SYSLOG_TCP off Syslog listen address, e.g. :5514
DARU_SYSLOG_ALLOW any sender Comma list of CIDR ranges or IPs allowed to send syslog
DARU_SYSLOG_INDEX syslog Index for received syslog
DARU_OIDC_ISSUER OIDC issuer URL; setting it enables single sign on
DARU_OIDC_CLIENT_ID / DARU_OIDC_CLIENT_SECRET OIDC client credentials
DARU_OIDC_REDIRECT_URL https://<host>/api/oidc/callback
DARU_OIDC_USERNAME_CLAIM email email, preferred_username, or sub
DARU_OIDC_ALLOWED_DOMAINS Comma list of email domains allowed to sign in
DARU_OIDC_AUTO_CREATE false Create accounts on first SSO sign in
DARU_OIDC_DEFAULT_ROLE user Role for auto created accounts
DARU_OIDC_DEFAULT_INDEXES none Index access for auto created accounts (* or a list)
DARU_LDAP_URL ldaps://host:636; setting it enables directory sign in
DARU_LDAP_BIND_DN / DARU_LDAP_BIND_PASSWORD Service account for user lookups
DARU_LDAP_BASE_DN / DARU_LDAP_USER_FILTER / (uid=%s) Where and how users are found
DARU_LDAP_STARTTLS / DARU_LDAP_CA_FILE StartTLS on ldap://; CA bundle for the directory
DARU_LDAP_ADMIN_GROUP / DARU_LDAP_POWER_GROUP Group DNs mapped to roles
DARU_SAML_ROOT_URL Daru's public URL; setting it enables SAML
DARU_SAML_IDP_METADATA_URL / _FILE IdP metadata
DARU_SAML_SP_KEY / DARU_SAML_SP_CERT SP key pair (PEM)
DARU_SAML_USERNAME_ATTR / DARU_SAML_GROUP_ATTR NameID / groups Identity attributes
DARU_SAML_ADMIN_GROUP / DARU_SAML_POWER_GROUP Group values mapped to roles

Health, readiness, and metrics

  • GET /api/health: liveness. 200 while the process answers.
  • GET /ready: readiness. 200 only when ClickHouse answers within 2 seconds, otherwise 503. Use it for load balancer and Kubernetes readiness checks.
  • GET /metrics: Prometheus text format: requests by route and status class, ingest events accepted and rate limited, searches and search errors, scans started, quota rejections, login failures, running scans, readiness, uptime, goroutines, and heap. Without DARU_METRICS_TOKEN it answers loopback clients only; with it, send Authorization: Bearer <token>.

Single sign on (OIDC)

Daru signs users in through any OpenID Connect provider (Google, Microsoft Entra ID, Okta, Keycloak, Authentik, Dex, and others) using the authorization code flow with PKCE. ID tokens are verified locally against the provider's keys (RS256 or ES256), including issuer, audience, expiry, and nonce.

export DARU_OIDC_ISSUER=https://accounts.example.com
export DARU_OIDC_CLIENT_ID=daru
export DARU_OIDC_CLIENT_SECRET=...
export DARU_OIDC_REDIRECT_URL=https://daru.example.com/api/oidc/callback
export DARU_OIDC_ALLOWED_DOMAINS=example.com   # optional email domain allowlist

Register the redirect URL with your provider. The login page then shows Sign in with SSO. By default an SSO identity can sign in only when an admin has already created a Daru account with the matching username (the verified email, or set DARU_OIDC_USERNAME_CLAIM=preferred_username). With DARU_OIDC_AUTO_CREATE=true, accounts are created on first sign in with DARU_OIDC_DEFAULT_ROLE (default user) and DARU_OIDC_DEFAULT_INDEXES (default: no index, so an admin grants access explicitly). Multi factor authentication is the provider's job for SSO sign ins.

LDAP and Active Directory

The normal password form checks local accounts first, then the directory. Daru binds as a service account, finds the user, and binds as the user with the typed password. Connections must be TLS (ldaps://, or StartTLS); plain LDAP is refused except to loopback with DARU_LDAP_INSECURE=true. Empty passwords are refused before contacting the server, and the username is filter escaped.

export DARU_LDAP_URL=ldaps://dc.example.com:636
export DARU_LDAP_BIND_DN="cn=daru,ou=service,dc=example,dc=com"
export DARU_LDAP_BIND_PASSWORD=...
export DARU_LDAP_BASE_DN="ou=people,dc=example,dc=com"
export DARU_LDAP_USER_FILTER="(uid=%s)"          # AD: (sAMAccountName=%s)
export DARU_LDAP_ADMIN_GROUP="cn=daru-admins,ou=groups,dc=example,dc=com"   # optional
export DARU_LDAP_POWER_GROUP="cn=daru-power,ou=groups,dc=example,dc=com"    # optional

With group DNs set, the role follows group membership at every sign in. Daru TOTP still applies to directory accounts that enrol in it.

SAML 2.0

Daru is a SAML service provider (HTTP-Redirect requests, HTTP-POST responses). Responses must be signed by the IdP (SHA-1 refused), are checked for audience, destination, InResponseTo, and validity, are tied to the browser that started the sign in, and cannot be replayed. IdP initiated sign in is refused.

openssl req -x509 -newkey rsa:2048 -nodes -days 730 -subj "/CN=daru-sp" \
  -keyout sp.key -out sp.crt
export DARU_SAML_ROOT_URL=https://daru.example.com
export DARU_SAML_IDP_METADATA_URL=https://idp.example.com/metadata   # or DARU_SAML_IDP_METADATA_FILE
export DARU_SAML_SP_KEY=/etc/daru/sp.key DARU_SAML_SP_CERT=/etc/daru/sp.crt
export DARU_SAML_GROUP_ATTR=groups DARU_SAML_ADMIN_GROUP=daru-admins   # optional

Give your IdP the SP metadata from https://daru.example.com/api/saml/metadata. The username is the NameID unless DARU_SAML_USERNAME_ATTR names an attribute. The login page then shows Sign in with SAML.

LDAP and SAML take the same account options as OIDC: DARU_LDAP_AUTO_CREATE / DARU_SAML_AUTO_CREATE (default off; an admin creates the account with the matching sign in method under Admin > Users), ..._DEFAULT_ROLE (default user), and ..._DEFAULT_INDEXES (default none).

Webhook signatures

With DARU_WEBHOOK_SECRET set, every alert webhook carries:

X-Daru-Timestamp: 1800000000
X-Daru-Signature: sha256=<hex HMAC-SHA256(secret, timestamp + "." + raw body)>

Recompute the HMAC over the raw request body, compare in constant time, and reject timestamps more than five minutes old. In Python:

import hmac, hashlib, time
def verify(secret: bytes, ts: str, sig: str, body: bytes) -> bool:
    if abs(time.time() - int(ts)) > 300:
        return False
    want = "sha256=" + hmac.new(secret, ts.encode() + b"." + body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(want, sig)

Architecture

flowchart TB
    fw["Forwarders and apps"] -- "HEC, raw, JSON, syslog" --> ing
    br["Browser"] -- HTTPS --> ui
    subgraph bin["daru (one binary)"]
        ing["Ingest and field extraction"]
        ui["Web UI (embedded)"] --> api["Search API"]
        api --> qp["Daru query parser"] --> sql["SQL compiler"]
        sch["Alert scheduler"] --> api
        dns["Daru DNS"] --> ing
        gw["AI gateway"]
        cc["Control center"]
    end
    ing --> ch
    sql --> ch
    subgraph ch["ClickHouse"]
        t1[("events, dns")]
        t2[("users, sessions, settings")]
        t3[("saved searches, dashboards,<br/>alerts, notable events")]
    end
Loading

Contributing

Contributions are welcome. See CONTRIBUTING.md for how to build, test, and submit changes. For anything security-related, see SECURITY.md.

If Daru is useful to you, a star helps other people find it.

Status

Daru is under active development. Working today: ingest (HEC, raw, JSON), the query language and compiler, the search UI with charts, saved searches, dashboards, scheduled alerts, the notable-event queue, user and token administration, LDAP, OIDC, and SAML sign in, per-index access control and retention, ingest rate limits and scan quotas, readiness and Prometheus metrics, signed webhooks, the recon subsystem with 59 tools, network discovery and per-device intelligence, Live Monitor packet capture, and offline PCAP analysis, Who visits what with several homes, AI agents with a gateway and local models, the Control center, and the Appearance page.

License

MIT. See LICENSE. Daru is an independent project and is not affiliated with or endorsed by Splunk.

About

Daru: self-hosted log analytics and SIEM. Splunk-style search, dashboards, alerts, and authorized recon in one Go binary over ClickHouse. No API keys.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages