跳到正文
Skillpedia
分析与电子表格35k · #7946

hunting-credential-stuffing-attacks

它能做什么

这个工具可以帮助你查找试图用被盗密码登录账户的行为。它会分析登录记录,识别可疑模式,例如来自不同地点的大量失败登录尝试,或使用常见密码的登录。

适用场景

  • ✓你怀疑有账户已经被入侵时。
  • ✓在编写用于检测撞库攻击的规则时。
  • ✓调查账户接管攻击活动时。

技能链接

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/hunting-credential-stuffing-attacks/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/hunting-credential-stuffing-attacks/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请在登录日志中查找撞库攻击的迹象。”

每周 5 个新技能,1 分钟读完。

工作原理

工具会检查身份验证日志中的异常情况。它会查看是否有大量不同的 IP 地址同时尝试访问少数几个账户,同一密码是否在多次攻击中重复出现,或者登录地点在地理上是否不合常理。

技术内容(原始 SKILL.md)

作者在 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:

  1. High unique source IPs per failed username
  2. Low success rate across many accounts (< 1%)
  3. ASN concentration from cloud/proxy providers
  4. Geographic impossibility (same account, distant locations)
  5. 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]
常见问题

什么是“撞库攻击”(credential stuffing)?

这是一种攻击方式:黑客利用从某个网站泄露的用户名和密码列表,尝试登录其他网站的账户,寄希望于用户在多个网站重复使用同一密码。

什么是 ASN?

ASN 是 Autonomous System(自治系统)的缩写,指由同一机构管理的一组网络。工具会检查大量可疑登录是否来自云服务商或代理服务,这些通常是攻击者常用的来源。

使用这个工具需要是编程专家吗?

不需要。这个工具是为安全分析人员设计的。你需要能够访问日志,并对安全概念有一定了解,但不必是经验丰富的程序员。

详情

作者的原始描述

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. '

repo: mukul975/Anthropic-Cybersecurity-Skills

热度

GitHub 星标
35k
排名
#7946
许可证
Apache-2.0
更新时间
2026/8/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能