Skip to main content
skill CX Codex

thinking-red-team — Claude Code skill: adversarial security review

A skill for authorized security review: it models the attacker, maps the attack surface, and keeps only findings with a reproducible exploit path and a verified fix.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add tjboudreaux/cc-thinking-skills --skill thinking-red-team -a claude-code
Open on GitHub

What thinking-red-team does

The skill reviews code, authentication, APIs and data handling you are permitted to probe. It starts by pinning down the target, allowed scope, out-of-scope assets and a success condition such as unauthorized data read or privilege escalation. If authorization is murky, it narrows the scope or refuses outright.

From there it works in steps. It builds a threat model with adversary profiles — anonymous external, authenticated user, privileged insider — maps entry points and trust boundaries, then attempts concrete abuse: input manipulation, authorization gaps, token and session misuse, injection, SSRF, IDOR, mass assignment, rate-limit bypass. Scanner output counts as a lead, not a finding. A pattern only becomes a finding once there is a path you can walk.

An anti-fabrication gate runs through the whole thing. A finding survives only if the chain completes: entry point, ordered steps, realized impact on this code and config. Incomplete paths get dropped rather than relabeled as informational. Each kept finding comes with a minimal fix and a way to re-test that the path is closed. Zero findings is a valid outcome. That is also why you should not point it at systems you lack written permission to test — without authorization it stops.

What it helps with

  • check whether a control actually blocks the attack instead of just keeping a scanner quiet
  • find a reproducible exploit path before launch, not a list of generic advice
  • map the attack surface of APIs, file uploads and admin surfaces
  • confirm a proposed fix closes the path rather than moving it

Example prompts for the agent

  • run a red team review of this API, here is the allowed scope and success condition
  • is there an IDOR here with a real exploit path? show me the steps
  • test whether the rate limit on this endpoint can be bypassed

How to install thinking-red-team

1Skills CLI (Vercel)

npx skills add tjboudreaux/cc-thinking-skills --skill thinking-red-team -a claude-code

2Manually: put the files in place

~/.claude/skills/thinking-red-team/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/thinking-red-team/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about thinking-red-team

How do I install thinking-red-team in Claude?

Run npx skills add tjboudreaux/cc-thinking-skills --skill thinking-red-team -a claude-code. The skill lands in ~/.claude/skills/thinking-red-team/SKILL.md.

What does thinking-red-team do?

It runs an adversarial security review of code, auth and APIs: threat model, attack surface, and only findings that come with a reproducible exploit path and a verified mitigation.

Can I use it against a system I do not own?

No. It is meant for systems you control and are permitted to probe. When authorization is unclear, it refuses or narrows the scope.

Source text

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

Similar skills

Everything for Security →

From the same set27

thinking-first-principles A skill that makes the agent separate real constraints from convention and rebuild the simplest solution. Useful when a task looks too costly or impossible. CX Codex +1 708installs thinking-pre-mortem Assumes a plan or launch has already failed, traces concrete causes backward, and turns them into explicit gates, owners, and verification checkpoints. CX Codex +1 660installs thinking-theory-of-constraints A skill that walks your agent through theory of constraints: find the one binding stage, exploit it, then remeasure. Useful when extra capacity does not raise output. CX Codex +1 643installs thinking-socratic Surfaces unstated assumptions and undefined terms before coding begins. Helps the agent ask decisive questions instead of guessing requirements. CX Codex +1 626installs thinking-systems A skill for problems that resist local fixes: it maps the system, finds feedback loops and delays, then ranks interventions by leverage. CX Codex +1 610installs thinking-opportunity-cost Forces your AI coding agent to identify the best forgone alternative and calculate the net value delta before committing engineering hours or budget. CX Codex +1 610installs thinking-model-router A router skill that maps domain and problem type to one thinking skill, or returns NONE. Useful when you would otherwise guess or stack frameworks. CX Codex +1 605installs thinking-steel-manning Builds the strongest opposing argument before rejecting or adopting a technical plan. Useful for architecture reviews and preventing sycophantic AI agreement. CX Codex +1 600installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor