credential-attack

shuvonsec/claude-bug-bounty

Методика password spray для bug bounty: когда применять вместо поиска веб-уязвимостей, пайплайн wordlist + breach-check + OSINT сотрудников + spray, выбор режима (http-form / oauth / o365 / okta), тактика обхода rate-limit и блокировок.

Звёзды5 976
Авторshuvonsec
Установок15

Установка

SKILL.md

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:

ModeRulesWhen
minimaltop10_2025 (10 rules)Cautious spray, paranoid program
balanced (default)best66 (66 rules)Standard — best signal/noise
aggressiveOneRuleToRuleThemAll (52k)Offline cracking only, NOT spray (too many candidates)

Filter selection:

FilterWhen
strict (default)API-doc-heavy sites (Twilio, Stripe). Drops CSS hex colors, URL slugs, random API tokens that cewler harvests as "words"
looseMarketing 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:

RangeMeaningSpray strategy
0Never leakedCould be company-specific OR truly random
1-1000"Sweet spot" — proven human use, not yet in every spray listPrioritize
1k-1MMainstreamUsually already tried by previous attackers
>1MGeneric (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 against site:linkedin.com). Read program policy first — some BBPs forbid employee identification.
  • --with-pydictor-social — pydictor generates name-derived password candidates (john2025, john!2024).

Realistic expectations:

Target typeExpected emailsExpected names
US/EU SaaS (Twilio, Stripe)5-50depends — many CTOs are public
State utility (Taipower, etc.)00 (no English-named LinkedIn profiles)
Local SME0-100-5

For mature security-conscious targets, expect very few emails. The CT-log hostnames theHarvester finds are separate value — feed them back into /recon for more attack surface (this happened in our Taipower run: 0 emails but 59 new subdomains).


Stage 4 — /spray <login-url> --mode <mode>

The most dangerous command. Real auth attempts against live accounts. Read HARD GUARDS before running.

Mode selection:

ModeUse caseEngine
http-formCustom login page (most BB targets)Pure Python urllib
oauthOAuth password grant (grant_type=password)Pure Python urllib
o365Microsoft 365 / Azure ADtrevorspray
oktaOkta SSOtrevorspray

Hard guards (no override possible without --i-understand):

  1. Typed-hostname confirmation — you must type the target hostname back. Defeats wrong-target slips.
  2. Lockout warning — calculates per-user failed-attempt count from --passes size, warns if it exceeds typical thresholds.
  3. Audit log JSONL — every attempt appended to recon/<host>/spray/attempts-<ts>.jsonl. Passwords logged as SHA-256 prefix only, never plaintext.
  4. Spray order — pass[i] × all_users per round. Each user sees at most 1 failed attempt per round, well under typical 5-10 lockout threshold.

HARD GUARDS — WHY THEY EXIST

Lockout policy reality check

Default rate-limit: --delay 1800 --jitter 60 (30 min/round + ±60s).

Lockout policy (typical)ThresholdReset window
Azure AD smart lockout10 failed in 10 min sliding10-min window
Okta default10 in 10 minconfigurable
Custom appsusually 5-10 per hourvaries wildly

A spray with default delay tries 1 password per user per 30 min — keeps every user at 0 strikes within any sliding window.

--aggressive (60s/10s) is fast spray: use ONLY with explicit program permission. Against O365, it almost certainly triggers smart lockout.

Spray order — why pass[i] × all_users, NOT brute per-user

WRONG (brute-force order, will lockout):
  alice: pass1, pass2, pass3, ...  ← alice gets 8 failed attempts in seconds, lockout
  bob:   pass1, pass2, pass3, ...

RIGHT (spray order, distributes failures):
  Round 1:  pass1 → alice, bob, charlie  (1 failed each)
  [delay 30 min]
  Round 2:  pass2 → alice, bob, charlie  (2 failed total each, still under threshold)
  ...

Our tools/_spray_http_form.py and _spray_oauth.py enforce spray order.


