Defender-DeviceNetworkEvents

11 ActionTypes

ActionTypeTitle
anyNetwork activity (any)
ConnectionSuccessConnection succeeded
ConnectionFailedConnection failed
InboundConnectionAcceptedInbound connection accepted
ListeningConnectionCreatedListening connection created
ConnectionRequestConnection request
DnsConnectionInspectedDNS connection inspected
DnsQueryResponseDNS query / response
ConnectionAttemptConnection attempt
ConnectionFoundConnection found
NetworkSignatureInspectedNetwork signature inspected

any: Network activity (any)

#
Table
DeviceNetworkEvents

Description

Network activity (any)

Fields #

NameDescriptionRules
DeviceId
Timestamp
ActionType
RemoteIP
RemotePort
RemoteUrl
LocalIP
LocalPort
Protocol
InitiatingProcessFileName2 detection rules
InitiatingProcessCommandLine

Detection Patterns #

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
EventTypecontainsinboundconnection1 rulekusto
EventTypeneListeningConnectionCreated2 ruleskusto
CommandLinecontainscommandline1 rulekusto, splunk
OnboardingStatusneOnboarded1 rulekusto
parent_process_nameeqmsiexec.exe1 ruleelastic, kusto, splunk
parent_process_nameeqsvchost.exe1 ruleelastic, kusto, splunk

Detection Rules #

View all rules referencing this event →

Kusto #

Show 4 more (7 total)
  • Detect CVE exploits on network for which a device is vulnerable source: This detection query can be used to find specific CVE exploits passing on the wire for which the device is vulnerable. This query should have a very high TP rate, and can be considered as a 'High severity' query.
  • Detect Msiexec executing DLL network connections source: Adversaries regularly use Msiexec (or other lolbins) to execute their malicious programs with. A common way to do this is more specifically using Msiexec to execute beacons encapsulated in DLL files. While this happens a lot in legitimate cases, a DLL file loaded via Msiexec starting network connections may indicate a beacon running. > [!WARNING] > You might need to add environment specific finetuning to this rule in order to reduce BP detections from legitimate processes.
  • Hunt for public facing devices via DeviceNetworkEvents source: Find public facing devices via the DeviceNetworkEvents table.
  • Hunt MDE with GSA events source: This rule correlates the Microsoft Defender for Endpoint DeviceNetworkEvents table with the Global Secure Access NetworkAccessTraffic table. By doing this, you can enrich the MDE events which contains detailed process information with the GSA events that contains detailed HTTP header information and more.

References #

ConnectionSuccess: Connection succeeded

#
Table
DeviceNetworkEvents

Description

Connection succeeded

Fields #

NameDescription
DeviceId
Timestamp
RemoteIP
RemotePort
RemoteUrl
Protocol
InitiatingProcessFileName

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
EventTypeeqConnectionSuccess7 ruleskusto
EventTypeinConnectionSuccess3 ruleskusto
EventTypeinConnectionAttempt2 ruleskusto
EventTypeinConnectionFailed2 ruleskusto
EventTypeinConnectionRequest2 ruleskusto
DestinationPorteq33892 ruleselastic, kusto, sigma, splunk
DestinationPorteq93892 ruleselastic, kusto, sigma, splunk
DestinationPortin4453 ruleselastic, kusto
DestinationPortin1352 ruleskusto
DestinationPortin33892 ruleselastic, kusto
DestinationPortin59852 ruleselastic, kusto
DestinationPortin59862 ruleselastic, kusto
DestinationPortin221 ruleelastic, kusto
DestinationPortin59001 rulekusto
DestinationPortin801 ruleelastic, kusto, splunk

Detection Rules #

View all rules referencing this event →

Kusto #

Show 10 more (13 total)
  • ADWS Connection from Unexpected Binary source: This query first collects the IP addresses of all machines that have the Active Directory Web Services (ADWS) service running. It then searches for network connections to these IP addresses from processes that are not expected to connect to ADWS.
  • ADWS Connection from Process Injection Target source: The query first collects all network connections to the Active Directory Web Services (ADWS) service. It then searches for processes that inject into a process that makes a connection to ADWS. This can be used to detect process injection into a process that is used to query Active Directory.
  • Suspicious Network Beacons - Microsoft Defender(MDE/M365D) source: Below query detects suspicious beaconing activity by analyzing DeviceNetworkEvents data.
  • Rouge RDP: Suspicious File Creation source: Below query detects file creations of mstsc.exe where it also makes a network connection to a public IP address. This behavior is an indication of Rogue RDP.
    False Positives: Copying files to the local machine over RDP may cause false positives.
  • Server Network Connection Anomalies source: Servers have a specific baseline. This makes it easy to create a baseline and detect anomalies.
    Below queries analyze the network connections made by the specified servers and detects the rare/anomalous ones.
    You can add process info to the analysis, but it will probably generate more results(different processes for the same IP).
  • Detect process drops via Azure Custom Script Extension performing lateral movement source: This detection rule spots processes that where dropped via Azure Custom Script Extension on a machine and are now performing lateral movement. A common procedures for attackers when they compromised one machine is to move laterally to other machines via common protocols such as RDP, SSH, VNC, WMI, RPC, etc. It is not very common in an environment that Custom Script Extensions is being used for this.
  • Detect Unknown process using SMB or WinRM source: WinRM and SMB are popular network protocols to perform lateral movement by adversaries (while there are some others as well). When an unknown process is performing SMB or WinRM network connections, this might indicate that a malware process is trying to move laterally to other devices in your network. > [!WARNING] > This detection rule is the base for the detection. You will need to add environment specific finetuning in order to limit the BP detections on legitimate processes
  • Hunt for devices doing first RDP session source: This hunting query can help you find devices doing an RDP connection for the first time in 30 days. While this can be normal behavior, it might be interesting to look at why this device is suddenly doing an RDP connection.
  • Hunt for RDP sessions to unmanaged and non TPM devices source: This query can help you find devices performing RDP sessions to unmanaged or non-TPM protected devices.
  • Hunt for Defender for Identity NNR issues source: This query can help you in finding Network Name Resolution health issues of Microsoft Defender for Identity. NNR is a critical component which is used to get more information on IP addresses seen by MDI. Without NNR proparly working, MDI can throw a lot of False Positive alerts.↳ also matches ConnectionFailed: Connection failed

