Blog Series: Limitless Advanced Hunting with Azure Data Explorer (ADX)

Published 05-06-2021 11:53 AM 3,143 Views
Microsoft

The is the first blog in a series to address long term availability of advanced hunting data using the streaming API.  The primary focus will be data from Microsoft Defender for Endpoint, followed up later with posts on other data tables (i.e., Microsoft Defender for Office 365).

 

2020 saw one of the biggest supply-chain attacks in the industry (so far) with no entity immune to its effects. Over 6 months later, organizations continue to struggle with the impact of the breach - hampered by the lack the visibility and/or the retention of that data to fully eradicate the threat.

 

Fast-forward to 2021, customers filled some of the visibility gap with tools like an endpoint detection and response (EDR) solution.  Assuming all EDR tools are all equal (they’re not), organizations could move data into a SIEM solution to extend retention and reap the traditional rewards (i.e., correlation, workflow, etc.).  While this would appear to be good on paper, the reality is that keeping data for long periods of time in the SIEM is expensive.

 

Are there other options? Pushing data to cold storage or cheap cloud containers/blobs is a possible remedy, however what supply chain attacks have shown us is that we need a way for data to be available for hunting – data stored using these methods often require data to be hydrated before it is usable (i.e., querying) which often comes at a high operational cost.  This hydration may also come over with caveats, the most prevalent one being that restored data and current data often resides on different platforms, requiring queries/IP to be re-written.

 

In summary, the most ideal solution would:

  1. Retain data for an organization’s required length of time.
  2. Make hydration quick, simple, scalable, and/or, always online.
  3. Reduce or eliminate the need for IP (queries, investigations, ...) to be recreated.

 

The solution

Azure Data Explorer (ADX) offers a scalable and cost-effective platform for security teams to build their hunting platforms on. There are many methods to bring data to ADX but this post will be focused be the event-hub which offers terrific scalability and speed. Data from Microsoft 365 Defender (M365D - security.microsoft.com), Microsoft's XDR solution, more specifically data from the EDR, Microsoft Defender For Endpoint (MDE - securitycenter.windows.com) will be sent to ADX to solve the aforementioned problems.

 

Solution architecture:

 

Using Microsoft Defender For Endpoint's streaming API to an event-hub and Azure Data Explorer, security teams can have limitless query access to their data.Using Microsoft Defender For Endpoint's streaming API to an event-hub and Azure Data Explorer, security teams can have limitless query access to their data.

Questions and considerations:

  • Q:  Should I go from Sentinel/Azure Monitor to the event-hub (continuous export) or do I go straight to the event hub from source?
    A:  Certainly there are benefits to bringing in EDR data to a SIEM (correlations, case management, etc.,). The method described in this post will allow data to be equally accessible, for longer periods of time, in a more cost effective manner. In addition, one could consider moving "alertable" data to the SIEM, and supporting data to ADX.
  • Q:  Are all tables supported in continuous export?
    A:  Not yet. The list of supported tables can be found here.
  • Q:  How long do I need to retain information for? How big should I make the event-hub? + + +
    A:  There are numerous resources to understand how to size and scale. Navigating through this document will help you at least understand how to bring data in so sizing can be done with the most accurate numbers.

 

Prior to starting, here are several “variables” which will be referred to. To eliminate effort around recreating queries, keep the table names the same.

  • Raw table for import:  XDRRaw
  • Mapping for raw data:  XDRRawMapping
  • Event-hub resource ID: <myEHRID>
  • Event-Hub name:  <myEHName>
  • Table names to be created:
    • DeviceRegistryEvents
    • DeviceFileCertificateInfo
    • DeviceEvents
    • DeviceImageLoadEvents
    • DeviceLogonEvents
    • DeviceFileEvents
    • DeviceNetworkInfo
    • DeviceProcessEvents
    • DeviceInfo
    • DeviceNetworkEvents

Step 1:  Create the Event-hub

For your initial event-hub, leverage the defaults and follow the basic configuration.  Remember to create the event-hub and not just the namespace. Record the values as previously mentioned - Eventhub resource ID and event-hub name.  

 

Step 2:  Enable the Streaming API in Microsoft 365 Defender/Microsoft Defender for Endpoint to Send Data to the Event-hub

Using the previously noted event-hub resource ID and name and follow the documentation to get data into the event-hub.  After a few moments, click on the event-hub and review the data to verify data is being transferred.

 

Create the event-hub namespace AND the event-hub.  Record the resource ID of the namespace and name of the event-hub for use when creating the streaming API.Create the event-hub namespace AND the event-hub. Record the resource ID of the namespace and name of the event-hub for use when creating the streaming API.

Step 3:  Create the ADX Cluster

As with the event-hub, ADX clusters are very configurable after-the-fact and a guide is available for a simple configuration. 

 

Step 4:  Create a Data Connection to Microsoft Defender for Endpoint

Prior to creating the data connection, a staging table and mapping need to be configured. Navigate to the previously created database and select Query or from the cluster, select query, and make sure your database is highlighted. 

 

Use the code below into the query area to create the RAW table with name XDRRaw:

 

//Create the staging table (use the above RAW table name)
.create table XDRRaw (Raw: dynamic)

 

The following will create the mapping with name XDRRawMapping:

 

//Pull the elements into the first column so we can parse them (use the above RAW Mapping Name)
.create table XDRRaw ingestion json mapping 'XDRRawMapping' '[{"column":"Raw","path":"$","datatype":"dynamic","transform":null}]'

 

With the RAW staging table and mapping function created, navigate to the database, and create a new data connection in the “Data Ingestion” setting under “Settings”.  It should look as follows:

 

Create a data connection only after you have created the RAW table and the mapping.Create a data connection only after you have created the RAW table and the mapping.

NOTE:  The Microsoft 365 Defender/Microsoft Defender for Endpoint streaming API supplies multiple tables of data so using MULTILINE JSON is the data format. 

 

If all permissions are correct, the data connection should create without issue... Congratulations!  Query the RAW table to review the data sources coming in from the service with the following query:

 

//Here’s a list of the tables you’re going to have to migrate 
XDRRaw
| mv-expand Raw.records
| project Properties=Raw_records.properties, Category=Raw_records.category
| summarize by tostring(Category)

 

NOTE:  Be patient!  ADX has a ingests in batches every 5 minutes (default) but can be configured lower however it is advised to keep the default value as lower values may result in increased latency.  For more information about the batching policy, see IngestionBatching policy.

 

Step 4:  Ingest Specified Tables

The Microsoft Defender for Endpoint data stream enables teams to pick one, some, or all tables to be exported.  Copy and run the queries below (one at a time in each code block) based on which tables are being pushed to the event-hub.   

 

DeviceEvents

//Create the parsing function
.create function with (docstring = "Filters data for Device Events for ingestion from XDRRaw", folder = "UpdatePolicies") XDRFilterDeviceEvents()
{
XDRRaw
 | mv-expand Raw.records
 | project Properties=Raw_records.properties, Category=Raw_records.category
 | where Category == "AdvancedHunting-DeviceEvents"
 | project
TenantId = tostring(Properties.TenantId),AccountDomain = tostring(Properties.AccountDomain),AccountName = tostring(Properties.AccountName),AccountSid = tostring(Properties.AccountSid),ActionType = tostring(Properties.ActionType),AdditionalFields = tostring(Properties.AdditionalFields),AppGuardContainerId = tostring(Properties.AppGuardContainerId),DeviceId = tostring(Properties.DeviceId),DeviceName = tostring(Properties.DeviceName),FileName = tostring(Properties.FileName),FileOriginIP = tostring(Properties.FileOriginIP),FileOriginUrl = tostring(Properties.FileOriginUrl),FolderPath = tostring(Properties.FolderPath),InitiatingProcessAccountDomain = tostring(Properties.InitiatingProcessAccountDomain),InitiatingProcessAccountName = tostring(Properties.InitiatingProcessAccountName),InitiatingProcessAccountObjectId = tostring(Properties.InitiatingProcessAccountObjectId),InitiatingProcessAccountSid = tostring(Properties.InitiatingProcessAccountSid),InitiatingProcessAccountUpn = tostring(Properties.InitiatingProcessAccountUpn),InitiatingProcessCommandLine = tostring(Properties.InitiatingProcessCommandLine),InitiatingProcessFileName = tostring(Properties.InitiatingProcessFileName),InitiatingProcessFolderPath = tostring(Properties.InitiatingProcessFolderPath),InitiatingProcessId = tostring(Properties.InitiatingProcessId),InitiatingProcessLogonId = tostring(Properties.InitiatingProcessLogonId),InitiatingProcessMD5 = tostring(Properties.InitiatingProcessMD5),InitiatingProcessParentFileName = tostring(Properties.InitiatingProcessParentFileName),InitiatingProcessParentId = tostring(Properties.InitiatingProcessParentId),InitiatingProcessSHA1 = tostring(Properties.InitiatingProcessSHA1),InitiatingProcessSHA256 = tostring(Properties.InitiatingProcessSHA256),LocalIP = tostring(Properties.LocalIP),LocalPort = tostring(Properties.LocalPort),LogonId = tostring(Properties.LogonId),MD5 = tostring(Properties.MD5),MachineGroup = tostring(Properties.MachineGroup),ProcessCommandLine = tostring(Properties.ProcessCommandLine),ProcessId = tostring(Properties.ProcessId),ProcessTokenElevation = tostring(Properties.ProcessTokenElevation),RegistryKey = tostring(Properties.RegistryKey),RegistryValueData = tostring(Properties.RegistryValueData),RegistryValueName = tostring(Properties.RegistryValueName),RemoteDeviceName = tostring(Properties.RemoteDeviceName),RemoteIP = tostring(Properties.RemoteIP),RemotePort = tostring(Properties.RemotePort),RemoteUrl = tostring(Properties.RemoteUrl),ReportId = tostring(Properties.ReportId),SHA1 = tostring(Properties.SHA1),SHA256 = tostring(Properties.SHA256),TimeGenerated = todatetime(Properties.Timestamp),Timestamp = todatetime(Properties.Timestamp),SourceSystem = tostring(Properties.SourceSystem),Type = tostring(Properties.Type), customerName = tostring(Properties.Customername)
}

//Create the table for DeviceEvents
.set-or-append DeviceEvents <| XDRFilterDeviceEvents()

//Set to autoupdate 
.alter table DeviceEvents policy update 
@'[{"IsEnabled": true, "Source": "XDRRaw", "Query": "XDRFilterDeviceEvents()", "IsTransactional": true, "PropagateIngestionProperties": true}]'

 

 

DeviceFileEvents

//Create the parsing function
.create function with (docstring = "Filters data for DeviceFileEvents for ingestion from XDRRaw", folder = "UpdatePolicies") XDRFilterDeviceFileEvents()
{
XDRRaw
 | mv-expand Raw.records
 | project Properties=Raw_records.properties, Category=Raw_records.category
 | where Category == "AdvancedHunting-DeviceFileEvents"
 | project
TenantId = tostring(Properties.TenantId),ActionType = tostring(Properties.ActionType),AdditionalFields = tostring(Properties.AdditionalFields),AppGuardContainerId = tostring(Properties.AppGuardContainerId),DeviceId = tostring(Properties.DeviceId),DeviceName = tostring(Properties.DeviceName),FileName = tostring(Properties.FileName),FileOriginIP = tostring(Properties.FileOriginIP),FileOriginReferrerUrl = tostring(Properties.FileOriginReferrerUrl),FileOriginUrl = tostring(Properties.FileOriginUrl),FileSize = tostring(Properties.FileSize),FolderPath = tostring(Properties.FolderPath),InitiatingProcessAccountDomain = tostring(Properties.InitiatingProcessAccountDomain),InitiatingProcessAccountName = tostring(Properties.InitiatingProcessAccountName),InitiatingProcessAccountObjectId = tostring(Properties.InitiatingProcessAccountObjectId),InitiatingProcessAccountSid = tostring(Properties.InitiatingProcessAccountSid),InitiatingProcessAccountUpn = tostring(Properties.InitiatingProcessAccountUpn),InitiatingProcessCommandLine = tostring(Properties.InitiatingProcessCommandLine),InitiatingProcessFileName = tostring(Properties.InitiatingProcessFileName),InitiatingProcessFolderPath = tostring(Properties.InitiatingProcessFolderPath),InitiatingProcessId = tostring(Properties.InitiatingProcessId),InitiatingProcessIntegrityLevel = tostring(Properties.InitiatingProcessIntegrityLevel),InitiatingProcessMD5 = tostring(Properties.InitiatingProcessMD5),InitiatingProcessParentFileName = tostring(Properties.InitiatingProcessParentFileName),InitiatingProcessParentId = tostring(Properties.InitiatingProcessParentId),InitiatingProcessSHA1 = tostring(Properties.InitiatingProcessSHA1),InitiatingProcessSHA256 = tostring(Properties.InitiatingProcessSHA256),InitiatingProcessTokenElevation = tostring(Properties.InitiatingProcessTokenElevation),IsAzureInfoProtectionApplied = tostring(Properties.IsAzureInfoProtectionApplied),MD5 = tostring(Properties.MD5),MachineGroup = tostring(Properties.MachineGroup),PreviousFileName = tostring(Properties.PreviousFileName),PreviousFolderPath = tostring(Properties.PreviousFolderPath),ReportId = tostring(Properties.ReportId),RequestAccountDomain = tostring(Properties.RequestAccountDomain),RequestAccountName = tostring(Properties.RequestAccountName),RequestAccountSid = tostring(Properties.RequestAccountSid),RequestProtocol = tostring(Properties.RequestProtocol),RequestSourceIP = tostring(Properties.RequestSourceIP),RequestSourcePort = tostring(Properties.RequestSourcePort),SHA1 = tostring(Properties.SHA1),SHA256 = tostring(Properties.SHA256),SensitivityLabel = tostring(Properties.SensitivityLabel),SensitivitySubLabel = tostring(Properties.SensitivitySubLabel),ShareName = tostring(Properties.ShareName),TimeGenerated =todatetime(Properties.Timestamp),Timestamp = todatetime(Properties.Timestamp),InitiatingProcessParentCreationTime = todatetime(Properties.InitiatingProcessParentCreationTime),InitiatingProcessCreationTime = todatetime(Properties.InitiatingProcessCreationTime),SourceSystem = tostring(Properties.SourceSystem),Type = tostring(Properties.Type)
}

