arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2204.11639cs.CR
收藏

基于硬件性能计数器的黑盒函数识别研究

Investigating Black-Box Function Recognition Using Hardware Performance Counters

Carlton Shepherd, Benjamin Semal, Konstantinos Markantonakis

摘要:

本文提出了新的方法和结果识别黑盒程序功能使用硬件性能计数器(HPC),其中一个调查员可以调用和测量函数调用。重要的用例包括分析编译库,例如静态和动态链接库,以及可信执行环境(TEE)应用程序。我们开发了一种通用的方法来分类一组全面的硬件事件,例如分支错误预测和指令退休,以识别标准基准测试和加密库函数。这包括各种签名、验证和散列函数,以及多种操作模式下的密码。使用现成的Intel/X86 - 64、ARM和RISC-V CPU评估了三种架构。接下来,我们展示了几个已知的CVE编号的OpenSSL漏洞可以使用修补和未修补的库版本之间的HPC差异来检测。此外,我们证明了ARM TrustZone TEE应用程序中的标准化加密功能可以使用非安全的世界HPC测量来识别,适用于在TEE执行期间不安全地干扰性能监控单元(PMU)的平台。根据应用程序、架构和编译假设,在所有情况下都实现了高精度(86.22 - 99.83%)。最后,我们讨论了缓解措施,突出的挑战和未来的研究方向。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