hunting-credential-stuffing-attacks
What it does
This tool helps find attempts to break into accounts using stolen passwords. It analyzes login records to identify suspicious patterns, like many failed login attempts from different places or with common passwords.
When to use it
- ✓When you suspect accounts have been compromised.
- ✓When creating rules to detect credential stuffing attacks.
- ✓To investigate account takeover campaigns.
Skill link
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/hunting-credential-stuffing-attacks/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Look for credential stuffing attacks in the login logs.”
5 new skills a week. 1 minute to read.
How it works
The tool examines authentication logs for anomalies. It checks if many different IP addresses are trying to access a few accounts, if passwords are the same across multiple attacks, or if logins come from geographically impossible locations.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Hunting 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]
FAQ
What is 'credential stuffing'?
It's a type of attack where hackers use lists of usernames and passwords stolen from one website to try and access accounts on other sites, hoping people reuse their passwords.
What are 'ASNs'?
ASN stands for 'Autonomous System', which is a group of computer networks. The tool checks if many suspicious logins are coming from cloud providers or proxies, which are often used by attackers.
Do I need to be a programming expert to use this?
No, the tool is designed for security analysts. While it requires access to logs and some familiarity with security concepts, you don't need to be an experienced programmer.
Details
Original description by the author
Detects credential stuffing attacks by analyzing authentication logs for login velocity anomalies, ASN diversity, password spray patterns, and geographic distribution of failed logins. Uses statistical analysis on Splunk or raw log data. Use when investigating account takeover campaigns or building detection rules for auth abuse. '
Popularity
- GitHub stars
- 35k
- Ranking position
- #7946
- License
- Apache-2.0
- Updated
- 8/31/2026
Comments
- …
More skills from this repository
abusing-dpapi-for-credential-access
35kGives your AI agent ready-made instructions for a specific task, so it does it better and faster.
abusing-shadow-credentials-for-privesc
35kTeaches your AI agent to write clear, well-structured text.
achieving-cmmc-level-2-compliance
35kHelps your agent prepare an environment for CMMC Level 2 compliance. It implements security requirements and manages necessary documentation.
acquiring-disk-image-with-dd-and-dcfldd
35kHelps your agent create exact copies of hard drives. This is useful for ensuring no information is lost or altered during investigations.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.