SUCCESS DETECTION

http-form mode

Checked in this order:

  1. --success-regex <body-regex> matches response → success
  2. --fail-regex <body-regex> set AND body does NOT match → success
  3. HTTP redirect (3xx) to a path that is NOT the login page → success (heuristic)
  4. None of the above → not success

False positive risk: Without --success-regex or --fail-regex, heuristic 3 can mis-fire on sites that always redirect even on failure. Always supply --fail-regex "Invalid|incorrect|wrong" for production sprays.

oauth mode

  • HTTP 200 with "access_token" field in JSON body → success
  • HTTP 4xx (typically 400 invalid_grant / 401) → fail

This is unambiguous; no regex needed.

o365 / okta (TREVORspray)

Output parsing. Less granular than our http-form / oauth handlers but well-tested upstream.


CHAIN PATTERN: SPRAY → AUTHENTICATED /HUNT

The real payout play:

/spray finds valid creds (low-payout finding by itself if reported as ATO)
   ↓
   Re-run /hunt with the session cookie or bearer token
   ↓
   Authenticated /hunt sees admin pages, internal APIs, IDOR on user data
   ↓
   Find a P1/P2 IDOR or business-logic bug behind the login wall
   ↓
   Chain report: "ATO via spray + IDOR exposes all user PII"  (high payout)

The spray-only finding alone is usually rejected by mature BBPs (they treat it as "user's bad password choice, not our bug"). The chain is what pays.

Not yet wired in this branch: /hunt --authenticated-session <cookie> is a future PR. For now, after spray finds creds, manually feed the session into Burp / curl-based probing.


LEGAL GUARDRAILS

