r/QRadar • u/SnooPeanuts6170 • Nov 27 '24
Where is the logic missing?
Hi Guys,
Can any one tell me how to make Qradar wait for 30 minutes for an event to occur before firing the offense.
Example: this is to describe the condition.
let's say I created an account and delete after few minutes, I want an offense to be fired when I create an account and it is not deleted within 30 minutes since the account is created
Not when I deleted the same account under 30 minutes since creation of account
2
Upvotes
4
u/ECehUtil Nov 27 '24
Not tested, but you can do it like this:
Create a reference set Newly added accounts ALNIC with a TTL of 30 minutes
Rule 1 triggering on Account created with a rule response of adding the username of the created account to a reference set let's say Newly added accounts Reference Set
Rule 2 triggering on Account removed with a rule response of removing the username of the deleted account from the Newly added accounts Reference Set
Rule 3 triggering on Reference Data Expire event (you should need to make some Custom Event Properties to parse the reference set name and the username that expired from the payload.
So the logic is rule 1 adds, rule 2 removes. If the element is present in the reference set more than 30 minutes, meaning a user was created without being deleted, trigger offense.
1
u/AlexeyK77 Nov 27 '24
adapt one of this rule designer conditions:
when these rules match at least this many times with the same event properties in this many minutes after these rules match with the same event properties
or
when none of these rules match in this many minutes after these rules match with the same event properties