T-Counter: Trustworthy and Efficient CPU Resource Measurement Using SGX in the Cloud

Pengfei Wu,Xuhua Ding,Wu Luo,D. Yu,Zhonghai Wu,Chuntao Dong,Qingni Shen
DOI: https://doi.org/10.1109/TDSC.2022.3145814
2023-01-01
IEEE Transactions on Dependable and Secure Computing
Abstract:As cloud services have become popular, and their adoption is growing, consumers are becoming more concerned about the cost of cloud services. Cloud Service Providers (CSPs) generally use a pay-per-use billing scheme in the cloud services model: consumers use resources as they needed and are billed for their resource usage. However, CSPs are untrusted and privileged; they have full control of the entire operating system (OS) and may tamper with bills to cheat consumers. So, how to provide a trusted solution that can keep track of and verify the consumers’ resource usage has been a challenging problem. In this article, we propose a T-Counter framework based on Intel SGX. The T-Counter allows applications to construct a trusted solution to measure its CPU usage by itself in cloud computing. These constructed applications are instrumented with counters in basic blocks and added three components in trusted parts to count instructions and defend against malicious CSPs’ manipulations. We propose two algorithms which selectively instrument counters in the CFG. T-Counter is implemented as an extension of the LLVM framework and integrated with the SGX SDK. Theoretical analyses and evaluations show that T-Counter can effectively measure CPU usage and defend against malicious CSPs’ manipulations.
Engineering,Computer Science
What problem does this paper attempt to address?