Communication Dans Un Congrès Année : 2024

Privagic: automatic code partitioning with explicit secure typing

Résumé

Partitioning a multi-threaded application between a secure and a non-secure memory zone remains a challenge. The current tools rely on data flow analysis techniques, which are unable to handle multi-threaded C or C++ applications. To avoid this limitation, we propose to trade the ease-of-use of data flow analysis for another language construct: explicit secure typing. With secure typing, as with data flow analysis, the developer annotates memory locations that contain sensitive values. However, instead of analyzing how the sensitive values flow, we propose to use these annotations to only check typing rules, such as ensuring that the code never stores a sensitive value in an unsafe memory location. By avoiding data flow analysis, the developer has to annotate more memory locations, but the partitioning tool can handle multi-threaded C and C++ applications.

We implemented our explicit secure typing principle in a compiler named Privagic. Privagic takes a legacy application enriched with secure types as input. It outputs an application partitioned for Intel SGX. Our evaluation with micro-and macro-applications shows that (i) explicit secure typing can handle multi-threaded C and C++ applications, (ii) adding explicit secure types requires a modest engineering effort of less than 10 modified lines of codes in our use cases, (iii) using explicit secure typing is more efficient than embedding a complete application in an enclave both in terms of performance and security in our use cases.

Fichier principal
Vignette du fichier
tanigassalame-middleware-privagic.pdf (862.26 Ko) Télécharger le fichier
Origine Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-04895327 , version 1 (17-01-2025)

Licence

Identifiants

Citer

Subashiny Tanigassalame, Yohan Pipereau, Adam Chader, Jana Toljaga, Gaël Thomas. Privagic: automatic code partitioning with explicit secure typing. 25th International Middleware Conference(Middleware 2024 ), Dec 2024, Hong Kong, China. pp.199-210, ⟨10.1145/3652892.3700759⟩. ⟨hal-04895327⟩
0 Consultations
0 Téléchargements

Altmetric

Partager

More