Detecting Credential Stuffing With SIEM Correlation Rules
Credential stuffing attacks use stolen username-and-password pairs from previous breaches to access unrelated services. Attackers automate login attempts across customer portals, cloud applications, VPNs, email systems, and administrative interfaces. Because the credentials may be valid, traditional malware and perimeter defenses can miss the activity.
A security information and event management platform can expose these campaigns by correlating authentication events across users, applications, IP addresses, devices, locations, and time windows. Effective detection depends on joining weak signals into a recognizable pattern rather than alerting on every failed login.
The objective is to identify abusive authentication behavior early, reduce false positives, and give analysts enough context to contain compromised accounts without disrupting legitimate users.
Why Credential Stuffing Needs Correlation
A single failed login rarely proves an attack. Users mistype passwords, mobile applications retry requests, and automated integrations can generate unusual authentication patterns. Credential stuffing becomes clearer when many related events occur within a short period.
Useful indicators include one IP attempting numerous usernames, one account receiving attempts from many unrelated networks, repeated failures followed by a successful login, and authentication attempts distributed across several applications. The SIEM should also compare current activity with each user’s normal device, location, time, and access pattern.
Attackers frequently rotate IP addresses, user agents, and hosting providers. Correlation rules should therefore combine multiple attributes instead of relying on a static blocklist. Threat intelligence can add confidence when an address belongs to a known proxy, botnet, malicious ASN, or breached infrastructure provider.
Signals The SIEM Should Collect
Authentication logs are the foundation of detection. Capture login success and failure, username or account identifier, source IP, destination application, timestamp, result code, user agent, device fingerprint, multifactor authentication outcome, and geographic information. Normalize these fields so events from identity providers, VPNs, SaaS platforms, and web applications can be searched together.
Contextual data improves prioritization. Enrich events with asset criticality, privileged-account status, known corporate egress ranges, and threat intelligence reputation. Cloud environments deserve particular attention: an identity attack may coincide with exposed storage, unusual API access, or configuration weaknesses, making a cloud storage audit a useful part of broader exposure analysis.
Retain enough history to establish baselines. Short windows catch automation, while longer comparisons reveal password spraying, low-and-slow campaigns, and repeated attacks against the same customer population.
Build Effective Correlation Logic
A practical rule can detect multiple failed logins against several accounts from one source. For example, trigger when an IP generates at least 20 failures against 10 or more distinct usernames within 10 minutes, excluding approved scanners and corporate NAT gateways. The thresholds should reflect application size and normal traffic rather than being copied unchanged across every environment.
A second rule can identify distributed credential stuffing by grouping events around the targeted account. Alert when one username receives failed authentication attempts from several countries, autonomous systems, or device fingerprints within an hour. A related high-confidence rule should detect a successful login after a burst of failures, especially when the success originates from a new device or unusual location.
| Correlation Pattern |
Strong Signal |
Recommended Context |
| One IP targets many accounts |
High username count and repeated failures |
IP reputation, ASN, user agent |
| One account sees many sources |
Multiple locations or devices |
Travel history, MFA result, account risk |
| Failures followed by success |
Authentication success after rapid failures |
New device, sensitive action, session age |
| Broad application targeting |
Same source touches several login portals |
Shared identity provider, automation indicators |
| Low-and-slow attempts |
Repeated failures below threshold |
Long-term user and source baselines |
Rules should be written with exclusions, suppression, and risk scoring. A known enterprise proxy may serve thousands of employees, while a residential IP may be more suspicious when it targets privileged accounts. Combining several moderate-risk events into one incident prevents analysts from chasing isolated alerts.
Reduce Noise Without Losing Attacks
False positives often come from legitimate password managers, broken integrations, shared networks, and scheduled application jobs. Begin with a detection-only period and review the top alert sources, targeted applications, account types, and time-of-day patterns. Adjust thresholds by service where necessary, while preserving a broad rule for unusual activity.
Use risk-based scoring instead of a single binary trigger. Add points for a high failure-to-success ratio, unfamiliar device, impossible travel, anonymous hosting, multiple targeted accounts, and failed multifactor authentication. Subtract risk for trusted corporate networks, managed devices, and approved automation. Escalate when the combined score crosses a defined threshold.
Testing should use sanitized historical events and controlled simulations. Confirm that the rule groups related events into one incident, preserves the original evidence, and avoids exposing passwords or sensitive personal data in analyst views.
Investigate And Respond Quickly
When an alert fires, analysts should examine the attack scope first. Identify targeted accounts, successful authentications, source infrastructure, affected applications, session tokens, and actions taken after login. Search for password changes, new MFA devices, privilege changes, mailbox rules, API key creation, and access to sensitive records.
Response actions may include forcing password resets, revoking active sessions, requiring step-up authentication, blocking abusive infrastructure, and applying rate limits. Avoid broad IP blocking when attackers use distributed networks or when the source is shared by legitimate customers. Account-level controls and adaptive authentication are usually more precise.
The incident record should preserve event timestamps, correlation results, enrichment data, response actions, and affected identities. This evidence supports threat hunting, regulatory reporting, and post-incident improvements to identity security.
Priorities For A Strong Detection Program
Start with the applications that expose customer, financial, healthcare, administrative, or privileged data. Then map their authentication events into a shared SIEM schema and measure normal login behavior before setting thresholds.
Operational teams can prioritize the following actions:
- Create separate rules for concentrated, distributed, and low-and-slow credential attacks.
- Correlate authentication failures with successful logins, MFA events, and post-login activity.
- Enrich IP addresses, devices, locations, ASNs, and accounts with risk and asset context.
- Tune thresholds by application while excluding approved automation and trusted network ranges.
- Test detections regularly through threat hunting, red-team exercises, and controlled login simulations.
Credential stuffing detection is strongest when SIEM rules work alongside MFA, breached-password screening, bot management, rate limiting, and secure session controls. Monitoring should continue after the initial login because a valid account may be used for data theft, privilege escalation, or persistence.
Infoziant Security can help organizations assess identity controls, develop correlation logic, integrate SIEM monitoring, and investigate suspicious access patterns with continuous security expertise. Request a tailored assessment or explore a trial engagement to strengthen detection before stolen credentials become an active breach.