//create table
.set-or-append DeviceFileEvents <| XDRFilterDeviceFileEvents()

//Set to autoupdate 
.alter table DeviceFileEvents policy update 
@'[{"IsEnabled": true, "Source": "XDRRaw", "Query": "XDRFilterDeviceFileEvents()", "IsTransactional": true, "PropagateIngestionProperties": true}]'

 

 

DeviceLogonEvents

//Create the parsing function
.create function with (docstring = "Filters data for DeviceLogonEvents for ingestion from XDRRaw", folder = "UpdatePolicies") XDRFilterDeviceLogonEvents()
{
XDRRaw
 | mv-expand Raw.records
 | project Properties=Raw_records.properties, Category=Raw_records.category
 | where Category == "AdvancedHunting-DeviceLogonEvents"
 | project
TenantId = tostring(Properties.TenantId),AccountDomain = tostring(Properties.AccountDomain),AccountName = tostring(Properties.AccountName),AccountSid = tostring(Properties.AccountSid),ActionType = tostring(Properties.ActionType),AdditionalFields = tostring(Properties.AdditionalFields),AppGuardContainerId = tostring(Properties.AppGuardContainerId),DeviceId = tostring(Properties.DeviceId),DeviceName = tostring(Properties.DeviceName),FailureReason = tostring(Properties.FailureReason),InitiatingProcessAccountDomain = tostring(Properties.InitiatingProcessAccountDomain),InitiatingProcessAccountName = tostring(Properties.InitiatingProcessAccountName),InitiatingProcessAccountObjectId = tostring(Properties.InitiatingProcessAccountObjectId),InitiatingProcessAccountSid = tostring(Properties.InitiatingProcessAccountSid),InitiatingProcessAccountUpn = tostring(Properties.InitiatingProcessAccountUpn),InitiatingProcessCommandLine = tostring(Properties.InitiatingProcessCommandLine),InitiatingProcessFileName = tostring(Properties.InitiatingProcessFileName),InitiatingProcessFolderPath = tostring(Properties.InitiatingProcessFolderPath),InitiatingProcessId = tostring(Properties.InitiatingProcessId),InitiatingProcessIntegrityLevel = tostring(Properties.InitiatingProcessIntegrityLevel),InitiatingProcessMD5 = tostring(Properties.InitiatingProcessMD5),InitiatingProcessParentFileName = tostring(Properties.InitiatingProcessParentFileName),InitiatingProcessParentId = tostring(Properties.InitiatingProcessParentId),InitiatingProcessSHA1 = tostring(Properties.InitiatingProcessSHA1),InitiatingProcessSHA256 = tostring(Properties.InitiatingProcessSHA256),InitiatingProcessTokenElevation = tostring(Properties.InitiatingProcessTokenElevation),IsLocalAdmin = tostring(Properties.IsLocalAdmin),LogonId = tostring(Properties.LogonId),LogonType = tostring(Properties.LogonType),MachineGroup = tostring(Properties.MachineGroup),Protocol = tostring(Properties.Protocol),RemoteDeviceName = tostring(Properties.RemoteDeviceName),RemoteIP = tostring(Properties.RemoteIP),RemoteIPType = tostring(Properties.RemoteIPType),RemotePort = tostring(Properties.RemotePort),ReportId = tostring(Properties.ReportId),TimeGenerated = todatetime(Properties.Timestamp),Timestamp = todatetime(Properties.Timestamp),InitiatingProcessParentCreationTime = todatetime(Properties.InitiatingProcessParentCreationTime),InitiatingProcessCreationTime = todatetime(Properties.InitiatingProcessCreationTime),SourceSystem = tostring(Properties.SourceSystem),Type = tostring(Properties.Type)
}

//create table
.set-or-append DeviceLogonEvents <| XDRFilterDeviceLogonEvents()

//Set to autoupdate 
.alter table DeviceLogonEvents policy update 
@'[{"IsEnabled": true, "Source": "XDRRaw", "Query": "XDRFilterDeviceLogonEvents()", "IsTransactional": true, "PropagateIngestionProperties": true}]'

 

 

DeviceRegistryEvents

//Create the parsing function
.create function with (docstring = "Filters data for DeviceRegistryEvents for ingestion from XDRRaw", folder = "UpdatePolicies") XDRFilterDeviceRegistryEvents()
{
XDRRaw
 | mv-expand Raw.records
 | project Properties=Raw_records.properties, Category=Raw_records.category
 | where Category == "AdvancedHunting-DeviceRegistryEvents"
 | project
TenantId = tostring(Properties.TenantId),ActionType = tostring(Properties.ActionType),AppGuardContainerId = tostring(Properties.AppGuardContainerId),DeviceId = tostring(Properties.DeviceId),DeviceName = tostring(Properties.DeviceName),InitiatingProcessAccountDomain = tostring(Properties.InitiatingProcessAccountDomain),InitiatingProcessAccountName = tostring(Properties.InitiatingProcessAccountName),InitiatingProcessAccountObjectId = tostring(Properties.InitiatingProcessAccountObjectId),InitiatingProcessAccountSid = tostring(Properties.InitiatingProcessAccountSid),InitiatingProcessAccountUpn = tostring(Properties.InitiatingProcessAccountUpn),InitiatingProcessCommandLine = tostring(Properties.InitiatingProcessCommandLine),InitiatingProcessFileName = tostring(Properties.InitiatingProcessFileName),InitiatingProcessFolderPath = tostring(Properties.InitiatingProcessFolderPath),InitiatingProcessId = tostring(Properties.InitiatingProcessId),InitiatingProcessIntegrityLevel = tostring(Properties.InitiatingProcessIntegrityLevel),InitiatingProcessMD5 = tostring(Properties.InitiatingProcessMD5),InitiatingProcessParentFileName = tostring(Properties.InitiatingProcessParentFileName),InitiatingProcessParentId = tostring(Properties.InitiatingProcessParentId),InitiatingProcessSHA1 = tostring(Properties.InitiatingProcessSHA1),InitiatingProcessSHA256 = tostring(Properties.InitiatingProcessSHA256),InitiatingProcessTokenElevation = tostring(Properties.InitiatingProcessTokenElevation),MachineGroup = tostring(Properties.MachineGroup),PreviousRegistryKey = tostring(Properties.PreviousRegistryKey),PreviousRegistryValueData = tostring(Properties.PreviousRegistryValueData),PreviousRegistryValueName = tostring(Properties.PreviousRegistryValueName),RegistryKey = tostring(Properties.RegistryKey),RegistryValueData = tostring(Properties.RegistryValueData),RegistryValueName = tostring(Properties.RegistryValueName),RegistryValueType = tostring(Properties.RegistryValueType),ReportId = tostring(Properties.ReportId),TimeGenerated = todatetime(Properties.Timestamp),Timestamp = todatetime(Properties.Timestamp),InitiatingProcessParentCreationTime = todatetime(Properties.InitiatingProcessParentCreationTime),InitiatingProcessCreationTime = todatetime(Properties.InitiatingProcessCreationTime),SourceSystem = tostring(Properties.SourceSystem),Type = tostring(Properties.Type)
}

//create table
.set-or-append DeviceRegistryEvents <| XDRFilterDeviceRegistryEvents()

//Set to autoupdate 
.alter table DeviceRegistryEvents policy update 
@'[{"IsEnabled": true, "Source": "XDRRaw", "Query": "XDRFilterDeviceRegistryEvents()", "IsTransactional": true, "PropagateIngestionProperties": true}]'

 

 

DeviceImageLoadEvents

//Create the parsing function
.create function with (docstring = "Filters data for DeviceImageLoadEvents for ingestion from XDRRaw", folder = "UpdatePolicies") XDRFilterDeviceImageLoadEvents()
{
XDRRaw
 | mv-expand Raw.records
 | project Properties=Raw_records.properties, Category=Raw_records.category 
 | where Category == "AdvancedHunting-DeviceImageLoadEvents"
 | project
TenantId = tostring(Properties.TenantId),ActionType = tostring(Properties.ActionType),AppGuardContainerId = tostring(Properties.AppGuardContainerId),DeviceId = tostring(Properties.DeviceId),DeviceName = tostring(Properties.DeviceName),FileName = tostring(Properties.FileName),FolderPath = tostring(Properties.FolderPath),InitiatingProcessAccountDomain = tostring(Properties.InitiatingProcessAccountDomain),InitiatingProcessAccountName = tostring(Properties.InitiatingProcessAccountName),InitiatingProcessAccountObjectId = tostring(Properties.InitiatingProcessAccountObjectId),InitiatingProcessAccountSid = tostring(Properties.InitiatingProcessAccountSid),InitiatingProcessAccountUpn = tostring(Properties.InitiatingProcessAccountUpn),InitiatingProcessCommandLine = tostring(Properties.InitiatingProcessCommandLine),InitiatingProcessFileName = tostring(Properties.InitiatingProcessFileName),InitiatingProcessFolderPath = tostring(Properties.InitiatingProcessFolderPath),InitiatingProcessId = tostring(Properties.InitiatingProcessId),InitiatingProcessIntegrityLevel = tostring(Properties.InitiatingProcessIntegrityLevel),InitiatingProcessMD5 = tostring(Properties.InitiatingProcessMD5),InitiatingProcessParentFileName = tostring(Properties.InitiatingProcessParentFileName),InitiatingProcessParentId = tostring(Properties.InitiatingProcessParentId),InitiatingProcessSHA1 = tostring(Properties.InitiatingProcessSHA1),InitiatingProcessSHA256 = tostring(Properties.InitiatingProcessSHA256),InitiatingProcessTokenElevation = tostring(Properties.InitiatingProcessTokenElevation),MD5 = tostring(Properties.MD5),MachineGroup = tostring(Properties.MachineGroup),ReportId = tostring(Properties.ReportId),SHA1 = tostring(Properties.SHA1),SHA256 = tostring(Properties.SHA256),TimeGenerated = todatetime(Properties.Timestamp),Timestamp = todatetime(Properties.Timestamp),InitiatingProcessParentCreationTime = todatetime(Properties.InitiatingProcessParentCreationTime),InitiatingProcessCreationTime = todatetime(Properties.InitiatingProcessCreationTime),SourceSystem = tostring(Properties.SourceSystem),Type = tostring(Properties.Type)
}

//create table
.set-or-append DeviceImageLoadEvents <| XDRFilterDeviceImageLoadEvents()

//Set to autoupdate 
.alter table DeviceImageLoadEvents policy update 
@'[{"IsEnabled": true, "Source": "XDRRaw", "Query": "XDRFilterDeviceImageLoadEvents()", "IsTransactional": true, "PropagateIngestionProperties": true}]'

 

 

DeviceNetworkInfo

//Create the parsing function
.create function with (docstring = "Filters data for DeviceNetworkInfo for ingestion from XDRRaw", folder = "UpdatePolicies") XDRFilterDeviceNetworkInfo()
{
XDRRaw
 | mv-expand Raw.records
 | project Properties=Raw_records.properties, Category=Raw_records.category
 | where Category == "AdvancedHunting-DeviceNetworkInfo"
 | project
TenantId = tostring(Properties.TenantId),ConnectedNetworks = tostring(Properties.ConnectedNetworks),DefaultGateways = tostring(Properties.DefaultGateways),DeviceId = tostring(Properties.DeviceId),DeviceName = tostring(Properties.DeviceName),DnsAddresses = tostring(Properties.DnsAddresses),IPAddresses = tostring(Properties.IPAddresses),IPv4Dhcp = tostring(Properties.IPv4Dhcp),IPv6Dhcp = tostring(Properties.IPv6Dhcp),MacAddress = tostring(Properties.MacAddress),MachineGroup = tostring(Properties.MachineGroup),NetworkAdapterName = tostring(Properties.NetworkAdapterName),NetworkAdapterStatus = tostring(Properties.NetworkAdapterStatus),NetworkAdapterType = tostring(Properties.NetworkAdapterType),ReportId = tostring(Properties.ReportId),TimeGenerated = todatetime(Properties.Timestamp),Timestamp = todatetime(Properties.Timestamp),TunnelType = tostring(Properties.TunnelType),SourceSystem = tostring(Properties.SourceSystem),Type = tostring(Properties.Type)
}

//create table
.set-or-append DeviceNetworkInfo <| XDRFilterDeviceNetworkInfo()

//Set to autoupdate
.alter table DeviceNetworkInfo policy update 
@'[{"IsEnabled": true, "Source": "XDRRaw", "Query": "XDRFilterDeviceNetworkInfo()", "IsTransactional": true, "PropagateIngestionProperties": true}]'

 

 

DeviceProcessEvents

