BIOC Rule Through XQL vs Builder

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

BIOC Rule Through XQL vs Builder

L1 Bithead

Here is my BIOC Rule using XQL. 

dataset = xdr_data
| filter event_type = ENUM.FILE
| filter agent_hostname = "XXXXX"
| filter action_file_path = "D:\XX\YY\*"
| filter event_sub_type = ENUM.FILE_RENAME OR event_sub_type = ENUM.FILE_REMOVE OR event_sub_type = ENUM.FILE_WRITE

 

I now get 12 alerts in the BIOC Rule

 

 

If I use Query Builder for BIOC, 

File [ action type = rename, delete, write AND file path = D:\XX\YY\* ] AND Host [ host name = XXXXX ]

I now get only 3 alerts in the BIOC Rule, all of which are present in the previous list of alerts.

 

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. 

 

 

1 REPLY 1

L5 Sessionator

Hello @VarunPitale ,

 

The difference in alert counts between your XQL BIOC rule and Query Builder BIOC rule could be due to logical differences
Below query may not be interpreted correctly because OR might need explicit grouping.
| filter event_sub_type = ENUM.FILE_RENAME OR event_sub_type = ENUM.FILE_REMOVE OR event_sub_type = ENUM.FILE_WRITE
Better way to write it:
| filter event_sub_type in (ENUM.FILE_RENAME, ENUM.FILE_REMOVE, ENUM.FILE_WRITE)
In Query Builder, the conditions are structured differently

There can be other reasons
Implicit Filtering in Query Builder
Query Builder might automatically exclude:

Events that are not categorized under action type = rename, delete, write

Temporary or system-initiated file modifications

Duplicates or less relevant system events

XQL, on the other hand, may not have these implicit exclusions, leading to higher alert counts.
Differences in Event Processing
Some events might be grouped or deduplicated in Query Builder, reducing the alert count.

Query Builder may not consider certain system-generated file operations, whereas XQL pulls raw data.

 

If you feel this has answered your query, please let us know by clicking like and  on "mark this as a Solution". Thank you.

Ashutosh Patil
  • 148 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!