<?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 BIOC Rule Through XQL vs Builder in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/bioc-rule-through-xql-vs-builder/m-p/1224444#M8108</link>
    <description>&lt;P&gt;Here is my BIOC Rule using XQL.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dataset = xdr_data &lt;BR /&gt;| filter event_type = ENUM.FILE &lt;BR /&gt;| filter agent_hostname = "XXXXX"&lt;BR /&gt;| filter action_file_path = "D:\XX\YY\*"&lt;BR /&gt;| filter event_sub_type = ENUM.FILE_RENAME OR event_sub_type = ENUM.FILE_REMOVE OR event_sub_type = ENUM.FILE_WRITE&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I now get 12 alerts in the BIOC Rule&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I use Query Builder for BIOC,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="entity"&gt;File &lt;/SPAN&gt;&lt;SPAN class="brackets"&gt; [ &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="attribute"&gt;action type&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="operator"&gt; = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="value"&gt;rename&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="connector"&gt;, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="value"&gt;delete&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="connector"&gt;, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="value"&gt;write&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="connector"&gt; AND &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="attribute"&gt;file path&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="operator"&gt; = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="value"&gt;D:\XX\YY\*&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="brackets"&gt;&amp;nbsp;] &lt;/SPAN&gt;&lt;SPAN class="entity-connector"&gt; AND &lt;/SPAN&gt;&lt;SPAN class="entity"&gt;Host &lt;/SPAN&gt;&lt;SPAN class="brackets"&gt; [ &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="attribute"&gt;host name&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="operator"&gt; = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="value"&gt;XXXXX&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="brackets"&gt; ] &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I now get only 3 alerts in the BIOC Rule, all of which are present in the previous list of alerts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to understand what is the difference in these 2 rules. As far as my eyes can see, they are the exact same rule.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Mar 2025 12:04:47 GMT</pubDate>
    <dc:creator>VarunPitale</dc:creator>
    <dc:date>2025-03-21T12:04:47Z</dc:date>
    <item>
      <title>BIOC Rule Through XQL vs Builder</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/bioc-rule-through-xql-vs-builder/m-p/1224444#M8108</link>
      <description>&lt;P&gt;Here is my BIOC Rule using XQL.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dataset = xdr_data &lt;BR /&gt;| filter event_type = ENUM.FILE &lt;BR /&gt;| filter agent_hostname = "XXXXX"&lt;BR /&gt;| filter action_file_path = "D:\XX\YY\*"&lt;BR /&gt;| filter event_sub_type = ENUM.FILE_RENAME OR event_sub_type = ENUM.FILE_REMOVE OR event_sub_type = ENUM.FILE_WRITE&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I now get 12 alerts in the BIOC Rule&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I use Query Builder for BIOC,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="entity"&gt;File &lt;/SPAN&gt;&lt;SPAN class="brackets"&gt; [ &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="attribute"&gt;action type&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="operator"&gt; = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="value"&gt;rename&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="connector"&gt;, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="value"&gt;delete&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="connector"&gt;, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="value"&gt;write&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="connector"&gt; AND &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="attribute"&gt;file path&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="operator"&gt; = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="value"&gt;D:\XX\YY\*&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="brackets"&gt;&amp;nbsp;] &lt;/SPAN&gt;&lt;SPAN class="entity-connector"&gt; AND &lt;/SPAN&gt;&lt;SPAN class="entity"&gt;Host &lt;/SPAN&gt;&lt;SPAN class="brackets"&gt; [ &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="attribute"&gt;host name&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="operator"&gt; = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="value"&gt;XXXXX&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="brackets"&gt; ] &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I now get only 3 alerts in the BIOC Rule, all of which are present in the previous list of alerts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to understand what is the difference in these 2 rules. As far as my eyes can see, they are the exact same rule.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 12:04:47 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/bioc-rule-through-xql-vs-builder/m-p/1224444#M8108</guid>
      <dc:creator>VarunPitale</dc:creator>
      <dc:date>2025-03-21T12:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: BIOC Rule Through XQL vs Builder</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/bioc-rule-through-xql-vs-builder/m-p/1224883#M8134</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/504446757"&gt;@VarunPitale&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The difference in alert counts between your XQL BIOC rule and Query Builder BIOC rule could be due to logical differences&lt;BR /&gt;Below query may not be interpreted correctly because OR might need explicit grouping.&lt;BR /&gt;| filter event_sub_type = ENUM.FILE_RENAME OR event_sub_type = ENUM.FILE_REMOVE OR event_sub_type = ENUM.FILE_WRITE&lt;BR /&gt;Better way to write it:&lt;BR /&gt;| filter event_sub_type in (ENUM.FILE_RENAME, ENUM.FILE_REMOVE, ENUM.FILE_WRITE)&lt;BR /&gt;In Query Builder, the conditions are structured differently&lt;/P&gt;
&lt;P&gt;There can be other reasons &lt;BR /&gt;Implicit Filtering in Query Builder&lt;BR /&gt;Query Builder might automatically exclude:&lt;/P&gt;
&lt;P&gt;Events that are not categorized under action type = rename, delete, write&lt;/P&gt;
&lt;P&gt;Temporary or system-initiated file modifications&lt;/P&gt;
&lt;P&gt;Duplicates or less relevant system events&lt;/P&gt;
&lt;P&gt;XQL, on the other hand, may not have these implicit exclusions, leading to higher alert counts.&lt;BR /&gt;Differences in Event Processing&lt;BR /&gt;Some events might be grouped or deduplicated in Query Builder, reducing the alert count.&lt;/P&gt;
&lt;P&gt;Query Builder may not consider certain system-generated file operations, whereas XQL pulls raw data.&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 like and&amp;nbsp; on "mark this as a Solution". Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 05:24:38 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/bioc-rule-through-xql-vs-builder/m-p/1224883#M8134</guid>
      <dc:creator>aspatil</dc:creator>
      <dc:date>2025-03-27T05:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: BIOC Rule Through XQL vs Builder</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/bioc-rule-through-xql-vs-builder/m-p/1225554#M8177</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/308232"&gt;@aspatil&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried your solution and am still seeing the same. I tried this on a separate folder. Actions performed were&lt;/P&gt;
&lt;P&gt;1. Create a new txt file.&lt;/P&gt;
&lt;P&gt;2. Rename it&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Rename it again&lt;/P&gt;
&lt;P&gt;4. Delete it.&lt;/P&gt;
&lt;P&gt;In Query results, I got 4 results.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Created BIOC Rule and saved it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While testing BIOC rule, I got 4 results&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Checking the alerts, only 1 alert was generated.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 08:30:04 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/bioc-rule-through-xql-vs-builder/m-p/1225554#M8177</guid>
      <dc:creator>VarunPitale</dc:creator>
      <dc:date>2025-04-03T08:30:04Z</dc:date>
    </item>
  </channel>
</rss>

