arrow
返回

Asteria-Pro: Enhancing Deep Learning-based Binary Code Similarity Detection by Incorporating Domain Knowledge

delete2023-11-24
delete16
delete
OA
AI
S
Shouguo Yang
C
Chaopeng Dong
Y
Yang Xiao
Y
Yiran Cheng
Z
Zhiqiang Shi *
Z
Zhi Li
L
Limin Sun
DOI:10.1145/3604611delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Widespread code reuse allows vulnerabilities to proliferate among a vast variety of firmware. There is an urgent need to detect these vulnerable codes effectively and efficiently. By measuring code similarities, AI-based binary code similarity detection is applied to detecting vulnerable code at scale. Existing studies have proposed various function features to capture the commonality for similarity detection. Nevertheless, the significant code syntactic variability induced by the diversity of IoT hardware architectures diminishes the accuracy of binary code similarity detection. In our earlier study and the tool Asteria, we adopted a Tree-LSTM network to summarize function semantics as function commonality, and the evaluation result indicates an advanced performance. However, it still has utility concerns due to excessive time costs and inadequate precision while searching for large-scale firmware bugs. To this end, we propose a novel deep learning-enhancement architecture by incorporating domain knowledge-based pre-filtration and re-ranking modules, and we develop a prototype named ASTERIA-PRO based on Asteria. The pre-filtration module eliminates dissimilar functions, thus reducing the subsequent deep learning-model calculations. The re-ranking module boosts the rankings of vulnerable functions among candidates generated by the deep learning model. Our evaluation indicates that the pre-filtration module cuts the calculation time by 96.9%, and the re-ranking module improves MRR and Recall by 23.71% and 36.4%, respectively. By incorporating these modules, ASTERIA-PRO outperforms existing state-of-the-art approaches in the bug search task by a significant margin. Furthermore, our evaluation shows that embedding baseline methods with pre-filtration and re-ranking modules significantly improves their precision. We conduct a large-scale real-world firmware bug search, and ASTERIA-PRO manages to detect 1,482 vulnerable functions with a high precision 91.65%.
Keyword:
Binary code similarity detection
pre-fitering
re-ranking
abstract syntactic tree
graph neural network

期刊

A
ACM Transactions on Software Engineering and Methodology
IF:
6.2
论文数:
1.2K
被引数:
3.4K

机构

C
chinese academy of sciences
学者数:
56.7W
论文数: 45.0W
被引数: 704
引用论文

引用论文

An autonomous in situ detection system for radioactivity measurements in the marine environment
err2008-10-01
err0
PREAI
errC. Tsabaris; C. Bagatelas; Th. Dakladas; C.T. Papadopoulos; R. Vlastou; G.T. Chronis
err分享
err收藏
Spiking Suppression Precedes Cued Attentional Enhancement of Neural Responses in Primary Visual Cortex
err2017-11-23
err0
errOAAI
errMichele A Cox; Kacie Dougherty; Geoffrey K Adams; Eric A Reavis; Jacob A Westerberg; Brandon S Moore; David A Leopold; Alexander Maier
err分享
err收藏
err分享
err收藏
p-Cresyl glucuronide is a major metabolite of p-cresol in mouse: in contrast to p-cresyl sulphate, p-cresyl glucuronide fails to promote insulin resistance
err2017-08-03
err0
errOAAI
errLaetitia Koppe; Pascaline M Alix; Marine L Croze; Stéphane Chambert; Raymond Vanholder; Griet Glorieux; Denis Fouque; Christophe O Soulage
err分享
err收藏
Accurate and Scalable Cross-Architecture Cross-OS Binary Code Search with Emulation
err2019-11-01
err43
PREAI
errXue, Yinxing; Xu, Zhengzi; Chandramohan, Mahinthan; Liu, Yang
err分享
err收藏
学者 查看更多内容