Badger: complexity analysis with fuzzing and symbolic execution
Open Access
- 12 July 2018
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 322-332
Abstract
Hybrid testing approaches that involve fuzz testing and symbolic execution have shown promising results in achieving high code coverage, uncovering subtle errors and vulnerabilities in a variety of software applications. In this paper we describe Badgera new hybrid approach for complexity analysis, with the goal of discovering vulnerabilities which occur when the worst-case time or space complexity of an application is significantly higher than the average case. Badger uses fuzz testing to generate a diverse set of inputs that aim to increase not only coverage but also a resource-related cost associated with each path. Since fuzzing may fail to execute deep program paths due to its limited knowledge about the conditions that influence these paths, we complement the analysis with a symbolic execution, which is also customized to search for paths that increase the resource-related cost. Symbolic execution is particularly good at generating inputs that satisfy various program conditions but by itself suffers from path explosion. Therefore, Badger uses fuzzing and symbolic execution in tandem, to leverage their benefits and overcome their weaknesses. We implemented our approach for the analysis of Java programs, based on Kelinci and Symbolic PathFinder. We evaluated Badger on Java applications, showing that our approach is significantly faster in generating worst-case executions compared to fuzzing or symbolic execution on their own. CCS CONCEPTS • Security and privacy → Formal methods and theory of security; • Software and its engineering → Formal software verification; Software testing and debugging;Keywords
All Related Versions
Funding Information
- Defense Advanced Research Projects Agency (FA8750-15-2-0087)
- Deutsche Forschungsgemeinschaft (GR 3634/4-1 EMPRESS)
This publication has 28 references indexed in Scilit:
- Multi-run Side-Channel Analysis Using Symbolic Execution and Max-SMT2016
- Symbolic PathFinder: integrating symbolic execution with model checking for Java bytecode analysisAutomated Software Engineering, 2013
- Memoized symbolic execution2012
- SAGE: Whitebox Fuzzing for Security TestingQueue, 2012
- Closed-Form Upper Bounds in Static Cost AnalysisJournal of Automated Reasoning, 2010
- SPEED: Symbolic Complexity Bound Analysis2009
- A Numerical Abstract Domain Based on Expression Abstraction and Max Operator with Application in Timing AnalysisLecture Notes in Computer Science, 2008
- CUTE2005
- Gprof1982
- Symbolic execution and program testingCommunications of the ACM, 1976