<?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: How to search for multiple of the same file hashes across multiple field types? in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/how-to-search-for-multiple-of-the-same-file-hashes-across/m-p/539502#M4201</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/286760"&gt;@DannyKing&lt;/a&gt;&amp;nbsp;&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;Based on your Use Case wherein you would like to search for same hash across different field types, while there could be different ways. One way for example you may try is &lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XSIAM/Cortex-XSIAM-XQL-Language-Reference/Union" target="_self"&gt;Union&lt;/A&gt; stage.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Query for example:&lt;/P&gt;
&lt;P&gt;config case_sensitive = false | preset = xdr_process | filter&amp;nbsp; action_process_image_sha256 = "8200755cbedd6f15eecd8207eba534709a01957b172d7a051b9cc4769ddbf233"&lt;BR /&gt;| union (preset = xdr_file | filter action_file_sha256 = "8200755cbedd6f15eecd8207eba534709a01957b172d7a051b9cc4769ddbf233")&lt;BR /&gt;| union (preset = xdr_image_load | filter action_module_sha256 = "8200755cbedd6f15eecd8207eba534709a01957b172d7a051b9cc4769ddbf233")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&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;&lt;BR /&gt;Regards.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Apr 2023 09:17:58 GMT</pubDate>
    <dc:creator>PiyushKohli</dc:creator>
    <dc:date>2023-04-20T09:17:58Z</dc:date>
    <item>
      <title>How to search for multiple of the same file hashes across multiple field types?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/how-to-search-for-multiple-of-the-same-file-hashes-across/m-p/539429#M4197</link>
      <description>&lt;P&gt;Hello Everyone,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to find a way to search for multiple of the same file hashes across multiple field types, but can't seem to figure it out. I was thinking it could be something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dataset = xdr_data | filter where action_file_sha256 or actor_process_image_sha256 or action_module_sha256 in ("hash1", "hash2")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...but that's not working. I do know that the below type of query works, but it doesn't scale well when you account for the fact that there are many other "sha256" field types:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="TextRun SCXW218718070 BCX9" data-contrast="none"&gt;&lt;SPAN class="NormalTextRun SCXW218718070 BCX9"&gt;dataset = &lt;/SPAN&gt;&lt;SPAN class="NormalTextRun SpellingErrorV2Themed SCXW218718070 BCX9"&gt;xdr_data | filter&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="TextRun Highlight SCXW218718070 BCX9" data-contrast="none"&gt;&lt;SPAN class="NormalTextRun SCXW218718070 BCX9"&gt;action_file_sha256&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="TextRun SCXW218718070 BCX9" data-contrast="none"&gt;&lt;SPAN class="NormalTextRun SCXW218718070 BCX9"&gt; in ("&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="TextRun Highlight SCXW218718070 BCX9" data-contrast="none"&gt;&lt;SPAN class="NormalTextRun SCXW218718070 BCX9"&gt;hash1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="TextRun SCXW218718070 BCX9" data-contrast="none"&gt;&lt;SPAN class="NormalTextRun SCXW218718070 BCX9"&gt;", "&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="TextRun Highlight SCXW218718070 BCX9" data-contrast="none"&gt;&lt;SPAN class="NormalTextRun SCXW218718070 BCX9"&gt;hash2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="TextRun SCXW218718070 BCX9" data-contrast="none"&gt;&lt;SPAN class="NormalTextRun SCXW218718070 BCX9"&gt;") or &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="TextRun Highlight SCXW218718070 BCX9" data-contrast="none"&gt;&lt;SPAN class="NormalTextRun SCXW218718070 BCX9"&gt;action_module_sha256&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="TextRun SCXW218718070 BCX9" data-contrast="none"&gt;&lt;SPAN class="NormalTextRun SCXW218718070 BCX9"&gt; in ("&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="TextRun Highlight SCXW218718070 BCX9" data-contrast="none"&gt;&lt;SPAN class="NormalTextRun SCXW218718070 BCX9"&gt;hash1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="TextRun SCXW218718070 BCX9" data-contrast="none"&gt;&lt;SPAN class="NormalTextRun SCXW218718070 BCX9"&gt;", "&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="TextRun Highlight SCXW218718070 BCX9" data-contrast="none"&gt;&lt;SPAN class="NormalTextRun SCXW218718070 BCX9"&gt;hash2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="TextRun SCXW218718070 BCX9" data-contrast="none"&gt;&lt;SPAN class="NormalTextRun SCXW218718070 BCX9"&gt;") or &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="TextRun Highlight SCXW218718070 BCX9" data-contrast="none"&gt;&lt;SPAN class="NormalTextRun SCXW218718070 BCX9"&gt;action_process_image_sha256&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="TextRun SCXW218718070 BCX9" data-contrast="none"&gt;&lt;SPAN class="NormalTextRun SCXW218718070 BCX9"&gt; in ("&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="TextRun Highlight SCXW218718070 BCX9" data-contrast="none"&gt;&lt;SPAN class="NormalTextRun SCXW218718070 BCX9"&gt;hash1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="TextRun SCXW218718070 BCX9" data-contrast="none"&gt;&lt;SPAN class="NormalTextRun SCXW218718070 BCX9"&gt;", "hash2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="TextRun SCXW218718070 BCX9" data-contrast="none"&gt;&lt;SPAN class="NormalTextRun SCXW218718070 BCX9"&gt;")&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCXW218718070 BCX9" data-ccp-props="{&amp;quot;201341983&amp;quot;:2,&amp;quot;335559685&amp;quot;:720,&amp;quot;335559739&amp;quot;:0,&amp;quot;335559740&amp;quot;:270}"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="EOP SCXW218718070 BCX9" data-ccp-props="{&amp;quot;201341983&amp;quot;:2,&amp;quot;335559685&amp;quot;:720,&amp;quot;335559739&amp;quot;:0,&amp;quot;335559740&amp;quot;:270}"&gt;Any help would be greatly appreciated. Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 23:15:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/how-to-search-for-multiple-of-the-same-file-hashes-across/m-p/539429#M4197</guid>
      <dc:creator>DannyKing</dc:creator>
      <dc:date>2023-04-19T23:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for multiple of the same file hashes across multiple field types?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/how-to-search-for-multiple-of-the-same-file-hashes-across/m-p/539502#M4201</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/286760"&gt;@DannyKing&lt;/a&gt;&amp;nbsp;&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;Based on your Use Case wherein you would like to search for same hash across different field types, while there could be different ways. One way for example you may try is &lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XSIAM/Cortex-XSIAM-XQL-Language-Reference/Union" target="_self"&gt;Union&lt;/A&gt; stage.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Query for example:&lt;/P&gt;
&lt;P&gt;config case_sensitive = false | preset = xdr_process | filter&amp;nbsp; action_process_image_sha256 = "8200755cbedd6f15eecd8207eba534709a01957b172d7a051b9cc4769ddbf233"&lt;BR /&gt;| union (preset = xdr_file | filter action_file_sha256 = "8200755cbedd6f15eecd8207eba534709a01957b172d7a051b9cc4769ddbf233")&lt;BR /&gt;| union (preset = xdr_image_load | filter action_module_sha256 = "8200755cbedd6f15eecd8207eba534709a01957b172d7a051b9cc4769ddbf233")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&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;&lt;BR /&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 09:17:58 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/how-to-search-for-multiple-of-the-same-file-hashes-across/m-p/539502#M4201</guid>
      <dc:creator>PiyushKohli</dc:creator>
      <dc:date>2023-04-20T09:17:58Z</dc:date>
    </item>
  </channel>
</rss>

