There are two ways that come to mind, both use EQL sequences:
Create a building block rule plus a sequence of two events:
First, create a building block rule to look for >= 40 events with event.action: "block".
Then, create an EQL sequence rule that looks for a sequence of your building block alert, followed by authorized:
sequence by source.ip
[ any where rule.name : "your building block rule" and ... ]
[ any where event.action == "authorized" ]
Create a single EQL sequence for everything. You'll want to make it more specific than what I have below, but it's a start.
sequence by source.ipd
[ any where event.action == "block" ] // 1
[ any where event.action == "block" ] // 2
// ...
[ any where event.action == "block" ] // 39
[ any where event.action == "block" ] // 40
[ any where event.action == "authorized" ]
We are actively talking about new syntax to make it easier to write the 40 repetitive terms, so I would expect this to get easier to write in the future.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.