Skip to content

Fleet and Agent

MoneyLisa edited this page Nov 25, 2026 · 2 revisions

Fleet & Agent / Flotte & agent

Wiretap scales from a single workstation to a managed fleet — all free, all local-first.

Wiretap passe du poste unique à la flotte gérée — entièrement gratuit et local.

The Rust agent / L'agent Rust

agent/ builds wiretap-agent: a zero-dependency daemon (manual HTTP/1.1 over TcpStream, no TLS stack) that watches OS socket tables and streams events to a central Wiretap collector.

cd agent && cargo build --release
./target/release/wiretap-agent \
  --server http://collector.internal:8000 \
  --agent-token sagt_XXX          # or --token <master>
  • Linux: watches /proc/net/{tcp,udp,tcp6,udp6} and attributes each socket inode to a PID + process name via /proc/<pid>/fd symlinks.
  • Windows / macOS: compiles and runs (cross-platform CI covers all three targets); process attribution reports pid: 0 until GetExtendedTcpTable / libproc backends land.
  • Scope: socket metadata (src/dst, ports, state, process) — not packet payloads, DNS or TLS-SNI. The collector enriches.

Sous Linux, /proc attribue chaque socket à un PID. Windows/macOS compilent mais rapportent pid: 0 en attendant leurs backends. Le collecteur enrichit — l'agent ne lit pas les payloads.

Enrollment / Enrôlement

Dedicated per-agent tokens — the master token stays valid for small fleets:

# On the collector / sur le collecteur
curl -X POST -H "X-Wiretap-Token: $TOKEN" \
  -d '{"name":"web-01"}' http://127.0.0.1:8000/ingest/enroll
# → {"token":"sagt_…"}  shown once — only the hash is stored
#   affiché une seule fois — seul le hash est stocké

curl -H "X-Wiretap-Token: $TOKEN" http://127.0.0.1:8000/ingest/agents
curl -X POST -H "X-Wiretap-Token: $TOKEN" -d '{"name":"web-01"}' \
  http://127.0.0.1:8000/ingest/revoke

The agent sends X-Wiretap-Agent: sagt_… (or X-Wiretap-Token for the master). The ingested agent field is the enrolled name — a compromised token cannot impersonate a peer.

Le champ agent ingéré est le nom enrôlé — un jeton compromis ne peut pas usurper un pair.

Declarative configuration / Configuration déclarative

One wiretap.toml (or $WIRETAP_CONFIG) overrides every setting — provision fleets with Ansible (deploy/ansible/), Puppet, Salt, or GPO (deploy/gpo/Install-Wiretap.ps1). Headless: hardened systemd unit, nfpm .deb/.rpm, Docker, Helm chart (deploy/helm/wiretap).

SIEM output / Sortie SIEM

  • GET /forensics/export?format=ecs — NDJSON [Elastic Common Schema]
  • Syslog CEF or RFC 3164 — syslog_* settings
  • Sigma import (POST /alerts/rules/sigma), YARA-L export (GET /alerts/rules/yaral)
  • Free feeds: POST /firewall/blocklist (StevenBlack domains, Blocklist.de / URLhaus IPs) + automatic refresh via the ti_feeds setting

Honest scale limits / Limites honnêtes

The built-in ingest + SQLite WAL comfortably fits tens-to-hundreds of agents. Beyond ~1 000 agents, plan a queue-backed collector (NATS/Kafka) and PostgreSQL/TimescaleDB — tracked on the Roadmap.

L'ingest intégré convient aux dizaines/centaines d'agents ; au-delà, file + TimescaleDB — suivi sur la Roadmap.

Wiretap Wiki

Getting started / Démarrage

  • Installation — EN · FR
  • Usage / Utilisation — EN · FR

Docs (EN + FR)

Help / Aide (EN + FR)

Project / Projet

Clone this wiki locally