Callee:使用迁移和对比学习恢复二进制文件的调用图
Callee: Recovering Call Graphs for Binaries with Transfer and Contrastive Learning
摘要:
恢复二进制程序的调用图对于过程间分析任务和基于它们的应用程序至关重要。transfer核心挑战之一是识别间接调用的目标(即,间接被呼叫者)。现有的解决方案都具有较高的误报和漏报率,使得调用图不准确。在本文中,我们提出了一个新的解决方案Callee结合迁移学习和对比学习。关键的见解是,深度神经网络(DNN)可以自动识别有关间接调用的模式,这比设计近似算法或启发式规则来处理各种情况更有效。受问答应用的启发,我们利用对比学习来回答callsite-callee问题。然而,最严峻的挑战之一是DNN需要大型数据集来实现高性能,而收集大规模的间接调用地面实况可能是计算昂贵的。由于直接调用和间接调用共享类似的调用惯例,因此可以将从直接调用中学到的知识转移到间接调用中。因此,我们利用迁移学习来预训练具有易于收集的直接调用的DNN,并进一步微调间接调用DNN。我们对几组目标进行了评估,结果表明,我们的解决方案可以将呼叫站点与被呼叫者匹配,F1测量值为94.6%,远远优于最先进的解决方案。此外,我们将Callee应用于二进制代码相似性检测和混合模糊,并发现它可以大大提高其性能。
英文摘要:
Recovering binary programs' call graphs is crucial for inter-procedural analysis tasks and applications based on them.transfer One of the core challenges is recognizing targets of indirect calls (i.e., indirect callees). Existing solutions all have high false positives and negatives, making call graphs inaccurate. In this paper, we propose a new solution Callee combining transfer learning and contrastive learning. The key insight is that, deep neural networks (DNNs) can automatically identify patterns concerning indirect calls, which can be more efficient than designing approximation algorithms or heuristic rules to handle various cases. Inspired by the advances in question-answering applications, we utilize contrastive learning to answer the callsite-callee question. However, one of the toughest challenges is that DNNs need large datasets to achieve high performance, while collecting large-scale indirect-call ground-truths can be computational-expensive. Since direct calls and indirect calls share similar calling conventions, it is possible to transfer knowledge learned from direct calls to indirect ones. Therefore, we leverage transfer learning to pre-train DNNs with easy-to-collect direct calls and further fine-tune the indirect-call DNNs. We evaluate Callee on several groups of targets, and results show that our solution could match callsites to callees with an F1-Measure of 94.6%, much better than state-of-the-art solutions. Further, we apply Callee to binary code similarity detection and hybrid fuzzing, and found it could greatly improve their performance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。