Integrating Static Analyses for High-Precision Control-Flow Integrity

被引:0
|
作者
Kasten, Florian [1 ]
Zieris, Philipp [1 ]
Horsch, Julian [1 ]
机构
[1] Fraunhofer AISEC, Garching, Germany
关键词
Control-Flow Integrity; Static Data-Flow Analysis; Whole-Program Analysis; Pointer Analysis; LLVM; SVF; Multi-Layer Type Analysis;
D O I
10.1145/3678890.3678920
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Memory corruptions are still one of the most prevalent and severe security vulnerabilities in today's programs. For this reason, several techniques for mitigating software vulnerabilities exist and are used in production systems. An important mitigation involves the prevention of invalid control flow transfers. Attackers often corrupt function pointers to subvert a forward-edge in a program's call graph. Forward-edges can be protected using Control-Flow Integrity (CFI), for which practical implementations already exist. However, current CFI implementations are often imprecise, allowing more control flow transfers than necessary. This often leaves sufficient leeway for an attacker to successfully exploit a program. This paper presents High-Precision CFI (HPCFI), a concept and implementation for precise forward-edge CFI protection of indirect calls in C and C++ programs using a combination of type analysis and static data-flow analysis for determining valid forward-edges. HPCFI is implemented as LLVM compiler passes that perform a precise type analysis and utilize the Static Value-Flow (SVF) framework to conduct a static data-flowanalysis. The combination of type analysis and static data-flow analysis offers higher precision than conventional heuristic-based approaches. Our evaluation, using all compatible benchmarks from SPEC CPU 2017, demonstrates that HPCFI can be effectively applied to large projects with an average performance overhead of only 1.3%, while improving the precision of established CFI mechanisms, such as Clang CFI, by up to 99% and 40% on average.
引用
收藏
页码:419 / 434
页数:16
相关论文
共 50 条
  • [31] PROLEPSIS: Binary analysis and instrumentation of IoT software for control-flow integrity
    Forte, Valentina
    Maunero, Nicolo
    Prinetto, Paolo
    Roascio, Gianluca
    International Conference on Electrical, Computer, Communications and Mechatronics Engineering, ICECCME 2021, 2021,
  • [32] Optimal Actuator Placement for the High-Precision Control of Quasi-Static Elastic Plates
    Heining, Andre
    Schmidt, Kevin
    Schonhoff, Ulrich
    Sawodny, Oliver
    IEEE TRANSACTIONS ON CONTROL SYSTEMS TECHNOLOGY, 2023, 31 (06) : 2608 - 2619
  • [33] Hardware-Assisted Control-Flow Integrity Enhancement for IoT Devices
    Wang, Weiyi
    Feng, Lang
    Shi, Zhiguo
    Zhuo, Cheng
    Chen, Jiming
    2024 DESIGN, AUTOMATION & TEST IN EUROPE CONFERENCE & EXHIBITION, DATE, 2024,
  • [34] HyperSafe: A Lightweight Approach to Provide Lifetime Hypervisor Control-Flow Integrity
    Wang, Zhi
    Jiang, Xuxian
    2010 IEEE SYMPOSIUM ON SECURITY AND PRIVACY, 2010, : 380 - 395
  • [35] Enforcing Forward-Edge Control-Flow Integrity in GCC & LLVM
    Tice, Caroline
    Roeder, Tom
    Collingbourne, Peter
    Checkoway, Stephen
    Erlingsson, Ulfar
    Lozano, Luis
    Pike, Geoff
    PROCEEDINGS OF THE 23RD USENIX SECURITY SYMPOSIUM, 2014, : 941 - 955
  • [36] Poster: Control-Flow Integrity in Low-end Embedded Devices
    Jakkamsetti, Sashidhar
    Kim, Youngil
    Searles, Andrew
    Tsudik, Gene
    PROCEEDINGS OF THE 2023 ACM SIGSAC CONFERENCE ON COMPUTER AND COMMUNICATIONS SECURITY, CCS 2023, 2023, : 3618 - 3620
  • [37] A Security Analysis of Labeling-Based Control-Flow Integrity Schemes
    Demicco, David
    Cole, Matthew
    Wang, Shengdun
    Prakash, Aravind
    2022 IEEE 29TH INTERNATIONAL CONFERENCE ON HIGH PERFORMANCE COMPUTING, DATA AND ANALYTICS WORKSHOP, HIPCW, 2022, : 47 - 52
  • [38] TitanCFI: Toward Enforcing Control-Flow Integrity in the Root-of-Trust
    Parisi, Emanuele
    Musa, Alberto
    Manoni, Simone
    Ciani, Maicol
    Rossi, Davide
    Barchi, Francesco
    Bartolini, Andrea
    Acquaviva, Andrea
    2024 DESIGN, AUTOMATION & TEST IN EUROPE CONFERENCE & EXHIBITION, DATE, 2024,
  • [39] High-Precision Motion Control Techniques
    Iwasaki, Makoto
    Seki, Kenta
    Maeda, Yoshihiro
    IEEE INDUSTRIAL ELECTRONICS MAGAZINE, 2012, 6 (01) : 32 - 40
  • [40] High-precision scanner control system
    Yanagita, Y.
    Aoki, K.
    Kurii, T.
    SENSORS, SYSTEMS, AND NEXT-GENERATION SATELLITES XIV, 2010, 7826