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

Allow a detection to define how many alerts occurred #138

Open
chrismsnz opened this issue Apr 27, 2023 · 0 comments
Open

Allow a detection to define how many alerts occurred #138

chrismsnz opened this issue Apr 27, 2023 · 0 comments

Comments

@chrismsnz
Copy link
Contributor

Just dealing with a Google workspace log, this is how it reports 5 failed logins:

...
"events": {
    "name": "login_failure",
    "parameters": [
      {
        "name": "login_type",
        "value": "unknown"
      },
      {
        "multiValue": [
          "password",
          "password",
          "password",
          "password",
          "password"
        ],
        "name": "login_challenge_method"
      }
    ],
    "type": "login"
  },
...

I'd like the detection to be able to be customised to dynamically return (e.g. via a count() function or some such) how many detections have occurred by processing the one log line.

Implementation wise, not sure. run_detection() could return an array of alert data, or create_alert() could create multiple alerts based on a number returned in alert_response. The more efficient way might be to change the threshold logic to respect an "occurrences" number or something in an alert.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant