[Paper Review] ROPNN: Detection of ROP Payloads Using Deep Neural Networks
ROPNN is a deep learning-based intrusion detection system that detects ROP payloads by combining address space layout (ASL)-guided disassembly with a convolutional neural network (CNN) to classify potential gadget chains as malicious or benign. It achieves 99.3% detection rate and 0.01% false positive rate with zero runtime overhead, making it highly effective and practical for real-world deployment.
Return-oriented programming (ROP) is a code reuse attack that chains short snippets of existing code to perform arbitrary operations on target machines. Existing detection methods against ROP exhibit unsatisfactory detection accuracy and/or have high runtime overhead. In this paper, we present ROPNN, which innovatively combines address space layout guided disassembly and deep neural networks to detect ROP payloads. The disassembler treats application input data as code pointers and aims to find any potential gadget chains, which are then classified by a deep neural network as benign or malicious. Our experiments show that ROPNN has high detection rate (99.3%) and a very low false positive rate (0.01%). ROPNN successfully detects all of the 100 real-world ROP exploits that are collected in-the-wild, created manually or created by ROP exploit generation tools. Additionally, ROPNN detects all 10 ROP exploits that can bypass Bin-CFI. ROPNN is non-intrusive and does not incur any runtime overhead to the protected program.
Motivation & Objective
- Address the limitations of existing ROP detection methods, which often fail to meet high detection accuracy, low false positive rates, low runtime overhead, and minimal program modification requirements.
- Overcome the shortcomings of heuristic, signature-based, CFI, and statistical detection methods that suffer from bypassability, high overhead, or lack of transparency.
- Develop a detection system that is both highly accurate and non-intrusive, suitable for deployment in production environments without modifying protected programs.
- Leverage deep learning to enable end-to-end classification of gadget chains without manual feature engineering or threshold tuning.
- Ensure compatibility with modern defenses like ASLR and support deployment in encrypted traffic environments via strategic placement in the network stack.
Proposed method
- Use ASL-guided disassembly to treat application input data as code pointers and extract potential gadget chains from network traffic.
- Construct a disassembler that identifies sequences ending in 'ret' instructions as candidate gadgets, even when embedded in data regions.
- Feed the extracted gadget chains into a deep convolutional neural network (CNN) for binary classification into 'malicious ROP payload' or 'benign data'.
- Train the CNN end-to-end using minimally preprocessed data, avoiding manual feature engineering and threshold configuration.
- Deploy ROPNN as a standalone network IDS, operating independently of protected programs to ensure zero runtime overhead and no changes to the target environment.
- Enable parallelization of disassembly and dynamic memory snapshot updates to maintain accuracy under ASLR and support high-throughput traffic (665 Mb/s).
Experimental results
Research questions
- RQ1Can deep neural networks be effectively applied to detect ROP payloads with high accuracy and low false positive rates?
- RQ2Can a non-intrusive, zero-runtime-overhead detection system be built that does not require modifications to protected programs or their execution environment?
- RQ3How effective is the ASL-guided disassembly approach in identifying potential gadget chains from network input data without prior knowledge of code layout?
- RQ4Can ROPNN detect both manually crafted and automatically generated ROP exploits, including those that bypass existing defenses like Bin-CFI?
- RQ5How does ROPNN perform under real-world conditions, including encrypted traffic and dynamic memory layouts such as those enforced by ASLR?
Key findings
- ROPNN achieves a 99.3% detection rate for 100 real-world ROP exploits collected from the wild, including those created manually or via ROP generation tools.
- The system reports a very low false positive rate of 0.01%, demonstrating high precision in distinguishing benign data from malicious payloads.
- ROPNN successfully detects all 10 ROP exploits designed to bypass Bin-CFI, indicating strong resilience against advanced evasion techniques.
- The disassembler operates at 665 Mb/s throughput, and the CNN classifies 27,000 potential gadget chains per second, with only 13 on average per second being fed to the classifier.
- The system incurs no runtime overhead on protected programs and can be deployed independently, making it transparent and non-intrusive.
- ROPNN remains effective under ASLR because it uses instruction-level features, not addresses, and dynamically updates memory snapshots upon program restarts.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.