
For our CCS24 paper 🏆 "ReSym: Harnessing LLMs to Recover Variable and Data Structure Symbols from Stripped Binaries" by Danning Xie, Zhuo Zhang, Nan Jiang, Xiangzhe Xu, Lin Tan, and Xiangyu Zhang. 🏆 ACM SIGSAC Distinguished Paper Award Winner
يوفر هذا المستودع القطع الأثرية للورقة البحثية "ReSym: Harnessing LLMs to Recover Variable and Data Structure Symbols from Stripped Binaries" (CCS 2024).
🏆 الحائز على جائزة ACM SIGSAC للورقة البحثية المتميزة
ملاحظة: نحن نقوم بنشاط بصيانة/تحديث القطع الأثرية الخاصة بنا. يرجى التأكد من استخدامك لأحدث إصدار.
process_data. يقوم بإنشاء بيانات تدريب تحتوي على معلومات الرموز الصحيحة (Ground Truth). النص البرمجي يعمل بضغطة زر واحدة، وتعليمات الاستخدام موجودة في المجلد.ReSym_rawdata). يتضمن ذلك الملفات الثنائية الخام والكود المفكك المقابل الذي استخدمناه في هذا المشروع:
bin/: يحتوي على ملفات ثنائية خام غير مُجرّدة (non-stripped) مع معلومات تصحيح الأخطاء.decompiled/: الكود المفكك من ملفات ثنائية مُجرّدة بالكامل (fully stripped).metadata.json: بيانات وصفية للملفات الثنائية، بما في ذلك معلومات المشروع.training_src لنموذجي VarDecoder و FieldDecoder.ReSym_data). يتضمن ذلك: بيانات التدريب، وبيانات الاختبار، ونتائج التنبؤ لنموذجي FieldDecoder و VarDecoder.posterior_reasoning. التفاصيل والتعليمات موجودة في المجلد.training_src.@inproceedings{10.1145/3658644.3670340,
author = {Xie, Danning and Zhang, Zhuo and Jiang, Nan and Xu, Xiangzhe and Tan, Lin and Zhang, Xiangyu},
title = {ReSym: Harnessing LLMs to Recover Variable and Data Structure Symbols from Stripped Binaries},
year = {2024},
isbn = {9798400706363},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
url = {https://doi.org/10.1145/3658644.3670340},
doi = {10.1145/3658644.3670340},
abstract = {Decompilation aims to recover a binary executable to the source code form and hence has a wide range of applications in cyber security, such as malware analysis and legacy code hardening. A prominent challenge is to recover variable symbols, including both primitive and complex types such as user-defined data structures, along with their symbol information such as names and types. Existing efforts focus on solving parts of the problem, e.g., recovering only types (without names) or only local variables (without user-defined structures). In this paper, we propose ReSym, a novel hybrid technique that combines Large Language Models (LLMs) and program analysis to recover both names and types for local variables and user-defined data structures. Our method encompasses fine-tuning two LLMs to handle local variables and structures, respectively. To overcome the token limitations inherent in current LLMs, we devise a novel Prolog-based algorithm to aggregate and cross-check results from multiple LLM queries, suppressing uncertainty and hallucinations. Our experiments show that ReSym is effective in recovering variable information and user-defined data structures, substantially outperforming the state-of-the-art methods.},
booktitle = {Proceedings of the 2024 on ACM SIGSAC Conference on Computer and Communications Security},
pages = {4554–4568},
numpages = {15},
keywords = {large language models, program analysis, reverse engineering},
location = {Salt Lake City, UT, USA},
series = {CCS '24}
}