MiBee Steward Feature Overview
This page is the complete capability inventory of MiBee Steward, covering the capabilities shipped through v0.10.0 (2026-11-24). MiBee Steward is a device/network-layer asset discovery, identification, and registry tool, it answers three questions: What devices are on the network? What are they? Are they still alive? Every feature serves those questions; work outside the deliberate product scope is left to mature tools.

Capability map
| Layer | Modules | In one line |
|---|---|---|
| Discovery | Multi-protocol scanning / passive discovery / router-side sources / eBPF | Find what's on the network |
| Identification | Fingerprint rule library / OUI vendor / device-type inference | Recognize what it is (brand, model, type) |
| Registry | Asset inventory / heartbeat liveness / device systems | Keep a living ledger |
| Understanding | L2 topology / change detection / TLS certificate inventory | Understand relationships and changes |
| Operations | Config backup / synthetic probing / notifications / distributed agents | Day-to-day asset ops |
| Platform | REST API / Prometheus endpoints / Web UI / RBAC | Integration & governance |
Discovery
Scanner engine v2: a plugin-based five-layer pipeline (probe → classify → handle → persist → orchestrate). Adding a protocol means one Classifier + one Handler, the orchestration and persistence layers never change.
- Active probes: ICMP, TCP port scan, SNMP (v1/v2c/v3 USM), HTTP, RTSP, ONVIF, ARP, mDNS/SSDP/NetBIOS/WS-Discovery (UDP), rDNS (configurable DNS servers), SMB2 negotiate, FTP banner; exponential-backoff retry (1s → 2s → 4s, network errors only).
- Cascading deep collection: find HTTP → probe
/metrics→ identify Prometheus → cascade to node_exporter → auto-backfill hardware info. One scan progressively refines the device portrait. - Passive discovery service (opt-in): ARP-diff plus passive mDNS/SSDP listening between scheduled scans shrinks the discovery-to-registry gap to about a minute.
- Router-resident sources (when running on the router): DHCP leases (dnsmasq), conntrack table, hostapd WiFi stations (signal/association time), dnsmasq DNS query logs (passive DNS fingerprinting).
- Router ARP tables: SNMP walks of routers' ARP tables resolve MACs for cross-subnet devices.
- eBPF passive observer (optional build): a TC-ingress program sniffing WS-Discovery multicast and TCP magic bytes as supplementary evidence.
- Raw-frame LLDP listener (optional build): AF_PACKET capture of ethertype 0x88cc for endpoints that don't expose SNMP.
- Discovery funnel status: received → suppressed → known-skip → identify → alive-confirm → registered, with full counters and recent discoveries.

Identification
- Data-driven fingerprint rule library: identification rules are YAML data, not hardcoded Go, loaded at startup from a local path or embedded assets. Adding a vendor/model signature is one YAML entry; community contributions welcome.
- Imported corpora: Rapid7 Recog (Apache-2.0, ~1,100+ rules) + SNMP tables (~2,500+ rules total), converted via
cmd/fpimport; nmap corpora are clean-room reference only (license incompatibility). - Protocol fingerprint classification: banner, HTTP (Server header/HTML body), RTSP, ONVIF device info, SNMP sysObjectID/sysDesc, Prometheus/node_exporter, TLS certificates, SSH/Telnet banners.
- Camera cross-evidence fusion: RTSP + ONVIF + HTTP three-stage classifiers tuned for IP cameras (SNMP bitmask heuristics remain Go code).
- OUI vendor inference: longest-prefix match across IEEE MA-S(/36)/MA-M(/28)/MA-L(/24) registries, distinguishing NIC silicon vendor from the device's self-declared brand; an embedded curated CC-BY-SA table works out of the box, configurable full IEEE data overrides it.
- Device-type inference table: the hostname/brand/port → type keyword table is data too (YAML), with
heuristic(hostname guess,?badge in UI) vsprotocol(protocol evidence) source markers. - MAC observation flags: locally-administered (U/L) and multicast bits recorded as neutral observability fields, they never change asset identity.