//Create the parsing function
.create function with (docstring = "Filters data for DeviceProcessEvents for ingestion from XDRRaw", folder = "UpdatePolicies") XDRFilterDeviceProcessEvents()
{
XDRRaw
 | mv-expand Raw.records
 | project Properties=Raw_records.properties, Category=Raw_records.category
 | where Category == "AdvancedHunting-DeviceProcessEvents"
 | project
TenantId = tostring(Properties.TenantId),AccountDomain = tostring(Properties.AccountDomain),AccountName = tostring(Properties.AccountName),AccountObjectId = tostring(Properties.AccountObjectId),AccountSid = tostring(Properties.AccountSid),AccountUpn= tostring(Properties.AccountUpn),ActionType = tostring(Properties.ActionType),AdditionalFields = tostring(Properties.AdditionalFields),AppGuardContainerId = tostring(Properties.AppGuardContainerId),DeviceId = tostring(Properties.DeviceId),DeviceName = tostring(Properties.DeviceName),FileName = tostring(Properties.FileName),FolderPath = tostring(Properties.FolderPath),InitiatingProcessAccountDomain = tostring(Properties.InitiatingProcessAccountDomain),InitiatingProcessAccountName = tostring(Properties.InitiatingProcessAccountName),InitiatingProcessAccountObjectId = tostring(Properties.InitiatingProcessAccountObjectId),InitiatingProcessAccountSid = tostring(Properties.InitiatingProcessAccountSid),InitiatingProcessAccountUpn = tostring(Properties.InitiatingProcessAccountUpn),InitiatingProcessCommandLine = tostring(Properties.InitiatingProcessCommandLine),InitiatingProcessFileName = tostring(Properties.InitiatingProcessFileName),InitiatingProcessFolderPath = tostring(Properties.InitiatingProcessFolderPath),InitiatingProcessId = tostring(Properties.InitiatingProcessId),InitiatingProcessIntegrityLevel = tostring(Properties.InitiatingProcessIntegrityLevel),InitiatingProcessLogonId = tostring(Properties.InitiatingProcessLogonId),InitiatingProcessMD5 = tostring(Properties.InitiatingProcessMD5),InitiatingProcessParentFileName = tostring(Properties.InitiatingProcessParentFileName),InitiatingProcessParentId = tostring(Properties.InitiatingProcessParentId),InitiatingProcessSHA1 = tostring(Properties.InitiatingProcessSHA1),InitiatingProcessSHA256 = tostring(Properties.InitiatingProcessSHA256),InitiatingProcessTokenElevation = tostring(Properties.InitiatingProcessTokenElevation),LogonId = tostring(Properties.LogonId),MD5 = tostring(Properties.MD5),MachineGroup = tostring(Properties.MachineGroup),ProcessCommandLine = tostring(Properties.ProcessCommandLine),ProcessCreationTime = todatetime(Properties.ProcessCreationTime),ProcessId = tostring(Properties.ProcessId),ProcessIntegrityLevel = tostring(Properties.ProcessIntegrityLevel),ProcessTokenElevation = tostring(Properties.ProcessTokenElevation),ReportId = tostring(Properties.ReportId),SHA1 = tostring(Properties.SHA1),SHA256 = tostring(Properties.SHA256),TimeGenerated = todatetime(Properties.Timestamp),Timestamp = todatetime(Properties.Timestamp),InitiatingProcessParentCreationTime = todatetime(Properties.InitiatingProcessParentCreationTime),InitiatingProcessCreationTime = todatetime(Properties.InitiatingProcessCreationTime),SourceSystem = tostring(Properties.SourceSystem),Type = tostring(Properties.Type)
}

//create table
.set-or-append DeviceProcessEvents <| XDRFilterDeviceProcessEvents()

//Set to autoupdate
.alter table DeviceProcessEvents policy update 
@'[{"IsEnabled": true, "Source": "XDRRaw", "Query": "XDRFilterDeviceProcessEvents()", "IsTransactional": true, "PropagateIngestionProperties": true}]'

 

 

DeviceFileCertificateInfo

//Create the parsing function
.create function with (docstring = "Filters data for DeviceFileCertificateInfo for ingestion from XDRRaw", folder = "UpdatePolicies") XDRFilterDeviceFileCertificateInfo()
{
XDRRaw
 | mv-expand Raw.records
 | project Properties=Raw_records.properties, Category=Raw_records.category
 | where Category == "AdvancedHunting-DeviceFileCertificateInfo"
 | project
TenantId = tostring(Properties.TenantId),CertificateSerialNumber = tostring(Properties.CertificateSerialNumber),CrlDistributionPointUrls = tostring(Properties.CrlDistributionPointUrls),DeviceId = tostring(Properties.DeviceId),DeviceName = tostring(Properties.DeviceName),IsRootSignerMicrosoft = tostring(Properties.IsRootSignerMicrosoft),IsSigned = tostring(Properties.IsSigned),IsTrusted = tostring(Properties.IsTrusted),Issuer = tostring(Properties.Issuer),IssuerHash = tostring(Properties.IssuerHash),MachineGroup = tostring(Properties.MachineGroup),ReportId = tostring(Properties.ReportId),SHA1 = tostring(Properties.SHA1),SignatureType = tostring(Properties.SignatureType),Signer = tostring(Properties.Signer),SignerHash = tostring(Properties.SignerHash),TimeGenerated = todatetime(Properties.Timestamp),Timestamp = todatetime(Properties.Timestamp),CertificateCountersignatureTime = todatetime(Properties.CertificateCountersignatureTime),CertificateCreationTime = todatetime(Properties.CertificateCreationTime),CertificateExpirationTime = todatetime(Properties.CertificateExpirationTime),SourceSystem = tostring(Properties.SourceSystem),Type = tostring(Properties.Type)
}

//create table
.set-or-append DeviceFileCertificateInfo <| XDRFilterDeviceFileCertificateInfo()

//Set to autoupdate
.alter table DeviceFileCertificateInfo policy update 
@'[{"IsEnabled": true, "Source": "XDRRaw", "Query": "XDRFilterDeviceFileCertificateInfo()", "IsTransactional": true, "PropagateIngestionProperties": true}]'

 

 

DeviceInfo

//Create the parsing function
.create function with (docstring = "Filters data for DeviceInfo for ingestion from XDRRaw", folder = "UpdatePolicies") XDRFilterDeviceInfo()
{
XDRRaw
 | mv-expand Raw.records
 | project Properties=Raw_records.properties, Category=Raw_records.category
 | where Category == "AdvancedHunting-DeviceInfo"
 | project
TenantId = tostring(Properties.TenantId),AdditionalFields = tostring(Properties.AdditionalFields),ClientVersion = tostring(Properties.ClientVersion),DeviceId = tostring(Properties.DeviceId),DeviceName = tostring(Properties.DeviceName),DeviceObjectId= tostring(Properties.DeviceObjectId),IsAzureADJoined = tostring(Properties.IsAzureADJoined),LoggedOnUsers = tostring(Properties.LoggedOnUsers),MachineGroup = tostring(Properties.MachineGroup),OSArchitecture = tostring(Properties.OSArchitecture),OSBuild = tostring(Properties.OSBuild),OSPlatform = tostring(Properties.OSPlatform),OSVersion = tostring(Properties.OSVersion),PublicIP = tostring(Properties.PublicIP),RegistryDeviceTag = tostring(Properties.RegistryDeviceTag),ReportId = tostring(Properties.ReportId),TimeGenerated = todatetime(Properties.Timestamp),SourceSystem = tostring(Properties.SourceSystem),Type = tostring(Properties.Type)
}

//create table
.set-or-append DeviceInfo <| XDRFilterDeviceInfo()

//Set to autoupdate
.alter table DeviceInfo policy update 
@'[{"IsEnabled": true, "Source": "XDRRaw", "Query": "XDRFilterDeviceInfo()", "IsTransactional": true, "PropagateIngestionProperties": true}]'

 

 

DeviceNetworkEvents

//Create the parsing function
.create function with (docstring = "Filters data for DeviceNetworkEvents for ingestion from XDRRaw", folder = "UpdatePolicies") XDRFilterDeviceNetworkEvents()
{
XDRRaw
 | mv-expand Raw.records
 | project Properties=Raw_records.properties, Category=Raw_records.category
 | where Category == "AdvancedHunting-DeviceNetworkEvents"
 | project
TenantId = tostring(Properties.TenantId),ActionType = tostring(Properties.ActionType),AdditionalFields = tostring(Properties.AdditionalFields),AppGuardContainerId = tostring(Properties.AppGuardContainerId),DeviceId = tostring(Properties.DeviceId),DeviceName = tostring(Properties.DeviceName),InitiatingProcessAccountDomain = tostring(Properties.InitiatingProcessAccountDomain),InitiatingProcessAccountName = tostring(Properties.InitiatingProcessAccountName),InitiatingProcessAccountObjectId = tostring(Properties.InitiatingProcessAccountObjectId),InitiatingProcessAccountSid = tostring(Properties.InitiatingProcessAccountSid),InitiatingProcessAccountUpn = tostring(Properties.InitiatingProcessAccountUpn),InitiatingProcessCommandLine= tostring(Properties.InitiatingProcessCommandLine),InitiatingProcessFileName = tostring(Properties.InitiatingProcessFileName),InitiatingProcessFolderPath = tostring(Properties.InitiatingProcessFolderPath),InitiatingProcessId = tostring(Properties.InitiatingProcessId),InitiatingProcessIntegrityLevel = tostring(Properties.InitiatingProcessIntegrityLevel),InitiatingProcessMD5 = tostring(Properties.InitiatingProcessMD5),InitiatingProcessParentFileName = tostring(Properties.InitiatingProcessParentFileName),InitiatingProcessParentId = tostring(Properties.InitiatingProcessParentId),InitiatingProcessSHA1 = tostring(Properties.InitiatingProcessSHA1),InitiatingProcessSHA256 = tostring(Properties.InitiatingProcessSHA256),InitiatingProcessTokenElevation = tostring(Properties.InitiatingProcessTokenElevation),LocalIP = tostring(Properties.LocalIP),LocalIPType = tostring(Properties.LocalIPType),LocalPort = tostring(Properties.LocalPort),MachineGroup = tostring(Properties.MachineGroup),Protocol = tostring(Properties.Protocol),RemoteIP = tostring(Properties.RemoteIP),RemoteIPType = tostring(Properties.RemoteIPType),RemotePort = tostring(Properties.RemotePort),RemoteUrl = tostring(Properties.RemoteUrl),ReportId = tostring(Properties.ReportId),TimeGenerated = todatetime(Properties.Timestamp),Timestamp = todatetime(Properties.Timestamp),InitiatingProcessParentCreationTime = todatetime(Properties.InitiatingProcessParentCreationTime),InitiatingProcessCreationTime = todatetime(Properties.InitiatingProcessCreationTime),SourceSystem = tostring(Properties.SourceSystem),Type = tostring(Properties.Type)
}

//create table
.set-or-append DeviceNetworkEvents <| XDRFilterDeviceNetworkEvents()

//Set to autoupdate
.alter table DeviceNetworkEvents policy update 
@'[{"IsEnabled": true, "Source": "XDRRaw", "Query": "XDRFilterDeviceNetworkEvents()", "IsTransactional": true, "PropagateIngestionProperties": true}]'

 

Step 5:  Review Benefits

With data flowing through, select any device query from the security.microsoft.com/securitycenter.windows.com portal and run it, “word for word” in the ADX portal.  As an example, the following query shows devices creating a PNP device call:

 

DeviceEvents
| where ActionType == "PnpDeviceConnected"
| extend parsed=parse_json(AdditionalFields)
| project className=parsed.ClassName, description=parsed.DeviceDescription, parsed.DeviceId, DeviceName

 

In addition to being to reuse queries, if you are also using Azure Sentinel and have Microsoft 365 Defender/Microsoft Defender for Endpoint data connected, try the following:

  1. Navigate to your ADX cluster and get copy the scope.  It will be formatted as <clusterName>.<region>/<databaseName>:

    Retrieve the ADX scope for external use from Azure Sentinel.Retrieve the ADX scope for external use from Azure Sentinel.NOTE:  Unlike queries in Microsoft 365 Defender/Microsoft Defender for Endpoint and Sentinel/Log Analytics, queries in ADX do NOT have a default time filter.  Queries run without filters will query the entire database and likely impact performance.

  2. Navigate to an Azure Sentinel instance and place the query together with the adx() operator:
    adx("###ADXSCOPE###").DeviceEvents
    | where ActionType == "PnpDeviceConnected"
    | extend parsed=parse_json(AdditionalFields)
    | project className=parsed.ClassName, description=parsed.DeviceDescription, parsed.DeviceId, DeviceName
    ​
    For example:

    sample.png

     NOTE:  As the ADX operator is external, auto-complete will not work.

Notice the query will complete completely but not with Azure Sentinel resources but rather the resources in ADX!  (This operator is not available in Analytics rules though)

 

Summary

Using the Microsoft 365 Defender/Microsoft Defender for Endpoint streaming API and Azure Data Explorer (ADX), teams can very easily achieve terrific scalability on long term, investigative hunting, and forensics.  Cost continues to be another key benefit as well as the ability to reuse IP/queries. 

 

For organizations looking to expand their EDR signal and do auto correlation with 3rd party data sources, consider leveraging Azure Sentinel, where there are a number of 1st and 3rd party data connectors which enable rich context to added to existing Microsoft 365 Defender/Microsoft Defender for Endpoint data.  An example of these enhancements can be found at https://aka.ms/SentinelFusion.

 

Additional information and references: 

Special thanks to @Beth_Bischoff, @PriscilaViana, @Javier Soriano, @Deepak Agrawal, @Uri Barash, and @Steve Newby for their insights and time into this post.

