Netinfo Security ›› 2022, Vol. 22 ›› Issue (7): 64-72.doi: 10.3969/j.issn.1671-1122.2022.07.008

Previous Articles     Next Articles

A Static Detection Method of ROP Traffic Based on Bytes Fluctuation Characteristics

ZHANG Mengjie, WANG Jian(), HUANG Kaijie, YANG Gang   

  1. College of Electronic Science and Technology, National University of Defense Technology, Changsha 410073, China
  • Received:2022-03-30 Online:2022-07-10 Published:2022-08-17
  • Contact: WANG Jian E-mail:jwang@nudt.edu.cn

Abstract:

Under the function of vulnerability mitigation mechanism of modern computer system, the traditional injection attack cannot realize function. Return-oriented programming (ROP) has become an indispensable part of vulnerability attack, which uses multiple gadgets to form the ROP chain to achieve the function of arbitrary operation execution. The detection of ROP chains in network traffic plays a vital role in preventing vulnerability attacks. This paper proposed a static detection method of ROP traffic that combined information entropy and variance to quantify the byte fluctuation characteristics of ROP chains through sequence extraction. Then, this paper leveraged CNN to capture such characteristics to precisely detect ROP chains in the traffic. The ROP chain was extracted from the real-world ROP code and randomly mixed with normal traffic to form a dataset for classification training. The model’s highest accuracy can reach 99.6%, the false negative rate can be kept below 2%, and the false positive rate can be kept below 1%. The method proposed in this paper realizes pure static ROP traffic detection with low system overhead and does not rely on information about memory addresses.

Key words: ROP, static detection, entropy, variance quantization

CLC Number: