<?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: Please help with,  Cortex XDR query to efficiently filter incidents with high and medium severity with artifact. in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/please-help-with-cortex-xdr-query-to-efficiently-filter/m-p/579626#M6285</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/593283889"&gt;@Prashanta&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks for reaching out on LiveCommunity!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can use below example as the template, explore the dataset fields and modify the query as per your requirement.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;dataset = incidents&lt;BR /&gt;| fields creation_time , incident_id , name , assigned_user , alert_sources , severity , status&lt;BR /&gt;|filter severity in(ENUM.CRITICAL ,ENUM.HIGH ,ENUM.MEDIUM )&lt;BR /&gt;| join type = inner (dataset = incidents_artifacts | fields incident_id , artifact_id , artifact_type , file_sha256 , file_wildfire_verdict , network_remote_ip ) as inid inid.incident_id = incident_id&lt;BR /&gt;| join type = inner (dataset = incidents_assets | fields incident_id , hostname , os , username ) as inid inid.incident_id = incident_id&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you feel this has answered your query, please let us know by clicking on "mark this as a Solution". Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2024 11:11:43 GMT</pubDate>
    <dc:creator>aspatil</dc:creator>
    <dc:date>2024-03-07T11:11:43Z</dc:date>
    <item>
      <title>Please help with,  Cortex XDR query to efficiently filter incidents with high and medium severity with artifact.</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/please-help-with-cortex-xdr-query-to-efficiently-filter/m-p/579257#M6246</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Family ,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please provide a Cortex XDR&amp;nbsp; query to efficiently filter incidents with high and medium severity,&lt;STRONG&gt; including artifacts&lt;/STRONG&gt;, dates, endpoint names, and IP addresses.&lt;BR /&gt;&lt;BR /&gt;&lt;LI-PRODUCT title="Cortex XDR" id="Cortex_XDR"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;regards&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 03:11:04 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/please-help-with-cortex-xdr-query-to-efficiently-filter/m-p/579257#M6246</guid>
      <dc:creator>Prashanta</dc:creator>
      <dc:date>2024-03-06T03:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with,  Cortex XDR query to efficiently filter incidents with high and medium severity with artifact.</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/please-help-with-cortex-xdr-query-to-efficiently-filter/m-p/579626#M6285</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/593283889"&gt;@Prashanta&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks for reaching out on LiveCommunity!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can use below example as the template, explore the dataset fields and modify the query as per your requirement.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;dataset = incidents&lt;BR /&gt;| fields creation_time , incident_id , name , assigned_user , alert_sources , severity , status&lt;BR /&gt;|filter severity in(ENUM.CRITICAL ,ENUM.HIGH ,ENUM.MEDIUM )&lt;BR /&gt;| join type = inner (dataset = incidents_artifacts | fields incident_id , artifact_id , artifact_type , file_sha256 , file_wildfire_verdict , network_remote_ip ) as inid inid.incident_id = incident_id&lt;BR /&gt;| join type = inner (dataset = incidents_assets | fields incident_id , hostname , os , username ) as inid inid.incident_id = incident_id&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you feel this has answered your query, please let us know by clicking on "mark this as a Solution". Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 11:11:43 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/please-help-with-cortex-xdr-query-to-efficiently-filter/m-p/579626#M6285</guid>
      <dc:creator>aspatil</dc:creator>
      <dc:date>2024-03-07T11:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with,  Cortex XDR query to efficiently filter incidents with high and medium severity with artifact.</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/please-help-with-cortex-xdr-query-to-efficiently-filter/m-p/579630#M6286</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/593283889"&gt;@Prashanta&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Greetings!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for writing to live community!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since the alert and incidents are two different datasets comprising different fields, we need to have develop XQL query to join the common fields and stages associated to these two datasets to have values appended as per the join strategies. Though we also have two other datasets incidents_artifacts and incidents_assets, it would still not contain the initiator and data associated to alerts context&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Cortex XDR XQL has a join stage which can be used for this purpose.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since the idea is to view the artefacts associated to alerts like initiators and processes and other parameters in the alert fields, a sample query can be used as below. Please note that this will list all the incidents and their associated alert artifacts for the alerts which will group into incidents only. You can add as many available fields you would want as per your choice and filter stages as per the severity of incident or alert as you like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;dataset = incidents 
| fields creation_time , alert_count , alert_sources , description ,score, alert_categories , severity , status ,  mitre_tactics_id_and_name , incident_id 
| join type = inner (dataset = alerts | filter severity in (ENUM.CRITICAL , ENUM.HIGH , ENUM.LOW , ENUM.MEDIUM )| fields alert_source ,alert_name, host_name , host_ip , user_name , initiated_by , initiator_path , initiator_cmd , initiator_sha256 ,target_process_name , target_process_cmd , target_process_sha256 , severity , category ,os_parent_user_name , module, mitre_attack_tactic , event_timestamp , _time , resolution_status , incident_id  ) as panw incident_id = panw.incident_id &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please mark the response as "Accept as Solution" if it answers your query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 12:33:44 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/please-help-with-cortex-xdr-query-to-efficiently-filter/m-p/579630#M6286</guid>
      <dc:creator>neelrohit</dc:creator>
      <dc:date>2024-03-07T12:33:44Z</dc:date>
    </item>
  </channel>
</rss>

