Code Encryption with Intel TME-MK for Control-Flow Enforcement

Research output: Chapter in Book/Report/Conference proceedingConference paperpeer-review

Abstract

Memory safety errors enable an adversary to corrupt code pointers, diverting the program’s control flow. Recent CPU features, such as Intel CET/IBT, harden software systems against exploitation attempts that maliciously redirect control flow operations. While IBT limits valid indirect branch targets, forward-edge transfers can still be redirected to any IBT-marked function. Thus, IBT cannot provide fine-grained protection against forward-edge control-flow attacks.

This paper presents code encryption with Intel TME-MK, a novel approach for control-flow enforcement against software exploitation on off-the-shelf x86 machines. We repurpose the Intel TME-MK runtime encryption to achieve function-level code encryption. Encrypted functions are only accessible through function pointers associated with the correct key, thereby enforcing fine-grained restrictions for control-flow transfers. We demonstrate two new encryption-based techniques for software hardening in practice: forward-edge control-flow integrity and library encryption. We implement a security-hardened toolchain that combines compiler instrumentation and a loader extension to ensure the validity of the program’s execution flow through efficient hardware-backed encryption. Our prototype shows a geomean performance overhead of 7.8 % for forward-edge control-flow integrity and 2.2 % for library encryption evaluated with the SPEC CPU2017 benchmark suite.
Original languageEnglish
Title of host publicationComputer Security - ESORICS 2025 - 30th European Symposium on Research in Computer Security, 2025, Proceedings
EditorsVincent Nicomette, Abdelmalek Benzekri, Nora Boulahia-Cuppens, Jaideep Vaidya
PublisherSpringer
Pages359-378
Number of pages20
ISBN (Print)9783032078902
DOIs
Publication statusPublished - 2025
Event30th European Symposium on Research in Computer Security, ESORICS 2025 - Toulouse, France
Duration: 22 Sept 202524 Sept 2025

Publication series

NameLecture Notes in Computer Science
Volume16054 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference30th European Symposium on Research in Computer Security, ESORICS 2025
Abbreviated titleESORICS 25
Country/TerritoryFrance
CityToulouse
Period22/09/2524/09/25

Keywords

  • Code Encryption
  • Control-Flow Integrity
  • Intel TME-MK
  •  Intel TME-MK

ASJC Scopus subject areas

  • Theoretical Computer Science
  • General Computer Science

Fields of Expertise

  • Information, Communication & Computing

Fingerprint

Dive into the research topics of 'Code Encryption with Intel TME-MK for Control-Flow Enforcement'. Together they form a unique fingerprint.

Cite this