hunting-credential-stuffing-attacks

Detects credential stuffing attacks by analyzing authentication logs for velocity and ASN anomalies.

954|172|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/xalgord/xalgorix --skill hunting-credential-stuffing-attacks
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hunting-credential-stuffing-attacks
Source: https://github.com/xalgord/xalgorix/tree/main/internal/tools/skills/data/security-operations/hunting-credential-stuffing-attacks
Command: npx skills add https://github.com/xalgord/xalgorix --skill hunting-credential-stuffing-attacks

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandas.

What problem does it solve?

Credential stuffing campaigns are hard to distinguish from normal login traffic, and naive velocity rules miss low-and-slow attacks while generating false positives from corporate NATs and VPNs. This Skill provides structured detection logic and statistical analysis to surface account takeover attempts in authentication logs.

Core Features & Use Cases

  • Login Velocity Analysis: Identifies accounts targeted by many unique source IPs using pandas groupby operations on failed login events.
  • Password Spray Detection: Detects single passwords tried across many accounts by grouping on source IP and password hash.
  • ASN and Geographic Analysis: Flags ASN concentration from cloud/proxy providers and geographic impossibility patterns.
  • Use Case: A SOC analyst investigating a spike in failed logins loads auth logs into a DataFrame, runs the provided detection queries, and identifies 200 accounts under attack from a distributed botnet with a 0.5% success rate.

Quick Start

Analyze my authentication logs CSV for credential stuffing patterns including IP diversity per account, password spray attempts, and suspicious ASN concentration.

Frequently Asked Questions about hunting-credential-stuffing-attacks

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect credential stuffing in authentication logs?

Group failed login events by username and count unique source IPs per account; accounts with more than 50 distinct IPs indicate stuffing. Also check for low global success rates under 1% across many accounts and ASN concentration from cloud or proxy providers.

How to detect password spray attacks with pandas?

Group failed logins by source IP and password hash, then count unique usernames per group. Any IP-password combination targeting more than 10 accounts indicates a spray attempt, since legitimate users rarely share passwords across accounts.

Why do velocity-based credential stuffing rules miss attacks?

Low-and-slow attackers throttle attempts to a few per account per hour spread over days, staying under burst thresholds. Add long-window cumulative counts and a global success-rate signal below 1% instead of relying only on short-window velocity.

Can residential proxies bypass ASN-based detection?

Yes, botnets routing through residential proxy networks make each request look like an ordinary home user, defeating ASN and geo-impossibility heuristics. Use request-fingerprint uniformity such as identical user agents, header order, and JA3/TLS fingerprints across diverse IPs instead.

What causes false positives in credential stuffing detection?

Corporate NAT and VPN egress, password managers retrying logins, and load tests all produce distributed failure patterns that mimic attacks. Allowlist known egress IPs and service accounts, and validate rules against a labeled dataset before deployment.