mizazhaider-ceh/agentarsenal/binary-patching
Claude Code and agent skill by mizazhaider-ceh/agentarsenal
- community
Checking that the SKILL.md file is still in the repository.
Use when patching binaries in a lab on authorized targets: your own software, CTF binaries, or client approved test builds. Covers byte patching, assembly level fixes, and verifying patches. Also use when demonstrating a fix for a found vulnerability.
Install
npx vskill@latest install mizazhaider-ceh/agentarsenal/binary-patchingSKILL.md
The same SKILL.md was published earlier as mizazhaider-ceh/agentarsenal/binary-patching.
Binary patching modifies compiled code directly: flip a check, NOP a call, or fix a vulnerability when source is unavailable. This skill covers the lab method on binaries you own or may test: finding the bytes, making minimal patches, and verifying behavior. Never patch someone else's software or production systems.
Quick Workflow
- Work on a copy; keep the original hash for comparison.
- Locate the target in a disassembler: the check, the call, or the
vulnerable code.
- Design the minimal patch: same size or smaller is easiest.
- Apply the bytes with a patcher or Python.
- Verify: the behavior changed as intended and nothing else broke.
- Test the surrounding functionality, not just the patched path.
- Document the offset, original bytes, and new bytes.
- Prefer fixing the source; patching is for when you cannot.
1. Byte patching
2. Common patch patterns (lab)
Edge cases
- The binary is signed or has integrity checks. Patching breaks
the signature; that is expected, note it.
- Patch space is too small. Use a code cave: jump to empty space,
do the work, jump back.
- Position independent code: patch relative offsets carefully, not
absolute addresses.
Escalation
- Need to add substantial logic: write the new code as a shared
library and LD_PRELOAD it instead of patching.
- Patching production: do not. Fix the source and redeploy.
Detection and defender view
Defenders detect patching with code signing, integrity monitoring, and hash allowlists. Patching is also how attackers crack software, which is why the authorization boundary matters: this skill is for your binaries and lab targets. The durable defense for vendors is signed updates and tamper detection, not obscurity.
Key references
- Ghidra patching workflows.
- "Practical Binary Analysis": patching chapters.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/binary/binary-patching/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mizazhaider-ceh/agentarsenal/binary-patching)