Figshare · 2018 · 112 citations · 11 references
ComputingComputer EngineeringComputer ScienceCompilersComputer SecurityProgramming LanguagesControl-flow AnalysisError DetectionStatic Vulnerability AnalysisType CheckingType SystemsCompiler DesignCompiler SupportInteger Overflow DetectionInteger Overflow VulnerabilitiesPerformance OverheadPerformance Overhead AnalysisRuntime Type CheckingVariable Value Problem
We present the design and implementation of RICH (Run-time Integer CHecking), a tool for efficiently detecting integer-based attacks against C programs at run time. C integer bugs, a popular avenue of attack and frequent programming error [1–15], occur when a variable value goes out of the range of the machine word used to materialize it, e.g. when assigning a large 32-bit int to a 16-bit short. We show that safe and unsafe integer operations in C can be captured by well-known sub-typing theory. The RICH compiler extension compiles C programs to object code that monitors its own execution to detect integer-based attacks. We implemented RICH as an extension to the GCC compiler and tested it on several network servers and UNIX utilities. Despite the ubiquity of integer operations, the performance overhead of RICH is very low, averaging about 5%. RICH found two new integer bugs and caught all but one of the previously known bugs we tested. These results show that RICH is a useful and lightweight software testing tool and run-time defense mechanism. RICH may generate false positives when programmers use integer overflows deliberately, and it can miss some integer bugs because it does not model certain C features.
11
Dawson Engler, David Yu Chen, Seth Hallem et al. · 2001 · 747 citations
Automatic predicate abstraction of C programs
Thomas Ball, Rupak Majumdar, Todd Millstein et al. · ACM SIGPLAN Notices · 2012 · 703 citations
Trevor Jim, J. Greg Morrisett, Dan Grossman et al. · 2002 · 618 citations
George C. Necula, Scott McPeak, Westley Weimer · ACM SIGPLAN Notices · 2012 · 511 citations