Title :
Detection of Buffer Overflow Vulnerabilities in C/C++ with Pattern Based Limited Symbolic Evaluation
Author :
Ding, Sun ; Tan, Hee Beng Kuan ; Liu, Kaiping ; Chandramohan, Mahinthan ; Zhang, Hongyu
Author_Institution :
Sch. of Electr. & Electron. Eng., Nanyang Technol. Univ., Singapore, Singapore
Abstract :
Buffer overflow vulnerability is one of the major security threats for applications written in C/C++. Among the existing approaches for detecting buffer overflow vulnerability, though flow sensitive based approaches offer higher precision but they are limited by heavy overhead and the fact that many constraints are unsolvable. We propose a novel method to efficiently detect vulnerable buffer overflows in any given control flow graph through recognizing two patterns. The proposed approach first uses syntax analysis to filter away those branches that cannot possibly comply with any of the two patterns before applying a limited symbolic evaluation for a precise matching against the patterns. The proposed approach only needs to evaluate a limited set of selected branch predicates according to the patterns and avoids the need to deal with a large number of general branch predicates. This significantly improves the scalability while not sacrificing the detection precision. Our experiments demonstrate the scalability and efficiency of the proposed method, which demonstrates its applicability.
Keywords :
C++ language; buffer storage; graph theory; pattern matching; security of data; C language; C++ language; branch predicates; buffer overflow vulnerability detection; control flow graph; detection precision; pattern matching; pattern recognition; pattern-based limited symbolic evaluation; scalability improvement; security threats; syntax analysis; Benchmark testing; Buffer overflow; Indexes; Pattern recognition; Runtime; Scalability; Syntactics; empirical study; pattern recognition; security; symbolic evaluation; verification;
Conference_Titel :
Computer Software and Applications Conference Workshops (COMPSACW), 2012 IEEE 36th Annual
Conference_Location :
Izmir
Print_ISBN :
978-1-4673-2714-5
Electronic_ISBN :
978-0-7695-4758-9
DOI :
10.1109/COMPSACW.2012.103