Before running /spray against ANY target, verify:

  1. Program policy explicitly allows credential testing. Look for keywords:

    • ✅ "Credential testing permitted with rate-limit X"
    • ✅ "Brute-force allowed against test accounts"
    • ❌ "Credential stuffing", "brute force", "password attacks" listed under prohibited
    • ⚠️ Silent — assume disallowed, ASK the program first
  2. The wordlist does not contain plaintext breach data. Using DeHashed-style plaintext passwords from real breaches to log into real accounts is illegal in most jurisdictions even with BB scope. HIBP hash-prefix is fine (we use this); plaintext breach corpus is not (we don't bundle this).

  3. Stop on first hit by default. Don't keep spraying after you have one valid set of creds — that's not testing, it's grinding for lulz. --continue-on-hit exists but should only be used to evidence multiple users sharing a default password.

  4. Report the lockout impact. If your spray locked accounts, tell the program immediately with timestamps from the audit log. Don't make them discover it themselves.


COMMON PITFALLS (learned the hard way)

Pitfall 1 — Generic wordlist = no signal

/wordlist-gen with --filter loose against an API-heavy site gives you 500k candidates, 95% of which are CSS selectors, URL slugs, and example API tokens from docs.

Fix: Stick with the default --filter strict. Verified on Twilio: 56k loose → 34k strict (-39%), all noise dropped, real terms (flexdemo, webhook, programmable) preserved.

Pitfall 2 — --limit N biases the sample

The wordlist is sort -u'd alphabetically (ASCII order: digits < uppercase < lowercase). Naïve --limit 5000 samples ONLY digit/symbol-prefix entries.

Fix: Always use --shuffle when sampling. Verified on Twilio: without shuffle, top 5000 were 100% l33t variants (1nc0rr3t0, $m@rt...); with shuffle, you get representative coverage including a-z prefix candidates.

Pitfall 3 — {PASSWORD} vs {PASS} placeholder

Natural user instinct is --post-data "username={USER}&password={PASSWORD}". Our code accepts BOTH aliases ({USER}/{USERNAME} and {PASS}/{PASSWORD}). Unknown placeholders stay literal in the request — visible to you, not a crash.

Pitfall 4 — theHarvester silently writes JSON to cwd

theHarvester -f recon/<target>/osint/theharvester does NOT write to that path. It writes theharvester.json to $PWD (the directory you ran the command from).

Fix: tools/osint_employees.sh wraps the call in (cd "$OUT_DIR" && theHarvester ... -f theharvester). If you invoke theHarvester directly, cd first.

Pitfall 5 — CrossLinked / theHarvester returning 0 emails

Two distinct scenarios:

  • Twilio-style: mature security → no public emails in search engines → 0 result is expected. The 59 hostnames theHarvester finds in CT logs are the consolation prize — feed them to /recon.
  • Taipower-style: state utility, employees on LinkedIn under Chinese names → English dorks return 0 → switch to manual browser search OR drop this pipeline for this target.

Pitfall 6 — Pure Python urllib quirks (Python 3.9)

urllib.request.urlopen() accepts context= kwarg. opener.open() does NOT. If you customize a build_opener, attach the SSL context to an HTTPSHandler instead. Our http-form handler does this; this bug bit us during live test.


OPERATIONAL CHECKLIST

Before pressing enter on /spray:

  • /scope <login-host> returns IN SCOPE
  • <!-- -->Program policy reviewed for credential-testing rules
  • <!-- -->Wordlist filtered (--filter strict) and HIBP-ranked (--max-count 1000000)
  • <!-- -->Usernames file has REAL usernames (from /osint-employees) — not users.txt from a tutorial
  • <!-- -->Default delay (--delay 1800 --jitter 60) unless program permits faster
  • <!-- -->You can stomach the duration estimate (printed in pre-flight)
  • --dry-run passed once to verify post-data template is correct
  • <!-- -->You're ready to STOP and report immediately if a hit lands

During spray:

  • <!-- -->Monitor audit log JSONL for HTTP 429 / 503 / response-time spikes (WAF kicking in)
  • <!-- -->If status codes get weird (all 503, all 200), assume detection and abort

After spray:

  • <!-- -->If hit: STOP, document the find, do NOT log in further
  • <!-- -->If no hit after N rounds: archive audit log, move on
  • <!-- -->If lockouts likely happened: notify program with audit log timestamps

TOOL LADDER & ALTERNATIVES

When our default tool fails or you want to swap, here's the practical ladder. Tools marked ❌ were deliberately rejected — don't try them as drop-in subs.

Stage 1 — Wordlist crawl

ToolStatusWhy
cewler✓ PrimaryPython rewrite of CeWL; Scrapy-backed; faster on JS-heavy sites
CeWL⚠ BackupRuby; not in brew on macOS; older but more battle-tested. Use only if cewler fails on a specific site
dirtywordsAlternativeNewer, BB-focused; try if cewler misses dynamic content
getjswordsComplementPulls words from JS bundles specifically — useful when target has rich SPA

Stage 1 — Wordlist mutation

ToolStatusWhy
hashcat top10_2025.rule / best66.rule / OneRuleToRuleThemAll✓ PrimaryIndustry standard, modes selectable in /wordlist-gen
pydictor (-extend)Reserved for Stage 3Best with OSINT inputs (birthdays/names); overlaps hashcat on raw words
wister❌ DroppedVariant logic overlaps pydictor; no clear advantage
Mentalist❌ DroppedGUI-only — not scriptable for CI
rsmanglerMinor altSimple prefix/suffix mutation; less complete than hashcat rules

Stage 2 — Breach corpus / ranking

ToolStatusWhy
HIBP Pwned Passwords (k-anonymity)✓ PrimaryFree, no API key, hash-prefix only — safe legal posture
HIBP Breach API v3Optional ($3.50/mo)Поиск утечек по каждому email; полезно для приоритизации аккаунтов
DeHashed / Intelligence Security❌ НЕ для спреяСодержит пароли в открытом виде из реальных утечек. Использование учётных данных из утечек в открытом виде против живых аккаунтов незаконно в большинстве юрисдикций даже в рамках BB scope. Использовать только для чтения, никогда для попыток входа
weakpass.com (дамп 28GB)Только офлайн-взломСлишком большой для спрея; пригоден для взлома хешей после попадания
SecLists Passwords/Универсальный запасной вариантИспользовать ТОЛЬКО когда у цели нет сайта для обхода

Этап 3 — OSINT сотрудников

ИнструментСтатусПочему
theHarvester✓ ОсновнойМультиисточник (поисковые системы + CT-логи + DNS), бесплатно, доступно ~43 источника
CrossLinked✓ Опционально через --with-linkedinGoogle/Bing дорки против LinkedIn — авторизация LinkedIn не нужна
username-anarchy✓ ОсновнойРазворачивает имена в 30+ форматов username
LinkedInDumper❌ ОтброшенТребует авторизации в аккаунте LinkedIn — затраты на OPSEC, риск блокировки аккаунта
NameSpiАльтернативаОбъединяет LinkedIn + Hunter.io — полезно, если у вас есть Hunter.io
Hunter.ioОпционально (платно)Лучший вывод формата email ({first}.{last}@); ценен для высокоприоритетных целей
KerbruteТолько для внутренней сетиВалидирует имена пользователей AD через Kerberos pre-auth — бесполезен против внешних BB-целей

Этап 4 — Движки спрея

ИнструментСтатусПочему
Встроенные модули http-form / oauth✓ ОсновнойЧистый Python urllib; под нашим полным контролем; аудируемый JSONL
TREVORspray (o365, okta)✓ Основной для корпоративного SSOНаиболее полный движок O365/Okta; встроенная ротация SSH-прокси; зрелый
CredMasterАльтернативаРотация IP через AWS FireProx — полезно, если программа жёстко ограничивает по IP
MSOLSpray❌ ОтброшенTREVORspray уже покрывает O365 с лучшим инструментарием
Spray365❌ ОтброшенТолько M365; TREVORspray + CredMaster покрывают потребности спрея
SprayingToolkitАльтернативаНиша Lync / S4B / OWA — пробовать только если попадёте на эти специфические цели

Быстрые решения

  • Современная SaaS-цель (Twilio, Stripe, GitLab): начинать с cewler + hashcat top10_2025 + theHarvester (без LinkedIn) + /spray http-form
  • Корпоративная с Azure/M365: cewler + theHarvester + --with-linkedin + /spray o365
  • Цель с мобильным API: cewler (глубина 1, в JS-бандлах часто есть словарь) + /spray oauth
  • Пентест внутренней сети (вне scope для BB, но для полноты): добавить kerbrute userenum перед спреем

Юридические красные линии (не обсуждаются)

  1. Никогда не использовать пароли из утечек в открытом виде против живых аккаунтов — даже если у вас есть доступ к DeHashed. HIBP hash-prefix — единственный юридически чистый источник утечек.
  2. Останавливаться на первых валидных учётных данных — не продолжать долбить ради множества попаданий; это тестирование, а не lulz.
  3. Уведомить программу, если произошли блокировки — проактивное раскрытие с временными метками аудита.

ГЛУБОКОЕ ПОГРУЖЕНИЕ

По собственным документам базовых инструментов:

  • tools/wordlist_engine.sh -h
  • tools/osint_employees.sh -h
  • tools/breach_checker.py -h
  • tools/spray_orchestrator.sh -h

СВЯЗАННЫЕ НАВЫКИ

  • bug-bounty — мастер-процесс (этот навык — подпайплайн)
  • web2-recon — создаёт список URL, который выявляет эндпоинты входа
  • triage-validation — запустить 7-Question Gate на любых учётных данных, найденных спреем, перед отчётом
  • report-writing — шаблоны отчётов ATO-via-spray (формат H1/Bugcrowd)

Вставить в README

Ссылка на карточку для вашего README — без картинок и счётчиков.

[DarkPlay: credential-attack](https://darkplay.ru/ai/skills/shuvonsec-claude-bug-bounty-credential-attack)

Похожие скиллы и другие разделы каталога

Популярное в разделе «Скиллы»

Самые востребованные скиллов раздела по установкам и звёздам.

find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
4 400 000 устан.
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
1 600 000 устан.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
1 600 000 устан.
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
1 600 000 устан.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
1 600 000 устан.
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
1 500 000 устан.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
1 400 000 устан.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
1 300 000 устан.
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
1 300 000 устан.
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.
1 300 000 устан.
Похожее в других разделах каталога

Соседние разделы каталога: возможно, нужный инструмент живёт там.

Opensource Forkeraffaan-m · Форкает проект для open-source: чистит секреты, ссылки и историю git.
225 587 ★
math-olympiadanthropics · Решение олимпиадных задач по математике (IMO, Putnam, USAMO) с состязательной проверкой…
100 комп.
oracle-ai-data-platform-workbench-engineer-agentanthropics · Агент-инженер Oracle AI Data Platform (AIDP) Workbench для Claude Code — агент с 37…
100 комп.
outputaianthropics · Набор инструментов для разработки рабочих процессов Output.ai в Claude Code. Добавляет 5…
100 комп.
zscaleranthropics · Управление облачной платформой безопасности Zscaler: ZPA (частный доступ), ZIA…
100 комп.
chaos-engineeringalirezarezvani · Полный цикл chaos engineering: эксперименты с гипотезой, метрикой стабильного состояния…
510 комп.
insecure-defaultstrailofbits · Обнаруживает небезопасные конфигурации по умолчанию, включая захардкоженные учётные…
122 комп.
trailmarktrailofbits · Строит многоязычные графы исходного кода для анализа безопасности: графы вызовов, карту…
122 комп.
Adversarial Modelertrailofbits · Моделирует взгляд атакующего и строит сценарии эксплуатации для изменений кода с ВЫСОКИМ…
5 976 ★
C Review Fp Judgetrailofbits · Судья второй стадии в конвейере c-review. Запускается после dedup-judge только по…
5 976 ★

Лучшие ИИ-инструменты для генерации видео

Генерация видео

Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,

VEED.IOVeed
По запросу
5.0
MootionMootion
По запросу
5.0
FlyviFlyvi
Есть бесплатный тариф
4.9
Google Veo 3.1Google
Платно
4.9
Sora (OpenAI)OpenAI
Платно
4.9
PikaPika
Платно
4.9
captions space
Есть бесплатный тариф
4.8
Клайп
Есть бесплатный тариф
4.8
viralpulse.appViralpulse
По запросу
4.8
Viral Maker AIViral-maker
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации текста и копирайтинга

Генерация текста и копирайтинг

Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра

NeuroscribeNeuroscribe
Есть бесплатный тариф
5.0
GoGPTGogpt
По запросу
5.0
ChatsonicChatsonic
По запросу
4.9
НейроТекстерNeuro-texter
По запросу
4.9
ChatGPTOpenAI
По подписке
4.9
Редактум
Есть бесплатный тариф
4.8
ChadGPTChadgpt
По запросу
4.8
Cosmo ScribeCosmoscribe
Есть бесплатный тариф
4.8
Memo HelperCopilot33
По запросу
4.8
LibraChatLibrachat
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации изображений

Генерация изображений

Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты

MagviMagvi
По запросу
5.0
DALL-E 3OpenAI
По подписке
5.0
SupaLabSupalab
По запросу
5.0
Freestyling.aiFreestyling
Есть бесплатный тариф
4.9
ArtGeneration.meArtgeneration
Есть бесплатный тариф
4.9
BigjpgBigjpg
По запросу
4.9
Художник от VKVK
Бесплатно
4.9
Wonderink — ИИ-книги
Есть бесплатный тариф
4.8
Avato AI12ai
По запросу
4.8
Virton AIVirton
По запросу
4.8