FoC: Figure Out the Cryptographic Functions in Stripped Binaries with LLMs

作者
Xiuwei Shang,Guoqiang Chen,Shaoyin Cheng,Shikai Guo,Yanming Zhang,Weiming Zhang,Nenghai Yu
出处
期刊:ACM Transactions on Software Engineering and Methodology [Association for Computing Machinery]
卷期号:35 (1): 1-38 被引量:7
标识
DOI:10.1145/3731449
摘要

Analyzing the behavior of cryptographic functions in stripped binaries is a challenging but essential task, which is crucial in software security fields such as malware analysis and legacy code inspection. However, the inherent high logical complexity of cryptographic algorithms makes their analysis more difficult than that of ordinary code, and the general absence of symbolic information in binaries exacerbates this challenge. Existing methods for cryptographic algorithm identification frequently rely on data or structural pattern matching, which limits their generality and effectiveness while requiring substantial manual effort. In response to these challenges, we present F igure o ut the C ryptographic functions (FoC), a novel framework that leverages Large Language Models (LLMs) to identify and analyze cryptographic functions in stripped binaries. In FoC, we first build an LLM-based generative model ( FoC-BinLLM ) to summarize the semantics of cryptographic functions in natural language form, which is intuitively readable to analysts. Subsequently, based on the semantic insights provided by FoC-BinLLM, we further develop a binary code similarity detection model ( FoC-Sim ), which allows analysts to effectively retrieve similar implementations of unknown cryptographic functions from a library of known cryptographic functions. The predictions of generative model like FoC-BinLLM are inherently difficult to reflect minor alterations in binary code, such as those introduced by vulnerability patches. In contrast, the change-sensitive representations generated by FoC-Sim compensate for the shortcomings to some extent. To support the development and evaluation of these models, and to facilitate further research in this domain, we also construct a comprehensive cryptographic binary dataset and introduce an automatic method to create semantic labels for extensive binary functions. Our evaluation results are promising. FoC-BinLLM outperforms ChatGPT by 14.61% on the ROUGE-L score, demonstrating superior capability in summarizing the semantics of cryptographic functions. FoC-Sim also surpasses previous best methods with a 52% higher Recall@1 in retrieving similar cryptographic functions. Beyond these metrics, our method has proven its practical utility in real-world scenarios, including cryptographic-related virus analysis and 1-day vulnerability detection.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
刚刚
1秒前
1秒前
鳗鱼尔蝶完成签到,获得积分10
2秒前
银玥完成签到,获得积分10
2秒前
内向凡阳完成签到 ,获得积分10
2秒前
wanglei完成签到,获得积分10
2秒前
小橙完成签到,获得积分10
3秒前
HD完成签到,获得积分10
3秒前
3秒前
科目三的应助被八云嘤采纳,获得10
3秒前
herojc发布了新的文献求助10
3秒前
3秒前
Freedom完成签到,获得积分20
4秒前
香蕉觅云的应助被do0采纳,获得10
4秒前
李健的应助被XIAOconglin采纳,获得10
4秒前
4秒前
高高发布了新的文献求助10
4秒前
无聊的骁发布了新的文献求助10
4秒前
4秒前
4秒前
清新的访旋完成签到,获得积分20
5秒前
咚咚锵完成签到 ,获得积分10
5秒前
王松桐发布了新的文献求助10
5秒前
wanglei发布了新的文献求助10
6秒前
田様的应助被Leo采纳,获得10
6秒前
好好完成签到,获得积分10
6秒前
yaya发布了新的文献求助20
6秒前
在水一方的应助被小化采纳,获得10
6秒前
6秒前
6秒前
然然完成签到,获得积分10
7秒前
许进文完成签到,获得积分10
7秒前
7秒前
7秒前
宓广缘发布了新的文献求助10
7秒前
sun完成签到 ,获得积分10
7秒前
null的应助被鳗鱼尔蝶采纳,获得10
8秒前
西瓜关注了科研通微信公众号
9秒前
9秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Energie-Contracting 1500
Mathematical models in hydrology 1000
Klimaschutzrecht durch den Energiesektor im Mehrebenensystem – Ein Rechtsvergleich 1000
Oncology Clinical Trials: Successful Design, Conduct, and Analysis, Second Edition 800
Butadiene hydroxytelechelic oligomers PBHT 500
Ecotourism 400
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 工程类 有机化学 化学工程 生物化学 物理 复合材料 内科学 催化作用 光电子学 人工智能 细胞生物学 无机化学 物理化学 数学
热门帖子
关注 科研通微信公众号,转发送积分 8080246
求助须知:如何正确求助?哪些是违规求助? 9496694
关于积分的说明 21395742
捐赠科研通 7648442
什么是DOI,文献DOI怎么找? 3401174
关于科研通互助平台的介绍 2530491
邀请新用户注册赠送积分活动 2439956