Skip to content

Sysmon Event ID 3: network connections and C2 detection

How to use Sysmon's network-connection event for threat hunting — the fields it records, spotting beaconing and LOLBin network activity, and why it's off by default and noisy.

By Florian AmettePublished 3 {n} min read

The built-in Security log barely sees the network. Sysmon does — Event ID 3 records process-to-network connections, tying a TCP/UDP flow to the exact Image that made it. That process attribution is what turns "something talked to 185.x.x.x" into "rundll32.exe beaconed to 185.x.x.x," which is the difference between a netflow and a lead. This continues the Sysmon series that starts with Event ID 1.

The fields that matter

FieldUse
Imagethe process that made the connection — the whole point
Useraccount context
Protocol / InitiatedTCP/UDP; Initiated=true = outbound
SourceIp / SourcePortlocal side
DestinationIp / DestinationPortremote side
DestinationHostname / DestinationPortNameresolved name / service

Initiated=true plus a DestinationIp outside your network is the outbound-connection signal most hunts start from.

What to hunt

  • LOLBins making network connections. powershell.exe, rundll32.exe, regsvr32.exe, mshta.exe, cscript.exe, certutil.exe connecting outbound is abnormal for most of them — a strong indicator of download/C2. Cross-reference the spawning 4688 / Sysmon 1.
  • Beaconing. A process connecting to the same destination on a regular interval (jittered or not) is classic C2. EID 3 timestamps give you the cadence; pair with DNS queries (EID 22) to catch the resolution step.
  • Connections from odd paths. A binary in %TEMP%, %APPDATA%, or a user-writable directory making outbound connections.
  • Unexpected listeners / lateral movement. Initiated=false inbound to admin ports, or office hosts talking to each other on RDP/SMB/WinRM (lateral movement).
  • Service binaries phoning home that shouldn't.

Why it's off by default — and noisy

Sysmon network logging is disabled unless explicitly turned on, and once on it is one of the highest-volume events Sysmon produces — a busy host generates thousands per minute. Practical consequences:

  • Tune hard. Good configs (e.g. SwiftOnSecurity / Olaf Hartong modular) filter to the processes that matter and exclude known-good chatter (browsers, update agents). An untuned EID 3 buries the signal.
  • Coverage gaps. If a config excludes chrome.exe/msedge.exe, malware living inside a browser process won't show in EID 3 — know your config before trusting an empty result.
  • It rolls fast. High volume means short retention; collect early.

See Sysmon configuration for real adversaries for getting the signal-to-noise right.

Correlate, don't isolate

EID 3 is strongest as one link in a chain:

Sysmon 1 / 4688   suspicious process starts (e.g. rundll32 from %TEMP%)
Sysmon 22         it resolves a C2 domain
Sysmon 3          it connects outbound to the resolved IP, on a cadence
Sysmon 11         it drops a follow-on payload

That sequence is far more convincing than any single event. Build it on a UTC timeline.

Hunt checklist

  • Filter Sysmon/Operational to EID 3, Initiated=true.
  • Flag LOLBins and user-writable-path binaries with outbound connections.
  • Look for periodic same-destination connections (beaconing).
  • Correlate to the spawning process and to DNS (22).
  • Confirm your config actually logs the processes you care about.

Load the Sysmon log in the browser parser, filter to EID 3, and pivot on Image + DestinationIp. For the full Sysmon set, see the event ID cheat sheet.

Related posts

Using Sysmon's DNS-query event for hunting — process-attributed domain lookups, spotting C2 and DGA domains, DNS tunnelling, and the fields that make it useful.
Tracking dropped files, registry persistence, alternate data streams and self-deletion with Sysmon — FileCreate (11), registry events (12/13/14), FileCreateStreamHash (15) and FileDelete (23/26).
Using Sysmon's image-load event to catch DLL search-order hijacking, sideloading and unsigned modules — the fields, the signature checks that matter, and how to manage its very high volume.