In 2010, a small C program called inundator made a simple bet: if the client’s IDS and logs are already full of plausible noise, the real request has somewhere to hide. It sent HTTP/1.1 GETs from an epoll loop, fast enough to be interesting and small enough to read in an afternoon.
Niagra is that idea rebuilt for the protocols an operator actually faces now. Not a blind flood — a modern IDS will flag pure volume as its own signature — but browser-shaped traffic at a controlled rate, with the path, timing, source and session behaviour varied enough that each flow has to be judged on its own.
The useful decoy is not the one that sends the most requests. It is the one that makes the real request look less unusual.
What changed
The original tree is still in the repository at tag v0.1-legacy. Everything below is the Go rewrite.
| Layer | Niagra v0.9.0-dev |
|---|---|
| Transports | Wire-exact HTTP/1.1, a frame-level HTTP/2 client, and HTTP/3 over QUIC via uQUIC. No silent downgrade between them. |
| Browser personas | Chrome, Firefox and Safari with matching User-Agent, client hints, ordered headers, uTLS ClientHello fingerprints, cookie jars, HTTP/2 SETTINGS and pseudo-header order. |
| Workload | Global --rps with uniform or Poisson spacing, --duration, seeded path templates ({{uuid}}, {{rand:N}}, {{hex:N}}, {{int:MIN:MAX}}), and per-worker concurrency. |
| Egress | HTTP CONNECT, SOCKS5 and SOCKS5h proxy chains; a rotating first-hop proxy pool; local source binding; deterministic IPv6 /64 source rotation; pinned DNS and RFC 8484 DNS-over-HTTPS. |
| Delivery | Prometheus /metrics, pprof, JSONL samples, and failures classified as timeout, DNS, connect, reset, TLS, proxy, read, protocol, closed or other. |
| Safety | Non-loopback targets need --allow-remote; --scope enforces a host/CIDR allowlist; --max-rps caps the rate; --dry-run validates without sending. |
| Replay | HAR replay with methods, headers and bodies, plus plaintext HTTP/1.x extraction from PCAP/PCAPNG. Both run across HTTP/1.1, HTTP/2 and HTTP/3. |
| Distribution | A coordinator shards request counts and rate across workers over HTTP/JSON and aggregates the final result. |
| Agent mode | JSON config, supervised campaigns that rotate personas, path files and rate, a status/pause/resume/stop control API, JSON/quiet output, and fail-closed egress attestation. |
| Build | One static Go binary. No Python, no runtime framework, no service dependency. |
Protocol realism is the point
HTTP/1.1 requests are written directly to the connection, so header order, casing and duplicates are exactly what the persona defines. In practice that means the request looks like the browser’s request, not like a library’s idea of one.
HTTP/2 is a frame-level client rather than a wrapper around a generic transport. Each persona controls the SETTINGS values, the connection WINDOW_UPDATE, the pseudo-header order, HPACK usage and the stream multiplexing. The connection is re-established after GOAWAY or a transport error. HTTP/3 goes further: uQUIC replaces the QUIC Initial packet, TLS ClientHello and transport parameters with Chrome 115 or Firefox 116 parrots, while one multiplexed QUIC connection carries the request streams.
That is a real upgrade over “set a User-Agent and hope,” but it is not magic. HTTP/3 does not have a Safari parrot, and the H3 request-header order comes from uQUIC’s transport layer rather than a persona-specific frame writer. The honest claim is a shaped QUIC handshake, not a byte-identical browser. The README documents exactly where the line is.
The traffic has to look like a session
A fingerprint is only half the shape. The other half is when and where the requests go. Niagra paces start times globally, so a run is not just N workers firing as fast as they can; it can hold a target rate, draw Poisson gaps, stop at a wall-clock limit, or run until interrupted. Path dictionaries replace the URL path and query per request, with the same seed reproducing the same value stream.
Egress is deliberately layered. A static proxy chain is dialled in order; a proxy pool rotates the first hop per new connection. Source addresses can be bound explicitly, or generated deterministically inside one or more IPv6 prefixes so a /64 never reuses the same source in practice. DNS can be pinned for the whole run, optionally through DoH, and the scope check then evaluates the same addresses the dialer uses.
Delivery and guardrails
The old tool printed a few counters when it exited. Niagra treats the run as an observable system: live Prometheus metrics, pprof, JSONL samples and an error taxonomy that separates a DNS failure from a proxy failure from a target reset. Latency is reported as p50/p95/p99/max/mean over a bounded histogram.
The safety gates are part of the release, not an afterthought. A non-loopback target is refused unless --allow-remote is explicit. --scope accepts exact hosts, wildcards, IPs and CIDRs and runs before the first packet. --max-rps refuses an unlimited or over-cap run, and --dry-run creates no output files and opens no sockets. The tool is still dual-use; the gates keep an authorized run deliberate.
Replay, distribution, and an agent at the wheel
HAR replay cycles through recorded methods, paths, headers and bodies, rewriting the host to the run’s target. PCAP replay extracts plaintext HTTP/1.x requests through TCP reassembly. Both feed the same request path as a live run, including HTTP/2 and HTTP/3 bodies. Chunked captures and TLS are deliberately out of scope and documented as such.
A coordinator can split a run across workers: request count and rate are divided, duration and concurrency are per worker, and the final summary aggregates counters, status classes, error classes and latency. The control plane is HTTP/JSON rather than gRPC, which keeps the binary dependency-free; token-gated, plaintext and trusted-network only.
For an engagement that runs for hours, --supervise keeps one process alive and rotates campaigns: persona, path file and rate can change each round, with a gap and total-duration or campaign-count stop. --control exposes status, pause, resume and stop; --json and --quiet keep the output machine-readable. --expect-egress IP checks the observed HTTPS egress first and refuses to start on a mismatch, so a dead or mispointed tunnel cannot silently send the decoy traffic from the wrong address.
What it does not do
- No HTTP/3 Safari parrot, and no persona-specific H3 header writer.
- No HTTPS proxies; no TLS decryption in PCAP replay; chunked and HTTP/2 captures are not extracted.
- No gRPC distributed control plane; the coordinator and agent APIs are HTTP/JSON and plaintext.
- No scenario/config language beyond the JSON flag config; no worker failover or mid-run replacement.
- No claim of undetectability. The goal is plausible per-flow shape at a controlled rate, not invisibility.
Download and build
Two archives are attached to this note. The source archive builds with Go 1.26 or newer; the Linux archive is a static amd64 binary for a quick start.
source unzip niagra-0.9.0-dev-src.zip cd niagra-0.9.0-dev make build ./niagra --version linux amd64 unzip niagra-0.9.0-dev-linux-amd64.zip cd niagra-0.9.0-dev-linux-amd64 ./niagra --version
Verify the downloads before running them:
sha256sum -c niagra-0.9.0-dev-SHA256SUMS ce8a19123e81895ee678b639ed7d3edd3c2c0dab34e93dee91f95840579c699e niagra-0.9.0-dev-src.zip bd668669df23e93c5d36665b145e20a7342cdb6ec2de1629c23e8f5dead4931f niagra-0.9.0-dev-linux-amd64.zip
Credit where it’s due
None of this exists without epixoip, who wrote the original inundator in 2010. The premise — drown the logs in plausible garbage so the real request has somewhere to hide — was his, and it was correct. The C implementation is preserved at tag v0.1-legacy; the Go rewrite changes the engine, not the idea. If you find Niagra useful, the original is still worth reading.
Use Niagra only against systems you own or are explicitly authorized to test. Flooding third-party infrastructure is denial of service, and a decoy campaign does not create authorization.
← Back to lab notes