%3CLINGO-SUB%20id%3D%22lingo-sub-2328705%22%20slang%3D%22en-US%22%3EBlog%20Series%3A%20Limitless%20Advanced%20Hunting%20with%20Azure%20Data%20Explorer%20(ADX)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2328705%22%20slang%3D%22en-US%22%3E%3CP%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%3E%3CI%3EThe%20is%20the%20first%20blog%20in%20a%20series%20to%20address%20long%20term%20availability%20of%20advanced%20hunting%20data%20using%20the%20streaming%20API.%26nbsp%3B%20The%20primary%20focus%20will%20be%20data%20from%20Microsoft%20Defender%20for%20Endpoint%2C%20followed%20up%20later%20with%20posts%20on%20other%20data%20tables%20(i.e.%2C%20Microsoft%20Defender%20for%20Office%20365).%3C%2FI%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E2020%20saw%20one%20of%20the%20biggest%20supply-chain%20attacks%20in%20the%20industry%20(so%20far)%20with%20no%20entity%20immune%20to%20its%20effects.%20Over%206%20months%20later%2C%20organizations%20continue%20to%20struggle%20with%20the%20impact%20of%20the%20breach%20-%20hampered%20by%20the%20lack%20the%20visibility%20and%2For%20the%20retention%20of%20that%20data%20to%20fully%20eradicate%20the%20threat.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFast-forward%20to%202021%2C%20customers%20filled%20some%20of%20the%20visibility%20gap%20with%20tools%20like%20an%20endpoint%20detection%20and%20response%20(EDR)%20solution.%26nbsp%3B%20Assuming%20all%20EDR%20tools%20are%20all%20equal%20(they%E2%80%99re%20%3CSTRONG%3E%3CU%3Enot%3C%2FU%3E%3C%2FSTRONG%3E)%2C%20organizations%20could%20move%20data%20into%20a%20SIEM%20solution%20to%20extend%20retention%20and%20reap%20the%20traditional%20rewards%20(i.e.%2C%20correlation%2C%20workflow%2C%20etc.).%26nbsp%3B%20While%20this%20would%20appear%20to%20be%20good%20on%20paper%2C%20the%20reality%20is%20that%20%3CEM%3E%3CU%3Ekeeping%20data%20for%20long%20periods%20of%20time%20in%20the%20SIEM%20is%20expensive.%3C%2FU%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAre%20there%20other%20options%3F%20Pushing%20data%20to%20cold%20storage%20or%20cheap%20cloud%20containers%2Fblobs%20is%20a%20possible%20remedy%2C%20however%20what%20supply%20chain%20attacks%20have%20shown%20us%20is%20that%20we%20need%20a%20way%20for%20data%20to%20be%20available%20for%20hunting%20%E2%80%93%20data%20stored%20using%20these%20methods%20often%20require%20%3CEM%3E%3CU%3Edata%20to%20be%20hydrated%20before%20it%20is%20usable%20(i.e.%2C%20querying)%3C%2FU%3E%3C%2FEM%3E%20which%20often%20%3CEM%3E%3CU%3Ecomes%20at%20a%20high%20operational%20cost%3C%2FU%3E%3C%2FEM%3E.%26nbsp%3B%20This%20hydration%20may%20also%20come%20over%20with%20caveats%2C%20the%20most%20prevalent%20one%20being%20that%20%3CEM%3E%3CU%3Erestored%20data%20and%20current%20data%20often%20resides%20on%20different%20platforms%2C%20requiring%20queries%2FIP%20to%20be%20re-written%3C%2FU%3E%3C%2FEM%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20summary%2C%20the%20most%20ideal%20solution%20would%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ERetain%20data%20for%20an%20organization%E2%80%99s%20required%20length%20of%20time.%3C%2FLI%3E%0A%3CLI%3EMake%20hydration%20quick%2C%20simple%2C%20scalable%2C%20and%2For%2C%20always%20online.%3C%2FLI%3E%0A%3CLI%3EReduce%20or%20eliminate%20the%20need%20for%20IP%20(queries%2C%20investigations%2C%20...)%20to%20be%20recreated.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--468869387%22%20id%3D%22toc-hId--469612299%22%3EThe%20solution%3C%2FH2%3E%0A%3CP%3EAzure%20Data%20Explorer%20(ADX)%20offers%20a%20scalable%20and%20cost-effective%20platform%20for%20security%20teams%20to%20build%20their%20hunting%20platforms%20on.%20There%20are%20many%20methods%20to%20bring%20data%20to%20ADX%20but%20this%20post%20will%20be%20focused%20be%20the%20event-hub%20which%20offers%20terrific%20scalability%20and%20speed.%20Data%20from%20Microsoft%20365%20Defender%20(M365D%20-%20security.microsoft.com)%2C%20Microsoft's%20XDR%20solution%2C%20more%20specifically%20data%20from%20the%20EDR%2C%20Microsoft%20Defender%20For%20Endpoint%20(MDE%20-%20securitycenter.windows.com)%20will%20be%20sent%20to%20ADX%20to%20solve%20the%20aforementioned%20problems.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESolution%20architecture%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22MDE%20Long%20term.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F278564i576E1E6ACCACEE7F%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22MDE%20Long%20term.png%22%20alt%3D%22Using%20Microsoft%20Defender%20For%20Endpoint's%20streaming%20API%20to%20an%20event-hub%20and%20Azure%20Data%20Explorer%2C%20security%20teams%20can%20have%20limitless%20query%20access%20to%20their%20data.%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EUsing%20Microsoft%20Defender%20For%20Endpoint's%20streaming%20API%20to%20an%20event-hub%20and%20Azure%20Data%20Explorer%2C%20security%20teams%20can%20have%20limitless%20query%20access%20to%20their%20data.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EQuestions%20and%20considerations%3A%3C%2FP%3E%0A%3CUL%20class%3D%22lia-list-style-type-disc%22%3E%0A%3CLI%3E%3CSTRONG%3EQ%3A%3C%2FSTRONG%3E%26nbsp%3B%20Should%20I%20go%20from%20Sentinel%2FAzure%20Monitor%20to%20the%20event-hub%20(continuous%20export)%20or%20do%20I%20go%20straight%20to%20the%20event%20hub%20from%20source%3F%3CBR%20%2F%3E%3CSTRONG%3EA%3A%3C%2FSTRONG%3E%26nbsp%3B%20Certainly%20there%20are%20benefits%20to%20bringing%20in%20EDR%20data%20to%20a%20SIEM%20(correlations%2C%20case%20management%2C%20etc.%2C).%20The%20method%20described%20in%20this%20post%20will%20allow%20data%20to%20be%20equally%20accessible%2C%20for%20longer%20periods%20of%20time%2C%20in%20a%20more%20cost%20effective%20manner.%20In%20addition%2C%20one%20could%20consider%20moving%20%22alertable%22%20data%20to%20the%20SIEM%2C%20and%20supporting%20data%20to%20ADX.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EQ%3A%3C%2FSTRONG%3E%26nbsp%3B%20Are%20all%20tables%20supported%20in%20continuous%20export%3F%3CBR%20%2F%3E%3CSTRONG%20style%3D%22font-family%3A%20inherit%3B%22%3EA%3A%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%20Not%20yet.%20The%20list%20of%20supported%20tables%20can%20be%20found%20%3C%2FSPAN%3E%3CA%20style%3D%22font-family%3A%20inherit%3B%20background-color%3A%20%23ffffff%3B%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Flogs%2Flogs-data-export%23supported-tables%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehere%3C%2FA%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E.%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EQ%3A%3C%2FSTRONG%3E%26nbsp%3B%20How%20long%20do%20I%20need%20to%20retain%20information%20for%3F%20How%20big%20should%20I%20make%20the%20event-hub%3F%20%2B%20%2B%20%2B%3CBR%20%2F%3E%3CSTRONG%20style%3D%22font-family%3A%20inherit%3B%22%3EA%3A%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%20There%20are%20numerous%20resources%20to%20understand%20how%20to%20size%20and%20scale.%20Navigating%20through%20this%20document%20will%20help%20you%20at%20least%20understand%20how%20to%20bring%20data%20in%20so%20sizing%20can%20be%20done%20with%20the%20most%20accurate%20numbers.%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPrior%20to%20starting%2C%20here%20are%20several%20%E2%80%9Cvariables%E2%80%9D%20which%20will%20be%20referred%20to.%20To%20eliminate%20effort%20around%20recreating%20queries%2C%20keep%20the%20table%20names%20the%20same.%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ERaw%20table%20for%20import%3A%26nbsp%3B%20XDRRaw%3C%2FLI%3E%0A%3CLI%3EMapping%20for%20raw%20data%3A%26nbsp%3B%20XDRRawMapping%3C%2FLI%3E%0A%3CLI%3EEvent-hub%20resource%20ID%3A%20%3CMYEHRID%3E%3C%2FMYEHRID%3E%3C%2FLI%3E%0A%3CLI%3EEvent-Hub%20name%3A%26nbsp%3B%20%3CMYEHNAME%3E%3C%2FMYEHNAME%3E%3C%2FLI%3E%0A%3CLI%3ETable%20names%20to%20be%20created%3A%3CUL%20class%3D%22lia-list-style-type-square%22%3E%0A%3CLI%3EDeviceRegistryEvents%3C%2FLI%3E%0A%3CLI%3EDeviceFileCertificateInfo%3C%2FLI%3E%0A%3CLI%3EDeviceEvents%3C%2FLI%3E%0A%3CLI%3EDeviceImageLoadEvents%3C%2FLI%3E%0A%3CLI%3EDeviceLogonEvents%3C%2FLI%3E%0A%3CLI%3EDeviceFileEvents%3C%2FLI%3E%0A%3CLI%3EDeviceNetworkInfo%3C%2FLI%3E%0A%3CLI%3EDeviceProcessEvents%3C%2FLI%3E%0A%3CLI%3EDeviceInfo%3C%2FLI%3E%0A%3CLI%3EDeviceNetworkEvents%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH3%20id%3D%22toc-hId-221692087%22%20id%3D%22toc-hId-220949175%22%3EStep%201%3A%26nbsp%3B%20Create%20the%20Event-hub%3C%2FH3%3E%0A%3CP%3EFor%20your%20initial%20event-hub%2C%20leverage%20the%20defaults%20and%20follow%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fevent-hubs%2Fevent-hubs-create%23%3A~%3Atext%3DTo%2520create%2520an%2520event%2520hub%2520within%2520the%2520namespace%2C%2Cname%2520for%2520your%2520event%2520hub%2C%2520then%2520select%2520Create%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ebasic%20configuration%3C%2FA%3E.%26nbsp%3B%20Remember%20to%20create%20the%20event-hub%20and%20not%20just%20the%20namespace.%20Record%20the%20values%20as%20previously%20mentioned%20-%20%3CEM%3EEvent%3C%2FEM%3E%E2%80%93%3CEM%3Ehub%20resource%20ID%3C%2FEM%3E%20and%20%3CEM%3Eevent-hub%20name%3C%2FEM%3E.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1585762376%22%20id%3D%22toc-hId--1586505288%22%3EStep%202%3A%26nbsp%3B%20Enable%20the%20Streaming%20API%20in%20Microsoft%20365%20Defender%2FMicrosoft%20Defender%20for%20Endpoint%20to%20Send%20Data%20to%20the%20Event-hub%3C%2FH3%3E%0A%3CP%3EUsing%20the%20previously%20noted%20event-hub%20resource%20ID%20and%20name%20and%20follow%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fsecurity%2Fdefender-endpoint%2Fraw-data-export-event-hub%3Fview%3Do365-worldwide%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Edocumentation%3C%2FA%3E%20to%20get%20data%20into%20the%20event-hub.%26nbsp%3B%20After%20a%20few%20moments%2C%20click%20on%20the%20event-hub%20and%20review%20the%20data%20to%20verify%20data%20is%20being%20transferred.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22EH.png%22%20style%3D%22width%3A%20725px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F278567i2B5A61E4A0677C4A%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22EH.png%22%20alt%3D%22Create%20the%20event-hub%20namespace%20AND%20the%20event-hub.%20Record%20the%20resource%20ID%20of%20the%20namespace%20and%20name%20of%20the%20event-hub%20for%20use%20when%20creating%20the%20streaming%20API.%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3ECreate%20the%20event-hub%20namespace%20AND%20the%20event-hub.%20Record%20the%20resource%20ID%20of%20the%20namespace%20and%20name%20of%20the%20event-hub%20for%20use%20when%20creating%20the%20streaming%20API.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-901750457%22%20id%3D%22toc-hId-901007545%22%3EStep%203%3A%26nbsp%3B%20Create%20the%20ADX%20Cluster%3C%2FH3%3E%0A%3CP%3EAs%20with%20the%20event-hub%2C%20ADX%20clusters%20are%20very%20configurable%20after-the-fact%20and%20a%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdata-explorer%2Fcreate-cluster-database-portal%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eguide%3C%2FA%3E%20is%20available%20for%20a%20simple%20configuration.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--905704006%22%20id%3D%22toc-hId--906446918%22%3EStep%204%3A%26nbsp%3B%20Create%20a%20Data%20Connection%20to%20Microsoft%20Defender%20for%20Endpoint%3C%2FH3%3E%0A%3CP%3EPrior%20to%20creating%20the%20data%20connection%2C%20a%20staging%20table%20and%20mapping%20need%20to%20be%20configured.%20Navigate%20to%20the%20previously%20created%20database%20and%20select%20Query%20or%20from%20the%20cluster%2C%20select%20query%2C%20and%20make%20sure%20your%20database%20is%20highlighted.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EUse%20the%20code%20below%20into%20the%20query%20area%20to%20create%20the%20RAW%20table%20with%20name%20%3CI%3EXDRRaw%3C%2FI%3E%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3E%2F%2FCreate%20the%20staging%20table%20(use%20the%20above%20RAW%20table%20name)%0A.create%20table%20XDRRaw%20(Raw%3A%20dynamic)%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20following%20will%20create%20the%20mapping%20with%20name%20%3CI%3EXDRRawMapping%3C%2FI%3E%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-basic%22%3E%3CCODE%3E%2F%2FPull%20the%20elements%20into%20the%20first%20column%20so%20we%20can%20parse%20them%20(use%20the%20above%20RAW%20Mapping%20Name)%0A.create%20table%20XDRRaw%20ingestion%20json%20mapping%20'XDRRawMapping'%20'%5B%7B%22column%22%3A%22Raw%22%2C%22path%22%3A%22%24%22%2C%22datatype%22%3A%22dynamic%22%2C%22transform%22%3Anull%7D%5D'%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWith%20the%20RAW%20staging%20table%20and%20mapping%20function%20created%2C%20navigate%20to%20the%20database%2C%20and%20create%20a%20new%20data%20connection%20in%20the%20%E2%80%9CData%20Ingestion%E2%80%9D%20setting%20under%20%E2%80%9CSettings%E2%80%9D.%26nbsp%3B%20It%20should%20look%20as%20follows%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22dataconnection.png%22%20style%3D%22width%3A%20640px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F278571iC6D001968DA5C04B%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22dataconnection.png%22%20alt%3D%22Create%20a%20data%20connection%20only%20after%20you%20have%20created%20the%20RAW%20table%20and%20the%20mapping.%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3ECreate%20a%20data%20connection%20only%20after%20you%20have%20created%20the%20RAW%20table%20and%20the%20mapping.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ENOTE%3A%3C%2FSTRONG%3E%26nbsp%3B%20The%20Microsoft%20365%20Defender%2FMicrosoft%20Defender%20for%20Endpoint%20streaming%20API%20supplies%20multiple%20tables%20of%20data%20so%20using%20MULTILINE%20JSON%20is%20the%20data%20format.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20all%20permissions%20are%20correct%2C%20the%20data%20connection%20should%20create%20without%20issue...%20Congratulations!%26nbsp%3B%20Query%20the%20RAW%20table%20to%20review%20the%20data%20sources%20coming%20in%20from%20the%20service%20with%20the%20following%20query%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3E%2F%2FHere%E2%80%99s%20a%20list%20of%20the%20tables%20you%E2%80%99re%20going%20to%20have%20to%20migrate%20%0AXDRRaw%0A%7C%20mv-expand%20Raw.records%0A%7C%20project%20Properties%3DRaw_records.properties%2C%20Category%3DRaw_records.category%0A%7C%20summarize%20by%20tostring(Category)%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ENOTE%3C%2FSTRONG%3E%3A%26nbsp%3B%20Be%20patient!%26nbsp%3B%20ADX%20has%20a%20ingests%20in%20batches%20every%205%20minutes%20(default)%20but%20can%20be%20configured%20lower%20however%20it%20is%20advised%20to%20keep%20the%20default%20value%20as%20lower%20values%20may%20result%20in%20increased%20latency.%26nbsp%3B%20For%20more%20information%20about%20the%20batching%20policy%2C%20see%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdata-explorer%2Fkusto%2Fmanagement%2Fbatchingpolicy%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EIngestionBatching%20policy%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1581808827%22%20id%3D%22toc-hId-1581065915%22%3EStep%204%3A%26nbsp%3B%20Ingest%20Specified%20Tables%3C%2FH3%3E%0A%3CP%3EThe%20Microsoft%20Defender%20for%20Endpoint%20data%20stream%20enables%20teams%20to%20pick%20one%2C%20some%2C%20or%20all%20tables%20to%20be%20exported.%26nbsp%3B%20Copy%20and%20run%20the%20queries%20below%20(%3CSTRONG%3E%3CU%3Eone%20at%20a%20time%20in%20each%20code%20block%3C%2FU%3E%3C%2FSTRONG%3E)%20based%20on%20which%20tables%20are%20being%20pushed%20to%20the%20event-hub.%26nbsp%3B%20%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EDeviceEvents%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3E%2F%2FCreate%20the%20parsing%20function%0A.create%20function%20with%20(docstring%20%3D%20%22Filters%20data%20for%20Device%20Events%20for%20ingestion%20from%20XDRRaw%22%2C%20folder%20%3D%20%22UpdatePolicies%22)%20XDRFilterDeviceEvents()%0A%7B%0AXDRRaw%0A%20%7C%20mv-expand%20Raw.records%0A%20%7C%20project%20Properties%3DRaw_records.properties%2C%20Category%3DRaw_records.category%0A%20%7C%20where%20Category%20%3D%3D%20%22AdvancedHunting-DeviceEvents%22%0A%20%7C%20project%0ATenantId%20%3D%20tostring(Properties.TenantId)%2CAccountDomain%20%3D%20tostring(Properties.AccountDomain)%2CAccountName%20%3D%20tostring(Properties.AccountName)%2CAccountSid%20%3D%20tostring(Properties.AccountSid)%2CActionType%20%3D%20tostring(Properties.ActionType)%2CAdditionalFields%20%3D%20tostring(Properties.AdditionalFields)%2CAppGuardContainerId%20%3D%20tostring(Properties.AppGuardContainerId)%2CDeviceId%20%3D%20tostring(Properties.DeviceId)%2CDeviceName%20%3D%20tostring(Properties.DeviceName)%2CFileName%20%3D%20tostring(Properties.FileName)%2CFileOriginIP%20%3D%20tostring(Properties.FileOriginIP)%2CFileOriginUrl%20%3D%20tostring(Properties.FileOriginUrl)%2CFolderPath%20%3D%20tostring(Properties.FolderPath)%2CInitiatingProcessAccountDomain%20%3D%20tostring(Properties.InitiatingProcessAccountDomain)%2CInitiatingProcessAccountName%20%3D%20tostring(Properties.InitiatingProcessAccountName)%2CInitiatingProcessAccountObjectId%20%3D%20tostring(Properties.InitiatingProcessAccountObjectId)%2CInitiatingProcessAccountSid%20%3D%20tostring(Properties.InitiatingProcessAccountSid)%2CInitiatingProcessAccountUpn%20%3D%20tostring(Properties.InitiatingProcessAccountUpn)%2CInitiatingProcessCommandLine%20%3D%20tostring(Properties.InitiatingProcessCommandLine)%2CInitiatingProcessFileName%20%3D%20tostring(Properties.InitiatingProcessFileName)%2CInitiatingProcessFolderPath%20%3D%20tostring(Properties.InitiatingProcessFolderPath)%2CInitiatingProcessId%20%3D%20tostring(Properties.InitiatingProcessId)%2CInitiatingProcessLogonId%20%3D%20tostring(Properties.InitiatingProcessLogonId)%2CInitiatingProcessMD5%20%3D%20tostring(Properties.InitiatingProcessMD5)%2CInitiatingProcessParentFileName%20%3D%20tostring(Properties.InitiatingProcessParentFileName)%2CInitiatingProcessParentId%20%3D%20tostring(Properties.InitiatingProcessParentId)%2CInitiatingProcessSHA1%20%3D%20tostring(Properties.InitiatingProcessSHA1)%2CInitiatingProcessSHA256%20%3D%20tostring(Properties.InitiatingProcessSHA256)%2CLocalIP%20%3D%20tostring(Properties.LocalIP)%2CLocalPort%20%3D%20tostring(Properties.LocalPort)%2CLogonId%20%3D%20tostring(Properties.LogonId)%2CMD5%20%3D%20tostring(Properties.MD5)%2CMachineGroup%20%3D%20tostring(Properties.MachineGroup)%2CProcessCommandLine%20%3D%20tostring(Properties.ProcessCommandLine)%2CProcessId%20%3D%20tostring(Properties.ProcessId)%2CProcessTokenElevation%20%3D%20tostring(Properties.ProcessTokenElevation)%2CRegistryKey%20%3D%20tostring(Properties.RegistryKey)%2CRegistryValueData%20%3D%20tostring(Properties.RegistryValueData)%2CRegistryValueName%20%3D%20tostring(Properties.RegistryValueName)%2CRemoteDeviceName%20%3D%20tostring(Properties.RemoteDeviceName)%2CRemoteIP%20%3D%20tostring(Properties.RemoteIP)%2CRemotePort%20%3D%20tostring(Properties.RemotePort)%2CRemoteUrl%20%3D%20tostring(Properties.RemoteUrl)%2CReportId%20%3D%20tostring(Properties.ReportId)%2CSHA1%20%3D%20tostring(Properties.SHA1)%2CSHA256%20%3D%20tostring(Properties.SHA256)%2CTimeGenerated%20%3D%20todatetime(Properties.Timestamp)%2CTimestamp%20%3D%20todatetime(Properties.Timestamp)%2CSourceSystem%20%3D%20tostring(Properties.SourceSystem)%2CType%20%3D%20tostring(Properties.Type)%2C%20customerName%20%3D%20tostring(Properties.Customername)%0A%7D%0A%0A%2F%2FCreate%20the%20table%20for%20DeviceEvents%0A.set-or-append%20DeviceEvents%20%26lt%3B%7C%20XDRFilterDeviceEvents()%0A%0A%2F%2FSet%20to%20autoupdate%20%0A.alter%20table%20DeviceEvents%20policy%20update%20%0A%40'%5B%7B%22IsEnabled%22%3A%20true%2C%20%22Source%22%3A%20%22XDRRaw%22%2C%20%22Query%22%3A%20%22XDRFilterDeviceEvents()%22%2C%20%22IsTransactional%22%3A%20true%2C%20%22PropagateIngestionProperties%22%3A%20true%7D%5D'%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EDeviceFileEvents%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3E%2F%2FCreate%20the%20parsing%20function%0A.create%20function%20with%20(docstring%20%3D%20%22Filters%20data%20for%20DeviceFileEvents%20for%20ingestion%20from%20XDRRaw%22%2C%20folder%20%3D%20%22UpdatePolicies%22)%20XDRFilterDeviceFileEvents()%0A%7B%0AXDRRaw%0A%20%7C%20mv-expand%20Raw.records%0A%20%7C%20project%20Properties%3DRaw_records.properties%2C%20Category%3DRaw_records.category%0A%20%7C%20where%20Category%20%3D%3D%20%22AdvancedHunting-DeviceFileEvents%22%0A%20%7C%20project%0ATenantId%20%3D%20tostring(Properties.TenantId)%2CActionType%20%3D%20tostring(Properties.ActionType)%2CAdditionalFields%20%3D%20tostring(Properties.AdditionalFields)%2CAppGuardContainerId%20%3D%20tostring(Properties.AppGuardContainerId)%2CDeviceId%20%3D%20tostring(Properties.DeviceId)%2CDeviceName%20%3D%20tostring(Properties.DeviceName)%2CFileName%20%3D%20tostring(Properties.FileName)%2CFileOriginIP%20%3D%20tostring(Properties.FileOriginIP)%2CFileOriginReferrerUrl%20%3D%20tostring(Properties.FileOriginReferrerUrl)%2CFileOriginUrl%20%3D%20tostring(Properties.FileOriginUrl)%2CFileSize%20%3D%20tostring(Properties.FileSize)%2CFolderPath%20%3D%20tostring(Properties.FolderPath)%2CInitiatingProcessAccountDomain%20%3D%20tostring(Properties.InitiatingProcessAccountDomain)%2CInitiatingProcessAccountName%20%3D%20tostring(Properties.InitiatingProcessAccountName)%2CInitiatingProcessAccountObjectId%20%3D%20tostring(Properties.InitiatingProcessAccountObjectId)%2CInitiatingProcessAccountSid%20%3D%20tostring(Properties.InitiatingProcessAccountSid)%2CInitiatingProcessAccountUpn%20%3D%20tostring(Properties.InitiatingProcessAccountUpn)%2CInitiatingProcessCommandLine%20%3D%20tostring(Properties.InitiatingProcessCommandLine)%2CInitiatingProcessFileName%20%3D%20tostring(Properties.InitiatingProcessFileName)%2CInitiatingProcessFolderPath%20%3D%20tostring(Properties.InitiatingProcessFolderPath)%2CInitiatingProcessId%20%3D%20tostring(Properties.InitiatingProcessId)%2CInitiatingProcessIntegrityLevel%20%3D%20tostring(Properties.InitiatingProcessIntegrityLevel)%2CInitiatingProcessMD5%20%3D%20tostring(Properties.InitiatingProcessMD5)%2CInitiatingProcessParentFileName%20%3D%20tostring(Properties.InitiatingProcessParentFileName)%2CInitiatingProcessParentId%20%3D%20tostring(Properties.InitiatingProcessParentId)%2CInitiatingProcessSHA1%20%3D%20tostring(Properties.InitiatingProcessSHA1)%2CInitiatingProcessSHA256%20%3D%20tostring(Properties.InitiatingProcessSHA256)%2CInitiatingProcessTokenElevation%20%3D%20tostring(Properties.InitiatingProcessTokenElevation)%2CIsAzureInfoProtectionApplied%20%3D%20tostring(Properties.IsAzureInfoProtectionApplied)%2CMD5%20%3D%20tostring(Properties.MD5)%2CMachineGroup%20%3D%20tostring(Properties.MachineGroup)%2CPreviousFileName%20%3D%20tostring(Properties.PreviousFileName)%2CPreviousFolderPath%20%3D%20tostring(Properties.PreviousFolderPath)%2CReportId%20%3D%20tostring(Properties.ReportId)%2CRequestAccountDomain%20%3D%20tostring(Properties.RequestAccountDomain)%2CRequestAccountName%20%3D%20tostring(Properties.RequestAccountName)%2CRequestAccountSid%20%3D%20tostring(Properties.RequestAccountSid)%2CRequestProtocol%20%3D%20tostring(Properties.RequestProtocol)%2CRequestSourceIP%20%3D%20tostring(Properties.RequestSourceIP)%2CRequestSourcePort%20%3D%20tostring(Properties.RequestSourcePort)%2CSHA1%20%3D%20tostring(Properties.SHA1)%2CSHA256%20%3D%20tostring(Properties.SHA256)%2CSensitivityLabel%20%3D%20tostring(Properties.SensitivityLabel)%2CSensitivitySubLabel%20%3D%20tostring(Properties.SensitivitySubLabel)%2CShareName%20%3D%20tostring(Properties.ShareName)%2CTimeGenerated%20%3Dtodatetime(Properties.Timestamp)%2CTimestamp%20%3D%20todatetime(Properties.Timestamp)%2CInitiatingProcessParentCreationTime%20%3D%20todatetime(Properties.InitiatingProcessParentCreationTime)%2CInitiatingProcessCreationTime%20%3D%20todatetime(Properties.InitiatingProcessCreationTime)%2CSourceSystem%20%3D%20tostring(Properties.SourceSystem)%2CType%20%3D%20tostring(Properties.Type)%0A%7D%0A%0A%2F%2Fcreate%20table%0A.set-or-append%20DeviceFileEvents%20%26lt%3B%7C%20XDRFilterDeviceFileEvents()%0A%0A%2F%2FSet%20to%20autoupdate%20%0A.alter%20table%20DeviceFileEvents%20policy%20update%20%0A%40'%5B%7B%22IsEnabled%22%3A%20true%2C%20%22Source%22%3A%20%22XDRRaw%22%2C%20%22Query%22%3A%20%22XDRFilterDeviceFileEvents()%22%2C%20%22IsTransactional%22%3A%20true%2C%20%22PropagateIngestionProperties%22%3A%20true%7D%5D'%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EDeviceLogonEvents%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3E%2F%2FCreate%20the%20parsing%20function%0A.create%20function%20with%20(docstring%20%3D%20%22Filters%20data%20for%20DeviceLogonEvents%20for%20ingestion%20from%20XDRRaw%22%2C%20folder%20%3D%20%22UpdatePolicies%22)%20XDRFilterDeviceLogonEvents()%0A%7B%0AXDRRaw%0A%20%7C%20mv-expand%20Raw.records%0A%20%7C%20project%20Properties%3DRaw_records.properties%2C%20Category%3DRaw_records.category%0A%20%7C%20where%20Category%20%3D%3D%20%22AdvancedHunting-DeviceLogonEvents%22%0A%20%7C%20project%0ATenantId%20%3D%20tostring(Properties.TenantId)%2CAccountDomain%20%3D%20tostring(Properties.AccountDomain)%2CAccountName%20%3D%20tostring(Properties.AccountName)%2CAccountSid%20%3D%20tostring(Properties.AccountSid)%2CActionType%20%3D%20tostring(Properties.ActionType)%2CAdditionalFields%20%3D%20tostring(Properties.AdditionalFields)%2CAppGuardContainerId%20%3D%20tostring(Properties.AppGuardContainerId)%2CDeviceId%20%3D%20tostring(Properties.DeviceId)%2CDeviceName%20%3D%20tostring(Properties.DeviceName)%2CFailureReason%20%3D%20tostring(Properties.FailureReason)%2CInitiatingProcessAccountDomain%20%3D%20tostring(Properties.InitiatingProcessAccountDomain)%2CInitiatingProcessAccountName%20%3D%20tostring(Properties.InitiatingProcessAccountName)%2CInitiatingProcessAccountObjectId%20%3D%20tostring(Properties.InitiatingProcessAccountObjectId)%2CInitiatingProcessAccountSid%20%3D%20tostring(Properties.InitiatingProcessAccountSid)%2CInitiatingProcessAccountUpn%20%3D%20tostring(Properties.InitiatingProcessAccountUpn)%2CInitiatingProcessCommandLine%20%3D%20tostring(Properties.InitiatingProcessCommandLine)%2CInitiatingProcessFileName%20%3D%20tostring(Properties.InitiatingProcessFileName)%2CInitiatingProcessFolderPath%20%3D%20tostring(Properties.InitiatingProcessFolderPath)%2CInitiatingProcessId%20%3D%20tostring(Properties.InitiatingProcessId)%2CInitiatingProcessIntegrityLevel%20%3D%20tostring(Properties.InitiatingProcessIntegrityLevel)%2CInitiatingProcessMD5%20%3D%20tostring(Properties.InitiatingProcessMD5)%2CInitiatingProcessParentFileName%20%3D%20tostring(Properties.InitiatingProcessParentFileName)%2CInitiatingProcessParentId%20%3D%20tostring(Properties.InitiatingProcessParentId)%2CInitiatingProcessSHA1%20%3D%20tostring(Properties.InitiatingProcessSHA1)%2CInitiatingProcessSHA256%20%3D%20tostring(Properties.InitiatingProcessSHA256)%2CInitiatingProcessTokenElevation%20%3D%20tostring(Properties.InitiatingProcessTokenElevation)%2CIsLocalAdmin%20%3D%20tostring(Properties.IsLocalAdmin)%2CLogonId%20%3D%20tostring(Properties.LogonId)%2CLogonType%20%3D%20tostring(Properties.LogonType)%2CMachineGroup%20%3D%20tostring(Properties.MachineGroup)%2CProtocol%20%3D%20tostring(Properties.Protocol)%2CRemoteDeviceName%20%3D%20tostring(Properties.RemoteDeviceName)%2CRemoteIP%20%3D%20tostring(Properties.RemoteIP)%2CRemoteIPType%20%3D%20tostring(Properties.RemoteIPType)%2CRemotePort%20%3D%20tostring(Properties.RemotePort)%2CReportId%20%3D%20tostring(Properties.ReportId)%2CTimeGenerated%20%3D%20todatetime(Properties.Timestamp)%2CTimestamp%20%3D%20todatetime(Properties.Timestamp)%2CInitiatingProcessParentCreationTime%20%3D%20todatetime(Properties.InitiatingProcessParentCreationTime)%2CInitiatingProcessCreationTime%20%3D%20todatetime(Properties.InitiatingProcessCreationTime)%2CSourceSystem%20%3D%20tostring(Properties.SourceSystem)%2CType%20%3D%20tostring(Properties.Type)%0A%7D%0A%0A%2F%2Fcreate%20table%0A.set-or-append%20DeviceLogonEvents%20%26lt%3B%7C%20XDRFilterDeviceLogonEvents()%0A%0A%2F%2FSet%20to%20autoupdate%20%0A.alter%20table%20DeviceLogonEvents%20policy%20update%20%0A%40'%5B%7B%22IsEnabled%22%3A%20true%2C%20%22Source%22%3A%20%22XDRRaw%22%2C%20%22Query%22%3A%20%22XDRFilterDeviceLogonEvents()%22%2C%20%22IsTransactional%22%3A%20true%2C%20%22PropagateIngestionProperties%22%3A%20true%7D%5D'%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EDeviceRegistryEvents%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3E%2F%2FCreate%20the%20parsing%20function%0A.create%20function%20with%20(docstring%20%3D%20%22Filters%20data%20for%20DeviceRegistryEvents%20for%20ingestion%20from%20XDRRaw%22%2C%20folder%20%3D%20%22UpdatePolicies%22)%20XDRFilterDeviceRegistryEvents()%0A%7B%0AXDRRaw%0A%20%7C%20mv-expand%20Raw.records%0A%20%7C%20project%20Properties%3DRaw_records.properties%2C%20Category%3DRaw_records.category%0A%20%7C%20where%20Category%20%3D%3D%20%22AdvancedHunting-DeviceRegistryEvents%22%0A%20%7C%20project%0ATenantId%20%3D%20tostring(Properties.TenantId)%2CActionType%20%3D%20tostring(Properties.ActionType)%2CAppGuardContainerId%20%3D%20tostring(Properties.AppGuardContainerId)%2CDeviceId%20%3D%20tostring(Properties.DeviceId)%2CDeviceName%20%3D%20tostring(Properties.DeviceName)%2CInitiatingProcessAccountDomain%20%3D%20tostring(Properties.InitiatingProcessAccountDomain)%2CInitiatingProcessAccountName%20%3D%20tostring(Properties.InitiatingProcessAccountName)%2CInitiatingProcessAccountObjectId%20%3D%20tostring(Properties.InitiatingProcessAccountObjectId)%2CInitiatingProcessAccountSid%20%3D%20tostring(Properties.InitiatingProcessAccountSid)%2CInitiatingProcessAccountUpn%20%3D%20tostring(Properties.InitiatingProcessAccountUpn)%2CInitiatingProcessCommandLine%20%3D%20tostring(Properties.InitiatingProcessCommandLine)%2CInitiatingProcessFileName%20%3D%20tostring(Properties.InitiatingProcessFileName)%2CInitiatingProcessFolderPath%20%3D%20tostring(Properties.InitiatingProcessFolderPath)%2CInitiatingProcessId%20%3D%20tostring(Properties.InitiatingProcessId)%2CInitiatingProcessIntegrityLevel%20%3D%20tostring(Properties.InitiatingProcessIntegrityLevel)%2CInitiatingProcessMD5%20%3D%20tostring(Properties.InitiatingProcessMD5)%2CInitiatingProcessParentFileName%20%3D%20tostring(Properties.InitiatingProcessParentFileName)%2CInitiatingProcessParentId%20%3D%20tostring(Properties.InitiatingProcessParentId)%2CInitiatingProcessSHA1%20%3D%20tostring(Properties.InitiatingProcessSHA1)%2CInitiatingProcessSHA256%20%3D%20tostring(Properties.InitiatingProcessSHA256)%2CInitiatingProcessTokenElevation%20%3D%20tostring(Properties.InitiatingProcessTokenElevation)%2CMachineGroup%20%3D%20tostring(Properties.MachineGroup)%2CPreviousRegistryKey%20%3D%20tostring(Properties.PreviousRegistryKey)%2CPreviousRegistryValueData%20%3D%20tostring(Properties.PreviousRegistryValueData)%2CPreviousRegistryValueName%20%3D%20tostring(Properties.PreviousRegistryValueName)%2CRegistryKey%20%3D%20tostring(Properties.RegistryKey)%2CRegistryValueData%20%3D%20tostring(Properties.RegistryValueData)%2CRegistryValueName%20%3D%20tostring(Properties.RegistryValueName)%2CRegistryValueType%20%3D%20tostring(Properties.RegistryValueType)%2CReportId%20%3D%20tostring(Properties.ReportId)%2CTimeGenerated%20%3D%20todatetime(Properties.Timestamp)%2CTimestamp%20%3D%20todatetime(Properties.Timestamp)%2CInitiatingProcessParentCreationTime%20%3D%20todatetime(Properties.InitiatingProcessParentCreationTime)%2CInitiatingProcessCreationTime%20%3D%20todatetime(Properties.InitiatingProcessCreationTime)%2CSourceSystem%20%3D%20tostring(Properties.SourceSystem)%2CType%20%3D%20tostring(Properties.Type)%0A%7D%0A%0A%2F%2Fcreate%20table%0A.set-or-append%20DeviceRegistryEvents%20%26lt%3B%7C%20XDRFilterDeviceRegistryEvents()%0A%0A%2F%2FSet%20to%20autoupdate%20%0A.alter%20table%20DeviceRegistryEvents%20policy%20update%20%0A%40'%5B%7B%22IsEnabled%22%3A%20true%2C%20%22Source%22%3A%20%22XDRRaw%22%2C%20%22Query%22%3A%20%22XDRFilterDeviceRegistryEvents()%22%2C%20%22IsTransactional%22%3A%20true%2C%20%22PropagateIngestionProperties%22%3A%20true%7D%5D'%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EDeviceImageLoadEvents%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3E%2F%2FCreate%20the%20parsing%20function%0A.create%20function%20with%20(docstring%20%3D%20%22Filters%20data%20for%20DeviceImageLoadEvents%20for%20ingestion%20from%20XDRRaw%22%2C%20folder%20%3D%20%22UpdatePolicies%22)%20XDRFilterDeviceImageLoadEvents()%0A%7B%0AXDRRaw%0A%20%7C%20mv-expand%20Raw.records%0A%20%7C%20project%20Properties%3DRaw_records.properties%2C%20Category%3DRaw_records.category%20%0A%20%7C%20where%20Category%20%3D%3D%20%22AdvancedHunting-DeviceImageLoadEvents%22%0A%20%7C%20project%0ATenantId%20%3D%20tostring(Properties.TenantId)%2CActionType%20%3D%20tostring(Properties.ActionType)%2CAppGuardContainerId%20%3D%20tostring(Properties.AppGuardContainerId)%2CDeviceId%20%3D%20tostring(Properties.DeviceId)%2CDeviceName%20%3D%20tostring(Properties.DeviceName)%2CFileName%20%3D%20tostring(Properties.FileName)%2CFolderPath%20%3D%20tostring(Properties.FolderPath)%2CInitiatingProcessAccountDomain%20%3D%20tostring(Properties.InitiatingProcessAccountDomain)%2CInitiatingProcessAccountName%20%3D%20tostring(Properties.InitiatingProcessAccountName)%2CInitiatingProcessAccountObjectId%20%3D%20tostring(Properties.InitiatingProcessAccountObjectId)%2CInitiatingProcessAccountSid%20%3D%20tostring(Properties.InitiatingProcessAccountSid)%2CInitiatingProcessAccountUpn%20%3D%20tostring(Properties.InitiatingProcessAccountUpn)%2CInitiatingProcessCommandLine%20%3D%20tostring(Properties.InitiatingProcessCommandLine)%2CInitiatingProcessFileName%20%3D%20tostring(Properties.InitiatingProcessFileName)%2CInitiatingProcessFolderPath%20%3D%20tostring(Properties.InitiatingProcessFolderPath)%2CInitiatingProcessId%20%3D%20tostring(Properties.InitiatingProcessId)%2CInitiatingProcessIntegrityLevel%20%3D%20tostring(Properties.InitiatingProcessIntegrityLevel)%2CInitiatingProcessMD5%20%3D%20tostring(Properties.InitiatingProcessMD5)%2CInitiatingProcessParentFileName%20%3D%20tostring(Properties.InitiatingProcessParentFileName)%2CInitiatingProcessParentId%20%3D%20tostring(Properties.InitiatingProcessParentId)%2CInitiatingProcessSHA1%20%3D%20tostring(Properties.InitiatingProcessSHA1)%2CInitiatingProcessSHA256%20%3D%20tostring(Properties.InitiatingProcessSHA256)%2CInitiatingProcessTokenElevation%20%3D%20tostring(Properties.InitiatingProcessTokenElevation)%2CMD5%20%3D%20tostring(Properties.MD5)%2CMachineGroup%20%3D%20tostring(Properties.MachineGroup)%2CReportId%20%3D%20tostring(Properties.ReportId)%2CSHA1%20%3D%20tostring(Properties.SHA1)%2CSHA256%20%3D%20tostring(Properties.SHA256)%2CTimeGenerated%20%3D%20todatetime(Properties.Timestamp)%2CTimestamp%20%3D%20todatetime(Properties.Timestamp)%2CInitiatingProcessParentCreationTime%20%3D%20todatetime(Properties.InitiatingProcessParentCreationTime)%2CInitiatingProcessCreationTime%20%3D%20todatetime(Properties.InitiatingProcessCreationTime)%2CSourceSystem%20%3D%20tostring(Properties.SourceSystem)%2CType%20%3D%20tostring(Properties.Type)%0A%7D%0A%0A%2F%2Fcreate%20table%0A.set-or-append%20DeviceImageLoadEvents%20%26lt%3B%7C%20XDRFilterDeviceImageLoadEvents()%0A%0A%2F%2FSet%20to%20autoupdate%20%0A.alter%20table%20DeviceImageLoadEvents%20policy%20update%20%0A%40'%5B%7B%22IsEnabled%22%3A%20true%2C%20%22Source%22%3A%20%22XDRRaw%22%2C%20%22Query%22%3A%20%22XDRFilterDeviceImageLoadEvents()%22%2C%20%22IsTransactional%22%3A%20true%2C%20%22PropagateIngestionProperties%22%3A%20true%7D%5D'%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EDeviceNetworkInfo%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3E%2F%2FCreate%20the%20parsing%20function%0A.create%20function%20with%20(docstring%20%3D%20%22Filters%20data%20for%20DeviceNetworkInfo%20for%20ingestion%20from%20XDRRaw%22%2C%20folder%20%3D%20%22UpdatePolicies%22)%20XDRFilterDeviceNetworkInfo()%0A%7B%0AXDRRaw%0A%20%7C%20mv-expand%20Raw.records%0A%20%7C%20project%20Properties%3DRaw_records.properties%2C%20Category%3DRaw_records.category%0A%20%7C%20where%20Category%20%3D%3D%20%22AdvancedHunting-DeviceNetworkInfo%22%0A%20%7C%20project%0ATenantId%20%3D%20tostring(Properties.TenantId)%2CConnectedNetworks%20%3D%20tostring(Properties.ConnectedNetworks)%2CDefaultGateways%20%3D%20tostring(Properties.DefaultGateways)%2CDeviceId%20%3D%20tostring(Properties.DeviceId)%2CDeviceName%20%3D%20tostring(Properties.DeviceName)%2CDnsAddresses%20%3D%20tostring(Properties.DnsAddresses)%2CIPAddresses%20%3D%20tostring(Properties.IPAddresses)%2CIPv4Dhcp%20%3D%20tostring(Properties.IPv4Dhcp)%2CIPv6Dhcp%20%3D%20tostring(Properties.IPv6Dhcp)%2CMacAddress%20%3D%20tostring(Properties.MacAddress)%2CMachineGroup%20%3D%20tostring(Properties.MachineGroup)%2CNetworkAdapterName%20%3D%20tostring(Properties.NetworkAdapterName)%2CNetworkAdapterStatus%20%3D%20tostring(Properties.NetworkAdapterStatus)%2CNetworkAdapterType%20%3D%20tostring(Properties.NetworkAdapterType)%2CReportId%20%3D%20tostring(Properties.ReportId)%2CTimeGenerated%20%3D%20todatetime(Properties.Timestamp)%2CTimestamp%20%3D%20todatetime(Properties.Timestamp)%2CTunnelType%20%3D%20tostring(Properties.TunnelType)%2CSourceSystem%20%3D%20tostring(Properties.SourceSystem)%2CType%20%3D%20tostring(Properties.Type)%0A%7D%0A%0A%2F%2Fcreate%20table%0A.set-or-append%20DeviceNetworkInfo%20%26lt%3B%7C%20XDRFilterDeviceNetworkInfo()%0A%0A%2F%2FSet%20to%20autoupdate%0A.alter%20table%20DeviceNetworkInfo%20policy%20update%20%0A%40'%5B%7B%22IsEnabled%22%3A%20true%2C%20%22Source%22%3A%20%22XDRRaw%22%2C%20%22Query%22%3A%20%22XDRFilterDeviceNetworkInfo()%22%2C%20%22IsTransactional%22%3A%20true%2C%20%22PropagateIngestionProperties%22%3A%20true%7D%5D'%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EDeviceProcessEvents%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3E%2F%2FCreate%20the%20parsing%20function%0A.create%20function%20with%20(docstring%20%3D%20%22Filters%20data%20for%20DeviceProcessEvents%20for%20ingestion%20from%20XDRRaw%22%2C%20folder%20%3D%20%22UpdatePolicies%22)%20XDRFilterDeviceProcessEvents()%0A%7B%0AXDRRaw%0A%20%7C%20mv-expand%20Raw.records%0A%20%7C%20project%20Properties%3DRaw_records.properties%2C%20Category%3DRaw_records.category%0A%20%7C%20where%20Category%20%3D%3D%20%22AdvancedHunting-DeviceProcessEvents%22%0A%20%7C%20project%0ATenantId%20%3D%20tostring(Properties.TenantId)%2CAccountDomain%20%3D%20tostring(Properties.AccountDomain)%2CAccountName%20%3D%20tostring(Properties.AccountName)%2CAccountObjectId%20%3D%20tostring(Properties.AccountObjectId)%2CAccountSid%20%3D%20tostring(Properties.AccountSid)%2CAccountUpn%3D%20tostring(Properties.AccountUpn)%2CActionType%20%3D%20tostring(Properties.ActionType)%2CAdditionalFields%20%3D%20tostring(Properties.AdditionalFields)%2CAppGuardContainerId%20%3D%20tostring(Properties.AppGuardContainerId)%2CDeviceId%20%3D%20tostring(Properties.DeviceId)%2CDeviceName%20%3D%20tostring(Properties.DeviceName)%2CFileName%20%3D%20tostring(Properties.FileName)%2CFolderPath%20%3D%20tostring(Properties.FolderPath)%2CInitiatingProcessAccountDomain%20%3D%20tostring(Properties.InitiatingProcessAccountDomain)%2CInitiatingProcessAccountName%20%3D%20tostring(Properties.InitiatingProcessAccountName)%2CInitiatingProcessAccountObjectId%20%3D%20tostring(Properties.InitiatingProcessAccountObjectId)%2CInitiatingProcessAccountSid%20%3D%20tostring(Properties.InitiatingProcessAccountSid)%2CInitiatingProcessAccountUpn%20%3D%20tostring(Properties.InitiatingProcessAccountUpn)%2CInitiatingProcessCommandLine%20%3D%20tostring(Properties.InitiatingProcessCommandLine)%2CInitiatingProcessFileName%20%3D%20tostring(Properties.InitiatingProcessFileName)%2CInitiatingProcessFolderPath%20%3D%20tostring(Properties.InitiatingProcessFolderPath)%2CInitiatingProcessId%20%3D%20tostring(Properties.InitiatingProcessId)%2CInitiatingProcessIntegrityLevel%20%3D%20tostring(Properties.InitiatingProcessIntegrityLevel)%2CInitiatingProcessLogonId%20%3D%20tostring(Properties.InitiatingProcessLogonId)%2CInitiatingProcessMD5%20%3D%20tostring(Properties.InitiatingProcessMD5)%2CInitiatingProcessParentFileName%20%3D%20tostring(Properties.InitiatingProcessParentFileName)%2CInitiatingProcessParentId%20%3D%20tostring(Properties.InitiatingProcessParentId)%2CInitiatingProcessSHA1%20%3D%20tostring(Properties.InitiatingProcessSHA1)%2CInitiatingProcessSHA256%20%3D%20tostring(Properties.InitiatingProcessSHA256)%2CInitiatingProcessTokenElevation%20%3D%20tostring(Properties.InitiatingProcessTokenElevation)%2CLogonId%20%3D%20tostring(Properties.LogonId)%2CMD5%20%3D%20tostring(Properties.MD5)%2CMachineGroup%20%3D%20tostring(Properties.MachineGroup)%2CProcessCommandLine%20%3D%20tostring(Properties.ProcessCommandLine)%2CProcessCreationTime%20%3D%20todatetime(Properties.ProcessCreationTime)%2CProcessId%20%3D%20tostring(Properties.ProcessId)%2CProcessIntegrityLevel%20%3D%20tostring(Properties.ProcessIntegrityLevel)%2CProcessTokenElevation%20%3D%20tostring(Properties.ProcessTokenElevation)%2CReportId%20%3D%20tostring(Properties.ReportId)%2CSHA1%20%3D%20tostring(Properties.SHA1)%2CSHA256%20%3D%20tostring(Properties.SHA256)%2CTimeGenerated%20%3D%20todatetime(Properties.Timestamp)%2CTimestamp%20%3D%20todatetime(Properties.Timestamp)%2CInitiatingProcessParentCreationTime%20%3D%20todatetime(Properties.InitiatingProcessParentCreationTime)%2CInitiatingProcessCreationTime%20%3D%20todatetime(Properties.InitiatingProcessCreationTime)%2CSourceSystem%20%3D%20tostring(Properties.SourceSystem)%2CType%20%3D%20tostring(Properties.Type)%0A%7D%0A%0A%2F%2Fcreate%20table%0A.set-or-append%20DeviceProcessEvents%20%26lt%3B%7C%20XDRFilterDeviceProcessEvents()%0A%0A%2F%2FSet%20to%20autoupdate%0A.alter%20table%20DeviceProcessEvents%20policy%20update%20%0A%40'%5B%7B%22IsEnabled%22%3A%20true%2C%20%22Source%22%3A%20%22XDRRaw%22%2C%20%22Query%22%3A%20%22XDRFilterDeviceProcessEvents()%22%2C%20%22IsTransactional%22%3A%20true%2C%20%22PropagateIngestionProperties%22%3A%20true%7D%5D'%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EDeviceFileCertificateInfo%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3E%2F%2FCreate%20the%20parsing%20function%0A.create%20function%20with%20(docstring%20%3D%20%22Filters%20data%20for%20DeviceFileCertificateInfo%20for%20ingestion%20from%20XDRRaw%22%2C%20folder%20%3D%20%22UpdatePolicies%22)%20XDRFilterDeviceFileCertificateInfo()%0A%7B%0AXDRRaw%0A%20%7C%20mv-expand%20Raw.records%0A%20%7C%20project%20Properties%3DRaw_records.properties%2C%20Category%3DRaw_records.category%0A%20%7C%20where%20Category%20%3D%3D%20%22AdvancedHunting-DeviceFileCertificateInfo%22%0A%20%7C%20project%0ATenantId%20%3D%20tostring(Properties.TenantId)%2CCertificateSerialNumber%20%3D%20tostring(Properties.CertificateSerialNumber)%2CCrlDistributionPointUrls%20%3D%20tostring(Properties.CrlDistributionPointUrls)%2CDeviceId%20%3D%20tostring(Properties.DeviceId)%2CDeviceName%20%3D%20tostring(Properties.DeviceName)%2CIsRootSignerMicrosoft%20%3D%20tostring(Properties.IsRootSignerMicrosoft)%2CIsSigned%20%3D%20tostring(Properties.IsSigned)%2CIsTrusted%20%3D%20tostring(Properties.IsTrusted)%2CIssuer%20%3D%20tostring(Properties.Issuer)%2CIssuerHash%20%3D%20tostring(Properties.IssuerHash)%2CMachineGroup%20%3D%20tostring(Properties.MachineGroup)%2CReportId%20%3D%20tostring(Properties.ReportId)%2CSHA1%20%3D%20tostring(Properties.SHA1)%2CSignatureType%20%3D%20tostring(Properties.SignatureType)%2CSigner%20%3D%20tostring(Properties.Signer)%2CSignerHash%20%3D%20tostring(Properties.SignerHash)%2CTimeGenerated%20%3D%20todatetime(Properties.Timestamp)%2CTimestamp%20%3D%20todatetime(Properties.Timestamp)%2CCertificateCountersignatureTime%20%3D%20todatetime(Properties.CertificateCountersignatureTime)%2CCertificateCreationTime%20%3D%20todatetime(Properties.CertificateCreationTime)%2CCertificateExpirationTime%20%3D%20todatetime(Properties.CertificateExpirationTime)%2CSourceSystem%20%3D%20tostring(Properties.SourceSystem)%2CType%20%3D%20tostring(Properties.Type)%0A%7D%0A%0A%2F%2Fcreate%20table%0A.set-or-append%20DeviceFileCertificateInfo%20%26lt%3B%7C%20XDRFilterDeviceFileCertificateInfo()%0A%0A%2F%2FSet%20to%20autoupdate%0A.alter%20table%20DeviceFileCertificateInfo%20policy%20update%20%0A%40'%5B%7B%22IsEnabled%22%3A%20true%2C%20%22Source%22%3A%20%22XDRRaw%22%2C%20%22Query%22%3A%20%22XDRFilterDeviceFileCertificateInfo()%22%2C%20%22IsTransactional%22%3A%20true%2C%20%22PropagateIngestionProperties%22%3A%20true%7D%5D'%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EDeviceInfo%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3E%2F%2FCreate%20the%20parsing%20function%0A.create%20function%20with%20(docstring%20%3D%20%22Filters%20data%20for%20DeviceInfo%20for%20ingestion%20from%20XDRRaw%22%2C%20folder%20%3D%20%22UpdatePolicies%22)%20XDRFilterDeviceInfo()%0A%7B%0AXDRRaw%0A%20%7C%20mv-expand%20Raw.records%0A%20%7C%20project%20Properties%3DRaw_records.properties%2C%20Category%3DRaw_records.category%0A%20%7C%20where%20Category%20%3D%3D%20%22AdvancedHunting-DeviceInfo%22%0A%20%7C%20project%0ATenantId%20%3D%20tostring(Properties.TenantId)%2CAdditionalFields%20%3D%20tostring(Properties.AdditionalFields)%2CClientVersion%20%3D%20tostring(Properties.ClientVersion)%2CDeviceId%20%3D%20tostring(Properties.DeviceId)%2CDeviceName%20%3D%20tostring(Properties.DeviceName)%2CDeviceObjectId%3D%20tostring(Properties.DeviceObjectId)%2CIsAzureADJoined%20%3D%20tostring(Properties.IsAzureADJoined)%2CLoggedOnUsers%20%3D%20tostring(Properties.LoggedOnUsers)%2CMachineGroup%20%3D%20tostring(Properties.MachineGroup)%2COSArchitecture%20%3D%20tostring(Properties.OSArchitecture)%2COSBuild%20%3D%20tostring(Properties.OSBuild)%2COSPlatform%20%3D%20tostring(Properties.OSPlatform)%2COSVersion%20%3D%20tostring(Properties.OSVersion)%2CPublicIP%20%3D%20tostring(Properties.PublicIP)%2CRegistryDeviceTag%20%3D%20tostring(Properties.RegistryDeviceTag)%2CReportId%20%3D%20tostring(Properties.ReportId)%2CTimeGenerated%20%3D%20todatetime(Properties.Timestamp)%2CSourceSystem%20%3D%20tostring(Properties.SourceSystem)%2CType%20%3D%20tostring(Properties.Type)%0A%7D%0A%0A%2F%2Fcreate%20table%0A.set-or-append%20DeviceInfo%20%26lt%3B%7C%20XDRFilterDeviceInfo()%0A%0A%2F%2FSet%20to%20autoupdate%0A.alter%20table%20DeviceInfo%20policy%20update%20%0A%40'%5B%7B%22IsEnabled%22%3A%20true%2C%20%22Source%22%3A%20%22XDRRaw%22%2C%20%22Query%22%3A%20%22XDRFilterDeviceInfo()%22%2C%20%22IsTransactional%22%3A%20true%2C%20%22PropagateIngestionProperties%22%3A%20true%7D%5D'%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EDeviceNetworkEvents%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3E%2F%2FCreate%20the%20parsing%20function%0A.create%20function%20with%20(docstring%20%3D%20%22Filters%20data%20for%20DeviceNetworkEvents%20for%20ingestion%20from%20XDRRaw%22%2C%20folder%20%3D%20%22UpdatePolicies%22)%20XDRFilterDeviceNetworkEvents()%0A%7B%0AXDRRaw%0A%20%7C%20mv-expand%20Raw.records%0A%20%7C%20project%20Properties%3DRaw_records.properties%2C%20Category%3DRaw_records.category%0A%20%7C%20where%20Category%20%3D%3D%20%22AdvancedHunting-DeviceNetworkEvents%22%0A%20%7C%20project%0ATenantId%20%3D%20tostring(Properties.TenantId)%2CActionType%20%3D%20tostring(Properties.ActionType)%2CAdditionalFields%20%3D%20tostring(Properties.AdditionalFields)%2CAppGuardContainerId%20%3D%20tostring(Properties.AppGuardContainerId)%2CDeviceId%20%3D%20tostring(Properties.DeviceId)%2CDeviceName%20%3D%20tostring(Properties.DeviceName)%2CInitiatingProcessAccountDomain%20%3D%20tostring(Properties.InitiatingProcessAccountDomain)%2CInitiatingProcessAccountName%20%3D%20tostring(Properties.InitiatingProcessAccountName)%2CInitiatingProcessAccountObjectId%20%3D%20tostring(Properties.InitiatingProcessAccountObjectId)%2CInitiatingProcessAccountSid%20%3D%20tostring(Properties.InitiatingProcessAccountSid)%2CInitiatingProcessAccountUpn%20%3D%20tostring(Properties.InitiatingProcessAccountUpn)%2CInitiatingProcessCommandLine%3D%20tostring(Properties.InitiatingProcessCommandLine)%2CInitiatingProcessFileName%20%3D%20tostring(Properties.InitiatingProcessFileName)%2CInitiatingProcessFolderPath%20%3D%20tostring(Properties.InitiatingProcessFolderPath)%2CInitiatingProcessId%20%3D%20tostring(Properties.InitiatingProcessId)%2CInitiatingProcessIntegrityLevel%20%3D%20tostring(Properties.InitiatingProcessIntegrityLevel)%2CInitiatingProcessMD5%20%3D%20tostring(Properties.InitiatingProcessMD5)%2CInitiatingProcessParentFileName%20%3D%20tostring(Properties.InitiatingProcessParentFileName)%2CInitiatingProcessParentId%20%3D%20tostring(Properties.InitiatingProcessParentId)%2CInitiatingProcessSHA1%20%3D%20tostring(Properties.InitiatingProcessSHA1)%2CInitiatingProcessSHA256%20%3D%20tostring(Properties.InitiatingProcessSHA256)%2CInitiatingProcessTokenElevation%20%3D%20tostring(Properties.InitiatingProcessTokenElevation)%2CLocalIP%20%3D%20tostring(Properties.LocalIP)%2CLocalIPType%20%3D%20tostring(Properties.LocalIPType)%2CLocalPort%20%3D%20tostring(Properties.LocalPort)%2CMachineGroup%20%3D%20tostring(Properties.MachineGroup)%2CProtocol%20%3D%20tostring(Properties.Protocol)%2CRemoteIP%20%3D%20tostring(Properties.RemoteIP)%2CRemoteIPType%20%3D%20tostring(Properties.RemoteIPType)%2CRemotePort%20%3D%20tostring(Properties.RemotePort)%2CRemoteUrl%20%3D%20tostring(Properties.RemoteUrl)%2CReportId%20%3D%20tostring(Properties.ReportId)%2CTimeGenerated%20%3D%20todatetime(Properties.Timestamp)%2CTimestamp%20%3D%20todatetime(Properties.Timestamp)%2CInitiatingProcessParentCreationTime%20%3D%20todatetime(Properties.InitiatingProcessParentCreationTime)%2CInitiatingProcessCreationTime%20%3D%20todatetime(Properties.InitiatingProcessCreationTime)%2CSourceSystem%20%3D%20tostring(Properties.SourceSystem)%2CType%20%3D%20tostring(Properties.Type)%0A%7D%0A%0A%2F%2Fcreate%20table%0A.set-or-append%20DeviceNetworkEvents%20%26lt%3B%7C%20XDRFilterDeviceNetworkEvents()%0A%0A%2F%2FSet%20to%20autoupdate%0A.alter%20table%20DeviceNetworkEvents%20policy%20update%20%0A%40'%5B%7B%22IsEnabled%22%3A%20true%2C%20%22Source%22%3A%20%22XDRRaw%22%2C%20%22Query%22%3A%20%22XDRFilterDeviceNetworkEvents()%22%2C%20%22IsTransactional%22%3A%20true%2C%20%22PropagateIngestionProperties%22%3A%20true%7D%5D'%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--225645636%22%20id%3D%22toc-hId--226388548%22%3EStep%205%3A%26nbsp%3B%20Review%20Benefits%3C%2FH3%3E%0A%3CP%3EWith%20data%20flowing%20through%2C%20select%20any%20device%20query%20from%20the%20security.microsoft.com%2Fsecuritycenter.windows.com%20portal%20and%20run%20it%2C%20%E2%80%9Cword%20for%20word%E2%80%9D%20in%20the%20ADX%20portal.%26nbsp%3B%20As%20an%20example%2C%20the%20following%20query%20shows%20devices%20creating%20a%20PNP%20device%20call%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3EDeviceEvents%0A%7C%20where%20ActionType%20%3D%3D%20%22PnpDeviceConnected%22%0A%7C%20extend%20parsed%3Dparse_json(AdditionalFields)%0A%7C%20project%20className%3Dparsed.ClassName%2C%20description%3Dparsed.DeviceDescription%2C%20parsed.DeviceId%2C%20DeviceName%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20addition%20to%20being%20to%20reuse%20queries%2C%20if%20you%20are%20also%20using%20Azure%20Sentinel%20and%20have%20Microsoft%20365%20Defender%2FMicrosoft%20Defender%20for%20Endpoint%20data%20connected%2C%20try%20the%20following%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ENavigate%20to%20your%20ADX%20cluster%20and%20get%20copy%20the%20scope.%26nbsp%3B%20It%20will%20be%20formatted%20as%20%3CCLUSTERNAME%3E.%3CREGION%3E%2F%3CDATABASENAME%3E%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22adxscope.png%22%20style%3D%22width%3A%20455px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F278584i30ED5C267A8A5EC4%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22adxscope.png%22%20alt%3D%22Retrieve%20the%20ADX%20scope%20for%20external%20use%20from%20Azure%20Sentinel.%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3ERetrieve%20the%20ADX%20scope%20for%20external%20use%20from%20Azure%20Sentinel.%3C%2FSPAN%3E%3C%2FSPAN%3E%3CEM%3E%3CSTRONG%3ENOTE%3A%3C%2FSTRONG%3E%26nbsp%3B%20Unlike%20queries%20in%20Microsoft%20365%20Defender%2FMicrosoft%20Defender%20for%20Endpoint%20and%20Sentinel%2FLog%20Analytics%2C%20queries%20in%20ADX%20do%20NOT%20have%20a%20default%20time%20filter.%26nbsp%3B%20Queries%20run%20without%20filters%20will%20query%20the%20entire%20database%20and%20likely%20impact%20performance.%3C%2FEM%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FDATABASENAME%3E%3C%2FREGION%3E%3C%2FCLUSTERNAME%3E%3C%2FLI%3E%0A%3CLI%3ENavigate%20to%20an%20Azure%20Sentinel%20instance%20and%20place%20the%20query%20together%20with%20the%20adx()%20operator%3A%3CBR%20%2F%3E%3CPRE%20class%3D%22lia-code-sample%20language-basic%22%3E%3CCODE%3Eadx(%22%23%23%23ADXSCOPE%23%23%23%22).DeviceEvents%0A%7C%20where%20ActionType%20%3D%3D%20%22PnpDeviceConnected%22%0A%7C%20extend%20parsed%3Dparse_json(AdditionalFields)%0A%7C%20project%20className%3Dparsed.ClassName%2C%20description%3Dparsed.DeviceDescription%2C%20parsed.DeviceId%2C%20DeviceName%0A%E2%80%8B%3C%2FCODE%3E%3C%2FPRE%3EFor%20example%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22sample.png%22%20style%3D%22width%3A%20626px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F278586iCC7E6302439B4B98%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22sample.png%22%20alt%3D%22sample.png%22%20%2F%3E%3C%2FSPAN%3E%3CP%3E%3CEM%3E%26nbsp%3B%3CSTRONG%3ENOTE%3A%3C%2FSTRONG%3E%26nbsp%3B%20As%20the%20ADX%20operator%20is%20external%2C%20auto-complete%20will%20not%20work.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FEM%3E%3C%2FP%3E%0A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3ENotice%20the%20query%20will%20complete%20completely%20but%20not%20with%20Azure%20Sentinel%20resources%20but%20rather%20the%20resources%20in%20ADX!%26nbsp%3B%20(This%20operator%20is%20not%20available%20in%20Analytics%20rules%20though)%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--236148740%22%20id%3D%22toc-hId--236891652%22%3ESummary%3C%2FH2%3E%0A%3CP%3EUsing%20the%20Microsoft%20365%20Defender%2FMicrosoft%20Defender%20for%20Endpoint%20streaming%20API%20and%20Azure%20Data%20Explorer%20(ADX)%2C%20teams%20can%20very%20easily%20achieve%20terrific%20scalability%20on%20long%20term%2C%20investigative%20hunting%2C%20and%20forensics.%26nbsp%3B%20Cost%20continues%20to%20be%20another%20key%20benefit%20as%20well%20as%20the%20ability%20to%20reuse%20IP%2Fqueries.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20organizations%20looking%20to%20expand%20their%20EDR%20signal%20and%20do%20auto%20correlation%20with%203%3CSUP%3Erd%3C%2FSUP%3E%20party%20data%20sources%2C%20consider%20leveraging%20Azure%20Sentinel%2C%20where%20there%20are%20a%20number%20of%201%3CSUP%3Est%3C%2FSUP%3E%20and%203%3CSUP%3Erd%3C%2FSUP%3E%20party%20data%20connectors%20which%20enable%20rich%20context%20to%20added%20to%20existing%20Microsoft%20365%20Defender%2FMicrosoft%20Defender%20for%20Endpoint%20data.%26nbsp%3B%20An%20example%20of%20these%20enhancements%20can%20be%20found%20at%20%3CA%20href%3D%22https%3A%2F%2Faka.ms%2FSentinelFusion%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Faka.ms%2FSentinelFusion%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAdditional%20information%20and%20references%3A%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EMore%20information%20about%20continuous%20export%20and%20how%20to%20move%20data%20from%20Azure%20Sentinel%20to%20ADX%20written%20by%20the%20amazing%20Javier%20Soriano%20(and%20the%20catalyst%20for%20this%20post)%3A%26nbsp%3B%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-sentinel%2Fusing-azure-data-explorer-for-long-term-retention-of-azure%2Fba-p%2F1883947%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-sentinel%2Fusing-azure-data-explorer-for-long-term-retention-of-azure%2Fba-p%2F1883947%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3EAn%20earlier%20perspective%20on%20moving%20data%20from%20XDE%2FMicrosoft%20Defender%20for%20Endpoint%20(Microsoft%20Defender%20ATP%20at%20the%20time)%20to%20Azure%20Data%20Explorer%20written%20by%20a%20great%20PM%20(Deepak%20Agrawal)%20and%20the%20inspiration%20for%20this%20post%3A%26nbsp%3B%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-data-explorer%2Fhow-to-stream-microsoft-defender-atp-hunting-logs-in-azure-data%2Fba-p%2F1427888%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-data-explorer%2Fhow-to-stream-microsoft-defender-atp-hunting-logs-in-azure-data%2Fba-p%2F1427888%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3ESpecial%20thanks%20to%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F357654%22%20target%3D%22_blank%22%3E%40Beth_Bischoff%3C%2FA%3E%2C%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F508015%22%20target%3D%22_blank%22%3E%40PriscilaViana%3C%2FA%3E%2C%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F66621%22%20target%3D%22_blank%22%3E%40Javier%20Soriano%3C%2FA%3E%2C%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F187816%22%20target%3D%22_blank%22%3E%40Deepak%20Agrawal%3C%2FA%3E%2C%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F175545%22%20target%3D%22_blank%22%3E%40Uri%20Barash%3C%2FA%3E%2C%20and%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F46360%22%20target%3D%22_blank%22%3E%40Steve%20Newby%3C%2FA%3E%20for%20their%20insights%20and%20time%20into%20this%20post.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2328705%22%20slang%3D%22en-US%22%3E%3CP%3ELeverage%20the%20power%20of%20Azure%20Data%20Explorer%20(ADX)%20to%20extend%20your%20Microsoft%20365%20Defender%20(XDR)%20%2F%20Microsoft%20Defender%20For%20Endpoint%20advanced%20hunting%20data%20for%20as%20long%20as%20you%20want%20(10%20years!).%26nbsp%3B%20If%20you%20enjoy%20rewriting%20queries%20just%20to%20look%20through%20old%20data%20and%20spending%20time%20and%20money%20rehydrating%20it%2C%20this%20post%20isn't%20for%20you!%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2328705%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Data%20Explorer%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20Sentinel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20365%20Defender%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Defender%20for%20Endpoint%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESecurity%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EXDR%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎May 12 2021 07:07 AM
Updated by: