Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Issue with Timeframe and Aggregation Sigma Rule #1351

Open
givilleneuve opened this issue Oct 14, 2024 · 1 comment
Open

[BUG] Issue with Timeframe and Aggregation Sigma Rule #1351

givilleneuve opened this issue Oct 14, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@givilleneuve
Copy link

What is the bug?
When creating an aggregation rule, multiple findings are being generated based on the entire dataset and not respecting the timeframe or even the detector schedule.

How can one reproduce the bug?
On the Security Analytics, Create the following detection rule - This is just a sample
`id: ZAWpiJIB1M3Z07tGJMhd
logsource:
product: os_windows
title: brute force same ip2
description: brute force same ip
tags:

  • attack.t1078
  • attack.privilege_escalation
    falsepositives: []
    level: high
    status: experimental
    references: []
    author: GV
    detection:
    condition: selection1 | count (*) by source.ip > 4
    selection1:
    event.id:
    • 4625
      timeframe: 15m
      tags:
    • attack.privilege_escalation
    • attack.t1078`

What is the expected behavior?
Whenever there are failed attempt (event.id 4625) by the same IP more than 4 times within 20 minutes, it should trigger the alert.

What is actually happening?
The rule is being triggered every time the detector runs because it is looking for all the documents in the index, and not only for 20 minutes or 5 minutes (current detector scan interval).

What is your host/environment?

  • Version [2.17.0], also tested with 2.17.1
  • Plugins

Do you have any screenshots?
image

Multiple documents - Some of these documents are from 5 hours ago.
image

@givilleneuve givilleneuve added bug Something isn't working untriaged labels Oct 14, 2024
@dblock dblock removed the untriaged label Nov 4, 2024
@dblock
Copy link
Member

dblock commented Nov 4, 2024

[Catch All Triage - 1, 2]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants