On (the Lack of) Code Confidentiality in Trusted Execution Environments
dc.contributor.author
Puddu, Ivan
dc.contributor.author
Schneider, Moritz
dc.contributor.author
Lain, Daniele
dc.contributor.author
Boschetto, Stefano
dc.contributor.author
Capkun, Srdjan
dc.date.accessioned
2025-02-10T12:16:47Z
dc.date.available
2024-05-13T12:15:41Z
dc.date.available
2024-05-13T13:19:43Z
dc.date.available
2024-10-07T07:32:58Z
dc.date.available
2024-10-07T09:39:40Z
dc.date.available
2025-02-10T12:16:47Z
dc.date.issued
2024
dc.identifier.isbn
979-8-3503-3130-1
en_US
dc.identifier.isbn
979-8-3503-3131-8
en_US
dc.identifier.other
10.1109/SP54263.2024.00259
en_US
dc.identifier.uri
http://hdl.handle.net/20.500.11850/672641
dc.identifier.doi
10.3929/ethz-b-000672641
dc.description.abstract
Trusted Execution Environments (TEEs) have been proposed as a solution to protect code confidentiality in scenarios where computation is outsourced to an untrusted operator. We study the resilience of such solutions to side-channel attacks in two commonly deployed scenarios: when the confidential code is a native binary that is shipped and executed within a TEE and when the confidential code is an intermediate representation (IR) executed on top of a runtime within a TEE. We show that executing IR code such as WASM bytecode on a runtime executing in a TEE leaks most IR instructions with high accuracy and therefore reveals the confidential code. Contrary to IR execution, native execution is much less susceptible to leakage and largely resists even the most powerful side-channel attacks. We evaluate native execution leakage in Intel SGX and AMD SEV and experimentally demonstrate end-to-end instruction extraction on Intel SGX, with WASM bytecode as IR executed within two popular WASM runtimes: WAMR and wasmi. Our experiments show that IR code leakage from such systems is practical and therefore question the security claims of several commercial solutions which rely on TEEs+WASM for code confidentiality.
en_US
dc.format
application/pdf
en_US
dc.language.iso
en
en_US
dc.publisher
IEEE
en_US
dc.rights.uri
http://rightsstatements.org/page/InC-NC/1.0/
dc.subject
Trusted Execution Environment
en_US
dc.subject
TEE
en_US
dc.subject
WASM
en_US
dc.subject
Side-channel analysis
en_US
dc.subject
Intel SGX
en_US
dc.subject
AMD SEV
en_US
dc.subject
Code confidentiality
en_US
dc.subject
Confidential Computing
en_US
dc.title
On (the Lack of) Code Confidentiality in Trusted Execution Environments
en_US
dc.type
Conference Paper
dc.rights.license
In Copyright - Non-Commercial Use Permitted
dc.date.published
2024-09-04
ethz.book.title
2024 IEEE Symposium on Security and Privacy (SP)
en_US
ethz.pages.start
4125
en_US
ethz.pages.end
4142
en_US
ethz.version.deposit
acceptedVersion
en_US
ethz.event
45th IEEE Symposium on Security and Privacy (SP 2024)
en_US
ethz.event.location
San Francisco, CA, USA
en_US
ethz.event.date
May 20-23, 2024
en_US
ethz.identifier.wos
ethz.publication.place
Piscataway, NJ
en_US
ethz.publication.status
published
en_US
ethz.leitzahl
ETH Zürich::00002 - ETH Zürich::00012 - Lehre und Forschung::00007 - Departemente::02150 - Dep. Informatik / Dep. of Computer Science::02660 - Institut für Informationssicherheit / Institute of Information Security::03755 - Capkun, Srdan / Capkun, Srdan
en_US
ethz.leitzahl.certified
ETH Zürich::00002 - ETH Zürich::00012 - Lehre und Forschung::00007 - Departemente::02150 - Dep. Informatik / Dep. of Computer Science::02660 - Institut für Informationssicherheit / Institute of Information Security::03755 - Capkun, Srdan / Capkun, Srdan
en_US
ethz.relation.isNewVersionOf
10.3929/ethz-b-000588884
ethz.date.deposited
2024-05-13T12:15:42Z
ethz.source
FORM
ethz.eth
yes
en_US
ethz.availability
Open access
en_US
ethz.rosetta.installDate
2024-10-07T09:39:41Z
ethz.rosetta.lastUpdated
2025-02-14T17:18:57Z
ethz.rosetta.versionExported
true
ethz.COinS
ctx_ver=Z39.88-2004&rft_val_fmt=info:ofi/fmt:kev:mtx:journal&rft.atitle=On%20(the%20Lack%20of)%20Code%20Confidentiality%20in%20Trusted%20Execution%20Environments&rft.date=2024&rft.spage=4125&rft.epage=4142&rft.au=Puddu,%20Ivan&Schneider,%20Moritz&Lain,%20Daniele&Boschetto,%20Stefano&Capkun,%20Srdjan&rft.isbn=979-8-3503-3130-1&979-8-3503-3131-8&rft.genre=proceeding&rft_id=info:doi/10.1109/SP54263.2024.00259&rft.btitle=2024%20IEEE%20Symposium%20on%20Security%20and%20Privacy%20(SP)
Files in this item
Publication type
-
Conference Paper [36924]