<?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: Query Share: XDR/PAN-OS URL Category Stitched Correlation Alert in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/query-share-xdr-pan-os-url-category-stitched-correlation-alert/m-p/489478#M2024</link>
    <description>&lt;P&gt;Thank you for your contribution!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 May 2022 05:35:27 GMT</pubDate>
    <dc:creator>rtsedaka</dc:creator>
    <dc:date>2022-05-23T05:35:27Z</dc:date>
    <item>
      <title>Query Share: XDR/PAN-OS URL Category Stitched Correlation Alert</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/query-share-xdr-pan-os-url-category-stitched-correlation-alert/m-p/487459#M2001</link>
      <description>&lt;P&gt;Wanted to share a useful XQL query we have setup as a correlation rule in case anyone else finds it beneficial. This query requires that you have PAN-OS firewall URL logs available within XDR datasets, for example being sent to Cortex Data Lake. The query will return all hits from the firewall on a specific URL category, and then check to see if any local XDR agents have logs which also include the same URL/Source/Destination.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it detects there's local agent logs to match the firewall URL data, the correlation alert will be created which includes the source process which initiated that traffic (i.e. chrome.exe). If no agent data is found which matches the firewall URL category hit, for example if it's an IoT device with no agent installed, an alert will still be generated due to it being a right join statement:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dataset=xdr_data | fields action_remote_ip as Destination, action_local_ip as Source, user_id, actor_process_image_name, action_external_hostname as Domain, _time as XDRTime, actor_process_image_command_line, actor_process_image_sha256, user_id, agent_hostname, action_external_port, actor_process_image_path&lt;BR /&gt;|join type = right&lt;BR /&gt;(dataset = panw_ngfw_url_raw | filter url_category contains "command-and-control" | fields _time as Time, url_category as Category, source_ip as Source, users as Username, uri as NGFWURL, referer as Referer, technology_of_app as App, user_agent as UserAgent, dest_ip as Destination, url_domain as Domain) as corellation Source = corellation.Source and Destination = corellation.Destination and Domain = corellation.Domain&lt;BR /&gt;| dedup Source, NGFWURL&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 14:05:16 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/query-share-xdr-pan-os-url-category-stitched-correlation-alert/m-p/487459#M2001</guid>
      <dc:creator>ZachIvins</dc:creator>
      <dc:date>2022-05-16T14:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Query Share: XDR/PAN-OS URL Category Stitched Correlation Alert</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/query-share-xdr-pan-os-url-category-stitched-correlation-alert/m-p/489478#M2024</link>
      <description>&lt;P&gt;Thank you for your contribution!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 05:35:27 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/query-share-xdr-pan-os-url-category-stitched-correlation-alert/m-p/489478#M2024</guid>
      <dc:creator>rtsedaka</dc:creator>
      <dc:date>2022-05-23T05:35:27Z</dc:date>
    </item>
  </channel>
</rss>

