Bug Bounty Methodology Orchestrator

Bug Bounty Methodology Orchestrator

Guides an AI through a bug bounty hunting session with a five-phase workflow, engagement-type checks and a critical-thinking framework, routing to other skills.

Skill files1 file
SKILL.md513 lines
1
---
2
name: bb-methodology
3
description: Use at the START of any bug bounty hunting session, when switching targets, or when feeling lost about what to do next. Master orchestrator that combines the 5-phase non-linear hunting workflow with the critical thinking framework (developer psychology, anomaly detection, What-If experiments). Routes to all other skills based on current hunting phase. Also use when asking "what should I do next" or "where am I in the process."
4
---
5
6
# Bug Bounty Methodology: Workflow + Mindset
7
8
Master orchestrator for hunting sessions. Combines the 5-phase non-linear workflow with the critical thinking framework that separates top 1% hunters from the rest.
9
10
---
11
12
## PART 0: MODE CONFIRMATION (Before Anything Else)
13
14
**Confirm the engagement type before deciding what counts as a finding.** The same target produces a different report shape depending on which mode applies. Getting this wrong is the single biggest waste of time in this workflow — answer it explicitly before Phase 0.
15
16
| Engagement type | What counts as a finding | What gets rejected |
17
|---|---|---|
18
| **Bug bounty** (H1 / Bugcrowd / Intigriti / private VDP) | Impact-demonstrated bugs ONLY. Full chain to attacker-attainable harm. | Hygiene (EoL software alone, permissive CSP alone, stack traces, info disclosure without concrete impact, "best practice" violations) |
19
| **Red team** (external client engagement) | Hygiene findings + recon + IoCs + defensive-state observations are ALL deliverables | Nothing — even "no finding here" is reportable as a positive defensive observation |
20
| **Pentest** (signed SoW / WAPT) | Depends on SoW. Read scope explicitly. Usually accepts hygiene + impact + recon | Out-of-scope assets, unsigned testing |
21
| **Internal audit** | Compliance-mapped findings (PCI / ISO / NIST / DPDPA / GDPR) | Findings without a control-mapping |
22
23
**Hard rule:** Before Phase 0 runs, write the engagement type as the first line in your hunt notes. If you can't answer it from the user's instruction, ASK once. Don't assume — the mistake costs both you and the triager.
24
25
**Lesson from an authorized engagement:** First-pass on this target produced 5 hygiene findings (SP2013 EoL, permissive CSP, stack traces) shipped in red-team format. The engagement was bug-bounty. Findings would have been N/A'd as "informational, no impact demonstrated." After the corrected pass with hygiene-as-context-not-finding, the same target yielded 11 impact-demonstrated bugs including 3 Critical.
26
27
---
28
29
## PART 1: MINDSET (How to Think)
30
31
### Core Principle
32
33
Hunting is not "find a bug" -- it is "prove an attack scenario." Think like an attacker with a specific goal, not a scanner looking for patterns.
34
35
### Daily Discipline: Define, Select, Execute
36
37
Before touching any tool:
38
39
1. **Define**: "Today I target [feature/domain] to achieve [CIA impact]"
40
2. **Select**: Choose 1-2 vuln classes (IDOR, Race Condition, etc.)
41
3. **Execute**: Focus ONLY on selected techniques. No wandering.
42
43
### 5 Ultimate Goals (Pick One Per Session)
44
45
1. **Confidentiality** -- steal data the attacker shouldn't see
46
2. **Integrity** -- modify data the attacker shouldn't change
47
3. **Availability** -- disrupt service (app-level DoS only)
48
4. **Account Takeover** -- control another user's account
49
5. **RCE** -- execute commands on the server
50
51
### 4 Thinking Domains
52
53
#### 1. Critical Thinking (deep analysis)
54
55
**Question trust boundaries:**
56
- Frontend control disabled? Send request directly via proxy
57
- `user_role=user` cookie? Change to `admin`
58
- `price=1000` in POST? Change to `1`
59
- `<script>` blocked? Try `<img onerror=...>`
60
61
**Reverse-engineer developer psychology:**
62
- Feature A has auth checks -> Similar feature B (newly added) probably doesn't
63
- Complex flows (coupon + points + refund) -> Edge cases have bugs
64
- `/api/v2/user` exists -> Does `/api/v1/user` still work with weaker auth?
65
66
**What-If experiments:**
67
- Skip checkout -> hit `/checkout/success` directly
68
- Skip 2FA -> navigate to `/dashboard`
69
- Send coupon request 10x simultaneously -> Race condition?
70
- Replace `guid=f8a2...` with `id=100` on sibling endpoint -> IDOR?
71
72
#### 2. Multi-Perspective (multiple angles)
73
74
| Perspective | What to check |
75
|------------|---------------|
76
| Horizontal (same role) | User A's token + User B's ID -> IDOR |
77
| Vertical (different role) | Regular user -> `/admin/deleteUser` |
78
| Data flow (proxy view) | Hidden params in JSON: `debug=false`, `discount_rate` |
79
| Time/State | Race conditions, post-delete session reuse |
80
| Client environment | Mobile UA -> legacy API with weaker auth |
81
| Business impact | "What's the $ damage if this breaks?" |
82
83
#### 3. Tactical Thinking (pattern detection)
84
85
- **Naming anomaly**: `userId` everywhere but suddenly `user_id` -> different dev, weaker security
86
- **Error diff**: Same 403 but different JSON structure -> different backend systems
87
- **Environment diff**: Prod vs Dev/Staging -> debug headers, CSP disabled
88
- **Version diff**: JS file before/after update -> new endpoints, removed params
89
- **Supply chain**: Check framework/library versions for known CVEs
90
- **Third-party integration**: Stripe/Auth0/Intercom -> webhook signature missing?
91
92
#### 4. Strategic Thinking (big picture)
93
94
- **Asymmetry**: Defender must patch ALL holes. You only need ONE.
95
- **Intuition engineering**: Log why something "feels wrong." Verify later. Update mental DB.
96
- **Unknown management**: Can't understand something? Add to "investigate later" list. Just-in-Time Learning.
97
98
### Amateur vs Pro: 7-Phase Comparison
99
100
| Phase | Amateur | Pro |
101
|-------|---------|-----|
102
| Recon | Main domain only | Shadow IT, dev environments, all assets |
103
| Discovery | Look for errors | Look for design contradictions, business logic flaws |
104
| Exploit | Give up when blocked | Build filter-bypass payloads |
105
| Escalation | Report the phenomenon only | Chain to real harm (session steal, ATO) |
106
| Feasibility | Include unrealistic conditions | Minimize attack prerequisites |
107
| Reporting | State facts only | Quantify business risk |
108
| Retest | Check if old PoC fails | Analyze fix method, find incomplete patches |
109
110
### Two Approach Routes
111
112
- **Route A (Feature-based)**: "This feature is complex" -> deep-dive its input handling -> find vuln
113
- **Route B (Vuln-based)**: "I want IDOR" -> find endpoints with sequential IDs -> test access control
114
115
### Anti-Patterns (Stop Doing These)
116
117
- **Program hopping**: Stick with one target minimum 2 weeks / 30 hours
118
- **Tool-only hunting**: Automation finds duplicates. Manual testing finds unique bugs.
119
- **Rabbit hole**: Max 45 min per parameter. Set a timer. If stuck, sleep on it.
120
- **No goal**: "Just looking around" = wasted time. Always Define first.
121
122
---
123
124
## PART 2: WORKFLOW (What to Do)
125
126
### The 5-Phase Non-Linear Flow
127
128
```
129
+-------------------------------------------------+
130
| |
131
| +----------+ +----------+ +----------+ |
132
| | 1. RECON |---+| 2. MAP |---+| 3. FIND | |
133
| +----------+ +-----+----+ +-----+-----+ |
134
| ^ | | |
135
| | v v |
136
| | +----------+ +----------+ |
137
| +----------| 4. PROVE |---+| 5. REPORT| |
138
| +----------+ +----------+ |
139
| |
140
| Non-linear: stuck at any phase -> go back |
141
| New API found at phase 3 -> return to phase 2 |
142
| WAF blocks at phase 4 -> origin IP from phase 1 |
143
+-------------------------------------------------+
144
```
145
146
**THIS IS NOT LINEAR.** Move freely between phases. When stuck, return to a previous phase.
147
148
### Phase 0: SESSION START (Every Time)
149
150
**Before touching any tool, answer these:**
151
152
1. **Define**: "Today I target [feature/domain] to achieve [C/I/A/ATO/RCE]"
153
2. **Select**: Choose 1-2 vuln classes (IDOR, XSS, SSRF, etc.)
154
3. **Execute**: Focus ONLY on selected techniques
155
156
**Route selection -- Wide or Deep?**
157
158
| Signal | Wide (recon sweep) | Deep (focused testing) |
159
|--------|-------------------|----------------------|
160
| New program, first day | X | |
161
| Wildcard scope `*.target.com` | X | |
162
| Main webapp, been here >3 days | | X |
163
| Scope update (new domain added) | X | |
164
| Found interesting subdomain | | X |
165
166
### Phase 1: RECON
167
168
**Goal**: Maximize attack surface. Find what others missed.
169
170
**Wide approach** (initial sweep):
171
```
172
Subdomain enum -> DNS resolution -> HTTP probing -> Port scan -> Tech detect
173
```
174
175
**Deep approach** (targeted):
176
```
177
Google Dorks -> JS file download -> Hidden param discovery -> API mapping
178
```
179
180
| What you find | Next action |
181
|--------------|-------------|
182
| Live subdomains with tech stack | Phase 2 (Mapping) |
183
| Known software (WordPress, Jira) | Check CVEs + defaults immediately |
184
| Cloud resources (S3, Firebase) | Test permissions (read/write/list) |
185
| Nothing after 5 min on a host | Skip, try next host (5-minute rule) |
186
187
**Command**: `/recon target.com`
188
189
### Phase 2: MAPPING & ANALYSIS
190
191
**Goal**: Understand the app like its developer does.
192
193
**Checklist:**
194
- [ ] Map all endpoints (Burp/Caido sitemap + JS analysis)
195
- [ ] Identify auth model (cookie, JWT, OAuth, SAML?)
196
- [ ] Find business-critical flows (payment, registration, password reset, data export)
197
- [ ] Download and analyze JS files for hidden routes, secrets, logic
198
- [ ] Identify roles and permissions (user, admin, API keys)
199
- [ ] Note "weird" behaviors (anomalies in naming, errors, timing)
200
201
| What you find | Next action |
202
|--------------|-------------|
203
| JS files with interesting code | Taint analysis (Sink -> Source) |
204
| OAuth/SAML authentication | OAuth/SAML checklist |
205
| API with ID parameters | Phase 3, target IDOR |
206
| Complex business logic (payment, coupon) | Phase 3, target BizLogic |
207
| postMessage listeners | DOM analysis, postMessage-tracker |
208
209
### Phase 3: VULNERABILITY DISCOVERY
210
211
**Goal**: Find the bug. Use Error-based first, then Blind-based.
212
213
**Decision flow based on what you're testing:**
214
215
```
216
What input are you testing?
217
+-- ID parameter (user_id, order_id)
218
| -> IDOR checklist
219
+-- Search/filter/sort field
220
| -> SQLi, NoSQLi probing
221
+-- URL input / webhook / PDF gen
222
| -> SSRF checklist
223
+-- Text field reflected in page
224
| -> XSS (DOM or reflected)
225
+-- File upload
226
| -> SVG XSS, web shell, path traversal
227
+-- Price/quantity/coupon
228
| -> Business logic, race conditions
229
+-- Login / 2FA / password reset
230
| -> Auth bypass
231
+-- Profile update API
232
| -> Mass Assignment
233
+-- Template / wiki editor
234
| -> SSTI
235
+-- Nothing obvious
236
-> Fuzz with ffuf, try Error-based probing
237
```
238
239
**Error vs Blind decision:**
240
1. Try Error-based first (send `'`, `"`, `{{7*7}}`, `${7*7}`) -- watch for 500 errors, stack traces
241
2. No error? Time-based (`SLEEP(10)`, `; sleep 10;`) -- watch response time
242
3. No time diff? OOB (`curl attacker.com`, interactsh) -- watch for DNS callback
243
4. Still nothing? Boolean (`AND 1=1` vs `AND 1=0`) -- watch content-length diff
244
245
| What you find | Next action |
246
|--------------|-------------|
247
| Low-impact behavior (redirect, self-XSS, cookie injection) | Chain it -- find a connector gadget |
248
| Confirmed vuln (XSS, IDOR, SQLi) | Phase 4 (Prove and Escalate) |
249
| Blocked by WAF/CSP/403 | Bypass techniques, then retry |
250
| Known software vuln (CVE) | 1-day speed workflow |
251
| Nothing after 20 min on this endpoint | Rotate (20-minute rule) |
252
253
### Phase 4: PROVE & ESCALATE
254
255
**Goal**: Prove maximum business impact. Turn Low into Critical.
256
257
**Escalation decision:**
258
```
259
What did you find?
260
+-- XSS
261
| +-- Can steal cookie/token? -> Session hijack -> ATO
262
| +-- Cookie is HttpOnly? -> Force email change via XHR -> ATO
263
| +-- Self-XSS only? -> Find CSRF to trigger it
264
+-- IDOR
265
| +-- Can read PII? -> Automate scraping, show scale
266
| +-- Can change password/email? -> Direct ATO
267
| +-- UUID only? -> Find UUID leak source, then retry
268
+-- SSRF
269
| +-- DNS only? -> DON'T REPORT. Try cloud metadata
270
| +-- Can reach 169.254.169.254? -> Extract keys -> RCE
271
| +-- Internal port scan? -> Find Redis/K8s -> RCE
272
+-- SQLi
273
| +-- Error-based? -> Extract data (passwords, tokens)
274
| +-- Can INTO OUTFILE? -> Web shell -> RCE
275
| +-- Blind? -> Boolean/Time extraction
276
+-- Open Redirect
277
| +-- OAuth flow? -> Token theft -> ATO
278
| +-- javascript: scheme? -> XSS
279
+-- Blocked by defense
280
| -> Bypass (WAF/CSP/proxy/sanitizer/2FA)
281
+-- Low-impact, can't escalate alone
282
-> Find connector gadget for chain
283
```
284
285
**After proving impact, check:**
286
- [ ] Can attack work with 0-1 clicks? (minimize prerequisites)
287
- [ ] Does it affect all users or specific role?
288
- [ ] What's the business $ impact?
289
290
### Phase 5: VALIDATE & REPORT
291
292
**Goal**: Get paid. Make triager's job easy.
293
294
**Pre-report gate:**
295
```
296
Run /validate (7-Question Gate)
297
+-- All 7 pass? -> Write report
298
+-- Any fail? -> KILL the finding. Don't waste time.
299
+-- Borderline? -> Run /triage for quick go/no-go
300
```
301
302
**Multi-Tool Reproduction Bar (Critical / High only):**
303
304
Before labeling a finding **Critical** or **High**, reproduce it via at least **two independent tools** (different stacks, different HTTP libraries). Cross-tool consistency rules out tool-artefact findings (e.g., a curl-only timing differential that disappears under Python `requests` was an artefact, not a bug).
305
306
Examples of independent reproductions:
307
- `curl` + Burp `send_http1_request` (different TLS stacks, different header normalisation)
308
- Python `requests` + raw socket via `ssl.wrap_socket` (one library normalises, one doesn't)
309
- Burp Repeater + Python `urllib` (same wire result expected from both)
310
311
The reproduction commands MUST be paste-into-shell ready in the report — a triager copies them verbatim. If the curl version requires special flags or breaks on certain systems, include a Python alternative.
312
313
**Lesson from an authorized engagement:** All three Critical findings (Authentication.asmx brute-force, TE.CL smuggling, NTLM Type-2 disclosure) were each independently reproduced via curl + Python raw sockets + Burp tooling. The cross-tool consistency was what convinced the triage write-up that the findings were not artefacts.
314
315
**Report:**
316
```
317
Run /report
318
+-- Platform-specific format (H1/Bugcrowd/Intigriti/Immunefi)
319
+-- Title: [Bug Class] in [Endpoint] allows [role] to [impact]
320
+-- Impact-first summary (sentence 1 = what attacker CAN do)
321
+-- Exact HTTP requests in Steps to Reproduce
322
+-- Under 600 words
323
+-- CVSS 3.1 score that MATCHES actual impact
324
```
325
326
**After submission:**
327
- [ ] While waiting for triage: try to escalate further (A->B signal method)
328
- [ ] If fix deployed: re-test for bypass (incomplete patch = new bug)
329
- [ ] Record finding with `/remember` for hunt memory
330
331
---
332
333
## PART 3: NAVIGATION & TIMING
334
335
### Non-Linear Navigation Quick Reference
336
337
| I'm stuck because... | Go to... |
338
|----------------------|----------|
339
| Can't find any subdomains | Phase 1: Try different recon sources, Google Dorks |
340
| Found subdomain but don't know what to test | Phase 2: Map the app, download JS, understand auth |
341
| Testing but nothing works | Phase 3: Switch vuln class (20-min rotation rule) |
342
| Found a bug but impact is low | Phase 4: Escalation paths or gadget chaining |
343
| WAF/CSP/403 blocking my payload | Bypass techniques, then return to current phase |
344
| Been stuck for 45 min on one param | STOP. Rabbit hole. Move to next endpoint. |
345
| New API endpoint discovered during testing | Return to Phase 2: map it before attacking |
346
| Found one bug | A->B signal: same dev made more mistakes. Hunt 20 min for siblings. |
347
348
### 20-Minute Rotation Clock
349
350
Every 20 minutes ask yourself: **"Am I making progress?"**
351
- Yes -> Continue
352
- No -> Rotate to next: endpoint -> subdomain -> vuln class -> target
353
- Been on same target 2+ weeks with no findings? -> Consider switching program
354
355
### Pushback Protocol (When the User Says "Find More")
356
357
When the user disagrees with your stopping point — e.g., "I've found 10+ bugs, you should find the same," or "look harder," or "you're missing things":
358
359
**Default assumption: they are correct. You stopped early.**
360
361
Before pushing back with "I think we're done because X," do this:
362
1. **Re-read 3 more `hunt-*` skills** beyond what you have loaded. Pick ones that match observed surface (e.g., custom login → `hunt-auth-bypass`; SOAP endpoints → look for protocol-specific skills; URL parameters → `hunt-ssrf`).
363
2. **Re-attack the same surface** with the new skill checklists. Walk every step in the new skills, even if it feels redundant.
364
3. **Document negatives** as you go — a confirmed "no bug here" is itself a finding for the user to see (it proves coverage).
365
4. **Only after exhausting 3 new skills' checklists** do you push back, and only with a concrete list of what was tested.
366
367
**Lesson from an authorized engagement:** After a first-pass of 5 weak findings the user said "I have 10+, find them." Loading `hunt-auth-bypass` (which had been loaded but not walked through end-to-end) immediately surfaced the `/_vti_bin/Authentication.asmx` legacy SOAP login — the highest-impact bug in the engagement. The user was right; pushback would have been wrong.
368
369
### Tool Routing by Phase
370
371
| Phase | Tools | Why this order |
372
|-------|-------|----------------|
373
| Recon: Subdomains | `subfinder` -> `amass` -> `puredns` -> `httpx` | Passive first (no detection) -> resolve DNS -> probe HTTP + tech stack |
374
| Recon: URLs | `gau` + `waymore` -> `katana` -> `uro` | Archive (forgotten endpoints) -> active crawl (JS-rendered) -> deduplicate |
375
| Recon: JS | `jsluice` + `mantra` + `trufflehog --only-verified` | Extract URLs/secrets -> find API keys -> verify keys actually work |
376
| Recon: Ports | `naabu` (wide) -> `rustscan` (deep) | Fast top-1000 sweep -> full 65535 on interesting targets |
377
| Recon: Scan | `nuclei -tags cve` -> `nuclei -tags takeover` | Known CVEs first -> then takeover (act immediately) |
378
| Mapping: Params | `arjun` + `paramspider` + ParamMiner | Brute-force hidden params + mine archives + cache headers |
379
| Mapping: JS code | Download -> `jsluice` -> VS Code/Cursor grep | Extract -> static analysis -> AI-assisted taint analysis |
380
| Mapping: Dorks | Manual Google Dorks | Custom per-target queries find what automation misses |
381
| Discovery: Fuzz | `ffuf -ac` + `cewl` custom wordlist | Auto-calibrate filtering + target-specific words beat generic lists |
382
| Discovery: XSS | `kxss` -> `dalfox` | Filter (which params reflect?) -> scan (only reflective params) |
383
| Discovery: SQLi | `ghauri` | Modern blind SQLi on ID-like parameters |
384
| Discovery: SSRF | `interactsh-client` | Self-hosted OOB listener for blind SSRF/XXE/RCE |
385
| Discovery: WAF | `wafw00f` -> `whatwaf` | Identify WAF vendor -> test bypass techniques |
386
| Exploit: 403 | `byp4xx` or `nomore403` | 20+ bypass techniques automated |
387
| Exploit: Takeover | `subzy` | Checks CNAME against 70+ vulnerable services |
388
| Exploit: Cloud | `s3scanner` + `aws` CLI | Scan bucket permissions -> extract metadata credentials |
389
| Exploit: Secrets | `trufflehog --only-verified` | Only verified working keys (no false positives) |
390
391
### Session End Checklist
392
393
- [ ] Save all Burp/Caido project files
394
- [ ] Record any "weird but not yet exploitable" behaviors (future gadgets)
395
- [ ] Update notes with failed attempts (don't re-test with same techniques)
396
- [ ] Log findings with `/remember`
397
398
---
399
400
## PART 4: METHODOLOGY DISCIPLINE (False-Positive Prevention)
401
402
Most retracted findings come from four recurring process bugs. Each has a hard rule.
403
404
> **Important framing:** These discipline rules are about *correctness of findings* — not throttling of effort. They tell you which signals are real findings and which aren't. They do **not** tell you to send fewer probes. If you find yourself using these rules to justify stopping early, you're misreading them — load `redteam-mindset` (DO NOT STOP primary directive) and continue. Coverage discipline and finding-correctness discipline are orthogonal axes; you need both on full.
405
406
### Marker Discipline
407
408
When testing for reflection, cache poisoning, parameter pollution, or OOB SSRF, the marker string you inject MUST be unique and unmistakable.
409
410
**Rules:**
411
- Markers are random alphanumeric strings, **8+ characters**, no English words, no protocol keywords.
412
- **NEVER** use `test`, `marker`, `evil`, `attacker`, `payload`, `javascript`, `script`, `AAAA`, `BBBB`, your domain name, or any string that could plausibly appear naturally in the target's HTML/JS/error messages.
413
- **Good markers:** `cpmark987abc`, `x4hd2k9pq`, a Collaborator subdomain prefix like `dlsrcurl.<collab>.oastify.com`, or `__ZZ_MARKER_<random>_ZZ__`.
414
- Before claiming reflection: search the **baseline** (no-marker) response for the marker string. If it appears naturally, change your marker. This single check catches 80% of false-positive reflection reports.
415
- For OOB testing, sub-tag each Collaborator payload (e.g., `dlsrcurl.<collab>`, `authsrc.<collab>`) so callbacks identify the specific sink that fired.
416
417
**Lesson from an authorized engagement:** Initial scan flagged `X-Forwarded-Proto: javascript` as reflecting into multiple SharePoint pages. The "reflection" was the literal word `javascript` appearing naturally in SP help-link hrefs (`href="javascript:HelpWindowKey(...)"`). False positive caused by a non-unique marker.
418
419
### Body-Diff Rule
420
421
A bypass claim requires response **body** differential, not just status code.
422
423
**Rules:**
424
- 200 OK with byte-identical body to the baseline is NOT a bypass.
425
- 200 OK with a 5-byte difference might be — verify what changed (correlation ID? timestamp? real content?).
426
- Always diff the body side-by-side before claiming bypass: `diff <(curl ... baseline) <(curl ... bypass)`.
427
- Status-code-only claims (e.g. "Host header X gave 200 instead of 403") are the most common rejected-as-N/A category on bug bounty platforms.
428
429
**Lesson from an authorized engagement:** `Host: target.example:80@evil.example.com` returned HTTP 200 instead of the baseline 403. Looked like a Host-header bypass. But the body was byte-identical (8341 bytes both) — the AWS ELB normalised the Host to `target.example:80`, dropping the `@evil` portion. Not a bypass.
430
431
### Statistical-Sample Rule (for timing-based claims)
432
433
Single outliers are NOT signal. Network jitter routinely produces 2× outliers.
434
435
**Rules for any user-enum / blind-SQLi / blind-NoSQLi / timing-side-channel claim:**
436
- Minimum sample size: **n ≥ 10 INTERLEAVED trials per group** (control + test, randomised order, not back-to-back).
437
- Compute mean, median, σ for each group.
438
- A signal requires the suspect group's mean to be **≥ 2σ above** the control group's mean.
439
- A single 2× outlier in n=1 testing is jitter, not signal.
440
441
**Lesson from an authorized engagement:** Single-shot probe showed `Administrator` taking 1527 ms vs ~700 ms control on Authentication.asmx Login — looked like clear user-enum signal. Reproduction with n=80 interleaved trials across 8 groups collapsed every group to mean=685-716 ms, σ=25-74 ms. The 1527 ms was network jitter. Finding retracted.
442
443
### Shell-Loop Ban (>5 iterations)
444
445
For any iteration that runs more than 5 times, **use Python (with try/except per iteration), not shell for-loops.**
446
447
**Why:** zsh array expansion fails silently on edge cases. A loop like `for x in "${arr[@]}"` can produce zero iterations with no error if the array wasn't populated by the previous command. The user sees output that looks complete but actually skipped the test entirely.
448
449
**Rules:**
450
- Loops of ≤5 hardcoded items in shell: OK.
451
- Anything that iterates a list, file, or computed range: Python.
452
- Always count results. If you expected 100 probes and got <50 lines of output, your loop ate something.
453
454
**Lesson from an authorized engagement:** A zsh array-iteration verb-tampering test silently produced no curl invocations across 20+ iterations (zsh ate the array). Output looked like "HIT [GET] /_api/web → " repeated for every probe but the actual response was missing. ~50 probes worth of testing lost. Switching the test to Python with explicit per-iteration logging surfaced the real results.
455
456
---
457
458
## Related Skills & Chains
459
460
- **`hunt-dispatch`** — When PART 0 mode is confirmed (redteam / wapt + blackbox|greybox). Workflow primitive: after the engagement-type answer is locked, hand off to `hunt-dispatch` to fingerprint the target and load the matching platform + hunt-* skill set; this skill stops being the active context once dispatch prints its taxonomy.
461
- **`bug-bounty`** — When the user asks a generic "what should I do" or starts a new target. Workflow primitive: `bug-bounty` is the orchestrator that names which `hunt-*` skills to load by topic; this skill (`bb-methodology`) provides the 5-phase workflow that orchestrator runs against.
462
- **`triage-validation`** — When a finding completes Phase 4 and is about to be written up. Workflow primitive: Phase 5 explicitly calls `/validate` (the 7-Question Gate); only findings that pass all 7 questions get handed off to `report-writing`.
463
- **`offensive-osint`** + **`web2-recon`** — When Phase 1 (Recon) is active. Workflow primitive: Phase 1's "Wide approach" delegates to `offensive-osint` for asset arsenal and `web2-recon` for the live-host + URL pipeline.
464
465
---
466
467
## Operator Notes (Claude-BugHunter)
468
469
> Engagement-derived additions to the vendored foundation. Wisdom from real
470
> authorized engagements + Phase 2 verification across this repo's 31+
471
> skill-area live tests. The upstream methodology covers the WHAT; this
472
> layer covers the WHEN-IT-ACTUALLY-WORKS and the FAILURE-MODES.
473
474
### What the methodology doesn't tell you
475
476
The vendored 5-phase workflow is a checklist; real engagements are improvisation. Sometimes you skip phases entirely — a client hands you a single URL and a JWT, recon was already done by their internal team, and Phase 1 collapses to a 10-minute fingerprint. Sometimes you spend 80% of the engagement in Phase 1 because the scope is a 200-asset financial-services parent org and asset discovery IS the work. The methodology is a map of terrain that exists in every engagement, not a sequence you traverse uniformly.
477
478
### Mode-confirmation, in practice
479
480
PART 0 (the bug-bounty vs WAPT vs red-team gate at the top of this file) is a hard rule, but the answer isn't always handed to you. Read the scope language:
481
482
- **"in-scope assets"** + **"out-of-scope assets"** + **"safe harbor"** → bug-bounty discipline. Validation-heavy, OOB-required, no exfil.
483
- **"kill chain"** + **"objectives"** + **"flag capture"** + **"adversary emulation"** → red-team. Stealth, persistence, lateral movement valid.
484
- **"compliance"** + **"PCI"** + **"HIPAA"** + **"executive report"** + **"remediation timeline"** → WAPT. Coverage-driven, deliverable-focused, all findings count regardless of exploitability.
485
486
When the language is mixed (common — clients often write WAPT-shaped SOWs and call them red-team engagements), default to bug-bounty discipline until proven otherwise. It's the most validation-strict mode; you can always relax later if the client confirms red-team. The reverse — assuming red-team latitude on what turns out to be a WAPT — gets findings retracted at delivery.
487
488
### Phase priority shifts by target type
489
490
The 5 phases are not equal-weight. Engagement type dictates the time allocation:
491
492
| Engagement | Recon | Hunt | Validate+Report |
493
|---|---|---|---|
494
| SaaS bug-bounty (defined scope) | 10% | 70% | 20% |
495
| External red-team (wide scope) | 40% | 30% | 30% |
496
| WAPT (asset list provided) | 0% | 60% | 40% |
497
| Enterprise on-prem (single product) | 5% | 50% | 45% |
498
499
If you find yourself spending 50% of a SaaS bug-bounty engagement in recon, you're procrastinating on the hunt. If you're spending 10% of an external red-team engagement on recon, you've already lost — the attack surface map IS the deliverable on those.
500
501
### When to break the methodology
502
503
If you find a Critical in the first 30 minutes of recon, **stop reconning, validate the Critical fully, report it, then return to recon.** The methodology says "complete the phase before moving on" — the value-per-hour curve disagrees. A confirmed Critical paying out within 24h of engagement start is worth more than a comprehensive asset list you'll never get to chain.
504
505
The same applies in reverse: if you've been hunting a candidate for 4+ hours and it won't reproduce on a second account, the candidate is dead. Don't sink another 4 hours into making a dead candidate reproduce. Drop it, document the retraction in your notes, move on.
506
507
### The discipline rules are non-negotiable
508
509
The discipline rules in this file — OOB Gate, Marker Discipline, Body-Diff Rule, Statistical-Sample Rule, Server-Policy-vs-State, Pre-Severity Gate, Shell-Loop Ban — are not methodology. They are quality gates. Methodology is the order of operations; these are the validation guarantees at each step.
510
511
Verified across Phase 2D's hardened-lab campaign: 8/8 discipline rules fired correctly against fake-bug-shaped behavior (URL echo dressed as XSS, word collision dressed as reflection, status-code-only "bypasses" with byte-identical bodies, 200-OK leak-claims with no actual leak data). Validation rates fall sharply when these rules get skipped. The friction is the feature — if a rule feels obstructive, that's it doing its job. The findings it kills are the half that would have come back N/A anyway.
512
- **`evidence-hygiene`** — When Phase 5 is collecting PoC screenshots / HARs. Workflow primitive: before any cookie / PII appears in a screenshot, hand off to `evidence-hygiene` for the redaction protocol.
513

© ai-boost · GPL 3.0 · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 13,231 prompts

More by @OpenSourceBuffGuy

See all
Grilled Chicken Taco Product Photo prompt image

Grilled Chicken Taco Product Photo

Photographs a grilled chicken taco with char marks, red cabbage, creamy sauce and fresh garnish on a pure white background in clean food-photography style.

image-prompt, nano-banana, food-photography, product-photography, photorealistic, white-background, minimalist, still-life, close-up, soft-lighting, natural-light, studio-lighting, cooking, quick, for-photographers, for-small-business-owners

Woman glancing back on subway escalator, 35mm look prompt image

Woman glancing back on subway escalator, 35mm look

Generates a cinematic 35mm over-the-shoulder portrait of a woman glancing back on a dim subway escalator, with amber-green halation, colourful bokeh and real skin texture.

image-prompt, seedream, portrait, woman, photorealistic, cinematic, film-photography, film-grain, bokeh, vertical-format, medium-shot, candid, moody, night-scene, cityscape, vintage, neon, negative-prompt, street-photography, for-photographers, for-artists

Full Stack Developer Architect prompt image

Full Stack Developer Architect

Designs full-stack applications end to end: technology choices with rationale, frontend and backend structure, database schema, deployment pipeline and a phased MVP roadmap.

system-prompt, act-as, full-stack, software-architecture, system-design, frontend, backend, database, api, ci-cd, devops, typescript, javascript, docker, cloud, authentication, for-developers, for-founders, technical-spec, roadmap, structured-output, xml-tags, guardrails, expert-advice, advanced, estimation

Reviews

Loading reviews…

Discussion

Loading comments…