{
  "added_at": "2026-11-06",
  "additional_evidence_urls": [
    "https://github.com/keystone-engine/keypatch/blob/e7ecb93a4d242e83b9356b8258108773464646d4/TUTORIAL.md",
    "https://github.com/keystone-engine/keypatch/blob/e7ecb93a4d242e83b9356b8258108773464646d4/keypatch.py#L105-L118",
    "https://github.com/keystone-engine/keypatch/blob/e7ecb93a4d242e83b9356b8258108773464646d4/COPYING",
    "https://github.com/keystone-engine/keypatch/releases/tag/2.1"
  ],
  "category": "native-analysis",
  "description_en": "IDA Pro plugin built on the Keystone assembler engine that patches a binary from typed assembly, fills an address range with instructions or raw bytes and searches the loaded binary for assembly instructions. It assembles Arm, Arm64, Hexagon, MIPS, PowerPC, SPARC, SystemZ and 16-, 32- and 64-bit x86 code, shows the encoding while you type, can pad with NOPs up to the next instruction boundary, keeps the original instruction in an IDA comment and can undo the last patch.",
  "description_zh": "基于 Keystone 汇编引擎的 IDA Pro 插件：可直接输入汇编指令修补二进制文件，用指令或原始字节填充一段地址范围，并在已加载的二进制文件中搜索汇编指令。它支持 Arm、Arm64、Hexagon、MIPS、PowerPC、SPARC、SystemZ 以及 16/32/64 位 x86，输入时即时显示编码，可用 NOP 填充到下一条指令边界，在 IDA 注释中保留原指令，并可撤销上一次修补。",
  "entry_url": "https://awesomerea.org/resources/keypatch/",
  "entry_url_zh": "https://awesomerea.org/zh/resources/keypatch/",
  "evidence_url": "https://github.com/keystone-engine/keypatch/blob/e7ecb93a4d242e83b9356b8258108773464646d4/README.md",
  "group": "tools",
  "id": "keypatch",
  "json_url": "https://awesomerea.org/resources/keypatch/record.json",
  "kind": "tool",
  "markdown_url": "https://awesomerea.org/resources/keypatch/index.md",
  "markdown_url_zh": "https://awesomerea.org/zh/resources/keypatch/index.md",
  "name": "Keypatch",
  "name_zh": "Keypatch IDA Pro 汇编修补插件",
  "record_type": "resource",
  "relationship": "foundation",
  "requirement_facets": [
    "prerequisites",
    "limits",
    "license"
  ],
  "requirements": [
    "Needs IDA Pro on Windows, macOS or Linux with the Keystone engine and its Python binding plus the six module; keypatch.py is copied into IDA's plugins folder. The README confirms IDA Pro 6.4 to 7.5, and the reviewed master commit (2024-09-06) adds IDA 9.0 API changes. The latest tagged release is 2.1 (2017-01-17), while the code reports version 2.2.",
    "Patches change only the IDA database until Edit | Patch program | Apply patches to input file writes them to the original binary.",
    "GPL-2.0 per COPYING."
  ],
  "requirements_zh": [
    "需要在 Windows、macOS 或 Linux 上安装 IDA Pro，以及 Keystone 引擎及其 Python 绑定和 six 模块；把 keypatch.py 复制到 IDA 的插件目录即可。README 确认支持 IDA Pro 6.4 至 7.5，所审阅的 master 分支提交（2024-09-06）加入了适配 IDA 9.0 API 的修改。最新的标签版本为 2.1（2017-01-17），代码中标注的版本则为 2.2。",
    "修补默认只写入 IDA 数据库，需通过 Edit | Patch program | Apply patches to input file 才会写回原始二进制文件。",
    "依 COPYING 采用 GPL-2.0 许可。"
  ],
  "targets": [
    "binary"
  ],
  "url": "https://github.com/keystone-engine/keypatch",
  "verification": "source-reviewed",
  "verified_at": "2026-11-05"
}
