缓冲区溢出和格式化串漏洞的运行时防御研究

来源 :南京大学 | 被引量 : 0次 | 上传用户:feihuiy
下载到本地 , 更方便阅读
声明 : 本文档内容版权归属内容提供方 , 如果您对本文有版权争议 , 可与客服联系进行内容授权或下架
论文部分内容阅读
In recent years, computer security is becoming increasingly important as more and morebusiness is conducted over the Internet. However, the current security situation is not so satisfied as software today is massive and inevitably introduces software vulnerabilities, e.g.,buffer overflow and format string, which could hence cause many security attacks, such asserver break-in, denial-of-service, zombies, and botnet. As a result, how to eliminate ormitigate these vulnerabilities is a great challenge for security researchers and practitioners. In this dissertation, we explored dynamic software vulnerability prevention technology,and propose three novel tools, i.e., LibsafeXP, FASTV, and DSPF, to defend against bufferoverflow and format string attacks. As dynamic shared library and an extension to Libsafeand LibsafePlus, LibsafeXP contains wrapper functions for all the buffer related functionsin C Standard Library. These wrapper functions are enforced to check the source and tar-get buffers size using the following information: global buffer knowledge extracted fromthe program symbol information, heap buffer knowledge by intercepting memory alloca-tion family functions, and stack buffer bound information by dynamically determined fromthe frame pointer, for the buffer overflow defense. Similar to LibsafeXP,FASTV (FormatString Taint and Validation) also works as a shared library. By leveraging library interpo-sition and ELF binary analysis, FASTV taint all the entrusted user-supplied data as wellas their propagations during program execution, and adds a security validation layer to theprintf-family functions in C Standard Library in order to enforce a flexible policy todetect the format string attack on the basis of whether the format string has been taintedand contains dangerous format specifiers. For DSPF (Dynamic Software Patching Frame-work), it is a practical framework to immunize software security vulnerabilities on the flyDSPF achieves the vulnerability immunization by using a security antibody, which canbe implemented independently from the protected software and is used to defend againstvulnerability exploitations. As DSPF employs in-core patching technique to attach the an-tibody quietly into running process, and it neither needs to re-compile nor re-execute theprotected software. Compared with other approaches, these three tools offer several advantages. First, Lib-safeXP, FASTV and DSPF all works at binary level, and they do neither require the knowl-edge of the application nor any modification to the program source code, and can thereforealso be used with legacy applications, including proprietary and commodity programs forwhich no source code is available. Second, these three tools are all highly effective againstreal-world attacks. We collected many notable buffer overflow and format string attacks totest our tools, and LibsafeXP and FASTV both can successfully prevent all of them. ForDSPF, it aims to address non-stoppable software protections and is also highly effective inour experiment, by extending Libsafe as the test security antibody. Third, for protections,users only need to set the environment variable and restart the program to use LibsafeXPand FASTV Moreover, they both can be simply set for the protection of either specific pro-gram or all processes on the machine. Even simpler, users only need to inject the antibodyto vulnerable software when using DSPF. At last, as shown in our the experiment, all ofthem (including DSPF) impose little performance overhead (no more than 10 percent) onthe protected software.
其他文献
近年来,高速铁路在我国发展迅猛,高速铁路运营里程和投用高速列车规模均跃居世界首位。与传统的机辆式普速列车相比,高速列车运用具有运行速度高、运行距离长、运营规模大的特点
三维重建是计算机视觉和计算机图形学的基本问题,在许多领域有广泛的应用。基于图像的三维重建技术恢复的三维信息精度低,而高分辨率的激光或结构光扫描技术设备昂贵且操作复杂
本文研究了WMN网络中的节点定位技术,研究目标为设计低误差、高可用性的定位解决方案,同时为WMN网络中的路由节点(MeshRouter)和客户机节点(MeshClient)提供准确的定位服务。主
随着计算机能力的提高,越来越多的文字信息需要通过计算机来处理,这迫切地需要软件全球化的支持。软件系统的国际化水平影响着其全球化能力。软件国际化就是指让软件的实现独立
互联网给人们带来信息爆炸、快速经济的同时,也带来了很多不利于经济发展和人民生活的不良信息,对WEB信息的过滤成为一个热门的研究课题。当前的网页过滤系统主要采用URL过滤和
在飞速发展的信息时代,信息日益成为社会各领域中最活跃、最具有决定意义的因素。视频监控作为一种最有效的获取信息的方式,它伴随着网络技术、多媒体技术、数字集成电路技术的
H.264/AVC(AdvancedVideoCoding)是ITU-T和ISO/IEC共同组成的联合专家组于2003年颁布的新一代视频编解码国际标准,同时也作为MPEG-4标准中的第10部分。与以往的视频编解码标准
本论文立足于计算机系统BIOS,结合系统架构和硬件设计,实现并深入研究了APCI在现代个人计算机,特别是笔记本计算机上的实现与应用。通过实践和实验数据证明了ACPI电源管理接口在
随着Internet的深入应用与发展,互联网正逐步成为通讯设施的统一平台。各种业务均可由Internet来承载,并以Internet网为基础,最终实现数据、语音、图像的业务融合和网络融合。In
空间关键字查询处理技术是近年来数据库领域中的一个研究重点与热点。作为空间数据库查询重要的分支,反Top-k最近邻查询由于其在决策支持,资源分配以及市场营销等方面的广泛应