信息网络安全 ›› 2022, Vol. 22 ›› Issue (7): 64-72.doi: 10.3969/j.issn.1671-1122.2022.07.008

• 技术研究 • 上一篇    下一篇

一种基于字节波动特征的ROP流量静态检测方法

张梦杰, 王剑(), 黄恺杰, 杨刚   

  1. 国防科技大学电子科学学院,长沙 410073
  • 收稿日期:2022-03-30 出版日期:2022-07-10 发布日期:2022-08-17
  • 通讯作者: 王剑 E-mail:jwang@nudt.edu.cn
  • 作者简介:张梦杰(1995—),男,安徽,硕士研究生,主要研究方向为恶意流量检测|王剑(1975—),男,湖南,教授,博士,主要研究方向为网络空间安全、通信网络安全与对抗、漏洞攻击检测|黄恺杰(2000—),男,湖南,硕士研究生,主要研究方向为信息安全和恶意软件检测|杨刚(1993—),男,河北,博士研究生,主要研究方向为恶意软件分析和机器学习
  • 基金资助:
    教育部-中国移动科研基金(2020)研发项目(MCM20200103)

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

摘要:

在现代计算机系统漏洞缓解机制的作用下,传统注入攻击方法无法实现攻击,面向返回编程(Return-Oriented Programming,ROP)技术成为漏洞攻击的关键,其利用多个代码片段(gadget)组成ROP链,从而实现任意操作执行。因此,网络流量中的ROP链检测对防御漏洞攻击具有重要作用。文章提出一种ROP流量静态检测方法,该方法结合信息熵和方差通过序列抽取方式完成对ROP链中字节波动特征的差异量化,并利用卷积神经网络(Convolutional Neural Network,CNN)捕捉特征,从而实现对网络流量中ROP链的静态检测。文章将真实ROP代码与正常流量进行随机混合,从而形成训练数据集,利用此数据集进行分类训练,模型的最高准确率可达99.6%,漏报率可控制在2%以下,误报率可控制在1%以下。实验结果表明,文章提出的方法实现了纯静态ROP流量检测,系统开销低,并且不依赖内存地址信息。

关键词: ROP, 静态检测, 熵, 方差量化

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

中图分类号: