Network Connections
===================
Sysmon will log **EventID 3** for all TCP and UDP network connections. This event will generate a large number of entries and filtering should be tuned for specific processes and ports.
For the DestinationHostname, the GetNameInfo API is used and it will often not have any information and may just be a CDN, making it NOT reliable for filtering since it uses a reverse DNS Lookup to get this information, in Sysmon v11.0 this behaviour can be disabled by using the ```True``` at the root of the confifuration file.
For the DestinationPortName, the GetNameInfo API is used for the friendly name of ports. In the case of services doing connections on some systems due to memory use, they are hosted under svchost.exe and most connections will originate from this process.
The fields for the event are:
* **RuleName**: Name of rule that triggered the event
* **UtcTime**: Time in UTC when event was created
* **ProcessGuid**: Process GUID of the process that made the network connection
* **ProcessId**: Process ID used by the OS to identify the process that made the network connection
* **Image**: File path of the process that made the network connection
* **User**: Name of the account who made the network connection
* **Protocol**: Protocol being used for the network connection
* **Initiated**: Indicated process-initiated TCP connection
* **SourceIsIpv6**: Is the source IP an Ipv6
* **SourceIp**: Source IP address that made the network connection
* **SourceHostname**: DNS name of the host that made the network connection
* **SourcePort**: Source port number
* **SourcePortName**: Name of the source port being used
* **DestinationIsIpv6**: Is the destination IP an Ipv6
* **DestinationIp**: IP address destination
* **DestinationHostname**: DNS name of the host that is contacted
* **DestinationPort**: Destination port number
* **DestinationPortName**: Name of the destination port
Example tracking connections for attacker "Living off the land"
```xml
at.exe
certutil.exe
cmd.exe
cscript.exe
java.exe
mshta.exe
msiexec.exe
net.exe
notepad.exe
powershell.exe
reg.exe
regsvr32.exe
rundll32.exe
sc.exe
wmic.exe
wscript.exe
driverquery.exe
dsquery.exe
hh.exe
infDefaultInstall.exe
javaw.exe
javaws.exe
mmc.exe
msbuild.exe
nbtstat.exe
net1.exe
nslookup.exe
qprocess.exe
qwinsta.exe
regsvcs.exe
rwinsta.exe
schtasks.exe
taskkill.exe
tasklist.exe
replace.exe
```