{
  "added_at": "2026-11-09",
  "category": "native-analysis",
  "description_en": "HRAST is an IDAPython proof of concept for matching and rewriting the Hex-Rays ctree. Load HRAST.py, put pattern tuples in read_patterns.py, and call reLOAD() so the decompiler window picks them up. unLOAD() turns the changes off. The included patterns rename globals and structure fields and replace an inlined strlen on a global. ast_helper.py builds ctree items. The reviewed page points the ctree verifier at IDA 7.1 or newer.",
  "description_zh": "HRAST 是一个 IDAPython 概念验证，用来匹配并改写 Hex-Rays 的 ctree。加载 HRAST.py，在 read_patterns.py 里写模式元组，再调用 reLOAD()，反编译窗口就会采用它们。unLOAD() 关闭这些改动。附带的模式会重命名全局量和结构字段，并替换作用在全局量上的内联 strlen。ast_helper.py 用来构造 ctree 项。审阅页面把 ctree 校验指向 IDA 7.1 或更高版本。",
  "entry_url": "https://awesomerea.org/resources/hrast/",
  "entry_url_zh": "https://awesomerea.org/zh/resources/hrast/",
  "evidence_url": "https://github.com/sibears/HRAST/blob/5c6485340a2dc6d2f5256fceb10a29e7e879351c/README.md",
  "group": "tools",
  "id": "hrast",
  "json_url": "https://awesomerea.org/resources/hrast/record.json",
  "kind": "tool",
  "markdown_url": "https://awesomerea.org/resources/hrast/index.md",
  "markdown_url_zh": "https://awesomerea.org/zh/resources/hrast/index.md",
  "name": "HRAST",
  "name_zh": "HRAST",
  "record_type": "resource",
  "relationship": "foundation",
  "requirements": [
    "IDA with Hex-Rays and IDAPython. The verifier note names IDA 7.1 or newer.",
    "License: MIT."
  ],
  "requirements_zh": [
    "需要带 Hex-Rays 和 IDAPython 的 IDA。校验说明写的是 IDA 7.1 或更高版本。",
    "许可证：MIT。"
  ],
  "targets": [
    "binary"
  ],
  "url": "https://github.com/sibears/HRAST",
  "verification": "source-reviewed",
  "verified_at": "2026-11-07"
}
