<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Sharing various xql queries in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/sharing-various-xql-queries/m-p/542008#M4334</link>
    <description>&lt;P&gt;New Service creation on server devices, makes a good BIOC&lt;/P&gt;
&lt;P&gt;Filter out reoccurring services&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dataset = xdr_data &lt;BR /&gt;| filter action_evtlog_event_id = 7045&lt;BR /&gt;| alter ServiceName = arrayindex(regextract(action_evtlog_message , "Service Name:(\s\s.*)"),0)&lt;BR /&gt;| alter ServiceFileName = arrayindex(regextract(action_evtlog_message , "Service File Name:(\s\s.*)"),0)&lt;BR /&gt;| alter ServiceType = arrayindex(regextract(action_evtlog_message , "Service Type:(\s\s.*)"),0)&lt;BR /&gt;| alter ServiceStartType = arrayindex(regextract(action_evtlog_message , "Service Start Type:(\s\s.*)"),0)&lt;BR /&gt;| alter ServiceAccount = arrayindex(regextract(action_evtlog_message , "Service Account:(\s\s.*)"),0)&lt;BR /&gt;| fields agent_hostname, ServiceName, ServiceName, ServiceStartType, ServiceAccount, ServiceType, ServiceFileName, action_evtlog_message, agent_ip_addresses, action_evtlog_username, action_evtlog_description, action_evtlog_data_fields,agent_os_type, agent_os_sub_type &lt;BR /&gt;| filter agent_os_sub_type contains "Server"&lt;/P&gt;</description>
    <pubDate>Fri, 12 May 2023 14:40:09 GMT</pubDate>
    <dc:creator>NathanBradley</dc:creator>
    <dc:date>2023-05-12T14:40:09Z</dc:date>
    <item>
      <title>Sharing various xql queries</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/sharing-various-xql-queries/m-p/542007#M4333</link>
      <description>&lt;P&gt;This returns dns queries filtered by the domain name given in the variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;config case_sensitive = false &lt;BR /&gt;| preset = network_story &lt;BR /&gt;| filter (dns_resolutions != null) &lt;BR /&gt;| arrayexpand dns_resolutions &lt;BR /&gt;| alter Resolution_Value = dns_resolutions -&amp;gt; value{}, Resolution_Name = dns_resolutions -&amp;gt; name{}&lt;BR /&gt;| fields agent_hostname, actor_process_image_name, actor_process_image_path, actor_process_command_line, Resolution_Name, Resolution_Value, dns_query_type, dns_resolutions&lt;BR /&gt;| filter Resolution_Name contains $domain&lt;BR /&gt;| sort desc _time&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 14:38:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/sharing-various-xql-queries/m-p/542007#M4333</guid>
      <dc:creator>NathanBradley</dc:creator>
      <dc:date>2023-05-12T14:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sharing various xql queries</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/sharing-various-xql-queries/m-p/542008#M4334</link>
      <description>&lt;P&gt;New Service creation on server devices, makes a good BIOC&lt;/P&gt;
&lt;P&gt;Filter out reoccurring services&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dataset = xdr_data &lt;BR /&gt;| filter action_evtlog_event_id = 7045&lt;BR /&gt;| alter ServiceName = arrayindex(regextract(action_evtlog_message , "Service Name:(\s\s.*)"),0)&lt;BR /&gt;| alter ServiceFileName = arrayindex(regextract(action_evtlog_message , "Service File Name:(\s\s.*)"),0)&lt;BR /&gt;| alter ServiceType = arrayindex(regextract(action_evtlog_message , "Service Type:(\s\s.*)"),0)&lt;BR /&gt;| alter ServiceStartType = arrayindex(regextract(action_evtlog_message , "Service Start Type:(\s\s.*)"),0)&lt;BR /&gt;| alter ServiceAccount = arrayindex(regextract(action_evtlog_message , "Service Account:(\s\s.*)"),0)&lt;BR /&gt;| fields agent_hostname, ServiceName, ServiceName, ServiceStartType, ServiceAccount, ServiceType, ServiceFileName, action_evtlog_message, agent_ip_addresses, action_evtlog_username, action_evtlog_description, action_evtlog_data_fields,agent_os_type, agent_os_sub_type &lt;BR /&gt;| filter agent_os_sub_type contains "Server"&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 14:40:09 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/sharing-various-xql-queries/m-p/542008#M4334</guid>
      <dc:creator>NathanBradley</dc:creator>
      <dc:date>2023-05-12T14:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sharing various xql queries</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/sharing-various-xql-queries/m-p/542009#M4335</link>
      <description>&lt;P&gt;Files created on USB mass storage&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dataset = xdr_data&amp;nbsp;&lt;BR /&gt;| filter event_type = ENUM.FILE and event_sub_type = ENUM.FILE_CREATE_NEW&amp;nbsp;&lt;BR /&gt;| alter Drive_Type = json_extract(to_json_string(action_file_device_info),"$.storage_device_drive_type"), Filesystem = json_extract_scalar(to_json_string(action_file_device_info),"$.storage_device_filesystem"), Drive_Letter = json_extract_scalar(to_json_string(action_file_device_info),"$.storage_device_mount_point"), Device_Serial_Number = json_extract_scalar(to_json_string(action_file_device_info),"$.storage_device_serial_number")&amp;nbsp;&lt;BR /&gt;| filter drive_type = "2"&lt;BR /&gt;| fields action_file_path as File_Path, actor_effective_username as Username, Filesystem, Drive_Letter, Device_Serial_Number&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 14:42:30 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/sharing-various-xql-queries/m-p/542009#M4335</guid>
      <dc:creator>NathanBradley</dc:creator>
      <dc:date>2023-05-12T14:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sharing various xql queries</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/sharing-various-xql-queries/m-p/542010#M4336</link>
      <description>&lt;P&gt;Applications, filter by name needed&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;config case_sensitive = false timeframe=1d &lt;BR /&gt;| dataset = host_inventory &lt;BR /&gt;| filter applications != null&lt;BR /&gt;| arrayexpand applications&lt;BR /&gt;| alter applicationname=json_extract(applications, "$.application_name")&lt;BR /&gt;| alter applicationversion=json_extract(applications, "$.version")&lt;BR /&gt;| alter appvendor=json_extract(applications, "$.vendor")&lt;BR /&gt;| alter installdate=json_extract(applications, "$.install_date")&lt;BR /&gt;| filter applicationname contains "Edge"&lt;BR /&gt;| fields host_name, applicationname, applicationversion, appvendor, installdate, system_type, product_type, ip_addresses&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 14:47:25 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/sharing-various-xql-queries/m-p/542010#M4336</guid>
      <dc:creator>NathanBradley</dc:creator>
      <dc:date>2023-05-12T14:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sharing various xql queries</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/sharing-various-xql-queries/m-p/542011#M4337</link>
      <description>&lt;P&gt;Bioc for when a new usb mass storage device is connected to an endpoint&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;preset = xdr_registry &lt;BR /&gt;| filter (action_registry_key_name contains "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\USBSTOR\Enum" and event_sub_type = REGISTRY_CREATE_KEY)&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 14:49:41 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/sharing-various-xql-queries/m-p/542011#M4337</guid>
      <dc:creator>NathanBradley</dc:creator>
      <dc:date>2023-05-12T14:49:41Z</dc:date>
    </item>
  </channel>
</rss>

