sgx-perf: A Performance Analysis Tool for Intel SGX Enclaves

被引:42
|
作者
Weichbrodt, Nico [1 ]
Aublin, Pierre-Louis [2 ]
Kapitza, Ruediger [1 ]
机构
[1] TU Braunschweig, IBR, Braunschweig, Germany
[2] Imperial Coll London, LSDS, London, England
关键词
Intel Software Guard Extensions; Trusted Execution; Performance Profiling;
D O I
10.1145/3274808.3274824
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Novel trusted execution technologies such as Intel's Software Guard Extensions (SGX) are considered a cure to many security risks in clouds. This is achieved by offering trusted execution contexts, so called enclaves, that enable confidentiality and integrity protection of code and data even from privileged software and physical attacks. To utilise this new abstraction, Intel offers a dedicated Software Development Kit (SDK). While it is already used to build numerous applications, understanding the performance implications of SGX and the offered programming support is still in its infancy. This inevitably leads to time-consuming trial-and-error testing and poses the risk of poor performance. To enable the development of well-performing SGX-based applications, this paper makes the following three contributions: First, it summarises identified performance critical factors of SGX. Second, it presents sgx-perf, a collection of tools for high-level dynamic performance analysis of SGX-based applications. In particular, sgx-perf performs not only fined-grained profiling of performance critical events in enclaves but also offers recommendations on how to improve enclave performance. Third, it demonstrates how we used sgx-perf in four non-trivial SGX workloads to increase their performance by up to 2.16x.
引用
收藏
页码:201 / 213
页数:13
相关论文
共 50 条
  • [1] AsyncShock: Exploiting Synchronisation Bugs in Intel SGX Enclaves
    Weichbrodt, Nico
    Kurmus, Anil
    Pietzuch, Peter
    Kapitza, Ruediger
    [J]. COMPUTER SECURITY - ESORICS 2016, PT I, 2016, 9878 : 440 - 457
  • [2] TIO - Secure Input/Output for Intel SGX Enclaves
    Stancu, Florin-Alexandru
    Tranca, Dumitru Cristian
    Chiroiu, Mihai
    [J]. 2019 INTERNATIONAL WORKSHOP ON SECURE INTERNET OF THINGS (SIOT 2019), 2019, : 18 - +
  • [3] Designing a Provenance Analysis for SGX Enclaves
    Toffalini, Flavio
    Payer, Mathias
    Zhou, Jianying
    Cavallaro, Lorenzo
    [J]. PROCEEDINGS OF THE 38TH ANNUAL COMPUTER SECURITY APPLICATIONS CONFERENCE, ACSAC 2022, 2022, : 102 - 116
  • [4] SgxPectre: Stealing Intel Secrets From SGX Enclaves via Speculative Execution
    Chen, Guoxing
    Chen, Sanchuan
    Xiao, Yuan
    Zhang, Yinqian
    Lin, Zhiqiang
    Lai, Ten-Hwang
    [J]. IEEE SECURITY & PRIVACY, 2020, 18 (03) : 28 - 37
  • [5] SGXPECTRE: Stealing Intel Secrets from SGX Enclaves via Speculative Execution
    Chen, Guoxing
    Chen, Sanchuan
    Xiao, Yuan
    Zhang, Yinqian
    Lin, Zhiqiang
    Lai, Ten H.
    [J]. 2019 4TH IEEE EUROPEAN SYMPOSIUM ON SECURITY AND PRIVACY (EUROS&P), 2019, : 142 - 157
  • [6] Tutorial: Uncovering and Mitigating Side-Channel Leakage in Intel SGX Enclaves
    Van Bulck, Jo
    Piessens, Frank
    [J]. SECURITY, PRIVACY, AND APPLIED CRYPTOGRAPHY ENGINEERING, SPACE 2018, 2018, 11348
  • [7] Migrating SGX Enclaves with Persistent State
    Alder, Fritz
    Kurnikov, Arseny
    Paverd, Andrew
    Asokan, N.
    [J]. 2018 48TH ANNUAL IEEE/IFIP INTERNATIONAL CONFERENCE ON DEPENDABLE SYSTEMS AND NETWORKS (DSN), 2018, : 195 - 206
  • [8] See through Walls: Detecting Malware in SGX Enclaves with SGX-Bouncer
    Zhang, Zeyu
    Zhang, Xiaoli
    Li, Qi
    Sun, Kun
    Zhang, Yinqian
    Liu, Songsong
    Liu, Yukun
    Li, Xiaoning
    [J]. ASIA CCS'21: PROCEEDINGS OF THE 2021 ACM ASIA CONFERENCE ON COMPUTER AND COMMUNICATIONS SECURITY, 2021, : 931 - 943
  • [9] SGX-Tor: A Secure and Practical Tor Anonymity Network With SGX Enclaves
    Kim, Seongmin
    Han, Juhyeng
    Ha, Jaehyeong
    Kim, Taesoo
    Han, Dongsu
    [J]. IEEE-ACM TRANSACTIONS ON NETWORKING, 2018, 26 (05) : 2174 - 2187
  • [10] Performance of Trusted Computing in Cloud Infrastructures with Intel SGX
    Gjerdrum, Anders T.
    Pettersen, Robert
    Johansen, Havard D.
    Johansen, Dag
    [J]. CLOSER: PROCEEDINGS OF THE 7TH INTERNATIONAL CONFERENCE ON CLOUD COMPUTING AND SERVICES SCIENCE, 2017, : 668 - 675