Optimize brute-force detection using a sliding window

オープン
#16 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
security

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
Python
スター
1
フォーク
3
平均マージ
47分
マージ済み PR(30日)
4

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

hrittijab/SecureOps のほかの issue

hrittijab/SecureOps の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。