Registry & Liveness
- Multi-network inventory:
networks+ composite-unique(ip, network_id), the same private IP can exist on different LANs; MAC is the primary upsert key so roaming devices stay one asset;device_uuidkeys all satellite tables, so IP changes don't fork history. - Heartbeat probing: per-device ICMP/TCP/HTTP/SNMP probes and intervals (default 30s); 5 consecutive failures mark offline; known-offline devices are probed with backoff (default every 10 ticks); a reviving scan clears the failure count.
- Liveness time series:
device_livenessrecords one online/offline verdict per device per tick; online ratio, offline duration, and history are queryable, status flips no longer flood the change log. - Silent-asset retention → asset archive (#662–#668): scanner-discovered devices offline past the threshold (per-device override > global
archive.offline_days, default 7d; MAC-less 24h fast lane) are ARCHIVED, not deleted — full history preserved; continuously online forarchive.restore_online_minutes(default 60) auto-restores;force_active/force_archivepins override automation; the periodic-pattern learner exempts devices that keep returning on a stable cycle (≥60d history, intervals within ±25% of median). - Archive page & dossier:
/archivelists archived devices (periodic/forced badges, manual restore with pin-break confirm); each device has a six-source dossier timeline (archive events, change log, config versions, TLS certificates, documents, sightings). - Tag dictionary: tags are a managed dictionary (built-ins internal/external/temporary/pending, delete-protected) with per-device multi-tag binding, batch tagging, server-side
?tag_id=filtering, and per-tag colors; the device editor tags via chips, not free text. - Device systems: multiple installed systems per device with entry URLs, card-grid UI with category badges.
- Attachments: manuals/photos/receipts uploaded to
data/uploadsand attached to devices.
Topology
- Switch-side L2 adjacency: LLDP-MIB (cross-vendor standard), CISCO-CDP-MIB (
cdpCacheTable), Bridge-MIB forwarding DBs, Q-BRIDGE-MIB (dot1qTpFdbPort, VLAN-aware MAC→port), STP-MIB (root bridge / designated port / port roles), IF-MIB (ifIndex → human port names). - Materialized topology edges:
device_neighbors→topology_edges(device↔device edges with local/remote port, VLAN tag, STP role); subnets and VLAN tables (802.1Q) update per scan. - Visualization: layered force-directed layout (core/distribution/access colored; the legend doubles as a per-layer filter), search-and-focus dimming, neighbor highlight + node detail card, port drill-down; incremental rebuilds keep large graphs interactive.

Change Detection
- Event types:
device_added/device_changed/device_lost(plusdevice_config_changed), written tochange_logand pushed to an in-process Watcher. - Anti-jitter: consecutive-scan miss-count threshold (default 2) prevents single-miss flaps; agent networks detect loss via lease TTL with decaying flap counts.
- Device replacement detection: on same-IP replacement the IP holder wins, identity is force-overwritten, the old row goes offline, and the old→new relation lands in the change log.
- Consumption:
GET /api/v1/changeshistory;GET /changes/watchSSE stream; UI timeline with structured before/after diffs.

