Spatio-Temporal Context Reduction: A Pointer-Analysis-Based Static Approach for Detecting Use-After-Free Vulnerabilities

被引:53
|
作者
Yan, Hua [1 ]
Sui, Yulei [2 ,3 ]
Chen, Shiping [4 ]
Xue, Jingling [1 ]
机构
[1] Univ New South Wales, Sch Comp Sci & Engn, Sydney, NSW, Australia
[2] Univ Technol Sydney, Ctr Artificial Intelligence, Sydney, NSW, Australia
[3] Univ Technol Sydney, Sch Software, Sydney, NSW, Australia
[4] CSIRO, Data61, Canberra, ACT, Australia
关键词
use-after-free; program analysis; bug detection; MEMORY; SAFETY;
D O I
10.1145/3180155.3180178
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Zero-day Use-After-Free (UAF) vulnerabilities are increasingly popular and highly dangerous, but few mitigations exist. We introduce a new pointer-analysis-based static analysis, CRED, for finding UAF bugs in multi-MLOC C source code efficiently and effectively. CRED achieves this by making three advances: (i) a spatio-temporal context reduction technique for scaling down soundly and precisely the exponential number of contexts that would otherwise be considered at a pair of free and use sites, (ii) a multi-stage analysis for filtering out false alarms efficiently, and (iii) a path-sensitive demand-driven approach for finding the points-to information required. We have implemented CRED in LLVM-3.8.0 and compared it with four different state-of-the-art static tools: CBMC (model checking), CLANG (abstract interpretation), COCCINELLE (pattern matching), and SUPA (pointer analysis) using all the C test cases in Juliet Test Suite (JTS) and 10 open-source C applications. For the ground-truth validated with JTS, CRED detects all the 138 known UAF bugs as CBMC and SUPA do while CLANG and COCCINELLE miss some bugs, with no false alarms from any tool. For practicality validated with the 10 applications (totaling 3+ MLOC), CRED reports 132 warnings including 85 bugs in 7.6 hours while the existing tools are either unscalable by terminating within 3 days only for one application (CBMC) or impractical by finding virtually no bugs (CLANG and COCCINELLE) or issuing an excessive number of false alarms (SUPA).
引用
收藏
页码:327 / 337
页数:11
相关论文
共 48 条
  • [21] A FEATURE-BASED SCHEME FOR DETECTING AND CLASSIFYING VIDEO-SHOT TRANSITIONS BASED ON SPATIO-TEMPORAL ANALYSIS AND FUZZY CLASSIFICATION
    Lin, Guo-Shiang
    Chang, Min-Kuan
    Chiu, Shien-Tang
    [J]. INTERNATIONAL JOURNAL OF PATTERN RECOGNITION AND ARTIFICIAL INTELLIGENCE, 2009, 23 (06) : 1179 - 1200
  • [22] Spatio-temporal analysis of groundwater recharge and mound dynamics in an unconfined aquifer: a GIS-based approach
    Vijay, Ritesh
    Panchbhai, Nikhll
    Gupta, Apurba
    [J]. HYDROLOGICAL PROCESSES, 2007, 21 (20) : 2760 - 2764
  • [23] Environmental Noise Sensing Approach Based on Volunteered Geographic Information and Spatio-Temporal Analysis with Machine Learning
    Torres-Ruiz, Miguel
    Juarez-Hipolito, Juan H.
    Lytras, Miltiadis Demetrios
    Moreno-Ibarra, Marco
    [J]. COMPUTATIONAL SCIENCE AND ITS APPLICATIONS - ICCSA 2016, PT IV, 2016, 9789 : 95 - 110
  • [24] Food vs. biofuel: An optimization approach to the spatio-temporal analysis of land-use competition and environmental impacts
    Cobuloglu, Halil I.
    Bueyuektahtakin, I. Esra
    [J]. APPLIED ENERGY, 2015, 140 : 418 - 434
  • [25] Development and validation of an analytical procedure to detect spatio-temporal differences in antidepressant use through a wastewater-based approach
    Boogaerts, Tim
    Degreef, Maarten
    Covaci, Adrian
    van Nuijs, Alexander L. N.
    [J]. TALANTA, 2019, 200 : 340 - 349
  • [26] Land use information extraction and spatio-temporal variation analysis of Poyang Lake Basin based on remote sensing
    Liu, Hai
    Xia, Huiqiong
    Zhou, Bo
    [J]. MIPPR 2013: REMOTE SENSING IMAGE PROCESSING, GEOGRAPHIC INFORMATION SYSTEMS, AND OTHER APPLICATIONS, 2013, 8921
  • [27] The Impact of Renewable Energy Development on Regional Carbon Emission Reduction: Based on the Spatio-Temporal Analysis of 30 Provinces in China
    Li, Chuang
    Yang, Xiaofan
    Wang, Liping
    [J]. ENVIRONMENTAL MANAGEMENT, 2024, 74 (03) : 439 - 460
  • [28] Spatio-temporal analysis of land use and land cover changes in a wetland ecosystem of Bangladesh using a machine-learning approach
    Siddique, Abu Bokkar
    Rayhan, Eliyas
    Sobhan, Faisal
    Das, Nabanita
    Fazal, Md Azizul
    Riya, Shashowti Chowdhury
    Sarker, Subrata
    [J]. FRONTIERS IN WATER, 2024, 6
  • [29] Estimating spatio-temporal changes in front edge of the Ronne Ice Shelf in context of climate change using remote sensing based integrated approach
    Kundu, Bishakha
    Kumar, Avinash
    Srivastava, Aakriti
    Chatterjee, Debrupa
    Xie, Fumming
    Singh, Dharmaveer
    [J]. POLAR SCIENCE, 2023, 37
  • [30] Explanation and Analysis of Spatio-Temporal Correlations-Towards a Conceptual Approach of a Semantic Comparison Visualization in a Use Case of Carparks in Mainz, Germany
    Rolwes, Alexander
    Boehm, Klaus
    [J]. ISPRS INTERNATIONAL JOURNAL OF GEO-INFORMATION, 2023, 12 (08)