Tarnhelm: Isolated, transparent and confidential execution of arbitrary code in ARM’s TrustZone

Quarta, Davide; Ianni, Michele; Machiry, Aravind; Fratantonio, Yanick; Gustafson, Eric; Balzarotti, Davide et al.
CheckMATE 2021, Workshop collocated with the ACM Conference on Computer and Communications Security (CCS 2021), 15-19 November 2021 (Virtual Conference)

Protecting the confidentiality of applications on commodity operating systems, both on desktop and mobile devices, is challenging: attackers have unrestricted control over an application’s processes and thus direct access to any of the application’s assets. However, the application’s code itself can be of great commercial value, for example in the case of proprietary code or additional functionality obtained as downloadable content and via in-app purchases, which are widely used to monetize free applications through premium content. Developers still rely heavily on obfuscation to protect their own code from unauthorized tampering or copying, providing an obstacle for an attacker, but not preventing compromise. In this paper, we present Tarnhelm, an approach to offer a practical and transparent primitive to implement code confidentiality by extending ARM’s TrustZone, a TEE that so far provides limited functionality to application developers. Tarnhelm allows developers to easily designate part of their code as confidential through source code annotations. At compile time, Tarnhelm automatically partitions the application into regular application code, executed in the “normal world,” and the invisible code, transparently executed in the “secure world.” Tarnhelm tightly couples and secures the execution in both worlds without exposing any additional attack surface by combining a number of different techniques, such as secure code loading, system call forwarding, transparent world switching, and the enforcement of inter-world control-flow integrity. We implemented a proof of concept of Tarnhelm and demonstrate its feasibility in a mobile computing setting. 


DOI
Type:
Conférence
Date:
2021-11-15
Department:
Sécurité numérique
Eurecom Ref:
6694
Copyright:
© ACM, 2021. This is the author's version of the work. It is posted here by permission of ACM for your personal use. Not for redistribution. The definitive version was published in CheckMATE 2021, Workshop collocated with the ACM Conference on Computer and Communications Security (CCS 2021), 15-19 November 2021 (Virtual Conference) http://doi.org/10.1145/3465413.3488571
See also:

PERMALINK : https://www.eurecom.fr/publication/6694