arrow
Return

Investigating Black-Box Function Recognition Using Hardware Performance Counters

delete2023-07-01
delete0
delete
OA
AI
C
Carlton Shepherd *
B
Benjamin Semal
K
Konstantinos Markantonakis
DOI:10.1109/TC.2022.3226302delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
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.
Keywords:
Side-channel analysis
hardware performance counters (HPCs)
reverse engineering

Journal

IEEE Transactions on Computers cover
IEEE Transactions on Computers
IF:
3.8
Papers:
5.4K
Citations:
9.8K

Organization

U
university of london
Scholars:
21.5W
Papers: 19.7W
Citations: 305
Cited Papers

Cited Papers

errShare
errSave
Magnetic Structure of Inorganic–Organic Hybrid (C6H5CH2CH2NH3)2MnCl4 Using Magnetic Space Group Concept
err2020-11-30
err0
errOAAI
errGaram Park; In-Hwan Oh; J. M. Sungil Park; Seungsoo Hahn; Seong-Hun Park
errShare
errSave
Luteinizing hormone-releasing hormone in human pituitary blood
err1978-09-01
err0
PREAI
errJ. Lobo Antunes; Peter W. Carmel; Edgar M. Housepian; Michel Ferin
errShare
errSave
Intercellular Adhesion Molecule 1 (ICAM-1) Gene Variant is Associated with Coronary Artery Calcification Independent of Soluble ICAM-1 Levels
err2004-12-01
err0
PREAI
errMuredach P. Reilly; Megan L. Wolfe; Jennifer Dykhouse; Karthik Reddy; A. Russell Localio; Daniel J. Rader
errShare
errSave
Alkaloid content in various chemoecotypes of Glaucium flavum from Israel
err1988-01-01
err0
PREAI
errBatya Peled; Yoav Waisel; Shmuel Carmeli
errShare
errSave
A dual-parameter sensor for strain and temperature measurement featuring cascaded LPFG-FP structure
err2018-10-01
err0
PREAI
errWen Zhang; Jiaqi Hao; Mingli Dong; Xiaoping Lou; Lianqing Zhu
errShare
errSave
Profile: Nanoro Health and Demographic Surveillance System
err2012-10-07
err0
PREAI
errK. Derra; E. Rouamba; A. Kazienga; S. Ouedraogo; M. C. Tahita; H. Sorgho; I. Valea; H. Tinto
errShare
errSave
errShare
errSave
errShare
errSave
errShare
errSave
researcher View more