chain-analysis
Skill1 starsChanged 11 days agoMITView on GitHub
Main chain-analysis skill. Systematically analyzes all confirmed findings pairwise to find exploit chains that increase impact beyond any single finding. Runs chain_engine.py in two modes: matrix mode (brute-force pairwise scoring of every finding pair against the capability-map) and graph mode (build a pivot graph of footholds→capabilities→new footholds and walk it for multi-hop chains). Produces ranked chain candidates for the specific chain-* skills to develop into full PoCs. Use once two or more CONFIRMED findings exist for the engagement and capability-map/trust-map are available. Use keywords: chain, pivot, escalation path, combine findings, attack path. Do NOT use on unconfirmed/theoretical findings — feed confirmed findings only, per finding-validation's gates.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- ivanyinjc-blip/industry-chain-researchtheir own version, first seen Jul 7, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- ivanyinjc-blip/industry-chain-research★ 9same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository124 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ai-agent-reconSkill
- ai-supply-chainSkill
- exfiltration-via-aiSkill
- indirect-injectionSkill
- llm-fuzzingSkill
- prompt-injectionSkill
- rag-poisoningSkill
- tool-abuseSkill
- chain-auth-to-takeoverSkill
- chain-customSkill
- chain-graph-walkSkill
- chain-idor-to-mass-dataSkill
- chain-info-to-exploitSkill
- chain-multi-appSkill
- chain-ssrf-to-cloudSkill
- chain-web-to-rceSkill
- chain-xss-to-account-takeoverSkill
- email-securitySkill
- engagement-flowSkill
- finding-disciplineSkill
- http-headers-securitySkill
- oob-interactionsSkill
- opsec-disciplineSkill
- research-firstSkill
- scope-disciplineSkill
- scope-importSkill
- session-contextSkill
- 2fa-bypassSkill
- api-abuseSkill
- auth-bypassSkill
- broken-access-controlSkill
- business-logicSkill
- cache-poisoningSkill
- clickjackingSkill
- corsSkill
- credential-testingSkill
- crlf-injectionSkill
- cryptographic-oracleSkill
- csrfSkill
- css-injectionSkill
- data-exfiltration-testSkill
- deserializationSkill
- email-injectionSkill
- file-uploadSkill
- fuzzingSkill
- graphqlSkill
- grpcSkill
- host-headerSkill
- http-smugglingSkill
- idorSkill
- info-disclosureSkill
- jwtSkill
- lateral-movementSkill
- lfi-rfiSkill
- mass-assignmentSkill
- oauthSkill
- open-redirectSkill
- parameter-pollutionSkill
- password-resetSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 37
All five mapping skills completed (asset/trust/identity/state/capability-map).
- Very specific: line 64
Run chain_engine.py --mode graph to walk all paths from any anonymous/external starting node to any high-capability node (full DB access, …
- Distinctive: line 68
Rank candidates: Prefer chains that: cross the most privilege tiers per hop used (fewer findings for more impact gain), reach the …
- Distinctive: line 84
No chain candidate is promoted to a chain-* skill without the specific findings (by ID), the specific trust/capability edge justifying the …
- Distinctive: line 86
Every chain ultimately handed to report-writing must independently satisfy finding- validation's four gates for the *combined* impact, not …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Signals
- Two or more findings have passed finding-validation's gates and the engagement has budget left to look for combinations, not just report each in isolation.
- A single finding's impact looks capped ("just an info leak", "just a low-severity CSRF") but another finding on the same system might remove that cap.
- At a natural checkpoint (end of breadth-first coverage pass, per project CLAUDE.md "cobertura" rule: open 2-3 attack paths before going deep) — chain-analysis is exactly the "before going deep" step that decides which path is worth the depth.
Prerequisites
- All five mapping skills completed (asset/trust/identity/state/capability-map).
- At least two findings that passed finding-validation (Gates 1-4) — this skill explicitly does not run on unvalidated hypotheses.
chain_engine.pyavailable and its--helpchecked before first use per the project's CLI anti-hallucination rule.
Methodology
- Load inputs.
chain_engine.pyingests the confirmed-findings list, the capability matrix, and the trust-graph. Runchain_engine.py --helpfirst to confirm current flags before scripting a call. - Matrix mode — pairwise scoring. For every unordered pair of confirmed findings
(A, B), ask mechanically:
- Does A's output become B's input (A's leaked data satisfies a precondition B needs)?
- Does A's access level unlock a surface B needs reachability to (trust-map boundary crossed)?
- Does A removing a control (rate limit, validation, auth check) remove a blocker that
was the only thing capping B's impact?
Score each pair 0 (no relation) / 1 (plausible, needs manual review) / 2 (clear precondition
satisfied) using
chain_engine.py --mode matrix. Pull every pair scoring ≥1 into manual review — do not auto-promote score-2 pairs without a human looking, scoring heuristics produce false positives on structurally-similar-but-unrelated findings.
- Graph mode — pivot graph. Build a directed graph: nodes are (asset, identity,
capability) triples; an edge exists when a confirmed finding transitions from one triple
to another (e.g. anonymous+web-app → authenticated-low-priv+web-app via an auth bypass).
Run
chain_engine.py --mode graphto walk all paths from any anonymous/external starting node to any high-capability node (full DB access, code execution, payment processing, admin identity). Each such path is a chain candidate. - Rank candidates. Prefer chains that: cross the most privilege tiers per hop used (fewer findings for more impact gain), reach the capabilities the client's RoE flagged as highest concern (check the engagement scope doc), and are reproducible end-to-end within the engagement's remaining budget (project CLAUDE.md: respect the 100-tool-call/phase default).
- Route each candidate to its pattern skill. Match the candidate's shape to the nearest chain-* skill (web→RCE, auth→takeover, info→exploit, SSRF→cloud, XSS→takeover, IDOR→mass-data) and hand it off with the specific finding IDs and the trust/capability edges that justify the link. If no pattern fits, route to chain-custom.
- Record dead ends. Per project CLAUDE.md "cobertura" rule, a pair/path that scored high but failed manual review or failed reproduction is logged as a dead end with the reason — this prevents re-deriving the same non-chain later and is itself reportable coverage.
Validation gate
- No chain candidate is promoted to a chain-* skill without the specific findings (by ID), the specific trust/capability edge justifying the link, and a stated reproduction plan.
- Every chain ultimately handed to report-writing must independently satisfy finding- validation's four gates for the combined impact, not just inherit validity from its component findings.
- Human gate per project CLAUDE.md: any chain whose reproduction requires modifying target state gets explicit operator confirmation before execution, even if every component finding was individually already approved.
Gotchas
- Pairwise matrix mode is O(n²) and gets noisy past ~30 findings — pre-filter to findings with nonzero capability/trust-map evidence before running it at scale, or let graph mode carry the load for larger engagements.
- A chain can be real and still not worth reporting as a single finding if each component is independently critical already (don't manufacture a chain narrative to inflate a report that's already strong) — chain the ones that genuinely change the severity picture.
- Two findings on the "same" endpoint are not automatically a chain — verify the actual data/ control dependency, not just co-location.
- A chain that only works against a staging/test fixture (seeded data, disabled rate limit for QA) is not a valid prod chain — re-verify every hop's preconditions hold in the actually-in-scope environment.
- Graph mode will find paths that are theoretically connected but practically require privilege the attacker model doesn't grant (e.g. assumes physical access) — filter by the engagement's defined threat actor before ranking.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

