towerops/config
Graham McIntire 4d73e77f3a
Add 404-based brute force protection system
Implements automated detection and blocking of IPs exhibiting scanning behavior (5+ unique 404s within 1 minute).

Key features:
- Progressive ban escalation (5 min → 1 hour → permanent)
- CIDR range and exact IP whitelisting
- Redis-backed 404 path tracking with 60s TTL
- Cloudflare WAF integration for permanent bans
- Admin UI for whitelist and blocked IP management
- Oban cron jobs for cleanup (expired bans, stale violations)
- ETS caching for whitelist performance

Components:
- Plug: ToweropsWeb.Plugs.BruteForceProtection
- Context: Towerops.Security.BruteForce
- Schemas: IpBlock, IpWhitelist
- Workers: CloudflareBanWorker, ExpiredBanCleanupWorker, StaleViolationCleanupWorker
- Admin UI: /admin/security (superuser only)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-10 16:31:48 -06:00
..
config.exs update hammer 2026-02-08 10:08:31 -06:00
dev.exs Add 404-based brute force protection system 2026-02-10 16:31:48 -06:00
prod.exs fix: suppress repetitive SNMP MIB resolution errors 2026-02-08 14:09:26 -06:00
runtime.exs Add 404-based brute force protection system 2026-02-10 16:31:48 -06:00
test.exs Add CI-triggered mass agent update webhook 2026-02-10 13:40:32 -06:00