skills/sentinel/skills/red-team/SKILL.md
Adversarial analysis from 6 attacker personas. Use when the user asks to "red team this", "think like an attacker", "simulate an attack", "threat model as an adversary", or wants to understand how their app would be attacked by a script kiddie, insider, organized crime, nation-state, hacktivist, or supply chain attacker. Invoke with /sentinel:red-team.
npx skillsauth add 0x1337c0d3/claude-security red-teamInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Simulate attacks against the codebase from 6 distinct attacker personas. Each persona has different capabilities, motivations, and focus areas. Together they cover opportunistic, financially motivated, politically motivated, sophisticated persistent, and supply chain threats.
| Agent | File | Threat Model | DREAD Emphasis |
|-------|------|-------------|----------------|
| Script Kiddie | agents/script-kiddie.md | Automated tools, known CVEs, low effort | Discoverability + Exploitability |
| Insider | agents/insider.md | Legitimate access abuse, exfiltration, audit gaps | Damage + Affected Users |
| Organized Crime | agents/organized-crime.md | Financial fraud, account takeover, ransomware | Damage + Reproducibility |
| Nation State / APT | agents/nation-state.md | Persistent access, intelligence gathering, stealth | Damage + low Discoverability |
| Hacktivist | agents/hacktivist.md | Data leaks, defacement, disruption, public impact | Damage + Affected Users |
| Supply Chain | agents/supply-chain.md | Dependency poisoning, CI/CD injection, build tampering | Reproducibility + Affected Users |
/sentinel:red-team # Run all 6 personas against the codebase
/sentinel:red-team --persona insider # Run a single persona
/sentinel:red-team --persona script-kiddie,supply-chain # Run specific personas
/sentinel:red-team --depth expert # Deep analysis with full attack chains
Before dispatching agents, build context about the target codebase:
find . \( -name "package.json" -o -name "requirements.txt" -o -name "go.mod" \
-o -name "pom.xml" -o -name "*.csproj" -o -name "Gemfile" \) \
| grep -v node_modules | grep -v .git | head -20
find . \( -name "main.*" -o -name "app.*" -o -name "server.*" -o -name "routes.*" \) \
| grep -v node_modules | grep -v .git | head -20
reports/security-*.md to give agents knowledge of known findings./sentinel:audit output is available, use it as additional context.Load each requested agent definition from agents/<persona>.md.
For each persona, perform analysis by reading and following the agent definition:
When running all personas, work through each one sequentially or use parallel subagents (Task tool calls in a single response) for efficiency.
For each persona, produce:
## [Persona Name] Analysis
**Threat model**: [1-sentence description of this attacker type]
**Primary motivation**: [What they want]
### Findings
#### [RT-SK-001 | RT-IN-001 | RT-OC-001 | RT-NS-001 | RT-HK-001 | RT-SC-001]-XXX
**Severity**: CRITICAL / HIGH / MEDIUM / LOW
**Finding**: [Title]
**What an attacker sees**: [How this persona would discover this]
**Attack scenario**:
1. [Step 1]
2. [Step 2]
3. [Impact]
**DREAD Score**: D[1-3] R[1-3] E[1-3] A[1-3] D[1-3] = [avg]/3 ([risk level])
**Remediation**: [Specific fix for this finding]
ID prefixes per persona:
RT-SK — Script KiddieRT-IN — InsiderRT-OC — Organized CrimeRT-NS — Nation StateRT-HK — HacktivistRT-SC — Supply ChainAfter all personas complete, produce a consolidated summary:
## Red Team Summary
| Finding | SK | IN | OC | NS | HK | SC | Max Severity |
|---------|----|----|----|----|----|----|-------------|
| [title] | ✓ | | ✓ | | | | HIGH |
### Most Dangerous Findings
[Top 3-5 findings that multiple personas would exploit]
### Blind Spots
[Things the attacker personas could NOT exploit — what's well-defended]
### Priority Remediation
1. [Fix this first because multiple threat actors would exploit it]
2. [Next priority]
If Sentinel scan results are available, cross-reference:
Load ../../references/dread.md for the DREAD scoring criteria when scoring findings.
Red team analysis is read-only. Personas analyze the codebase as a black-box or grey-box attacker — they never modify files or run exploits. All findings are theoretical: "an attacker could..." not "we confirmed...".
Flag findings that overlap with Sentinel's confirmed findings as corroborated (higher confidence). Flag findings that require conditions Sentinel did not confirm as theoretical (medium confidence).
Format your final output following the standard Sentinel report structure defined in
${CLAUDE_SKILL_DIR}/../../templates/report.md. Use your skill's domain-specific
finding IDs (e.g. STRIDE-SPOOF-001, RT-SK-001, API-001) in the Finding ID column.
Include the Security Scorecard and Findings sections as a minimum. Omit the
Cross-Validation Summary section if you ran only AI analysis (no tool comparison).
development
STRIDE threat modeling. Use when the user asks to "run STRIDE", "threat model with STRIDE", "check for spoofing/tampering/repudiation/info disclosure/DoS/ privilege escalation", or invokes /sentinel:stride. Analyzes the codebase across all 6 STRIDE threat categories (Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, Elevation of Privilege).
testing
Detect race condition vulnerabilities. Use when the user asks to "check for race conditions", "find TOCTOU bugs", "analyze concurrency issues", "detect double-spend vulnerabilities", "check for check-then-act patterns", or mentions "race condition", "TOCTOU", "double-spend", "concurrency", "atomicity", or "thread safety" in a security context. Invoke with /sentinel:race-conditions.
testing
Detect business logic security vulnerabilities. Use when the user asks to "check business logic security", "find logic flaws", "audit workflow security", "check for coupon abuse", "detect negative amount exploits", "analyze state machine security", or mentions "business logic", "workflow bypass", "negative amount", "coupon abuse", "self-referral", "state manipulation", or "price manipulation" in a security context. Invoke with /sentinel:business-logic.
tools
Intelligence-driven security analysis — the reasoning layer that complements Sentinel's tool-based scanning. Use this skill when the user says "analyze these findings", "explain this vulnerability", "is this exploitable", "false positive?", "fix this security issue", "threat model this", "audit my Dockerfile/Terraform/k8s/GitHub Actions", "harden this config", "review my auth code", "is this JWT safe", "check for secrets", or pastes Sentinel's consolidated.json for deeper analysis. Also trigger on any security question after `/sentinel:sentinel` has run. Works without any tools installed — pure Claude intelligence. Part of the Sentinel plugin (github.com/alissonlinneker/sentinel-claude-skill).