Elastalert correlation rules capability lacking
Hi,
I'm trying to use 'Elastalaert' for correlation capability, but so far I'm unable to find a true way to get it done. This feature is must , If i want to do built siem capability which cannot exist without correlation.
Use cases e.g
- An example could be finding 100 failed login events, followed by a successful logon from the same IP address
- when none of these rules match in this many minutes after these rules match with same event properties
- if seven authentication attempts to the same computer fail from the same IP address within ten minutes and use different user names, and if a successful login occurs on any computer within the network and originates from that same IP address, they trigger an alert.
- trigger an alert if more than ten files of specific types are copied to USB drives or sent as email attachments to non-company domains.
- A user VPNs to the network from a new location for the first time, then accesses a shared file system.
Elastalert in my view works great in single alert scenario, but for correlation, I have correlate multiple alerts as output alert , mapping common keys as a condition e.g username, IP for trigger conditions.
There is some hope, but as discussed in below link its not guaranteed to work and has to do lot of workarounds to meet the requirements of the correlation rule. https://github.com/Yelp/elastalert/issues/1108
But it doesn't give a standard way of doing it or a more reliable way I can say. Does the elastalert team have plan to upgrade or make this feature as a more prominent way. Looking for suggestions and guidance. Thanks.
+1
I think this will be a hard work to make it possible. This way ElastAlert will be a serious competitor to paying SIEM with real correlation engine as RSA SA, QRadar, SureLog...
@Qmando Could you give us your opinion on this ?
Looks like elastic has come up with a way to do this with Event Query Language (EQL). Maybe elastalert will expand to support this new query language. That would be cool.
Hi, I am facing the following problem while correlating 3 rules with cardinality rule. My situation is the following: I want the R4 (cardinality) to trigger when R1, R2 and R3 occur. It works perfectly when the 3 of them are triggering, but if one of them stops, R4 still triggers for the other 2. I don't know how to force that only triggers only if the 3 rules are occurring, someone knows how to fix it?
Here my R4-cardinality rule:
type: cardinality
cardinality_field: rule_name
max_cardinality: 1
index: elastalert_status
timeframe:
# hours: 1
minutes: 3
aggregation:
minutes: 2
filter:
- terms:
rule_name: [r2_1_redmov, r2_2_wifi, r2_3_ids]
Thank you very much!
Solved in #3116