作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2012, Vol. 38 ›› Issue (06): 66-68. doi: 10.3969/j.issn.1000-3428.2012.06.021

• 软件技术与数据库 • 上一篇    下一篇

基于动态二进制平台的缓冲区溢出过程分析

董鹏程 1,舒 辉 1,康 绯 1,王 乾 1,魏 巍 2   

  1. (1. 解放军信息工程大学信息工程学院,郑州 450002;2. 61741部队,北京 100094)
  • 收稿日期:2011-06-28 出版日期:2012-03-20 发布日期:2012-03-20
  • 作者简介:董鹏程(1985-),男,硕士研究生,主研方向:网络与信息安全;舒 辉,副教授、博士;康 绯,副教授;王 乾,硕士研究生;魏 巍,学士

Process Analysis of Buffer Overflow Based on Dynamic Binary Platform

DONG Peng-cheng 1, SHU Hui 1, KANG Fei 1, WANG Qian 1, WEI We i2   

  1. (1. Institute of Information Engineering, PLA Information Engineering University, Zhengzhou 450002, China; 2. 61741 Troops, Beijing 100094, China)
  • Received:2011-06-28 Online:2012-03-20 Published:2012-03-20

摘要: 提出一种基于动态二进制平台的缓冲区溢出过程分析方法,并实现基于该方法的原型系统。分析缓冲区溢出攻击方法的特点,给出基于异常捕获、控制流分析和内存状态检查的溢出检测方法。通过对内存读写指令、控制转移指令进行监控,获得函数调用序列和数据传递关系,定位导致缓冲区溢出的代码。实验结果表明,该系统能有效检测缓冲区溢出,准确定位导致溢出的代码位置。

关键词: 缓冲区溢出, 动态二进制平台, 溢出检测, 溢出定位, 控制流分析, 数据流分析

Abstract: This paper proposes an process analysis method for buffer overflow based on dynamic binary platform, and a prototype system based on this method is implemented. According to the principle of buffer overflow attacks, overflow detection method based on exception caught, control flow analysis, and memory status checks is implemented. By monitoring memory read and write, control transfer instructions, system obtains call sequences and data transfer flow. Through analysis of memory data and function calls, orientation code leads to buffer overflow. Experimental results show that the system can detect buffer overflows, and accurate positioning code results in buffer overflow.

Key words: buffer overflow, dynamic binary platform, overflow detection, overflow positioning, control flow analysis, data flow analysis

中图分类号: