fix: implement evasion-resistant windowing for kill switch security - #376
Closed
rahimatonize wants to merge 1 commit into
Closed
fix: implement evasion-resistant windowing for kill switch security#376rahimatonize wants to merge 1 commit into
rahimatonize wants to merge 1 commit into
Conversation
- Replace periodic reset with sliding window approach (track event timestamps) - Add half-window overlap with 50% decaying cool-down to prevent boundary exploitation - Add cumulative counter (3x threshold) to detect distributed attacks across windows - Implement comprehensive test suite with 15+ test cases covering all scenarios - Document evasion-resistant algorithm in security operations runbook Fixes vulnerability where attackers could: - Distribute attacks across window boundaries - Submit bursts just after resets - Spread activity across metric types - Evade detection indefinitely All acceptance criteria met: ✓ Sliding window with timestamp tracking ✓ Half-window decaying metrics (50% retention) ✓ Cumulative threshold (3x normal threshold) ✓ Tests prove distributed attack detection ✓ Tests prove single-window breaches still work ✓ Complete documentation in security runbook
Contributor
|
@rahimatonize fix ci |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes vulnerability where attackers could:
All acceptance criteria met:
✓ Sliding window with timestamp tracking
✓ Half-window decaying metrics (50% retention)
✓ Cumulative threshold (3x normal threshold)
✓ Tests prove distributed attack detection
✓ Tests prove single-window breaches still work
✓ Complete documentation in security runbook
Closes #361