credential-attack
できること
このスキルは、プログラムの対象範囲で認証情報のテストが許可されている場合に、ログインページへのパスワードテストを計画する方法を説明します。使う場面、手順のつながり、安全上の制限を示します。
使う場面
- ✓バグバウンティプログラムがログインページで認証や認証情報のテストを明示的に許可しているとき。
- ✓テスターが、許可されたテストのために会社固有の単語リストを必要としているとき。
- ✓テスターが、パスワードテストを実行する価値があるか判断する必要があるとき。
スキルのリンク
https://github.com/awarexone/Agentic-Bug-Hunter/blob/main/skills/credential-attack/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“このプログラムの対象範囲で認証情報のテストが許可されているか判断してください。その制限の範囲内に収まるテストを計画してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントはまずプログラムの対象範囲を確認します。その後、会社の用語から単語リストを作り、ログインの方式を確認して、慎重なレート制限のもとでテストを計画します。スキルに書かれた法的な制約に従います。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
CREDENTIAL ATTACK PIPELINE
Real-world initial-access vector. Verizon DBIR consistently ranks Stolen Credentials in the top 3 incident types. Most BB hunters skip this because they only try rockyou.txt and get rate-limited.
Core principle: humans pick lazy passwords. {CompanyName}{Year}!, {ProductName}{Season}, {City}123. Harvesting company-specific vocabulary (product names, office cities, internal project codes) before spraying is what makes the hit-rate go from 0.01% to 1%+.
This skill covers WHEN to use credential attack, HOW to chain the 4 commands, and the legal/operational guardrails.
WHEN TO RUN CREDENTIAL ATTACK
Credential attack is a parallel branch to /hunt, not a replacement. Both come after /recon:
/recon ──┬──▶ /hunt (web vuln scan) ──┐
│ ├──▶ /validate ──▶ /report
└──▶ /wordlist-gen → ... → /spray ──┘
Run it when:
- Target has a discoverable login endpoint (web form / O365 / Okta / OAuth)
- Program scope explicitly permits authentication testing or credential testing
- You can stomach a 30-min-to-multi-hour run (with conservative defaults)
Skip it when:
- Program policy lists "credential stuffing", "brute force", or "password attacks" as out-of-scope (this is the majority)
- Target only has SSO via a provider you don't control (e.g., "Login with Google")
- The login endpoint is rate-limited so aggressively that even 1 attempt/30min triggers alerts
KILL signals (don't even start):
- No login surface in recon output
- WAF (Cloudflare with Bot Management, Akamai) on every auth endpoint
- Program runs an active red-team — they'll see your spray immediately
- You don't have a clean wordlist yet (running rockyou.txt is a waste of lockouts)
THE 4-STAGE PIPELINE
/wordlist-gen ──▶ /breach-check ──▶ /osint-employees ──▶ /spray
(company words) (rank by HIBP) (real usernames) (live attempts)
You can run stages 1+2 in parallel with stage 3 (they share no inputs).
Stage 1 — /wordlist-gen <target>
Crawls the target website with cewler, deduplicates, applies hashcat rules to mutate (flexdemo → flexdemo!, Flexdemo, flexdemo123, flexdemo2025...).
Mode selection:
| Mode | Rules | When |
|---|---|---|
minimal |
top10_2025 (10 rules) | Cautious spray, paranoid program |
balanced (default) |
best66 (66 rules) | Standard — best signal/noise |
aggressive |
OneRuleToRuleThemAll (52k) | Offline cracking only, NOT spray (too many candidates) |
Filter selection:
| Filter | When |
|---|---|
strict (default) |
API-doc-heavy sites (Twilio, Stripe). Drops CSS hex colors, URL slugs, random API tokens that cewler harvests as "words" |
loose |
Marketing sites without API examples — keeps everything cewler found |
Output: recon/<target>/wordlists/ranked.txt — typically 50k-500k candidates depending on site size.
Stage 2 — /breach-check <wordlist>
Sends only first 5 chars of SHA-1 to HIBP (k-anonymity), enriches each password with its real-world breach count. Free, no API key, full passwords never leave your machine.
Breach-count interpretation:
| Range | Meaning | Spray strategy |
|---|---|---|
| 0 | Never leaked | Could be company-specific OR truly random |
| 1-1000 | "Sweet spot" — proven human use, not yet in every spray list | Prioritize |
| 1k-1M | Mainstream | Usually already tried by previous attackers |
| >1M | Generic (password, 123456) |
Skip — every WAF expects these |
Standard filter for spray prep: --max-count 1000000 drops the boring generic stuff while keeping the sweet spot.
Performance: ~5 minutes for 10k passwords, ~50 minutes for 100k. Use --limit N --shuffle to sample if your wordlist is huge.
Stage 3 — /osint-employees <target>
theHarvester (search engines + CT logs) → derive names from email local-parts → username-anarchy permutations.
Default mode is conservative:
- Sources:
duckduckgo,brave,yahoo,mojeek,crtsh,certspotter,hackertarget,otx - No LinkedIn-specific scraping
- No paid OSINT (DeHashed, IntelX, Shodan)
Opt-in flags:
--with-linkedin— adds CrossLinked (Google/Bing dorks againstsite:linkedin.com). Read program policy first — some BBPs forbid employee identification.--with-pydictor-social— pydictor generates name-derived password candidates (john2025, `john!2
よくある質問
どのプログラムでも許可されていますか?
いいえ。多くのプログラムはパスワード攻撃を除外しているため、まず対象範囲を確認する必要があります。
なぜ会社固有の単語を使うのですか?
製品名、オフィスの所在地、プロジェクトの用語を使うと、単語リストがより有効になるとされています。
どのログイン方式が扱われますか?
Webフォーム、OAuth、Office 365、Okta のモードが挙げられています。
詳細
作者による元の説明
Password spray methodology for bug bounty — when to do it vs web-vuln hunting, the wordlist-gen + breach-check + osint-employees + spray pipeline, mode selection (http-form / oauth / o365 / okta), rate-limit + lockout tactics, BBP legal guardrails, success detection, and the spray → authenticated /hunt chain pattern. Use when assessing whether credential attack is worth running on a target, picking the right mode, or recovering from common pitfalls.
人気
- GitHubのスター
- 5.5k
- ランキング
- #14788
- ライセンス
- MIT
- 更新日
- 2026/10/28
コメント
- …
このリポジトリの他のスキル
bug-bounty
5.5kエージェントが、対象範囲の確認から資産の調査、脆弱性の検証、レポート作成まで段階的にバグバウンティの調査を計画できるよう支援します。
agentic-app-audit
5.5kエージェントが、稼働中のAIアシスタントを外部から確認し、ツール呼び出しの乗っ取りやメモリの汚染などのリスクを見つけられるよう支援します。
argus
5.5kエージェントが、Webアプリや AI アプリでよくある不具合を調べる6つの自動スキャナーを実行できるよう支援します。
bb-methodology
5.5kエージェントが、バグバウンティのセッションを段階的に計画し、次の作業と適切な確認項目を選び、実際の害につながらない案を除外できるよう支援します。
似ているスキル
reverse-engineer-anything
422kREAツールを使って、出荷済みのアプリやパッケージの中身を調べ、機能の説明、版の比較、再構築の手順をエージェントが支援します。
1password
394k1Password CLIをセットアップし、サインインして、秘密情報の値を会話に表示せずに読み取ったり注入したりするようエージェントを支援します。
healthcheck
394kOpenClawを動かすコンピューターやサーバーを、SSH、ファイアウォール、更新、バックアップなどのセキュリティリスクについて監査し、安全な修正案を提案するようエージェントを支援します。