Retrofitting XoM for Stripped Binaries without Embedded Data Relocation

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Luo, Chenke, Ming, Jiang, Xie, Mengfei, Peng, Guojun, Fu, Jianming
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866909824526057472
author Luo, Chenke
Ming, Jiang
Xie, Mengfei
Peng, Guojun
Fu, Jianming
author_facet Luo, Chenke
Ming, Jiang
Xie, Mengfei
Peng, Guojun
Fu, Jianming
contents In this paper, we present PXoM, a practical technique to seamlessly retrofit XoM into stripped binaries on the x86-64 platform. As handling the mixture of code and data is a well-known challenge for XoM, most existing methods require the strict separation of code and data areas via either compile-time transformation or binary patching, so that the unreadable permission can be safely enforced at the granularity of memory pages. In contrast to previous approaches, we provide a fine-grained memory permission control mechanism to restrict the read permission of code while allowing legitimate data reads within code pages. This novelty enables PXoM to harden stripped binaries but without resorting to error-prone embedded data relocation. We leverage Intel's hardware feature, Memory Protection Keys, to offer an efficient fine-grained permission control. We measure PXoM's performance with both micro- and macro-benchmarks, and it only introduces negligible runtime overhead. Our security evaluation shows that PXoM leaves adversaries with little wiggle room to harvest all of the required gadgets, suggesting PXoM is practical for real-world deployment.
format Preprint
id arxiv_https___arxiv_org_abs_2412_02110
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Retrofitting XoM for Stripped Binaries without Embedded Data Relocation
Luo, Chenke
Ming, Jiang
Xie, Mengfei
Peng, Guojun
Fu, Jianming
Cryptography and Security
Operating Systems
In this paper, we present PXoM, a practical technique to seamlessly retrofit XoM into stripped binaries on the x86-64 platform. As handling the mixture of code and data is a well-known challenge for XoM, most existing methods require the strict separation of code and data areas via either compile-time transformation or binary patching, so that the unreadable permission can be safely enforced at the granularity of memory pages. In contrast to previous approaches, we provide a fine-grained memory permission control mechanism to restrict the read permission of code while allowing legitimate data reads within code pages. This novelty enables PXoM to harden stripped binaries but without resorting to error-prone embedded data relocation. We leverage Intel's hardware feature, Memory Protection Keys, to offer an efficient fine-grained permission control. We measure PXoM's performance with both micro- and macro-benchmarks, and it only introduces negligible runtime overhead. Our security evaluation shows that PXoM leaves adversaries with little wiggle room to harvest all of the required gadgets, suggesting PXoM is practical for real-world deployment.
title Retrofitting XoM for Stripped Binaries without Embedded Data Relocation
topic Cryptography and Security
Operating Systems
url https://arxiv.org/abs/2412.02110