thinking-red-team — скилл для Claude Code: проверка кода на атаки
Скилл для авторизованного разбора безопасности: моделирует атакующего, ищет пути эксплуатации и проверяет, что предложенное исправление закрывает дыру.
npx skills add tjboudreaux/cc-thinking-skills --skill thinking-red-team -a claude-codeЧто делает thinking-red-team
Скилл ведёт разбор кода, аутентификации, API и обработки данных, которые вы вправе проверять. Сначала он просит зафиксировать цель, разрешённую область, активы вне области и условие успеха — например, несанкционированное чтение данных или повышение привилегий. Если авторизация размыта, скилл откажется работать или сузит рамки.
Дальше идёт по шагам: строит модель угроз с профилями противников (внешний аноним, авторизованный пользователь, привилегированный инсайдер), размечает поверхность атаки и границы доверия, а затем пробует конкретные злоупотребления — подмену ввода, дыры в авторизации, кражу токенов и сессий, инъекции, SSRF, IDOR, массовое присваивание, обход лимитов. Работает не по одному сканеру: вывод сканера — это только зацепка, находкой он становится лишь с воспроизводимым путём эксплуатации.
Внутри скилла есть жёсткий фильтр против выдумок. Находка остаётся в отчёте, только если собирается полная цепочка: точка входа, шаги по порядку, реальный эффект на этом коде и конфиге. Незавершённые пути отбрасываются, а не переписываются в «информационные». Для каждой оставшейся находки скилл даёт минимальное исправление и способ перепроверить, что путь закрыт. Ноль находок — нормальный результат. Это повод не гнать его по системам, на которые у вас нет письменного разрешения: без авторизации скилл просто остановится.
Какие задачи решает
- проверить, что проверка прав реально блокирует обход, а не только молчит в сканере
- найти воспроизводимый путь эксплуатации до релиза, а не список общих советов
- оценить поверхность атаки у API, загрузок файлов и админских разделов
- убедиться, что предложенный фикс закрывает дыру, а не переставляет её
Примеры запросов агенту
- проведи red team разбор этого API, вот разрешённая область и условие успеха
- есть ли здесь IDOR с реальным путём эксплуатации? покажи шаги
- проверь, обходится ли лимит запросов на этом эндпоинте
Как установить thinking-red-team
1Через Skills CLI (Vercel)
npx skills add tjboudreaux/cc-thinking-skills --skill thinking-red-team -a claude-code2Вручную: положить файлы
~/.claude/skills/thinking-red-team/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/thinking-red-team/
1Через Skills CLI (Vercel)
npx skills add tjboudreaux/cc-thinking-skills --skill thinking-red-team -a codex2Вручную: положить файлы
.agents/skills/thinking-red-team/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add tjboudreaux/cc-thinking-skills --skill thinking-red-team -a cursor2Вручную: положить файлы
.cursor/skills/thinking-red-team/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install tjboudreaux/cc-thinking-skills thinking-red-team2Вручную: положить файлы
.github/skills/thinking-red-team/SKILL.md1Через Skills CLI (Vercel)
npx skills add tjboudreaux/cc-thinking-skills --skill thinking-red-team -a gemini-cli2Командой платформы
gemini skills install https://github.com/tjboudreaux/cc-thinking-skills --path skills/thinking-red-teamВручную: положить файлы
.devin/skills/thinking-red-team/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add tjboudreaux/cc-thinking-skills --skill thinking-red-team -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Из того же набора27
Похожие
Рядом в теме «Безопасность»
Всё по теме «Безопасность» →Вопросы о thinking-red-team
Как установить thinking-red-team в Claude?
Выполните npx skills add tjboudreaux/cc-thinking-skills --skill thinking-red-team -a claude-code. Скилл окажется в ~/.claude/skills/thinking-red-team/SKILL.md.
Что делает thinking-red-team?
Проводит состязательный разбор безопасности кода, аутентификации и API: строит модель угроз, размечает поверхность атаки и оставляет только находки с воспроизводимым путём эксплуатации и проверенным исправлением.
Можно ли применять его к чужой системе?
Нет. Скилл работает только по системам, которые вы контролируете и вправе проверять. При неясной авторизации он отказывается или сужает область.
Исходный текст
SKILL.md · MIT
---
name: thinking-red-team
description: For authorized security review of code, auth, or APIs you control, model the attacker, map the attack surface, and report only findings with a reproducible exploit path and verified mitigation.
disable-model-invocation: true
---
# Red Team
Adversarial security review of systems you are authorized to assess. Attack before an outsider does, but report only what you can actually break: every finding needs a concrete exploit path and a check that the proposed fix closes it.
## When to Use
- Security review of code, authentication, authorization, APIs, data handling, or infrastructure you control and are permitted to probe.
- Pre-launch hardening of systems that handle auth, money, personal data, or privileged actions.
- Checking whether a specific vulnerability class (injection, XSS, IDOR, auth bypass, SSRF, secret exposure, etc.) is present with a real path.
- Validating that a claimed control actually blocks the attack, not only that a scanner is quiet.
## When NOT to Use
- No authorization to attack the target — stop; do not probe systems you do not own or have written leave to test.
- Speculative "best practice" notes without a reproducible exploit path — drop them; they are not findings.
- Plan, strategy, or decision stress-testing — use pre-mortem (how the plan fails) or steel-manning (strongest case against the decision).
- Architecture resilience without a security objective — use systems or pre-mortem.
- Scanner output alone as a report — patterns are leads; red-team requires an exploit path.
- Non-security root-cause or hypothesis localization — use scientific-method or five-whys-plus.
## Procedure
1. **Confirm authorization and objective.** State target, allowed scope, out-of-scope assets, success condition (e.g., unauthorized data read, privilege escalation), and stop rules. Refuse or narrow if authorization is unclear.
2. **Build the threat model.** Name adversary profiles (anonymous external, authenticated user, privileged insider) and their goals under realistic access. Attacks without an actor and goal are noise.
3. **Map the attack surface.** Enumerate entry points and trust boundaries: public endpoints, auth flows, APIs, uploads, admin surfaces, jobs, webhooks, secrets, and data stores. Note exposure and required privileges.
4. **Trace exploit paths.** For each high-value surface, attempt concrete abuse: input manipulation, authz gaps, token/session misuse, injection, SSRF, IDOR, mass assignment, rate-limit bypass, secret leakage. Record exact steps and observed behavior.
5. **Apply the anti-fabrication gate.** Keep a finding only if you can complete: entry point → ordered steps → realized impact on this code/config. Incomplete paths are dropped, not listed as "informational."
6. **Score severity and attempt defense bypass.** Rate impact and exploitability. For each relevant control (rate limit, validation, session check), try a realistic bypass and record held vs broken.
7. **Prescribe and verify mitigations.** For each kept finding, give a minimal concrete fix and state how to re-test that the path is closed. Prefer fixes that remove the exploit precondition. Stop when in-scope surfaces are covered or authorization/budget ends; zero findings is valid.
## Output
```text
Target/scope: <in | out | goal | authorization>
Threat model: <actors, access, goals>
Attack surface: <entry points + trust boundaries>
Findings (only complete paths):
- Title | Severity
Entry: <endpoint/param/file>
Steps: <1..n>
Impact: <realized effect>
Bypass attempts: <control → result>
Mitigation: <minimal fix>
Re-test: <how to confirm closed>
Summary: <kept count; dropped speculative count>
```
## Verification
- Falsify any finding missing entry, steps, or realized impact; treat "could be vulnerable" as non-finding.
- Stop when in-scope attack surfaces are exhausted under authorization, or when re-test shows mitigations close the paths.
- Over-application guard: do not pad with best-practice laundry lists; do not use this skill for non-security plan critique; do not attack without authorization.
© tjboudreaux · MIT · tjboudreaux/cc-thinking-skills