Repository navigation
Fleet and 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.
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>/fdsymlinks. -
Windows / macOS: compiles and runs (cross-platform CI covers all three targets); process attribution reports
pid: 0untilGetExtendedTcpTable/libprocbackends 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.
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/revokeThe 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.
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).
-
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 theti_feedssetting
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
Docs (EN + FR)
- Architecture
- Security & Privacy / Sécurité & confidentialité
- API Reference / Référence
- Fleet & Agent / Flotte & agent
Help / Aide (EN + FR)
Project / Projet