Skip to content

Lesson 5 of 14 · 18m

Network Detection When the Endpoint Lies

When Sysmon is dead or no agent exists, Zeek protocol logs, DNS entropy, JA3/JA4 fingerprints, and jitter-aware beacon scoring are what remain.

Detection programs built entirely on endpoint telemetry have a known failure mode: the attacker kills the telemetry. Sysmon is a service and a driver — a sufficiently privileged intruder stops it, unloads it, or just operates where no agent ever was: the VPN concentrator, the appliance the vendor manages, the printer, the legacy box nobody can install anything on. The packets still cross the wire. Network detection is what you have when the endpoint lies — or isn't there.

Zeek: metadata, not payloads

Zeek (formerly Bro) is the standard open-source network security monitor. It watches a traffic mirror and emits protocol metadata as structured logs — it does not capture payloads like a packet sniffer:

  • conn.log — every connection: who, whom, ports, bytes, duration
  • dns.log — every DNS question and answer
  • http.log, ssl.log — request metadata, TLS handshake details (server name, certificate fields, JA3/JA4 fingerprints)
  • files.log — hashes and types of files seen in transit
  • weird.log — protocol violations, which are frequently the most interesting lines Zeek writes

Deployment cost: a SPAN/mirror port or a TAP on the egress path and a Linux box. That is it — no agents. Suricata complements it as the signature IDS (alerts in eve.json alongside protocol metadata). RITA scores Zeek logs for beaconing if you want it precomputed.

TLS is metadata-only — so make the metadata work

Everything is encrypted now, including the attacker's C2. What you cannot see is content; what you keep is shape:

  • JA3/JA4 fingerprints identify the TLS client stack — a PowerShell cradle and Chrome produce different handshakes. Cobalt Strike's default JA3 has been a signature for years; JA4 extends the idea and is harder to rotate.
  • Certificate fields — self-signed certs on internet-facing C2, mismatched issuers, Let's Encrypt on infrastructure that claims to be enterprise software.
  • SNI and destination — the process said it was svchost; the TLS session says the server is a VPS provider with a domain registered Tuesday.

DNS: the cheapest high-value source

If you collect one network source, collect DNS queries — from endpoint Sysmon EID 22 and/or your resolvers. It survives more evasion than almost anything:

  • Query length and entropy — exfil and DGA domains look statistically wrong next to human-typed names.
  • NXDOMAIN burst rate — DGA malware burns through candidate domains; a host generating hundreds of NXDOMAINs an hour is not browsing.
  • TXT records and odd record types — DNS tunneling and command channels.
  • DoH bypass — DNS-over-HTTPS hides queries from your resolver. Force clients to internal resolvers, and alert on connections to public DoH endpoint IPs — the client only reaches for DoH when your DNS was meant to be bypassed.

Beaconing survives jitter better than you think

Naive beacon detection — "connections every 60 seconds" — died the day C2 frameworks added jitter. The durable version looks at periodicity over a window: count connections per destination per host, rank by how evenly spaced they are (low coefficient of variation on inter-arrival times), and filter to destinations the environment rarely touches. A daily-beacon at 2% jitter on a domain nothing else has ever queried is a high-confidence find; a 60-second heartbeat to a CDN is a Tuesday.

The honest limits

Network detection tells you who talked to whom, how often, and with what client — not what was said, and increasingly not the payload at all. Encrypted traffic, CDN fronting, and domain fronting through reputable infrastructure all erode it. That's fine: its job is corroboration and coverage where agents can't reach, not replacing endpoint telemetry.

The practice

Collect DNS everywhere (it's nearly free). Put Zeek on the egress mirror. Alert on two compositions, not single events: a Sysmon EID 1 for a LOLBin plus an EID 22/new-domain network record minutes later is a detection that survives each source's weaknesses alone.

Was this lesson helpful?

Sign in to rate

Keep reading

Related articles from the SudoSecurity blog.