Network-Anomaly Diagnosis (#761)
- What it answers: when a device seems to keep changing its IP, is that real churn — or an artifact? The verdict engine joins the address-observation history (sightings) with the per-IP scan-liveness facts (snapshots), the multi-homed presence layer and the change stream, and classifies the pattern with an evidence chain.
- Field-verified classes:
stale_arp_scan_artifact(many sighted addresses, none answering a scan — the sightings came from stale ARP-cache reads, not a moving device),multihomed_alias(one box actively present in several networks),locally_administered_mac(virtual/soft MAC; MAC-based binding will not stick),ip_slot_takeover(the change stream saw the MAC replaced at an unchanged address),hostname_identity_split(sibling rows announcing the same hostname under different MACs). - Design rule: sightings alone are ambiguous — they record what a vantage OBSERVED, including stale ARP-cache reads. Every address is therefore cross-checked against the scan snapshot (
miss_count,flap_count) before a verdict is issued;stale_arp_scan_artifactis the only high-confidence class precisely because it rests on liveness facts. - Consumption:
GET /api/v1/devices/{id}/diagnosis(read-only, computed on demand) and the device-detail Network Diagnosis panel — verdict badge, findings with evidence, address timeline with per-address liveness, and same-hostname sibling rows. - Deliberately not an alert: per the "alert on impact, not on change" principle the verdict is pull-based; wire notifications to the existing change stream if a downstream impact needs pushing.
Device Config Backup (v0.5.0, opt-in)
Oxidized/RANCID-style config pull and versioning for network gear:
- Scheduled pulls: SSH
running-configfetches for routers/switches/firewalls; versioned storage (device_configs); a new version is cut only on change. - Vendor command matrix: JunOS
show configuration | display set; HP/Aruba/H3C/Comwaredisplay current-configuration; Cisco IOS/NX-OS, Arista, Huawei VRP, MikroTik and unknowns fall back toshow running-config. - SSH host-key TOFU: trust-on-first-use recording.
- Diffing: unified diff between any two versions; a Config History tab on device detail with hand-colored rendering; config changes feed change detection and notifications.
- Encrypted credential vault: SSH credentials AES-256-GCM encrypted at rest; encrypted on write, redacted on read.
Synthetic Probing (v0.5.0, expanded #603–#610)
Blackbox-style periodic probing of external assets, public sites, hosted TLS ports, anything "outside" the network:
- Five modules:
http(status <400 = success; https collects the cert chain),tls(full chain),tcp,icmp, anddns(A/AAAA/CNAME/TXT lookups, optionally against a pinned resolver); per-target interval (10s–86400s) and timeout (1–60s). - Per-module options (#605):
http— method (GET/HEAD),expected_status(exact allowed codes, empty = legacy <400 rule),keyword+keyword_mode(contains / not_contains / regex) body match,ignore_tls_errors(default false = verify TLS);dns—record,resolver(host[:port], empty = system resolver),expected_ips(A/AAAA answers must intersect);tcp—sendpayload after connect +expectbanner match (expect_mode). Options are stored as JSON on the target and shipped verbatim to vantage agents. Deliberately no custom headers or credentials: options are plaintext in the DB and ride the secret-free agent command channel by design. - Device binding & autogen (#606): a target can bind to a discovered device (
device_id, filterable viaGET /probe-targets?device_id=); the device page offers one-click probe creation per discovered service plus a bound-targets panel.probe.autogen(default OFF) turns discovered services into device-bound targets (source=auto) and follows their lifecycle — service disappears → target parked, returns → revived; manual targets are never touched. Division of labor: heartbeat answers device reachability, probing answers service-level semantics. - Egress quality (#608): an optional built-in matrix of public probe points (
probe.quality; an absentenabledkey now defaults on since #737 — older upgrade-carried configs stop silently losing the matrix; an explicitenabled: falsestill turns it off, and the switch is also available under Settings → Probes). Executed from EVERY vantage — center + all agents — and analyzed per network over a sliding window with a deterministic verdict chain (egress_down > dns_fault > upstream_resolver > degraded > ok) and cross-vantage target isolation. Verdicts and scores are exported as Prometheus gaugesmibee_probe_egress_verdict/mibee_probe_quality_score(metrics only; notification wiring is deliberately not built). - Engine: 10s tick re-reads targets (CRUD effective without restart), concurrency configurable via
probe.max_concurrency(default 8), resume from last run, manual trigger. - Certificate inventory: reuses the scanner's cert-chain collector; SNI auto-derived; last-known-good chain kept on transient failure.
- Multi-vantage (#277): a target's probes can run from the center, every registered agent, or one specific agent, results recorded per
(target, vantage), shown side by side in the history dialog with disagreement highlighted, and exported asmibee_probe_*{vantage=…}. The dispatcher filters plans per agent by its declaredsupported_modulescapability (#604); agents must run 0.2.0+ for tcp/dns plans. - Burst sampling (#744): an icmp target can carry
burst_count(1–20 echoes per round,burst_interval_ms10–1000 between them) in its options. A burst round reportsloss_pct(packet-loss percentage) andjitter_ms(mean absolute difference of consecutive echo RTTs) as first-class metrics — stored onprobe_results, charted in the history dialog (loss/jitter mode), and consumed by the quality verdicts as the stable codesloss_burst/jitter_high(thresholdsprobe.quality.loss_pct_thresholddefault 5%,jitter_degraded_msdefault 30). A 60s cadence probe cannot see microburst loss; a burst round can. - UDP-egress attribution (#745): when every icmp leg of a vantage is dead while TCP-reachable legs still pass, the degraded verdict gains
udp_egress_blocked.tcp_alive_udp_dead— a UDP-path problem, not an offline network. Attribution only: it never mints or upgrades a verdict on its own (impact-first alerting). - HostNet attribution (#746): agents sample their OWN network facts (per-interface error/drop counters, default-route fingerprint, one DNS-resolution timing against the center) every 5 minutes and ship them with the report meta; the center stores the series (
vantage_hostnet) and decorates degraded vantage verdicts withvantage_local_degraded.iface_errors(a tracked counter rose between samples; a decrease is a reset, not a regression) orvantage_local_degraded.route_change— answering "is it my network or the target" with counters instead of guesses. - Site-to-site mesh (#747): with
probe.autogen.mesh_enabled(default on), every autogen sweep reconciles the vantage matrix from the agents' report source addresses: center→agent and ordered agent→agent icmp legs (mesh-*, sourcesystem, 10-echo burst), so the N×N RTT/loss/jitter matrix exists without manual wiring. Legs follow address drift, park when an agent deregisters, revive on return. - Site matrix view (#748): the probes page gains a "Site-to-site matrix" panel that renders the
mesh-*legs as an N×N heat grid (rows = probing site, columns = probed site); each cell shows the window's p50 and loss percentage, coloured by health first then latency. A missing leg reads as an em dash and an unreported one as an ellipsis — a 0 ms reading never stands in for a healthy link. The panel is collapsed by default and fetchesGET /api/v1/probe-matrixonly on first open, sharing the egress panel's window chips; clicking a cell drills straight into that leg's history chart. Only legs whose destination agent is still registered appear on the axes (autogen keys a leg by the destination's report address, so a deregistered agent takes its whole column with it). - Gateway profile (#750–#754): an opt-in network-capability portrait for the network's router device.
probe.nat(settings center, default OFF — probing exposes the site mapping to third parties) carries a STUN server list whose shipped defaults are PUBLIC infrastructure only (Cloudflare / Google / Nextcloud / Bilibili / Antisip; zero self-hosted STUN ships with the product — neutrality constraint). The list is chosen by liveness, not brand: five probes from each of two vantages (2026-11-23) retired the previously shipped Tencent and Xiaomi endpoints at 0/5 and kept only survivors; a stored list reconciles at read time (ReconcileSTUNServers) so an overlay written before a swap never keeps probing dead nodes. Users add their own nodes (host:port, ≤8 rows, built-ins may be disabled but not dropped) with a WYSIWYG one-shot test (mapped address + RTT). A settings change dispatchesgateway_probeto every agent: the agent runs UPnP IGD discovery (WAN IP, port-mapping capability) and the NAT mapping-behavior classification (one socket, ≥2 distinct servers: identical mappings = cone/EIM, any difference = symmetric/EDM, fewer than two answers = unknown, never guessed). The evidence lands in the router device'sscan_attributes.gatewayand renders as a "Network Profile" block on the device page. - Agent clock offset (#749): agents sample SNTP against the public NTP pool every 5 minutes; the calibrated offset rides the report meta and shows next to the report-time heuristic on the agents page.
- Metrics & alerts:
mibee_probe_up/mibee_probe_duration_seconds/mibee_probe_cert_expiry_timestamp_seconds(plus the quality gauges above), with example alert rules (target down, cert expiring).

Notifications
- Channels: webhook (Feishu/WeCom/Telegram/Discord all work over webhook) and email (SMTP), with test dispatch.
- Built-in rules (v0.5.0): event type (device lost/recovered/added/changed/config-changed) × scope (all/network/device) → target channel; per-(rule×device) cooldown (default 30 minutes) against flapping, deliberately a thin rule→channel hop, not an alerting engine.
- Per-user unread tracking: header bell with unread count, cleared on open.
Distributed Agents
- Cross-subnet model: center + agent (
mibee-agent, a separate CGO-free binary running as a regular user); agents scan the local LAN and report to the center over HTTPS. - NAT-friendly pull model: the agent initiates every connection (report + ~60s command poll), no inbound exposure of the center.
- Anti-entropy fast path:
X-Network-State-Hash(SHA-256 over the alive set's identity fields); on match the center skips per-host processing and refreshes leases only, near-zero overhead on stable networks. - Lease model: agent reports refresh per-device leases; TTL expiry (default 5 min) plus a background sweeper detect loss.
- Command channel: the center enqueues scan and optional remote-ops commands (restart/config-reload/log-tail, gated on both sides, audit-logged); agents poll → ack → complete.
- Machine tokens: agent bearer tokens bound to
agent_id+network_id, admin CRUD, one-time display.

Security & RBAC
- Authentication: JWT (cookie-first + Bearer fallback), login lockout, token blacklist; optional TOTP 2FA.
- Multi-role capability model (v0.5.0):
admin/operator/viewermap to fine-grained capability sets (CapDeviceRead,CapScanTrigger, …); every route is gated by capability; unknown roles grant nothing. - Object-level network scoping: per-user network grants; in
closedmode non-admins see only granted networks across the whole read surface (devices, scans, changes, topology, exports), unauthorized details return 404; admin always bypasses. - SNMPv3 credential vault: USM credentials (auth/priv passphrases + protocols, security level) AES-256-GCM encrypted at rest, never echoed back; all OID paths work under v3 (identity + every topology walk).
- Hardening: CSRF, rate limiting (login 10/min, global 600/min, scan 10/min), security headers, trusted-proxy-aware RealIP, full audit logging of sensitive actions,
reset-admin-passwordCLI subcommand.
API & Integrations
- REST API (
/api/v1, snake_case): devices, scan tasks/runs/results, changes, networks, agents & tokens, users & grants, audit, documents, notification channels & rules, credentials, probe targets, topology, discovery status. - Prometheus endpoints:
/metrics(device-status gauges, heartbeat counters/latency histograms, scanner run/duration/tasks, probe metrics, network-drift gauge);/sdHTTP service discovery auto-registers discovered assets into Prometheus. - Import/export: CSV import (with per-row errors), CSRF-safe CSV/JSON export.
- Ecosystem: example Grafana dashboards, 7 example alert rules (down, 5xx, heartbeat failures, DB-lock bursts, memory, probe target down, cert expiring), n8n and Home Assistant guides.
Web UI
A SvelteKit 5 SPA embedded in the binary: Chinese/English i18n (auto-detect + locale formatting), light/dark themes, responsive layout, keyboard accessibility.
| Page | Capabilities |
|---|---|
| Dashboard | Configurable widget cards (status distribution, heartbeat success, type distribution, location), scan activity, needs-attention banner + one-click scan |
| Devices | Cross-network aggregation, filters (status/type/network), optional columns (persisted), server-side search/sort/pagination (numeric IP ordering), topology view toggle |
| Device detail | Health banner + tabs: overview / scan discovery (services/ports/banners, one-click probe per service) / network & certificates (TLS chains, neighbors, subnets) / systems / heartbeat / bound probes / config history |
| Scan center | Quick scan (sync), scan tasks (async, cancellable), scan results, passive-discovery funnel |
| Topology | Layered layout, layer filters, search focus, neighbor highlight, port drill-down |
| Changes | Timeline + event filters + structured diffs |
| Probes | Target management (manual / auto / system sources, per-module options), status/latency/cert-days badges, history and cert-chain modals, egress-quality section |
| Agents/Networks/Users/Audit | Distributed ops and governance surfaces |
| Settings | Profile/password/TOTP/theme/language; notification channels & rules; SNMP credentials |

Deployment & Operations
- Single binary, zero dependencies: CGO-free (modernc.org/sqlite, pure Go), frontend embedded via
go:embed, embedded SQLite (WAL);make build-allcross-compiles linux amd64 + arm64. - Deployment shapes: systemd + Nginx, Docker (multi-stage non-root, multi-arch GHCR images, bridge/host/macvlan profiles), OpenWrt procd (center + agent, UCI config, ARMv7).
- Retention: per-table batched sweeps (heartbeat 7d, scans 30d, audit 90d, …, all configurable); silent-device pruning.
- Data safety: schema-version gating that rejects incompatible databases at startup instead of half-upgrading them,
scripts/backup.sh(.backup+ integrity check, 7-day retention). - Configuration: koanf (YAML +
MIBEE_*env overrides); the example config covers every module. - Observability: slog structured logging, request/scanner/heartbeat/probe metrics, bind-retry against restart storms, graceful shutdown.
Product scope (what it deliberately doesn't do)
Consistent with the product scope, the following are intentionally out of scope and left to better tools, glued via /metrics and /sd:
| Not built | Use instead |
|---|---|
| Alerting engine (thresholds/silences/routing trees) | Prometheus + Alertmanager |
| Free-form dashboards | Grafana |
| Status pages | Uptime Kuma / gatus |
| Host deep monitoring (CPU/memory/disk) | node_exporter / Netdata |
| L7 service discovery | Consul / etcd |
| Config push/management | Ansible / Oxidized |
The built-in notification rules are a thin device-event → channel forward, when you need real alerting semantics, put Alertmanager in front.