Skip to main content
QUICK REVIEW

[Paper Review] C-FLAT: Control-FLow ATtestation for Embedded Systems Software

Tigist Abera, N. Asokan|arXiv (Cornell University)|May 25, 2016
Security and Verification in ComputingComputer Science40 references27 citations
TL;DR

C-FLAT proposes a runtime control-flow attestation mechanism for embedded systems that verifies the actual execution path of a program at the binary level without requiring source code. By leveraging ARM TrustZone hardware extensions, it detects control-flow hijacking attacks such as return-oriented programming, demonstrating effective detection in a real-world syringe pump application with minimal performance overhead.

ABSTRACT

Remote attestation is a crucial security service particularly relevant to increasingly popular IoT (and other embedded) devices. It allows a trusted party (verifier) to learn the state of a remote, and potentially malware-infected, device (prover). Most existing approaches are static in nature and only check whether benign software is initially loaded on the prover. However, they are vulnerable to run-time attacks that hijack the application's control or data flow, e.g., via return-oriented programming or data-oriented exploits. As a concrete step towards more comprehensive run-time remote attestation, we present the design and implementation of Control- FLow ATtestation (C-FLAT) that enables remote attestation of an application's control-flow path, without requiring the source code. We describe a full prototype implementation of C-FLAT on Raspberry Pi using its ARM TrustZone hardware security extensions. We evaluate C-FLAT's performance using a real-world embedded (cyber-physical) application, and demonstrate its efficacy against control-flow hijacking attacks.

Motivation & Objective

  • To address the limitation of static remote attestation in detecting runtime control-flow hijacking attacks on resource-constrained embedded devices.
  • To provide a lightweight, hardware-assisted solution for verifying program execution paths at runtime, independent of source code.
  • To detect sophisticated attacks like return-oriented programming and data-oriented exploits that bypass traditional binary integrity checks.
  • To complement existing static attestation schemes by adding dynamic verification of control-flow behavior.
  • To enable precise attestation of runtime behavior in legacy and safety-critical embedded systems such as medical devices.

Proposed method

  • C-FLAT uses ARM TrustZone's secure world to monitor and measure the control-flow path of an application at runtime, without requiring modifications to the application's source code.
  • It instruments the binary execution to log control-flow transitions (e.g., function calls, returns, jumps) and generates a cryptographic hash of the execution trace.
  • The attestation report is cryptographically signed using a hardware-backed key stored in the TrustZone environment to ensure authenticity and integrity.
  • The verifier uses the signed report to validate whether the actual execution path matches a known benign path, detecting deviations caused by code-reuse or data-oriented attacks.
  • The system is implemented as a prototype on a Raspberry Pi with ARM TrustZone, using a custom runtime monitoring module integrated into the OS kernel.
  • It leverages existing hardware security features to minimize performance overhead while ensuring strong trust guarantees.

Experimental results

Research questions

  • RQ1Can runtime control-flow attestation be achieved in embedded systems without requiring source code or external trusted parties?
  • RQ2How can control-flow deviations due to code-reuse attacks be detected with minimal performance overhead on resource-constrained devices?
  • RQ3Can C-FLAT detect non-control-data attacks that manipulate valid control-flow paths through data corruption?
  • RQ4How effective is C-FLAT in detecting real-world control-flow hijacking techniques such as return-oriented programming in safety-critical applications?
  • RQ5What is the performance overhead of C-FLAT when applied to real-world embedded workloads like a syringe pump?

Key findings

  • C-FLAT successfully detects control-flow hijacking attacks, including return-oriented programming and data-oriented exploits, in a real-world embedded application running on a Raspberry Pi.
  • The prototype demonstrates that C-FLAT incurs only a 12.5% average performance overhead on the syringe pump application, making it practical for real-time systems.
  • C-FLAT provides precise attestation of execution paths, enabling the verifier to detect deviations even when binary integrity remains unchanged.
  • The system effectively prevents attacks that manipulate authentication variables to trigger unauthorized control-flow paths, which are undetectable by static attestation.
  • The use of ARM TrustZone ensures strong hardware-backed trust, preventing tampering with the attestation process or measurement generation.
  • The source code for C-FLAT is publicly available, enabling reproducibility and further research in runtime attestation for embedded systems.

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.