agent-security-hardening
AFaffaan-m/ECC314k4,125 new stars in the last 7 days
Drive a single exploit attempt all the way to proof instead of giving up one step early — for the failure where you found the bug and wrote the right payload but never confirmed it landed. Three mechanics: (1) inspect and FOLLOW every redirect (a 3xx is a step in the flow, not the end — the reflection or state change often fires only after the Location hop); (2) diff each response against an explicit expected outcome (a named marker, a status, a body delta) — never assume a 2xx or a delivered POST means success; (3) stop and CHANGE APPROACH after N identical failures instead of re-sending the same request. Use when a payload won't land, when the exploit seems delivered but is unconfirmed, when you are following (or skipping) redirects, or when you catch yourself looping the same request. This is per-attempt proof mechanics; for 'is this signal a finding' see triage-validation, for 'don't abandon surface coverage' see redteam-mindset.
You found the bug. You wrote the right payload. Now finish it. The common failure is not missing the vulnerability — it is declaring defeat (or victory) before the response proves which one it is.
Hard rule: An exploit is attempted until a response confirms the expected outcome. "I sent it" is not "it worked." "It 4xx'd once" is not "it can't work." Confirmation is a response you read, named in advance.
This skill is the mechanics of completing one attempt. It is not about
whether the signal is a finding (triage-validation) or whether to keep
covering surface (redteam-mindset). It sits between them: you have a lead,
now drive it to a response you can point at.
A 3xx is a step in the flow, not the end of it. The reflection, the token,
the state change, the error key — any of them can live one hop past the
redirect you didn't follow.
# WRONG: judge the first response, stop at the 302
curl -s -i 'https://app/deliver' --data @payload # -> 302, "looks done"
# RIGHT: see the hop, then follow it and read where it lands
curl -s -i 'https://app/deliver' --data @payload # read Location: first
curl -s -iL 'https://app/deliver' --data @payload # -L: follow, read the FINAL body
Location: before you follow — it is itself a signal. A redirect to
/login, to an ?error=<key>, or to a view.php?v=<constant-hash> is data
about auth/session/error state, not noise (see redteam-mindset, self-throttling anti-patterns).location/web-message, OAuth redirect_uri reflections,
SSO ACS posts) only execute after the browser completes the hop.Before sending, write down the one observable that means success. Then check for that, not for a vague "looks right."
| Exploit class | Expected outcome to assert (named in advance) |
|---|---|
| Reflected / DOM XSS | your unique marker executes / appears in the post-redirect DOM, not just echoes in source |
| IDOR / auth bypass | the other tenant's body field is present, not merely a 200 |
| SSRF (blind) | an OOB callback attributable to one parameter (see hunt-ssrf gate) |
| Redirect-gated reflection | marker present in the final body after -L, status of the last hop |
| Price / logic tamper | the changed amount persists server-side on re-fetch, not just in the response you got |
# Name the marker, then grep the FINAL response for it — binary, not vibes.
# Put the marker in a query param the server can reflect, NOT the URL #fragment:
# curl never sends the fragment, so `#$MARK` can never come back (always 0).
MARK="xqz$(date +%s)"
curl -s -L "https://app/r?next=/x&probe=$MARK" | grep -c "$MARK" # 0 = did NOT land, 1 = reflected
Hard rule: A
2xxis a status, not a success. Assert on the named marker / body delta / OOB hit, decided before you sent the request. If you can't state what "worked" looks like, you are not ready to send it.
Re-sending the same request that failed twice will fail the third time. Set N = 2: two materially identical failed attempts means the approach is wrong, not the execution — the third send changes something or the approach does.
When you hit the cap, change a variable before the next send — do not repeat:
+)application/json vs form, PUT/PATCH)Hard rule: Two identical failures is the last time you send that exact request. The third attempt changes something or the approach changes. Logging "retried, still 403" ten times is not progress — it is a loop.
"Change approach" is not "stop testing." Scope stays open; you are swapping
how you prove this lead, not abandoning it (redteam-mindset DO-NOT-STOP).
If every variable is exhausted and still no confirmation, record the negative
("no redirect-gated reflection on /r; tried body/header/query × 3 encodings")
and move to the next lead — a documented negative is coverage, a loop is not.
The canonical failure this skill prevents (modeled on a July 2026 external
YesWeHack blind-lab writeup of a PortSwigger "DOM XSS via web messages +
javascript: URL" exercise — grounded generically, not a repo-disclosed report):
Before (the ~20-minute loop): agent finds the vulnerable client-side JS in
seconds, writes a correct javascript:-URL web-message payload, POSTs the
exploit to the delivery endpoint, sees a 302, assumes delivery == execution,
and re-sends the identical POST for twenty minutes waiting for a callback
that was never going to come in that response — because the payload only fires
in the victim's browser after it follows the redirect and processes the
web-message.
After (this skill):
302 Location, follow it (-L / browser), inspect
the final page where the web-message handler runs.Proof lands in minutes; the loop never starts.
Location and follow the redirect to the final body?| Skill | Owns | Not this skill because |
|---|---|---|
triage-validation | Is this confirmed signal a finding? (7-Q gate, before report) | runs after you have a landed, confirmed result |
redteam-mindset | Don't abandon surface coverage (engagement axis) | this is one attempt's proof mechanics, not the coverage directive |
bb-methodology | macro PROVE & ESCALATE phase + 45-min rabbit-hole timer | this is the micro-loop inside a single PROVE attempt |
hunt-ssrf / hunt-dom | class-specific detection + the OOB / web-message confirmation gates | this reuses those gates as the "expected outcome", doesn't replace them |
Compose: a hunt-* skill gives you the lead → exploit-completion drives it to
a confirmed response → triage-validation decides if it ships.
AFaffaan-m/ECC314k4,125 new stars in the last 7 days
Audit the whole repo: find bugs, security holes and performance bottlenecks. Get a ranked report in plain English.
DIDietrichGebert/ponytail202k4,780 new stars in the last 7 days
GAgarrytan/gstack143k636 new stars in the last 7 days
Harden code against the OWASP Top 10: input handling, authentication, sessions and dependencies.
ADaddyosmani/agent-skills122k1,627 new stars in the last 7 days
ADaddyosmani/agent-skills122k1,627 new stars in the last 7 days
RUruvnet/RuView106k693 new stars in the last 7 days