Problem Statement
How would you detect stuffing or spraying in authentication logs?
Explanation
Look for many usernames failing once or twice from the same source or network. Look for a single username failing many times from many sources. Track user agent reuse. Watch for spikes in failures around shift changes or campaigns. Correlate with registration and password reset flows. Add a simple rule that flags the same password guess across many accounts.
Code Solution
SolutionRead Only
Detect: group by src_ip, username, hour; alert on wide but shallow failure pattern
