具有錯誤忽略能力之輕量級緩衝溢位保護機制
顯示簡易詮釋資料 統計資料| 欄位 | 內容 | 語言 |
|---|---|---|
dc.contributor.advisor |
張瑞川 | |
dc.contributor.advisor |
Ruei-Chuan Chang | |
dc.contributor.author |
李子榮 | |
dc.contributor.author |
Tz-rung Lee | |
dc.contributor.college |
資訊學院 | |
dc.contributor.committee |
||
dc.contributor.committee |
||
dc.contributor.department |
多媒體工程研究所 | |
dc.contributor.studentid |
9457524 | |
dc.date.NCLavailable |
2009/09/18 | |
dc.date.USTavailable |
2009/09/18 | |
dc.date.issued |
2007 | |
dc.date.issuedROC |
96 | |
dc.date.paperavailable |
立即公開 | |
dc.date.schoolyear |
95 | |
dc.description.abstract |
緩衝溢位漏洞一直是個相當重要之網路安全議題。過去以來,多數的防治機制大多著重在於攻擊的偵測方面。為了降低受到攻擊所造成的傷害,這些防治機制在偵測到攻擊時,便終止受到攻擊之程式或是在有需要的情形下,重新啟動該程式。然而在面對自動化的重複攻擊時,這樣的作法對於多數的網路伺服器而言,卻不是一個理想的解決方式,因為不斷地重新啟動程式將大幅降低程式所能提供的服務能力。近年來,部份研究著重在將程式從受到攻擊後的狀態中回復並繼續執行。雖然這些機制能夠使程式能在自動化的重複攻擊之下,還能保持一定的服務能力,但是也同時衝擊了程式在平時效能。 這此論文中,我們提出了一個輕量級的機制。在攻擊回復的方面,應用了錯誤忽略的概念。這個機制透過將原始碼做轉換,同時對程式應用了多個保護技術。經過轉換的程式,可利用輕量級的技術提拱整體性的保護,並利用在執行期所蒐集的資訊,以函式為單位,選擇性針對部份的程式使用較重量級的技術,加強弱點的防護。我們的實驗數據顯示,轉換過之Apache伺服器只造成了極小的效能負擔,卻能在面對自動化的重複攻擊時,維持60%到70%的服務能力。而未經保護之版本,在同樣的攻擊下,只能提供低於10%的服務能力。 | |
dc.description.abstract |
Buffer overflow vulnerability is a severe security problem due to insufficient bound checking of programs. Most research efforts were put on the detection of the attacks. Many proposed techniques terminate the compromised process upon detecting an attack and restart a new instance if necessary. However, while facing automated and repetitive attacks, terminating the compromised instance and restart a new one is probably not a desired reaction for most network services since it degrades the service availability. In the recent years, more research efforts focused on preserving service availability under repetitive attacks. However, while preserving service availability, their mechanisms also have a substantial impact on the performance of protected programs. In this paper, we propose a lightweight mechanism which adopts the idea of failure-oblivious computing on recovering programs from buffer overflow attacks. The proposed mechanism automatically transforms a program to apply multiple protection techniques on the program in a function-by-function basis. The transformed program minimizes performance overhead by selectively enabling heavyweight protection for only a small set of functions according to the run-time information collected during its execution. Our experiment results indicate that all transformed programs have very low impact on performance. It also indicates that the transformed Apache server preserves from 60% to 70% of service availability while the unprotected version renders less than 10% of service. | |
dc.description.abstractopendate |
||
dc.description.degree |
碩士 | |
dc.description.tableofcontents |
摘 要 iAbstract iiTable of Contents iiiList of Figures iv1 Introduction 11.1 Motivations 11.2 Our Contributions 21.3 Our Approach 21.4 Organization of the Paper 32 Background 42.1 Address Space Layout Randomization 42.2 Protecting Local Buffers with Guard Page 53 Design and Implementation 73.1 Function-based Protection 83.2 Stage Transition and Inter-Stage Communication 113.3 Multi-Stage Buffer Overflow Protection Mechanism 134 Evaluation 204.1 Performance Evaluation 214.1.1 Qpopper 214.1.2 Dproxy-nexgen 224.1.3 ProFTPD 234.1.4 Ghttpd 244.1.5 Apache Tomcat Connector (mod_jk) 254.2 Service Availability 265 Related Work 285.1 Static Analysis Techniques 285.2 Dynamic Detection Techniques 285.3 Automatic Recovery from Attacks 296 Conclusions 31References 32 | |
dc.identifier.citation |
[1] A. Baratloo, N. Singh, and T. Tsai. Transparent Run-time Defense. Against Stack Smashing Attacks. In Proceedings of the 2000 USENIX Annual Technical Conference, pages 251-262, Jun. 2000.[2] B. Perens. efence(3), April 1993http://perens.com/FreeSoftware/ElectricFence[3] T.-C. Chiueh and F.-H. Hsu. RAD: A compile-time solution to buffer overflow attacks. In Proceedings of the 21st International Conference on Distributed Computing Systems, Apr. 2001.[4] C. Cowan, S. Beattie, J. Johansen, and P. Wagle. PointGuard: Protecting Pointers from Buffer Overflow Vulnerabilities. In Proceedings of the 12th USENIX Security Symposium, pages 91-104, Aug. 2003.[5] C. Cowan, C. Pu, D. Maier, J. Walpole, P. Bakke, S. Beattie, A. Grier, P. Wagle, Q. Zhang, and H. Hinton. StackGuard: Automatic Adaptive Detection and Prevention of Buffer-Overflow Attacks. In Proceedings of the 7th USENIX Security Conference, pages 63-78, Jan. 1998.[6] C. Cowan, P. Wagle, C. Pu, S. Beattie, and J. Walpole. Buffer Overflows: Attacks and Defenses for the Vulnerability of the Decade. In Proceedings of DARPA Information Survivability Conference and Exposition, pages 119-129, Jan. 2000.[7] C. Dik. Non-Executable Stack for Solaris. Posted to comp.security.unix January 2, 1997.[8] Christopher Dahn, Spiros Mancoridis. Using Program Transformation to Secure C Programs Against Buffer Over The 10th Working Conference on Reverse Engineering, British Columbia, Canada, November, 2003, pp.323-332.[9] N. Dor, M. Rodeh, and M. Sagiv. Cssv: Towards a Realistic Tool for Statically Detecting all Buffer Overflows in C. In Proceedings of the ACM SIGPLAN 2003 Conference on Programming Language Design and Implementation, pages 155-167, Jun. 2003.[10] H. Etoh and K. Yoda. Protecting from Stack-Smashing Attacks. Available athttp://www.trl.ibm.com/projects/security/ssp, Jun. 2000.[11] T. Jim, G. Morrisett, D. Grossman, M. Hicks, J. Cheney, and Y. Wang. Cyclone: a Safe Dialect of C. In Proceedings of the USENIX Annual Technical Conference, pages 275-288, Jun. 2002.[12] M. Kaempf. Smashing The Heap For Fun And Profit. Available athttp://doc.bughunter.net/buffer-overflow/heap-corruption.html[13] D. Larochelle and D. Evans. Statically Detecting Likely Buffer Overflow Vulnerabilities. In Proceedings of the 10th. USENIX Security Symposium, pages 177-190, Aug. 2001.[14] Z. Liang and R. Sekar. Automated, Sub-Second Attack Signature Generation: A Basis for Building Self-Protecting Servers. In Proceedings of the 12th ACM Conference on Computer and Communications Security, Nov. 2005.[15] Z. Liang and R. Sekar. Automatic Generation of Buffer Overflow Attack Signatures:An Approach Based on Program Behavior Models. In Proceedings of the 21st Annual Computer Security Applications Conference, pages 215-224, Dec. 2005.[16] Z. Liang, R. Sekar, and D. C. DuVarney. Automatic Synthesis of Filters to Discard Buffer Overflow Attacks: A Step Towards Realizing Self-Healing Systems. In Proceedings of USENIX Annual Technical Conference, pages 375-378, Apr. 2005.[17] G. C. Necula, S. McPeak, and W. Weimer. CCured: Type-Safe Retrofitting of Legacy Code. In Proceedings of 29th. ACM Symposium on Principles of Programming Languages, pages 128-139, Jan. 2002.[18] J. Newsome and D. Song. Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software. In Proceedings of 12th Annual Network and Distributed System Security Symposium, Feb. 2005.[19] The PAX team. Pax Address Space Layout Randomization. Available at http://pax.grsecurity.net.[20] M. Rinard, C. Cadar, D. Roy, and D. Dumitran. A Dynamic Technique for Eliminating Buffer Overflow Vulnerabilities (and Other Memory Errors). In Proceedings of the 20th Annual Computer Security Applications Conference, pages 82-90, Dec. 2004.[21] M. Rinard, C. Cadar, D. Dumitran, D. Roy, T. Leu, and J. W Beebee. Enhancing Server Availability and Security Through Failure-Oblivious Computing. In Proceedings 6th Symposium on Operating Systems Design and Implementation (OSDI), December 2004.[22] O. Ruwase, M. Lam. A Practical Dynamic Buffer Overflow Detector. In Proceedings of the Network and Distributed System Buffer overflow Symposium, pages 159-169, Feb. 2004.[23] H. Shacham, Matthew Page, B. Pfa, E.-J. Goh, N. Modadugu, and D. Boneh. On the Effectiveness of Address-Space Randomization. In Proceedings of the 11th ACM Conference on Computer and Communications Security, pages 298-307, Oct. 2004.[24] S. Sidiroglou and A. D. Keromytis. A Network Worm Vaccine Architecture. In Proceedings of the 12th International Workshop on Enabling Technologies: Infrastructure for Collaborative Enterprises, pages 220-225, Jun. 2003.[25] S. Sidiroglou and A. D. Keromytis. A Dynamic Mechanism for Recovering from Buffer Overflow Attacks. 8th Information Security Conference. September 2005.[26] S. Sidiroglou, M. E. Locasto, S. W. Boyd and A. D. Keromytis. Building a Reactive Immune System for Software Services. In USENIX Annual Technical Conference, Apr. 2005.[27] A. Smirnov and T. C. Chiueh. DIRA: Automatic Detection, Identification and Repair of Control-Hijacking Attacks. In Proceedings of 12th Annual Network and Distributed System Security Symposium, Feb. 2005.[28] Solar Designer. Non-Executable User Stack. http://www.openwall.com/linux/.[29] StackShield. http://www.angelfire.com/sk/stackshield, Jan. 2000.[30] J. Xu, P. Ning, C. Kil, Y. Zhai and C. Bookholt. Automatic Diagnosis and Response to Memory Corruption Vulnerabilities. In Proceedings of 12th ACM Conference on Computer and Communications Security, pages 223-234, Nov. 2005.[31] J. R. Cordy, T. R. Dean, A. J. Malton and K. A. Schneider, "Source Transformation in Software Engineering using the TXL Transformation System", Journal of Information and Software Technology44(13), 827--837 (2002).[32] WebStone. Available at http://www.mindcraft.com/benchmarks/webstone[33] Postal. Available at http://www.coker.com.au/postal | |
dc.identifier.uri |
https://hdl.handle.net/20.500.14371/35530 | |
dc.language.iso |
英文 | |
dc.relation.alma |
990010417860206772 | |
dc.relation.page |
34 | |
dc.subject.keyword |
緩衝溢位 | |
dc.subject.keyword |
||
dc.subject.keyword |
||
dc.subject.keyword |
buffer overflow | |
dc.subject.keyword |
failure-oblivious | |
dc.subject.keyword |
guard page | |
dc.title |
具有錯誤忽略能力之輕量級緩衝溢位保護機制 | zh-TW |
dc.title |
A Lightweight Buffer Overflow Protection Mechanism with Failure-Oblivious Capability | en |
dc.type |
Thesis | zh-TW |
檔案
- 752401.pdf (812.4 KB, Adobe PDF)
所屬典藏: 多媒體工程研究所