Skip to main content
QUICK REVIEW

[Paper Review] Lockdown: Dynamic Control-Flow Integrity

Mathias Payer, Antonio Barresi|arXiv (Cornell University)|Jan 1, 2014
Security and Verification in ComputingComputer Science25 references6 citations
TL;DR

Lockdown is a dynamic Control-Flow Integrity (CFI) mechanism that enforces fine-grained, per-library CFI on legacy binary-only executables by reconstructing the control-flow graph at runtime using symbol information from a trusted dynamic loader. It achieves strong security with low performance overhead (32.49% avg. on SPEC CPU2006) via dynamic binary translation, shadow stack protection, and module-aware enforcement of indirect control transfers.

ABSTRACT

Applications written in low-level languages without type or memory safety are especially prone to memory corruption. Attackers gain code execution capabilities through such applications despite all currently deployed defenses by exploiting memory corruption vulnerabilities. Control-Flow Integrity (CFI) is a promising defense mechanism that restricts open control-flow transfers to a static set of well-known locations. We present Lockdown, an approach to dynamic CFI that protects legacy, binary-only executables and libraries. Lockdown adaptively learns the control-flow graph of a running process using information from a trusted dynamic loader. The sandbox component of Lockdown restricts interactions between different shared objects to imported and exported functions by enforcing fine-grained CFI checks. Our prototype implementation shows that dynamic CFI results in low performance overhead.

Motivation & Objective

  • To address the security gap in legacy, binary-only applications vulnerable to memory corruption and control-flow hijacking.
  • To enable precise, per-library Control-Flow Integrity (CFI) without requiring source code or recompilation.
  • To reduce attack surface by enforcing strict, dynamic CFI policies on indirect calls, jumps, and returns using runtime information.
  • To provide practical, low-overhead protection in real-world environments supporting dynamic loading, threads, and shared libraries.
  • To evaluate CFI strength empirically using a novel metric: Dynamic Average Indirect Target Reduction (DAIR).

Proposed method

  • Dynamically reconstructs the control-flow graph at runtime using symbol tables from shared libraries and executables via a trusted dynamic loader.
  • Employs a dynamic binary translator (DBT) to enforce fine-grained CFI checks on all indirect control transfers.
  • Uses a shadow stack to protect return instructions against return-oriented programming (ROP) attacks.
  • Applies module-aware CFI policies: calls restricted to valid functions within the same module or imported functions from other libraries.
  • Employs heuristics to detect and protect non-exported callback functions, exceptions, and tail recursion patterns.
  • Enforces system call policy checks and ensures all signals are intercepted by the DBT for defense against signal-oriented programming attacks.

Experimental results

Research questions

  • RQ1Can dynamic CFI be effectively enforced on legacy, binary-only executables without recompilation or static analysis?
  • RQ2How does the precision of dynamic CFI compare to static CFI when applied to real-world binaries with and without debug symbols?
  • RQ3What is the performance overhead of enforcing fine-grained, per-library CFI in a practical, production-like environment?
  • RQ4How does the proposed DAIR metric reflect the resilience of CFI protection over time in real applications?
  • RQ5Can Lockdown effectively prevent ROP and other control-flow hijacking attacks in the absence of source code or precise relocation information?

Key findings

  • Lockdown achieves an average performance overhead of 32.49% on the SPEC CPU2006 benchmark suite, demonstrating practical feasibility.
  • The Dynamic Average Indirect Target Reduction (DAIR) metric shows an average of 99.71% reduction in possible indirect target locations at program termination, indicating strong CFI precision.
  • Even with stripped libraries, Lockdown maintains high CFI strength, achieving 95.39% DAIR on average, which is effective despite missing symbol information.
  • The shadow stack effectively prevents all ROP attacks by protecting return instruction pointers at all times.
  • Lockdown’s modular enforcement ensures that only explicitly imported or internal valid functions can be called, significantly reducing the attack surface.
  • The use of symbol files (e.g., from Ubuntu 12.04.4) improves CFI precision, with DAIR reaching 99.71% on average when debug symbols are available.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.