- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
06-26-2024 01:03 AM - edited 06-26-2024 06:41 AM
Hello Everyone,
Cortex XDR has the functionality does allows you to use XQL queries to create lookups or datasets.
The problem is that these are static and cannot be dynamically updated for detection rules.
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.
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.
What would be the best way to achieve this goal?
06-26-2024 06:50 AM
Hello,
Right, so I had an idea:
config timeframe between "30d" and "1d"
| dataset = xdr_data
| filter event_type = ENUM.SYSTEM_CALL
| comp values(actor_process_image_name) as Base
| join type= inner (
config timeframe between "1d" and "now"
| dataset = xdr_data
| filter event_type = ENUM.SYSTEM_CALL ) as Rare rare.actor_process_image_name not in(Base)
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.
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.
Do you know how can I match against an array using in?
The query language has so many restrictions 😞
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!