dedup
Skill1 starsChanged 10 days agoMITView on GitHub
Stage 2 of the validation pipeline (`/quarry:validate`). Collapse findings that share the same underlying root cause — including ones discovered on different endpoints, by different * skills, or in different sessions — into a single finding with multiple instances, before the 4 gates and triage-gate spend effort reviewing the same bug twice. Use after evidence-hygiene has confirmed the candidate set has real evidence, and before finding-validation. Do NOT use this to merge two genuinely distinct vulnerabilities that happen to look similar on the surface — same CWE alone is not enough; the root cause and remediation must match too.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- tonydzi/second-brain-starter-kittheir own version, first seen Sep 8, 2026
- gmanch94/claude-code-aidlc-templatetheir own version, first seen Jul 11, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- tonydzi/second-brain-starter-kit★ 6same name
- gmanch94/claude-code-aidlc-template★ 2same 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-analysisSkill
- 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
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 125
Don't dedup across different environments (staging vs.
≈ “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 in the current batch share a
vuln_class/CWE and were found on related endpoints or via similar techniques. - A * skill's methodology was applied across multiple endpoints and surfaced the same flaw repeatedly (e.g. missing output encoding reflected in three different parameters of the same handler).
/quarry:chain's matrix mode flagged a pair as a suspected spurious chain between two symptoms of the same bug (perchain-analysis's gotchas).- Re-running validation after a prior engagement's findings were imported and may overlap with newly discovered ones.
Prerequisites
- Candidate findings have passed
evidence-hygiene(each has real, timestamped evidence — deduplication decisions on unverified evidence are unreliable). - Access to each candidate's full finding record, not just its title/severity.
Methodology
- Group by surface signal first, to build a short candidate-duplicate list cheaply. Bucket
findings by
vuln_class/CWE and by asset family (same app, same service) before doing any deep comparison — this is a cheap pre-filter, not the actual dedup decision.jq -r '.[] | [.vuln_class, .asset, .id] | @tsv' findings.json | sort - For each candidate pair/group, check the three dedup conditions explicitly. All three
must hold for it to be a true duplicate, not just two:
- Same CWE (surface classification matches).
- Same root cause — the actual mechanism is identical (e.g. "no output encoding on user-controlled fields rendered into HTML", not just "both are XSS" — a reflected XSS in a search param and a stored XSS in a profile bio share a CWE but not a root cause unless the encoding gap is the literal same code path/library).
- Same remediation — the fix a developer would ship is the same change (same function, same library call, same validation layer), not two unrelated fixes that happen to address the same CWE.
- Verify root cause with evidence, not assumption. Where source is available, confirm both instances trace to the same function/module. Black-box, confirm the behavioral signature matches exactly (same error message, same bypass technique, same missing header) rather than inferring sameness from the vuln class label alone.
- Keep the instance with the strongest evidence as the primary record. "Strongest" means: most complete evidence (full request/response over partial), most convincing impact (demonstrated over inferred), and if tied, the earliest-discovered ID (per project convention, oldest ID wins on a tie — keeps history stable across re-runs).
- Fold the other instances in as additional reproduction instances, don't discard them.
Attach each duplicate's endpoint/parameter and its own evidence reference to the primary
finding's
steps_to_reproduce/instance list — this strengthens the "it's not a one-off" case (perfinding-evidence-standards.md's IDOR "ideal" bar) rather than losing the information.# mark the non-primary instance explicitly, keep the finding, not silently delete it FindingsStore.update_status(dup_id, FindingStatus.KILLED, reason=f"duplicate of {primary_id}") - Apply the same test to chain candidates, not just standalone findings. Two chain
candidates that reach the same end-state via the same pair of underlying findings — just
discovered from the matrix side vs. the graph side of
chain_engine.py— are the same chain, not two. Cross-checkchain_idcandidates by theirfindingsset before treating both as independently reportable. - When in doubt, don't merge. A false merge hides a second, genuinely distinct bug behind one write-up — worse for the client than a false non-merge, which only costs a slightly longer findings list. If the root-cause match is uncertain, keep both and note the suspicion in each record for a human to resolve, rather than deciding unilaterally.
- Converge on self-duplicates before repeating validation or reporting. Search current and
imported findings by program/asset, root cause and remediation, not only title. When the same
issue is rediscovered, link the new candidate to the original finding ID in
metadataasduplicate_kind=self,duplicate_of=<id>and retain the new evidence as another instance; do not restart the full validation/report pipeline as if it were new. For an externally known or previously reported program issue, recordduplicate_kind=programplus the program report or triage reference, and exclude it from new-report exports. Never infer program duplicates from a title match: preserve the reference and human rationale. A link is not deletion, and uncertain matches remain separate for review.
Validation gate
- Every merge decision states explicitly which of the three conditions (CWE, root cause, remediation) was checked and how, not just "looks similar."
- The primary (surviving) finding carries every duplicate instance's endpoint/evidence as an additional reproduction, not just a count.
- Every non-primary duplicate is marked
KILLEDwithreason="duplicate of <primary_id>"and preserved in the record, never silently deleted. - Self/program duplicate checks record the linked ID/reference and rationale before repeat validation; duplicate candidates cannot enter new-report exports as independent findings.
- Chain candidates are checked for duplication by their component-findings set, not just by name/description similarity.
Gotchas
- Same CWE is the weakest of the three signals and the one most likely to produce a false
merge — an IDOR on
/invoices/{id}and an IDOR on/users/{id}are the same CWE but may have entirely different root causes (one a missing ownership check, the other a predictable-ID issue with no check at all) with different fixes; don't merge on CWE alone. - The reverse failure — reporting the same root cause as N separate findings "to be thorough"
— inflates the apparent severity count without adding real information, and
finding- evidence-standards.md's transversal rules flag this explicitly as a quality defect (Regla 7, anti-fabrication rules). - A finding discovered independently in two different engagement phases (e.g. once during
js-analysis, once duringapi-abuse) is a legitimate dedup candidate even though the discovery paths look unrelated — check root cause, not discovery method. - Don't dedup across different environments (staging vs. prod) even if the root cause is
identical — document the delta per
finding-evidence-standards.md's N/A scenarios instead of collapsing them.
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.

