Optimize brute-force detection using a sliding window

Abierto
#16 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
1-2 días
Aptitud para principiantes
55/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
security

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Python
Estrellas
1
Forks
3
Merge medio
47 min
PR fusionados (30 d)
4

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de hrittijab/SecureOps

Todos los issues de hrittijab/SecureOps

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.