Event ID 3: Network Connection
Sysmon Event 3 logs all TCP and UDP network connections initiated by processes, recording source and destination IPs, ports, and the process responsible. This event is critical for detecting command-and-control communications, data exfiltration, and lateral movement across networks.
- Channel
- Microsoft-Windows-Sysmon/Operational
- Logged by default
- No
- Written on
- Any host
- Volume
- Very high
- Provider
- Microsoft-Windows-Sysmon
- Needs a SACL
- No
To have this event
- Sysmon installed, with a configuration that includes this event type.
Key fields
Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.
| Field | What it tells you |
|---|---|
| UtcTime | UTC timestamp of connection |
| ProcessGuid | Process GUID for correlation |
| ProcessId | Process ID making the connection |
| Image | Process executable path |
| User | Account running the process |
| Protocol | Network protocol (tcp/udp) |
| Initiated | Connection direction (true=outbound, false=inbound) |
| SourceIsIpv6 | Whether source address is IPv6 |
| SourceIp | Source IP address |
| SourceHostname | Source hostname if resolved |
| SourcePort | Source port number |
| SourcePortName | Source port service name |
| DestinationIsIpv6 | Whether destination address is IPv6 |
| DestinationIp | Destination IP address |
| DestinationHostname | Destination hostname if resolved |
| DestinationPort | Destination port number |
| DestinationPortName | Destination port service name |
Analyst notes
- 01Crucial Fields: Image, User, Protocol, SourceIp, DestinationIp, DestinationPort, Initiated.
- 02Monitor connections to known malicious IPs/domains (Threat Intel).
- 03Look for unusual ports or protocols used by standard processes (e.g., svchost to port 80/443, non-browser to 80/443).
- 04Identify beaconing patterns (regular connections to the same external IP).
- 05Filter legitimate/noisy connections in Sysmon config (e.g., browser traffic, internal monitoring tools).
- 06Initiated=false indicates an inbound connection.
In an investigation
Sysmon Event 3 captures every network connection made by processes on the monitored system, providing visibility into outbound and inbound communications that native Windows logging doesn't offer. This event records the initiating process name and ID, the source and destination IP addresses and ports, protocol (TCP or UDP), and whether the connection was initiated or received. This detailed network telemetry enables security analysts to detect malware beaconing to command-and-control servers, identify data exfiltration attempts, monitor lateral movement across the network, and discover unauthorized network services running on endpoints. The combination of process-level attribution with network connection details is powerful for threat hunting - you can see exactly which executable is communicating with external infrastructure or internal systems. For instance, when a document viewer like Adobe Reader suddenly initiates network connections to unknown IP addresses, it likely indicates exploitation or embedded malware. The event is invaluable for detecting living-off-the-land techniques where legitimate system utilities like PowerShell, certutil, or bitsadmin are abused to communicate with attacker infrastructure. By correlating Event 3 with process creation (Event 1) and file creation (Event 11), analysts can trace the complete attack lifecycle from initial execution through network communication to file system changes. Advanced threat hunters use Event 3 to identify beaconing patterns characteristic of specific malware families, detect DNS tunneling through unusual port 53 traffic patterns, and spot data exfiltration through large uploads to cloud storage services or unknown destinations.
What it can reveal
- Connections to known malicious IPs or suspicious foreign countries from business applications indicate compromise
- Document viewers or Office applications making network connections suggest exploitation or malicious macros
- Regular beaconing patterns (connections every N seconds/minutes) reveal command-and-control communication
- Connections from PowerShell or scripting engines to internet IPs show malware or attacker activity
- Internal lateral movement via SMB (port 445) or RDP (port 3389) from user workstations indicates spreading
How to detect with it
Implement network connection baselining to understand normal communication patterns for applications in your environment. Alert on network connections from unusual processes, especially document viewers, media players, or other applications that shouldn't initiate connections. Integrate threat intelligence feeds to automatically flag connections to known malicious IPs, domains, and infrastructure. Monitor for beaconing behavior by analyzing connection frequency and regularity, particularly connections that occur at precise intervals characteristic of automated malware callbacks. Detect data exfiltration by tracking upload volume from client systems to external destinations, especially large transfers to newly observed domains. Flag internal lateral movement by monitoring for workstation-to-workstation connections on administrative ports like 135, 139, 445, 3389. Correlate network connections with process execution to identify which parent process spawned the communicating executable.
Attack patterns
- TrickBot malware generates distinctive Sysmon Event 3 patterns with connections to numerous C2 servers for redundancy
- C2 beaconing attack pattern: an implant connects to the same external host at a regular interval (often with random jitter), producing a steady series of Event 3 records from one process to one destination
- Ransomware exfiltration visible in Event 3 as large outbound transfers from victim systems to attacker-controlled storage before encryption
Compared withEvent 3 provides process-level network visibility that native Windows lacks. Combine with Event 22 (DNS Query) to see full connection lifecycle from DNS resolution to TCP/UDP connection.
Pull this event
Retrieval queries for a live host, a collected .evtx file and common SIEMs. Filter further on the key fields above.
Get-WinEvent -LogName 'Microsoft-Windows-Sysmon/Operational' -FilterXPath "*[System[(EventID=3)]]" -MaxEvents 50 |
Select-Object TimeCreated, Id, MachineName, Message-FilterXPath supports exact matches only. For substring matching, filter in Where-Object.
Where it shows up
Investigations, attack signals and lateral movement techniques that rely on this event.
- Lateral movementPsExec and service-based executionSource: Outbound TCP connection to the destination on port 445.
- Lateral movementWMI remote executionSource: Outbound connection to the destination on port 135, then a dynamic RPC port.
- Lateral movementsmbexecSource: Outbound TCP connection to the destination on port 445.
- Lateral movementRemote scheduled task executionSource: Outbound connection to the destination on port 445 (atexec) or 135 (RPC).
- Lateral movementRemote service creationSource: Outbound TCP connection to the destination on port 445.
- Lateral movementWinRM and PowerShell RemotingSource: Outbound TCP connection to the destination on port 5985 (HTTP) or 5986 (HTTPS).
- Lateral movementDCOM executionSource: Outbound connection to the destination on port 135, then a dynamic RPC port.
- InvestigationDid data leave, how much, and to where?Confirm direction and destination from network logs
ATT&CK mapping
Techniques this event can help detect. Most of these depend on specific field values; the event alone does not mean the technique happened.
Also relevant, depending on field values
- T1071.001 Web Protocols
- T1071.002 File Transfer Protocols
- T1071.003 Mail Protocols
- T1071.004 DNS
- T1095 Non-Application Layer Protocol
- T1090 Proxy
- T1090.001 Internal Proxy
- T1090.002 External Proxy
- T1090.003 Multi-hop Proxy
- T1090.004 Domain Fronting
- T1571 Non-Standard Port
- T1572 Protocol Tunneling
- T1105 Ingress Tool Transfer
- T1570 Lateral Tool Transfer
- T1041 Exfiltration Over C2 Channel
- T1567 Exfiltration Over Web Service
- T1048 Exfiltration Over Alternative Protocol
- T1102 Web Service
- T1104 Multi-Stage Channels
- T1219 Remote Access Software
- T1568 Dynamic Resolution
- T1665 Hide Infrastructure
Related events
Common questions
- What does Windows event ID 3 mean?
- Sysmon Event 3 logs all TCP and UDP network connections initiated by processes, recording source and destination IPs, ports, and the process responsible. This event is critical for detecting command-and-control communications, data exfiltration, and lateral movement across networks.
- Is event 3 logged by default?
- No. It must be enabled before it is recorded.
- Where is event 3 recorded?
- In the Microsoft-Windows-Sysmon/Operational channel on the any host.
Decode a real event
Paste the XML and every value gets explained. Nothing leaves your browser.
Open decoderSysmon Event 3 logs all TCP and UDP network connections initiated by processes, recording source and destination IPs, ports, and the process responsible. This event is critical for detecting command-and-control communications, data exfiltration, and lateral movement across networks.