<?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 Rule to detect change in file extensions over a given period in a single system in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/rule-to-detect-change-in-file-extensions-over-a-given-period-in/m-p/581040#M6363</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We want to write a logic to detect if there have been X number of file renames in Y time for a particular system&lt;/P&gt;
&lt;P&gt;Please let me know what is the way to achieve the same ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Mar 2024 13:19:24 GMT</pubDate>
    <dc:creator>meanmach</dc:creator>
    <dc:date>2024-03-20T13:19:24Z</dc:date>
    <item>
      <title>Rule to detect change in file extensions over a given period in a single system</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/rule-to-detect-change-in-file-extensions-over-a-given-period-in/m-p/581040#M6363</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We want to write a logic to detect if there have been X number of file renames in Y time for a particular system&lt;/P&gt;
&lt;P&gt;Please let me know what is the way to achieve the same ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 13:19:24 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/rule-to-detect-change-in-file-extensions-over-a-given-period-in/m-p/581040#M6363</guid>
      <dc:creator>meanmach</dc:creator>
      <dc:date>2024-03-20T13:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Rule to detect change in file extensions over a given period in a single system</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/rule-to-detect-change-in-file-extensions-over-a-given-period-in/m-p/581069#M6367</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/859495873"&gt;@meanmach&lt;/a&gt;, thanks for reaching us using the Live Community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have created this XQL Query to detect the file renames on a determined system, and return a "true" statement if the actions were more than X value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;dataset = xdr_data 
| filter agent_hostname = "YOUR_HOSTNAME"
| filter event_type = ENUM.FILE and event_sub_type = ENUM.FILE_RENAME
| comp count_distinct(action_file_previous_file_name) as File_Count
| alter files_alert = if (File_Count &amp;gt;=50) // Set your threshold&lt;/LI-CODE&gt;
&lt;P&gt;You can save this as a Correlation Rule and then set the timeframe in the correlation execution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With this other XQL Query you can see the details about what files were renamed and which process did it:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;dataset = xdr_data 
| filter agent_hostname = "YOUR_HOSTNAME"
| filter event_type = ENUM.FILE and event_sub_type = ENUM.FILE_RENAME
| fields _time, agent_hostname, agent_ip_addresses, actor_effective_username, actor_process_image_name, actor_process_image_path, actor_process_command_line, actor_process_signature_vendor, action_file_previous_file_name, action_file_name 
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post answers your question, please mark it as the solution.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 14:58:38 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/rule-to-detect-change-in-file-extensions-over-a-given-period-in/m-p/581069#M6367</guid>
      <dc:creator>jmazzeo</dc:creator>
      <dc:date>2024-03-20T14:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Rule to detect change in file extensions over a given period in a single system</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/rule-to-detect-change-in-file-extensions-over-a-given-period-in/m-p/581143#M6370</link>
      <description>&lt;P&gt;Thanks a lot will update you shortly on this&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 05:30:41 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/rule-to-detect-change-in-file-extensions-over-a-given-period-in/m-p/581143#M6370</guid>
      <dc:creator>meanmach</dc:creator>
      <dc:date>2024-03-21T05:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Rule to detect change in file extensions over a given period in a single system</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/rule-to-detect-change-in-file-extensions-over-a-given-period-in/m-p/581311#M6386</link>
      <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/310428"&gt;@jmazzeo&lt;/a&gt; Thanks a lot for the answer provided however i have following doubts&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Will the co relation rule if scheduled to run every 10 mins cause an over head on the systems ?&lt;/LI&gt;
&lt;LI&gt;Will the corellation rule run the query on each system and if a system threshold is crossed will generate an alert ?&lt;/LI&gt;
&lt;LI&gt;can i write a BIOC rule or any detection rule&amp;nbsp; to achieve the same&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Fri, 22 Mar 2024 04:35:15 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/rule-to-detect-change-in-file-extensions-over-a-given-period-in/m-p/581311#M6386</guid>
      <dc:creator>meanmach</dc:creator>
      <dc:date>2024-03-22T04:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Rule to detect change in file extensions over a given period in a single system</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/rule-to-detect-change-in-file-extensions-over-a-given-period-in/m-p/581333#M6390</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/859495873"&gt;@meanmach&lt;/a&gt;, let me help you with the answers:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1- The correlation rules are executed at server side on the XDR Console tenant, there is no impact on the systems.&lt;/P&gt;
&lt;P&gt;2- The correlation rule can be executed to get info from every system, or only the ones you define on the XQL Query using the "| filter agent_hostname = "YOUR_HOSTNAME"" statement. If you want to retrieve the information of all the endpoints you just have to remove that filter.&lt;/P&gt;
&lt;P&gt;3- You can create a BIOC rule too. The BIOC rule can be used to block the source process that is generating the filename changes.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 12:08:21 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/rule-to-detect-change-in-file-extensions-over-a-given-period-in/m-p/581333#M6390</guid>
      <dc:creator>jmazzeo</dc:creator>
      <dc:date>2024-03-22T12:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Rule to detect change in file extensions over a given period in a single system</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/rule-to-detect-change-in-file-extensions-over-a-given-period-in/m-p/581347#M6391</link>
      <description>&lt;P&gt;Thanks a lot for the information.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 13:16:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/rule-to-detect-change-in-file-extensions-over-a-given-period-in/m-p/581347#M6391</guid>
      <dc:creator>meanmach</dc:creator>
      <dc:date>2024-03-22T13:16:12Z</dc:date>
    </item>
  </channel>
</rss>

