I have a couple of questions about how threat match rules work in Elasticsearch, which I feel the documentation does not cover very well.
The question is about the Custom query parameter, the frequency, and the additional lookback time.
What we care about is retroactive threat hunting. By default, Elasticsearch Security pre-built threat rules use a combination of 1 hour frequency and 5 minutes additional look-back time. The IoCs are filtered to only include those ingested in the last 30 days.
When you use a Custom Query `*:*` in this scenario, will it:
a. Match the documents since the last hour and 5 minutes to the last 30 days of IoCs
b. Match ALL of the documents specified by Index Pattern to the last 30 days of IoCs