Investigating Black-Box Function Recognition Using Hardware Performance Counters

被引:0
|
作者
Shepherd, Carlton [1 ]
Semal, Benjamin [1 ]
Markantonakis, Konstantinos [1 ]
机构
[1] Univ London, Royal Holloway, Egham TW20 0EX, Surrey, England
基金
欧盟地平线“2020”;
关键词
Side-channel analysis; hardware performance counters (HPCs); reverse engineering;
D O I
10.1109/TC.2022.3226302
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
This paper presents new methods and results for recognising black-box program functions using hardware performance counters (HPC), where an investigator can invoke and measure function calls. Important use cases include analysing compiled libraries, e.g., static and dynamic link libraries, and trusted execution environment (TEE) applications. We develop a generic approach to classify a comprehensive set of hardware events, e.g., branch mis-predictions and instruction retirements, to recognise standard benchmarking and cryptographic library functions. This includes various signing, verification and hash functions, and ciphers in numerous modes of operation. Three architectures are evaluated using off-the-shelf Intel/X86-64, ARM, and RISC-V CPUs. Next, we show that several known CVE-numbered OpenSSL vulnerabilities can be detected using HPC differences between patched and unpatched library versions. Further, we demonstrate that standardised cryptographic functions within ARM TrustZone TEE applications can be recognised using non-secure world HPC measurements, applying to platforms that insecurely perturb the performance monitoring unit (PMU) during TEE execution. High accuracy was achieved in all cases (86.22-99.83%) depending on the application, architectural, and compilation assumptions. Lastly, we discuss mitigations, outstanding challenges, and directions for future research.
引用
收藏
页码:2065 / 2079
页数:15
相关论文
共 50 条
  • [41] On the Performance of Malware Detection Classifiers Using Hardware Performance Counters
    Zeraatkar, Alireza Abolhasani
    Kamran, Parnian Shabani
    Kaur, Inderpreet
    Ramu, Nagabindu
    Sheaves, Tyler
    Al-Asaad, Hussain
    2024 INTERNATIONAL CONFERENCE ON SMART APPLICATIONS, COMMUNICATIONS AND NETWORKING, SMARTNETS-2024, 2024,
  • [42] Black-Box Optimization Using Geodesics in Statistical Manifolds
    Bensadon, Jeremy
    ENTROPY, 2015, 17 (01): : 304 - 345
  • [43] Staring at the Sun: A Physical Black-box Solar Performance Model
    Chen, Dong
    Breda, Joseph
    Irwin, David
    BUILDSYS'18: PROCEEDINGS OF THE 5TH CONFERENCE ON SYSTEMS FOR BUILT ENVIRONMENTS, 2018, : 53 - 62
  • [44] Smart CloudMonitor - Providing Visibility Into Performance of Black-Box Clouds
    Chhetri, Mohan Baruwal
    Chichin, Sergei
    Quoc Bao Vo
    Kowalczyk, Ryszard
    2014 IEEE 7TH INTERNATIONAL CONFERENCE ON CLOUD COMPUTING (CLOUD), 2014, : 777 - 784
  • [45] Improving the expressiveness of black-box models for predicting student performance
    Villagra-Arnedo, Carlos J.
    Gallego-Duran, Francisco J.
    Llorens-Largo, Faraon
    Compan-Rosique, Patricia
    Satorre-Cuerda, Rosana
    Molina-Carmona, Rafael
    COMPUTERS IN HUMAN BEHAVIOR, 2017, 72 : 621 - 631
  • [46] Black-box models for fault detection and performance monitoring of buildings
    Jacob, Dirk
    Dietz, Sebastian
    Komhard, Susanne
    Neumann, Christian
    Herkel, Sebastian
    JOURNAL OF BUILDING PERFORMANCE SIMULATION, 2010, 3 (01) : 53 - 62
  • [47] Personalizing Performance Regression Models to Black-Box Optimization Problems
    Eftimov, Tome
    Jankovic, Anja
    Popovski, Gorjan
    Doerr, Carola
    Korosec, Peter
    PROCEEDINGS OF THE 2021 GENETIC AND EVOLUTIONARY COMPUTATION CONFERENCE (GECCO'21), 2021, : 669 - 677
  • [48] A Black-box Monitoring Approach to Measure Microservices Runtime Performance
    Brondolin, Rolando
    Santambrogio, Marco D.
    ACM TRANSACTIONS ON ARCHITECTURE AND CODE OPTIMIZATION, 2020, 17 (04)
  • [49] Performance Modeling and Practical Use Cases for Black-Box SSDs
    Kim, Joonsung
    Choi, Kanghyun
    Lee, Wonsik
    Kim, Jangwoo
    ACM TRANSACTIONS ON STORAGE, 2021, 17 (02)
  • [50] Detecting Spectre Attacks Using Hardware Performance Counters
    Li, Congmiao
    Gaudiot, Jean-Luc
    IEEE TRANSACTIONS ON COMPUTERS, 2022, 71 (06) : 1320 - 1331