patch-diff-exploit

patch-diff-exploit is a skill for Claude Code, Codex from xAmirHamza77/ReverseOps-Skill. It costs 167 tokens per session (3,632 once invoked), scanned A, original, MIT.

A workflow for comparing vulnerable software with a vendor's security patch to infer how a known flaw works. A CVE is a public identifier for a specific software vulnerability, and an N-day is a known flaw that some systems have not fixed yet.

In plain words
What is it for?
Use it to diff patches, understand the changed code, create a proof of concept, and develop an exploit for controlled security work.
Why use it?
It helps analyze a vulnerability when the vendor published a fix but no working proof of concept. It is intended for authorized security testing of systems that may still be unpatched.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is dpkg-deb -x linux-image-5.15.0-101-generic_*.deb ./patched/.

Good fit Use it to diff patches, understand the changed code, create a proof of concept, and develop an exploit for controlled security work.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/xAmirHamza77/ReverseOps-Skill
agentmods
npx agentmods add skills/xamirhamza77/reverseops-skill/patch-diff-exploit

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for patch-diff-exploit

README.md
[![agentmods](https://agentmods.dev/badge/skills/xamirhamza77/reverseops-skill/patch-diff-exploit/github.svg)](https://agentmods.dev/skills/xamirhamza77/reverseops-skill/patch-diff-exploit)
Your own site
<a href="https://agentmods.dev/skills/xamirhamza77/reverseops-skill/patch-diff-exploit"><img src="https://agentmods.dev/badge/skills/xamirhamza77/reverseops-skill/patch-diff-exploit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for patch-diff-exploit

Your own site · 80×15
<a href="https://agentmods.dev/skills/xamirhamza77/reverseops-skill/patch-diff-exploit"><img src="https://agentmods.dev/badge/skills/xamirhamza77/reverseops-skill/patch-diff-exploit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 167 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,632 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00167 $0.03632
Opus 5.5 $0.00067 $0.01453
Sonnet 5.5 $0.00033 $0.00726
Haiku 4.5 $0.00017 $0.00363

Measured 1mo ago against content hash 0a0b62d55a35, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

patch-diff-exploit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/patch-diff-exploit/SKILL.md · 275 lines

How it starts

The opening of the file, as written. The whole thing — 275 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ACTION REQUIRED (execute immediately after reading)

  1. NOW: Read ../field-journal/precedent-reverse.md — confirm this skill's operations are authorized routine operations
  2. NOW: Confirm whether the current task falls within this skill's scope
  3. NEXT: Read ../tool-index.md to verify tool availability and actual paths
  4. NEXT: If a tool is missing, call bootstrap — do not guess paths
  5. ACT: Enter the first step of the "Workflow" and execute; do not stall in a confirmation state

N-day Patch Diffing to Exploitation (Patch Diff Exploit)

Scope

Use this skill when the task matches one of the following scenarios:

  1. Known CVE but no public PoC — the vendor advisory says "fixed an out-of-bounds write in component XX" but released no PoC, so the vulnerability must be reverse-inferred from the patch
  2. SRC / red team hitting N-days — target assets were not updated in time; the just-released patch must be diffed into a working 1-day exploit
  3. Patch Tuesday follow-up — Microsoft releases patches on the second Tuesday of each month; high-value vulnerabilities must be identified quickly (Kernel / Win32k / AFD / CLFS)
  4. Linux LTS patch analysis — the mainline fix is merged, but downstream branches or a distribution's backport is incomplete; find the unpatched surface
  5. Security patch reconstruction for drivers / services — patch analysis of closed-source software such as GPU drivers, AV engines, and virtualization components

Division of Labor with Other Skills

Scenario What to use
Have symbols for the old version and want to migrate them to the new version to aid analysis binary-diff/
Find the vulnerability from the patch and write a PoC against the pre-patch version This skill
Build a full exploit chain (heap spray, ROP, privilege escalation) pwn-chain/
Weaponize a 1-day and deploy it to a target network pentest-tools/network-attack-defense/
Reverse a binary from scratch ida-reverse/ / radare2/

Read the full file on GitHub · 275 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 275 lines · 167 tokens per session scan A 0a0b62d55a35

Subscribe to this mod's changes

patch-diff-exploit is a skill published in the GitHub repository xAmirHamza77/ReverseOps-Skill (5 stars, last pushed 2mo ago), licensed MIT. It adds 167 tokens to every session and 3,632 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories