Free security runbook · account security

Credential stuffing: the 401 spike that is not a code bug

A login endpoint starts returning 401s in bursts. The code did not change; real passwords from other breaches are being replayed. The tricky part is telling bots from users behind the same NAT and slowing the attack without locking out the office.

Distributed, low and slow

Each IP stays under the per-IP limit; the pattern only exists across accounts and ASNs.

Valid usernames first

Enumeration requests are cheap; a spike of 401 on existing accounts is the signal.

MFA is the ceiling

It does not stop the attempts, but it stops the takeover. Roll it out to the accounts being targeted.

Do not punish the NAT

A hard per-IP block takes out a whole office. Limit per account and add a soft challenge per IP.

Detect

What to measure

SignalWhy it matters
401 rate by account, not just by IPDistributed attempts share targets, not addresses.
Success rate after failuresA success after a burst is a likely takeover.
ASN / country mixResidential proxies look like users; datacenter ASNs usually do not.
MFA challenge rateRising challenges with falling completions = bots or an MFA fatigue attempt.
Defend

Layers, in order

Breached-password check

Reject known-compromised passwords at signup and reset; it removes the easiest hits.

Per-account delay

Exponential backoff after N failures, with a challenge instead of a permanent lock.

Edge bot management

Challenge suspicious ASNs and headless clients; keep a bypass for real users.

Alert on takeovers

New device + new country + success after failures is the page, not the 401 spike.

Keep going

This page is free. The paid runbooks cover the operational failures around it, with detection commands, five failure modes and a migration checklist.