
Hunting Credential Stuffing Attacks
FreeDetect and analyze credential stuffing attempts in authentication logs.
Free · Opens the source repo
What Hunting Credential Stuffing Attacks does
Hunting Credential Stuffing Attacks is a Python-based skill designed for security professionals who need to detect and analyze credential stuffing attacks. This skill leverages statistical analysis to identify anomalies in authentication logs, focusing on patterns that indicate potential account takeover attempts. By analyzing login velocity, ASN diversity, and geographic distribution of failed logins, users can effectively pinpoint suspicious activities that may compromise account security.
The skill is particularly useful for Security Operations Center (SOC) analysts and threat hunters who are tasked with investigating security incidents related to credential stuffing. It provides structured procedures for analyzing authentication logs, making it easier to build detection rules and queries tailored to this specific threat. Users can utilize this skill to validate their security monitoring coverage and ensure that they are equipped to handle various attack techniques.
To get started, users need to have a basic understanding of security operations and access to a suitable environment for testing. The skill requires Python 3.8 or higher, along with necessary dependencies. The provided code snippets illustrate how to load authentication logs and identify key indicators of credential stuffing, such as high unique source IPs per failed username and low success rates across multiple accounts. This enables users to quickly assess whether their systems are under attack and take appropriate action.
When to use it
Use this skill when investigating incidents of credential stuffing or when developing detection rules for authentication abuse.
When not to use it
This skill may not be suitable for environments without access to authentication logs or for users unfamiliar with Python and data analysis.
What you can build with it
Investigating a Security Incident
Use this skill to analyze authentication logs during a security incident to identify potential credential stuffing attacks.
Building Detection Rules
Leverage the skill to create detection rules for your security monitoring systems based on identified patterns of credential stuffing.
Validating Security Coverage
Employ this skill to assess whether your organization's security monitoring effectively covers potential credential stuffing attack vectors.
How to install Hunting Credential Stuffing Attacks
View source1. Install with the skills CLI
npx skills add mukul975/anthropic-cybersecurity-skills/hunting-credential-stuffing-attacks --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by mukul975Hunting Credential Stuffing Attacks
When to Use
- When investigating security incidents that require hunting credential stuffing attacks
- When building detection rules or threat hunting queries for this domain
- When SOC analysts need structured procedures for this analysis type
- When validating security monitoring coverage for related attack techniques
Prerequisites
- Familiarity with security operations concepts and tools
- Access to a test or lab environment for safe execution
- Python 3.8+ with required dependencies installed
- Appropriate authorization for any testing activities
Instructions
Analyze authentication logs to detect credential stuffing by identifying patterns of distributed login failures, high IP diversity, and suspicious ASN distribution.
import pandas as pd
from collections import Counter
# Load auth logs
df = pd.read_csv("auth_logs.csv", parse_dates=["timestamp"])
# Credential stuffing indicator: many IPs trying few accounts
ip_per_account = df[df["status"] == "failed"].groupby("username")["source_ip"].nunique()
accounts_under_attack = ip_per_account[ip_per_account > 50]
Key detection indicators:
- High unique source IPs per failed username
- Low success rate across many accounts (< 1%)
- ASN concentration from cloud/proxy providers
- Geographic impossibility (same account, distant locations)
- User-agent uniformity across distributed IPs
Examples
# Password spray: one password tried across many accounts
spray = df[df["status"] == "failed"].groupby(["source_ip", "password_hash"]).agg(
accounts=("username", "nunique")).reset_index()
sprays = spray[spray["accounts"] > 10]
Frequently asked questions about Hunting Credential Stuffing Attacks
Similar skills
Asset Criticality Scoring for Vulns
Prioritize vulnerabilities based on asset criticality.
Performing Alert Triage with Elastic SIEM
Streamline alert triage processes in Elastic Security.
Active Directory Vulnerability Assessment
Secure your Active Directory with comprehensive assessments.
Active Directory Investigation
Streamline your Active Directory compromise investigations.
Parsing Artifacts with Eric Zimmerman Tools
Efficiently parse Windows forensic artifacts for analysis.
Operationalizing MISP Threat Feeds
Enhance threat detection with curated MISP feeds.
