<?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: Virtual functions/Variables - Creating anomaly based detection rules - XQL in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/virtual-functions-variables-creating-anomaly-based-detection/m-p/590484#M6855</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Right, so I had an idea:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;config timeframe between "30d" and "1d" &lt;BR /&gt;| dataset = xdr_data &lt;BR /&gt;| filter event_type = ENUM.SYSTEM_CALL &lt;BR /&gt;| comp values(actor_process_image_name) as Base &lt;BR /&gt;| join type= inner ( &lt;BR /&gt;config timeframe between "1d" and "now" &lt;BR /&gt;| dataset = xdr_data &lt;BR /&gt;| filter event_type = ENUM.SYSTEM_CALL ) as Rare rare.actor_process_image_name not in(Base)&lt;/PRE&gt;
&lt;P&gt;This should create an array of strings of the original actor processes and look the new data against it and show stuff that in not in the original.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue that i am facing for this is that for some reason the in() operator does not take array strings which is super weird.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you know how can I match against an array using in?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The query language has so many restrictions &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jun 2024 13:50:36 GMT</pubDate>
    <dc:creator>AvesterFahimipour</dc:creator>
    <dc:date>2024-06-26T13:50:36Z</dc:date>
    <item>
      <title>Virtual functions/Variables - Creating anomaly based detection rules - XQL</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/virtual-functions-variables-creating-anomaly-based-detection/m-p/590443#M6850</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cortex XDR has the functionality does allows you to use XQL queries to create lookups or datasets.&lt;/P&gt;
&lt;P&gt;The problem is that these are static and cannot be dynamically updated for detection rules.&lt;BR /&gt;&lt;BR /&gt;The use case I had in mind is that I have two XQL queries the first one looks at events occurring from 30 to 1 day ago.&lt;/P&gt;
&lt;P&gt;The second query looks for events happening in the current day that have not been seen in the first query which is the last 29 days.&lt;BR /&gt;&lt;BR /&gt;What would be the best way to achieve this goal?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 13:41:05 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/virtual-functions-variables-creating-anomaly-based-detection/m-p/590443#M6850</guid>
      <dc:creator>AvesterFahimipour</dc:creator>
      <dc:date>2024-06-26T13:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Virtual functions/Variables - Creating anomaly based detection rules - XQL</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/virtual-functions-variables-creating-anomaly-based-detection/m-p/590484#M6855</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Right, so I had an idea:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;config timeframe between "30d" and "1d" &lt;BR /&gt;| dataset = xdr_data &lt;BR /&gt;| filter event_type = ENUM.SYSTEM_CALL &lt;BR /&gt;| comp values(actor_process_image_name) as Base &lt;BR /&gt;| join type= inner ( &lt;BR /&gt;config timeframe between "1d" and "now" &lt;BR /&gt;| dataset = xdr_data &lt;BR /&gt;| filter event_type = ENUM.SYSTEM_CALL ) as Rare rare.actor_process_image_name not in(Base)&lt;/PRE&gt;
&lt;P&gt;This should create an array of strings of the original actor processes and look the new data against it and show stuff that in not in the original.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue that i am facing for this is that for some reason the in() operator does not take array strings which is super weird.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you know how can I match against an array using in?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The query language has so many restrictions &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 13:50:36 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/virtual-functions-variables-creating-anomaly-based-detection/m-p/590484#M6855</guid>
      <dc:creator>AvesterFahimipour</dc:creator>
      <dc:date>2024-06-26T13:50:36Z</dc:date>
    </item>
  </channel>
</rss>

