nday
Skill329 starsChanged 4 months agoMITView on GitHub
N-day / patch-diff workflow - given a CVE/advisory or a suspicious patch, diff pre- vs post-patch to locate the fixed bug, build a PoC for the unpatched version, and run variant analysis for a fresh bug. Triggers - "n-day", "patch diff", "diff the patch", "bindiff".
In this repository56 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- hunt-burpSkill
- screenshot-burpSkill
- claude-md-improverSkill
- disclosureSkill
- hunt-adSkill
- hunt-apiSkill
- hunt-authSkill
- hunt-bizlogicSkill
- hunt-cacheSkill
- hunt-cicdSkill
- hunt-cloudSkill
- hunt-coreSkill
- hunt-deserializationSkill
- hunt-federationSkill
- hunt-icsSkill
- hunt-idorSkill
- hunt-injectionSkill
- hunt-llmSkill
- hunt-m365Skill
- hunt-macosSkill
- hunt-mcpSkill
- hunt-rceSkill
- hunt-secretsSkill
- hunt-smugglingSkill
- hunt-sqliSkill
- hunt-ssrfSkill
- hunt-uploadSkill
- hunt-vpnSkill
- hunt-windowsSkill
- hunt-xssSkill
- researchSkill
- wikiSkill
- arsenalSkill
- bb-workflowSkill
- campaign-healthSkill
- chrome-devtools-browserSkill
- coverageSkill
- ctf-boxSkill
- ctf-categorySkill
- ctf-workflowSkill
- delegateSkill
- evidenceSkill
- fuzzSkill
- ingestSkill
- learnSkill
- metasploitSkill
- next-moveSkill
- pt-workflowSkill
- redteamleadSkill
- research-ingestSkill
- screenshotSkill
- triageSkill
- walkthroughSkill
- wiki-arsenalSkill
- wiki-reconSkill
The file
Files
N-day / Patch Diffing
Turn a patched vulnerability into a working PoC, or surface a silently-patched bug. Read [[nday-patch-diffing]] first.
Procedure
- Acquire both versions - vulnerable + fixed: git tags, release assets, distro packages, or vendor binaries.
- Diff:
- source:
git log <fixtag>~5..<fixtag>thengit diff <vulntag> <fixtag>over the suspect path; read the changed function. - binary: BinDiff / Diaphora / [[ghidra]] Version Tracking; open functions flagged changed (not just recompiled).
- source:
- Root-cause from the diff - what the patch adds (bounds/auth/sanitization check) reveals what was missing; trace the now-checked value back to attacker input.
- Build the trigger - craft input that reaches the pre-patch unchecked path; reproduce on the vulnerable build; confirm reachability in a realistic config.
- Variant analysis - grep / [[codeql]] for the same flawed pattern the patch did not touch -> potential new CVE (then hand off to the
disclosureskill).
Output
- PoC/trigger in
raw/research/<project>/poc/and the bug recorded infindings.md(markn-day CVE-xxxxorcandidateif a new variant). - Note affected/fixed versions and the exact patch commit.
Wiki feedback
Reusable diffing trick or a found variant pattern -> update [[nday-patch-diffing]] (or the matching technique page via research-ingest).
Report: target patch, located bug, PoC status, any variant found.
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.