References #

ConnectionFailed: Connection failed

#
Table
DeviceNetworkEvents

Description

Connection failed

Fields #

NameDescription
DeviceId
Timestamp
RemoteIP
RemotePort
Protocol
InitiatingProcessFileName

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
DestinationPortin1351 rulekusto
DestinationPortin33891 ruleelastic, kusto

Detection Rules #

View all rules referencing this event →

Kusto #

References #

InboundConnectionAccepted: Inbound connection accepted

#
Table
DeviceNetworkEvents

Description

Inbound connection accepted

Fields #

NameDescription
DeviceId
Timestamp
LocalIP
LocalPort
RemoteIP
Protocol

Detection Patterns #

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
file_nameinagentexecutor.exe1 rulekusto
file_nameinappvlp.exe1 rulekusto
file_nameinat.exe1 rulekusto
file_nameinatbroker.exe1 rulekusto
file_nameinbash.exe1 rulekusto
file_nameinbginfo.exe1 rulekusto
file_nameinbitsadmin.exe1 rulekusto
file_nameincdb.exe1 rulekusto
file_nameincertreq.exe1 rulekusto
file_nameincertutil.exe1 rulekusto
file_nameincmd.exe1 rulekusto
file_nameincmdkey.exe1 rulekusto
file_nameincmstp.exe1 rulekusto
file_nameincontrol.exe1 rulekusto
file_nameincsc.exe1 rulekusto

References #

ListeningConnectionCreated: Listening connection created

#
Table
DeviceNetworkEvents

Description

Listening connection created

Fields #

NameDescription
DeviceId
Timestamp
LocalIP
LocalPort
Protocol
InitiatingProcessFileName

References #

ConnectionRequest: Connection request

#
Table
DeviceNetworkEvents

Description

Connection request

Fields #

NameDescription
DeviceId
Timestamp
RemoteIP
RemotePort
Protocol

References #

DnsConnectionInspected: DNS connection inspected

#
Table
DeviceNetworkEvents

Description

DNS connection inspected

Fields #

NameDescription
DeviceId
Timestamp
RemoteUrl
RemoteIP
Protocol

References #

DnsQueryResponse: DNS query / response

#
Table
DeviceNetworkEvents

Description

DNS query / response

Fields #

NameDescription
DeviceId
Timestamp
RemoteUrl
RemoteIP

References #

ConnectionAttempt: Connection attempt

#
Table
DeviceNetworkEvents

Description

Connection attempt. Outbound connect() initiation; bridge is derivable-from, not one-to-one. Security 5156 fires for every WFP-allowed connection attempt whereas ConnectionAttempt is the MDE-filtered subset of interesting attempts. Cited by FalconFriday rule 0xFF-0270 NTLM Relay.

Fields #

NameDescription
DeviceId
Timestamp
RemoteIP
RemotePort
RemoteUrl
Protocol
InitiatingProcessFileName

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
DestinationPortin4451 ruleelastic, kusto
DestinationPortin801 ruleelastic, kusto, splunk

Detection Rules #

View all rules referencing this event →

Kusto #

  • NTLM Relay Attack source: This query searches for successful NTLM network logins where the device name contained in the NTLM authentication message contains a device that is known to MDE, but the source IP address is different from the known source IP address for that specific device. This could indicate an attacker is relaying the NTLM authentication information. To remove false positives, this query also searches for an outgoing network connection from the initiator to the attacker.↳ also matches ConnectionSuccess: Connection succeeded

References #

ConnectionFound: Connection found

#
Table
DeviceNetworkEvents

Description

Connection found. Established-connection observation; bridge is derivable-from. Cited by Sentinel hunting query Firewall Policy Design Assistant alongside ConnectionSuccess and ConnectionRequest as a union for any-state outbound TCP.

Fields #

NameDescription
DeviceId
Timestamp
RemoteIP
RemotePort
RemoteUrl
Protocol
InitiatingProcessFileName

References #

NetworkSignatureInspected: Network signature inspected

#
Table
DeviceNetworkEvents

Description

Network signature inspected. Defender AV's Network Inspection System (NIS) signature engine result. Partial native bridge via Microsoft-Windows-Windows Defender/Operational 1116 (detection) / 1117 (action taken) when the Source field = NIS, and only when Defender AV with NIS is enabled. Cited by Sentinel hunting query CVE-2022-22965 Network Activity (Spring4Shell).

Fields #

NameDescription
DeviceId
Timestamp
RemoteIP
RemotePort
RemoteUrl
AdditionalFields
InitiatingProcessFileName

Detection Rules #

View all rules referencing this event →

Kusto #

  • DumpGuard NTLM challenge detected source: With the DumpGuard tool, attackers are able to dump credetials via Remote Credential Guard on devices that have Credential Guard enabled. The creator of the DumpGuard tool purposely used a hard-coded NTLMv1 challenge into the tool, for easy detection. > [!WARNING] > Since the detection relies on a static IOC that can easily be changed in the source code, this detection has a low confidence score since it can be easily bypassed. However, if the detection hits it is almost 100% certain the alert will be TP. > Also take into account that the NetworkSignatureInspected ActionType in MDE is sampled, which means not very event will be logged.

References #