patch-diff-analyzer

Generate diffs from decompiled Java and .NET binaries to identify security-relevant changes.

112|13|Updated Dec 1, 2025
One-click install
npx skills add https://github.com/HacktronAI/skills --skill patch-diff-analyzer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: patch-diff-analyzer
Source: https://github.com/HacktronAI/skills/tree/main/patch-diff-analyzer
Command: npx skills add https://github.com/HacktronAI/skills --skill patch-diff-analyzer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jadx, jd-cli, cfr, ilspycmd, monodis, and includes scripts (resource) components.

What problem does it solve?

This Skill automates the process of comparing two binary versions (unpatched vs patched) to identify security-related changes, enabling faster vulnerability analysis.

Core Features & Use Cases

  • Decompilation: Decompile Java JARs or .NET DLLs to expose readable source or IL.
  • Diff Generation: Generate patch-analysis.diff showing differences between versions.
  • Workflow Guidance: Provide a repeatable, git-based workflow to identify and analyze security changes in binaries.

Quick Start

Set up a workspace with the provided script, decompile the unpatched binary into decompiled/, commit with tag unpatched, then decompile the patched binary, commit with tag patched, and run analyze-diff.sh to generate patch-analysis.diff and changed-files.txt.

Frequently Asked Questions about patch-diff-analyzer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compare binary patches to identify security fixes between versions?

Binary patch analysis identifies security-relevant changes by decompiling unpatched and patched binaries, then generating diffs to reveal what was modified. This Skill automates the comparison workflow using jadx, jd-cli, CFR, or ilspycmd to expose source code or IL from Java JARs and .NET DLLs, producing patch-analysis.diff and changed-files.txt for vulnerability analysis.

What decompilers does this Skill support for Java and .NET binaries?

The Skill integrates jadx, jd-cli, and CFR for Java JAR decompilation, and ilspycmd for .NET DLLs and EXEs. It applies the appropriate decompiler based on binary type, then generates diffs between decompiled versions to expose security changes across commits or releases.

Can I use this Skill to analyze security patches in both Java and .NET applications?

Yes. The Skill handles Java JARs via jadx, jd-cli, or CFR, and .NET DLLs/EXEs via ilspycmd. Set up separate git workflows per binary type, tag unpatched and patched versions, and run analyze-diff.sh to generate patch reports for both platforms.

How do I set up a git-based workflow to track and compare binary versions?

Create a workspace, decompile the unpatched binary into decompiled/, commit and tag as 'unpatched', then decompile the patched binary, commit and tag as 'patched'. Running analyze-diff.sh generates patch-analysis.diff and changed-files.txt showing all security-relevant modifications between versions.

What files does the Skill produce after analyzing a patch?

The Skill generates patch-analysis.diff, which shows line-by-line differences between decompiled versions, and changed-files.txt, which lists all modified files. These outputs enable rapid identification and documentation of security changes for vulnerability assessment.

Does this Skill require git to work, or can I analyze binaries independently?

Git is required. The Skill uses git tags ('unpatched' and 'patched') to organize decompiled source versions and generate diffs. The git-based workflow ensures repeatable, version-controlled binary analysis for security patch comparison.