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 条
  • [1] Detecting Backdoor Attacks in Black-Box Neural Networks through Hardware Performance Counters
    Alam, Manaar
    Wang, Yue
    Maniatakos, Michail
    2024 DESIGN, AUTOMATION & TEST IN EUROPE CONFERENCE & EXHIBITION, DATE, 2024,
  • [2] MICROCOMPUTER SYSTEMS FOR UROLOGY HARDWARE - BLACK-BOX OR INSTRUMENT
    GOETZ, C
    SCHUSTER, C
    ZINK, R
    DIEDERICH, R
    MILLER, K
    RASSWEILER, J
    ZWERGE, T
    UROLOGE-AUSGABE A, 1989, 28 (01): : 1 - 10
  • [3] Black-box density function estimation using recursive partitioning
    Bodin, Erik
    Dai, Zhenwen
    Campbell, Neill D. F.
    Ek, Carl Henrik
    INTERNATIONAL CONFERENCE ON MACHINE LEARNING, VOL 139, 2021, 139
  • [4] Black-box modelling by rational function approximation
    Gao, R
    Mekonnen, YS
    Beyene, WT
    Schutt-Ainé, JE
    SIGNAL PROPAGATION ON INTERCONNECTS, PROCEEDINGS, 2004, : 99 - 102
  • [5] Black-Box Complexity of the Binary Value Function
    Bulanova, Nina
    Buzdalov, Maxim
    PROCEEDINGS OF THE 2019 GENETIC AND EVOLUTIONARY COMPUTATION CONFERENCE COMPANION (GECCCO'19 COMPANION), 2019, : 423 - 424
  • [6] Black-box Adversarial Attacks on Video Recognition Models
    Jiang, Linxi
    Ma, Xingjun
    Chen, Shaoxiang
    Bailey, James
    Jiang, Yu-Gang
    PROCEEDINGS OF THE 27TH ACM INTERNATIONAL CONFERENCE ON MULTIMEDIA (MM'19), 2019, : 864 - 872
  • [7] Effective black-box constructive recognition of classical groups
    Dietrich, Heiko
    Leedham-Green, C. R.
    O'Brien, E. A.
    JOURNAL OF ALGEBRA, 2015, 421 : 460 - 492
  • [8] BASAR:Black-box Attack on Skeletal Action Recognition
    Diao, Yunfeng
    Shao, Tianjia
    Yang, Yong-Liang
    Zhou, Kun
    Wang, He
    2021 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION, CVPR 2021, 2021, : 7593 - 7603
  • [9] Investigating Top-k White-Box and Transferable Black-box Attack
    Zhang, Chaoning
    Benz, Philipp
    Karjauv, Adil
    Cho, Jae Won
    Zhang, Kang
    Kweon, In So
    2022 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR 2022), 2022, : 15064 - 15073
  • [10] Using Machine Learning for Black-Box Autoscaling
    Wajahat, Muhammad
    Gandhi, Anshul
    Karve, Alexei
    Kochut, Andrzej
    2016 SEVENTH INTERNATIONAL GREEN AND SUSTAINABLE COMPUTING CONFERENCE (IGSC), 2016,