<?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 Searching Endpoints in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/searching-endpoints/m-p/462612#M1516</link>
    <description>&lt;P&gt;If I want to search all endpoints for foobar.txt in XQL what would that look like? I've tried to search for the hash&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dataset = endpoints&lt;BR /&gt;| filter sha256() = "90be1c2c0fc5c36b3e10dcd89a8cda61462cb420a043a5759a7e1e3bba3eee38"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The file path and neither seem to pull any results, I received alerts and verified the file was present by remoting in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
    <pubDate>Tue, 01 Feb 2022 20:19:46 GMT</pubDate>
    <dc:creator>AndrewGalvinGH</dc:creator>
    <dc:date>2022-02-01T20:19:46Z</dc:date>
    <item>
      <title>Searching Endpoints</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/searching-endpoints/m-p/462612#M1516</link>
      <description>&lt;P&gt;If I want to search all endpoints for foobar.txt in XQL what would that look like? I've tried to search for the hash&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dataset = endpoints&lt;BR /&gt;| filter sha256() = "90be1c2c0fc5c36b3e10dcd89a8cda61462cb420a043a5759a7e1e3bba3eee38"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The file path and neither seem to pull any results, I received alerts and verified the file was present by remoting in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 20:19:46 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/searching-endpoints/m-p/462612#M1516</guid>
      <dc:creator>AndrewGalvinGH</dc:creator>
      <dc:date>2022-02-01T20:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Searching Endpoints</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/searching-endpoints/m-p/462924#M1521</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/206650"&gt;@AndrewGalvinGH&lt;/a&gt;&amp;nbsp;If you have the host insights add-on, then &lt;SPAN&gt;Search and Destroy can be leveraged dynamically and in real-time with XQL:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Example query:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;file_search = existing_files&lt;BR /&gt;|filter path = "C:\testfile.txt"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="File Search.gif" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/38955i190F945BDED78026/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="File Search.gif" alt="File Search.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Requirements:&amp;nbsp;&lt;BR /&gt;endpoint status = Connected, Disconnected AND agent version &amp;gt;= 7.2.0 AND disabled capabilities doesn’t contain File Search and Destroy AND host insights = Enabled AND platform = Windows) OR (endpoint status = Connected, Disconnected AND agent version &amp;gt;= 7.3.0 AND disabled capabilities doesn’t contain File Search and Destroy AND host insights = Enabled AND platform = macOS AND os version &amp;gt;= 10.15.4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There are two actions to consider here. The&amp;nbsp;&lt;A href="https://docs.paloaltonetworks.com/cortex/cortex-xdr/cortex-xdr-pro-admin/investigation-and-response/response-actions/search-file-and-destroy" target="_blank" rel="noopener noreferrer"&gt;search and destroy&lt;/A&gt;&amp;nbsp;actions can be completed on all endpoints with an XDR agent. In my gif, I am demonstrating the search action on a specific file path, so the query will only return results on endpoints containing the file path in question. If you want to ensure the file in question is completed on all endpoints, then you will want to search and /or destroy on the file hash (e.g. Sha256), because the file could have been modified, moved...etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In addition, the "endpoints" dataset includes information in regards to your endpoint administration. You will want to query in the xdr_data dataset, or you may leverage the applicable presets. Your results are going to vary depending on the file access type. Example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;preset = xdr_file | filter action_file_sha256 = "90be1c2c0fc5c36b3e10dcd89a8cda61462cb420a043a5759a7e1e3bba3eee38" and event_sub_type in (ENUM.FILE_CREATE_NEW, ENUM.FILE_OPEN, ENUM.FILE_RENAME, ENUM.FILE_REMOVE, ENUM.FILE_WRITE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I hope this helps.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 22:29:14 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/searching-endpoints/m-p/462924#M1521</guid>
      <dc:creator>WSeldenIII</dc:creator>
      <dc:date>2022-02-02T22:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Searching Endpoints</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/searching-endpoints/m-p/464301#M1546</link>
      <description>&lt;P&gt;I don't have the file_search option.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 20:16:19 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/searching-endpoints/m-p/464301#M1546</guid>
      <dc:creator>AndrewGalvinGH</dc:creator>
      <dc:date>2022-02-08T20:16:19Z</dc:date>
    </item>
  </channel>
</rss>

