arrow
返回

PatchDiscovery: Patch Presence Test for Identifying Binary Vulnerabilities Based on Key Basic Blocks

delete2023-12-01
delete2
delete
OA
AI
X
Xi Xu
Q
Qinghua Zheng
Z
Zheng Yan *
M
Ming Fan
贾
贾昂 (Ang Jia)
Z
Zhaohui Zhou
H
Haijun Wang
刘烃 封面图
刘烃 (Ting Liu)
DOI:10.1109/TSE.2023.3332732delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Software vulnerabilities are easily propagated through code reuses, which pose dire threats to software system security. Automatic patch presence test offers an effective way to detect whether vulnerabilities have been patched, which is significant for large-scale software system maintenance. However, most existing approaches cannot handle binary codes. They suffer from low accuracy and poor efficiency. None of them are resilient to version gap, function size, and patch size. To tackle the above problems, we propose PatchDiscovery, a patch presence test approach to identify binary vulnerabilities by extracting key basic blocks of patch and vulnerability as their signatures for patch discovery. We propose an efficient and accurate basic block matching method over the normalized and simplified control flow graphs (CFGs) of a vulnerable function (VF) and its patched function (PF) to precisely locate a vulnerability and a patch. Then, we conduct fine-grained patch-level analysis on the patch and the vulnerability to gain their key basic blocks as the signatures of PF and VF for patch presence test. Concretely, the key basic blocks of PF and VF are separately searched in a target function (TF) to identify whether the TF is more similar to PF or VF, i.e., patched or not. Extensive experiments based on two real-world binary datasets that contain 524 common vulnerabilities and exposures (CVEs) with 11607 target functions reveal that PatchDiscovery is very effective and efficient. It achieves $92.2\%$92.2% F-measure and takes only 0.091s on average to test a target function. It is also resilient to version gap, patch size, and function size to a good extent. Moreover, it is outperforming the state-of-the-art works and has a much faster testing speed for large-scale patch detection. Moreover, PatchDiscovery achieves good performance in firmware vulnerability discovery scenario.
Keyword:
Source coding
Security
Microprogramming
Software systems
Optical fiber testing
Flow graphs
Computer bugs
Patch presence test
vulnerability detection
bug search
software maintenance

期刊

IEEE Transactions on Software Engineering 封面图
IEEE Transactions on Software Engineering
IF:
5.6
论文数:
2.9K
被引数:
1.1W

机构

X
xi'an jiaotong university
学者数:
9.3W
论文数: 6.7W
被引数: 75
X
Xidian University
学者数:
2.4W
论文数: 1.9W
被引数: 9.7K
引用论文

引用论文

Supercurrent in a Double Quantum Dot
err2018-12-20
err0
errOAAI
errJ. C. Estrada Saldaña; A. Vekris; G. Steffensen; R. Žitko; P. Krogstrup; J. Paaske; K. Grove-Rasmussen; J. Nygård
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收藏
Editorial: Neurotransmitters and Emotions
err2020-01-29
err0
errOAAI
errFushun Wang; Jiongjiong Yang; Fang Pan; Roger C. Ho; Jason H. Huang
err分享
err收藏
Accelerometry for remote monitoring of physical activity in amyotrophic lateral sclerosis: a longitudinal cohort study
err2019-06-11
err0
errOAAI
errRuben P. A. van Eijk; Jaap N. E. Bakers; Tommy M. Bunte; Arianne J. de Fockert; Marinus J. C. Eijkemans; Leonard H. van den Berg
err分享
err收藏
err分享
err收藏
Production of reactive oxygen species from abraded silicates. Implications for the reactivity of the Martian soil
err2017-09-01
err0
PREAI
errEbbe N. Bak; Kaloyan Zafirov; Jonathan P. Merrison; Svend J. Knak Jensen; Per Nørnberg; Haraldur P. Gunnlaugsson; Kai Finster
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收藏
Keep your friends close and your competitors closer: novel interspecies interaction in desert biological sand crusts
err2020-12-08
err0
PREAI
errIsaac Kedem; Haim Treves; Gabriella Noble; Martin Hagemann; Omer Murik; Hagai Raanan; Nadav Oren; Mario Giordano; Aaron Kaplan
err分享
err收藏
学者 查看更多内容