Multi-protocol passive fingerprinting library: TCP/HTTP (p0f-style) + TLS (JA4-style) analysis in Rust
Multi-protocol passive fingerprinting library: TCP/HTTP (p0f-style) + TLS (JA4-style) analysis in Rust
Huginn Net fingerprints TCP, HTTP, and TLS traffic passively. No active probes, no tshark, no wireshark. Pure Rust, built entirely on open-source specifications: p0f v3 for TCP, FoxIO's JA4 for TLS, and the Akamai HTTP/2 fingerprinting spec. All signature databases are open source and community-driven.
Passive fingerprinting infers information about remote hosts without sending any probes. By analyzing TCP/IP packets and TLS handshakes, Huginn Net identifies:
| Layer | Protocol / Feature | Huginn Net Analysis |
|---|---|---|
| 7 | TLS | JA4 (FoxIO-style) + stable signature |
| 7 | HTTP | HTTP/1 & HTTP/2 - Headers, User-Agent, Lang |
| 4 | TCP | OS Fingerprinting (p0f-style) |
| Crate | Description | Documentation |
|---|---|---|
| huginn-net | TCP-HTTP-TLS Analysis - Complete multi-protocol network fingerprinting | Usage Guide |
| huginn-net-tcp | TCP Analysis - OS fingerprinting, MTU detection, uptime estimation | TCP Guide |
| huginn-net-http | HTTP Analysis - Browser detection, HTTP/1.x & HTTP/2 fingerprinting | HTTP Guide |
| huginn-net-tls | TLS Client Analysis - JA4 fingerprinting, TLS version detection | TLS Guide |
huginn-net-db directly for custom signature parsingNote: Live packet capture requires
libpcap(usually pre-installed on Linux/macOS).
For multi-protocol analysis:
[dependencies]
huginn-net = "2.2.0" # Complete analysis suiteFor specific protocols:
[dependencies]
huginn-net-tcp = "2.2.0" # TCP/OS fingerprinting only
huginn-net-http = "2.2.0" # HTTP analysis only
huginn-net-tls = "2.2.0" # TLS/JA4 analysis only
huginn-net-db = { version = "2.2.0", features = ["tcp", "http"] } # signature matching for TCP/HTTP (not needed for TLS)For detailed usage examples, installation guides, and complete code samples:
** Complete Usage Guide - huginn-net module**
** Examples & Tutorials** - Working examples with:
Huginn-net is production-ready. It handles millions of packets per second per core, scales with parallel workers, and adds no overhead from parsers or matchers you do not enable.
Unlike p0f and similar tools, single-threaded, monolithic binaries; huginn-net is a modular Rust library with built-in parallel processing. Cargo feature flags eliminate unused parsers at compile time, so you only pay for what you actually use, and a worker pool scales throughput across cores without any extra infrastructure.
See benches/README.md for detailed throughput numbers, 10 Gbps capacity planning, and methodology.
Based on signatures available in the p0f database. See huginn-net-db/config/p0f.fp for complete signature list.
JA4_s1 / JA4_rs1Optional packet filtering by port and/or IP address for improved performance. Filters are applied before full packet parsing, reducing CPU overhead. Available across all crates. See Examples & Tutorials for usage.
Database matching follows p0f-style tier selection, not a continuous distance score. Each signature field is a pass/fail gate; a candidate that fails any gate is rejected, not ranked lower.
A match reports its tier as MatchQuality::Matched(MatchRank) (ordering matters; the scores from as_quality() may be recalibrated):
Specific (1.0) — exact fit on a specified signature (concrete product/OS)Generic (0.8) — exact fit on a generic catch-all signatureFuzzy(FuzzyReason) (0.5) — fuzzy fit (TCP only): the signature holds only after documented tolerances (e.g. missing df/id+, extra id-/ecn, implausible TTL hop distance), and the variant carries which onesOther outcomes: NotMatched (matcher active, nothing fit) and Disabled (no matcher attached). On TCP, fuzzy matches also surface in Params: (fuzzy (…), generic, random_ttl, excess_dist, tos:0xNN). HTTP signatures must fit exactly — there is no fuzzy tier.
A richer database improves coverage (more traffic gets a label), not a higher score on the same observation.
huginn-proxy: High-performance reverse proxy forwarding TLS (JA4), HTTP/2 (Akamai), and TCP-SYN (eBPF-powered) fingerprints as HTTP headers.
Routes incoming connections to backend services while passively extracting TLS (JA4), HTTP/2 (Akamai), and TCP SYN (p0f-style) fingerprints and injecting them as headers. TCP SYN fingerprinting runs via an XDP/TC eBPF program.
We welcome contributions! Please see our Contributing Guide for detailed information on how to get started.
q prefix) and DTLS. TCP (t) is what ships today.p0f.fp is still 2012)Dual-licensed under MIT or Apache 2.0.
huginn-net is an independent Rust implementation inspired by the methodologies of p0f and JA4.
No open issues yet, or sync has not completed.