Optimize brute-force detection using a sliding window

Aperta
#16 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
security

Direzione di ricerca

Start with detection/rules/brute_force.py and trace how authentication failures are ordered, grouped by account, and used to select alert evidence. Check the existing detection tests before changing the scan so the five-event threshold, 60-second boundary, and one-alert-per-account behavior stay clear. Add boundary and unsorted-input tests, then compare the current and revised approaches on reproducible synthetic data; done means the criteria pass and existing detection tests still pass.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement help wanted python

Problem

The brute-force detection rule repeatedly scans the remaining authentication failures for each possible starting event.

This can result in quadratic processing complexity for large event collections.

Relevant File

detection/rules/brute_force.py

Suggested Implementation

Investigate a sliding-window or two-pointer approach to reduce repeated scanning.

Acceptance Criteria

  • Avoid repeatedly scanning the remaining event collection.
  • Preserve the existing five-event threshold.
  • Preserve the existing 60-second window semantics.
  • Preserve alert structure and evidence selection.
  • Preserve the existing one-alert-per-account behavior.
  • Add tests for window boundaries and unsorted input.
  • Demonstrate the improvement using reproducible synthetic data.
  • Existing detection tests continue to pass.
Lingua principale
Python
Stelle
1
Fork
3
Merge medio
47m
PR unite (30g)
4

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di hrittijab/SecureOps

Tutte le issue di hrittijab/SecureOps

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.