Skip to main content
QUICK REVIEW

[Paper Review] DeepCheck: A Non-intrusive Control-flow Integrity Checking based on Deep Learning

Jiliang Zhang, Wuqiao Chen|arXiv (Cornell University)|May 6, 2019
Security and Verification in ComputingComputer Science39 references12 citations
TL;DR

DeepCheck proposes a non-intrusive, deep learning-based control-flow integrity (CFI) mechanism that analyzes program control flow graphs (CFGs) by splitting them into chains for training a deep neural network (DNN), enabling real-time detection of code reuse attacks (CRAs) with zero runtime overhead. It achieves 98.9% average detection accuracy and 100% success rate against 64 ROP exploits, outperforming traditional CFI methods in compatibility and efficiency.

ABSTRACT

Code reuse attack (CRA) is a powerful attack that reuses existing codes to hijack the program control flow. Control flow integrity (CFI) is one of the most popular mechanisms to prevent against CRAs. However, current CFI techniques are difficult to be deployed in real applications due to suffering several issues such as modifying binaries or compiler, extending instruction set architectures (ISA) and incurring unacceptable runtime overhead. To address these issues, we propose the first deep learning-based CFI technique, named DeepCheck, where the control flow graph (CFG) is split into chains for deep neural network (DNN) training. Then the integrity features of CFG can be learned by DNN to detect abnormal control flows. DeepCheck does not interrupt the application and hence incurs zero runtime overhead. Experimental results on Adobe Flash Player, Nginx, Proftpd and Firefox show that the average detection accuracy of DeepCheck is as high as 98.9%. In addition, 64 ROP exploits created by ROPGadget and Ropper are used to further test the effectiveness, which shows that the detection success rate reaches 100%.

Motivation & Objective

  • To address the limitations of existing CFI techniques, such as compiler and ISA modifications, and high runtime overhead.
  • To develop a practical, non-intrusive CFI solution compatible with existing binaries and systems.
  • To leverage deep learning to detect abnormal control flows with high accuracy and low false positive/negative rates.
  • To enable real-time, zero-overhead detection of code reuse attacks (CRAs), including ROP and JOP.
  • To provide a scalable and deployable defense mechanism for commercial software without binary or compiler modification.

Proposed method

  • The control flow graph (CFG) is decomposed into sequential chains of control flow edges for DNN training.
  • A deep neural network (DNN) is trained on these CFG chains to learn integrity features of legitimate control flows.
  • During runtime, branch information is collected in real time and fed into the pre-trained DNN for anomaly detection.
  • The method uses instruction pointer tracking (IPT) to extract fine-grained CFGs without modifying binaries or ISAs.
  • The DNN model is trained on benign CFG patterns to distinguish normal from malicious control flow transitions.
  • The approach avoids runtime instrumentation or binary rewriting, ensuring zero performance overhead.

Experimental results

Research questions

  • RQ1Can a deep learning model detect code reuse attacks without modifying binaries, compilers, or ISAs?
  • RQ2Can a non-intrusive, zero-runtime-overhead CFI mechanism achieve high detection accuracy for diverse CRAs?
  • RQ3How effective is a DNN-based approach in identifying abnormal control flow transitions in real-time?
  • RQ4What is the detection performance of the model against real-world ROP exploits?
  • RQ5Can the model generalize across different applications and maintain low false positive and negative rates?

Key findings

  • DeepCheck achieves an average detection accuracy of 98.9% across four commercial applications: Adobe Flash Player, Nginx, Proftpd, and Firefox.
  • The false positive rate is 0.15%, and the false negative rate is 0.60%, indicating high precision and recall.
  • All 64 ROP exploits generated by ROPGadget and Ropper were successfully detected, achieving a 100% detection success rate.
  • The method incurs zero runtime overhead, as it does not modify binaries, compilers, or require hardware extensions.
  • The model is compatible with existing software stacks and can be deployed without application-level changes.
  • The use of IPT for fine-grained CFG extraction enables accurate modeling of legitimate control flow paths.

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.