Chucky: exposing missing checks in source code for vulnerability discovery
The DOI matches its Crossref record; 31 of the 31 references it cites were found in a registry or an index.
Abstract
Uncovering security vulnerabilities in software is a key for operating secure systems. Unfortunately, only some security flaws can be detected automatically and the vast majority of vulnerabilities is still identified by tedious auditing of source code. In this paper, we strive to improve this situation by accelerating the process of manual auditing. We introduce Chucky, a method to expose missing checks in source code. Many vulnerabilities result from insufficient input validation and thus omitted or false checks provide valuable clues for finding security flaws. Our method proceeds by statically tainting source code and identifying anomalous or missing conditions linked to security-critical objects.In an empirical evaluation with five popular open-source projects, Chucky is able to accurately identify artificial and real missing checks, which ultimately enables us to uncover 12 previously unknown vulnerabilities in two of the projects (Pidgin and LibTIFF).
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Introduction to Modern Information Retrieval
Salton, G., & McGill, M. J. (1983) · Virtual Defense Library (Ministerio de Defensa) · Cited by 11,546
Introduction to automata theory, languages and computation
(1981) · Mathematics and Computers in Simulation · doi:10.1016/0378-4754(81)90068-9 · Cited by 10,699
The use of the area under the ROC curve in the evaluation of machine learning algorithms
Bradley, A. P. (1997) · Pattern Recognition · doi:10.1016/s0031-3203(96)00142-2 · Cited by 7,217 · cited 1×
“We further investigate the effect of the number of neighbors on the detection performance by generating individual ROC curves for values of k between 1 and 100 using the Area Under Curve (AUC) as a performance measure [2].”
MethodNewsome, J., & Song, D. X. (2018) · Figshare · doi:10.1184/r1/6468716 · Cited by 1,270
Finding security vulnerabilities in java applications with static analysis
Livshits, V. B., & Lam, M. S. (2005) · USENIX Security Symposium · Cited by 773
Bugs as deviant behavior: a general approach to inferring errors in systems code
Engler, D., Chen, D. Y., Hallem, S., Chou, A., & Chelf, B. (2001) · Proceedings of the eighteenth ACM symposium on Operating systems principles · doi:10.1145/502034.502041 · Cited by 737 · cited 1×
“Several approaches seize the idea of inspecting the temporal properties of API usage [e.g., 6, 16, 38] and attempt to provide this information across projects [e.g., 10, 43].”
BackgroundPixy: a static analysis tool for detecting Web application vulnerabilities
Jovanovic, N., Kruegel, C., & Kirda, E. (2006) · 2006 IEEE Symposium on Security and Privacy (S&P'06) · doi:10.1109/sp.2006.29 · Cited by 722 · cited 1×
“Static taint tracking has been effectively used for detecting vulnerabilities such as format string vulnerabilities in C programs [30] or SQL injections and cross-site scripting [13, 17].”
MethodSchwartz, E. J., Avgerinos, T., & Brumley, D. (2010) · 2010 IEEE Symposium on Security and Privacy · doi:10.1109/sp.2010.26 · Cited by 717 · cited 1×
“Throughout this paper, we adopt the terminology established in the field of taint analysis for discussing missing checks [see 29].”
MethodANTLR: A predicated‐LL(k) parser generator
Parr, T. J., & Quong, R. W. (1995) · Software: Practice and Experience · doi:10.1002/spe.4380250705 · Cited by 619 · cited 1×
“The parser is based on an island grammar [see 20] for the parser generator ANTLR [25] and provides abstract syntax trees (ASTs) for all functions of a code base even when declarations can only be resolved partially.”
MethodSAGE: whitebox fuzzing for security testing
Godefroid, P., Levin, M. Y., & Molnar, D. (2012) · Communications of the ACM · doi:10.1145/2093548.2093564 · Cited by 567
Fuzzing: Brute Force Vulnerability Discovery
Sutton, M. J. D., Greene, A., & Amini, P. (2007) · Medical Entomology and Zoology · Cited by 548
Li, Z., & Zhou, Y. (2005) · Proceedings of the 10th European software engineering conference held jointly with 13th ACM SIGSOFT international symposium on Foundations of software engineering · doi:10.1145/1081706.1081755 · Cited by 428 · cited 1×
“Several approaches seize the idea of inspecting the temporal properties of API usage [e.g., 6, 16, 38] and attempt to provide this information across projects [e.g., 10, 43].”
BackgroundMAPO: Mining and Recommending API Usage Patterns
Zhong, H., Xie, T., Zhang, L., Pei, J., & Mei, H. (2009) · Lecture Notes in Computer Science · doi:10.1007/978-3-642-03013-0_15 · Cited by 410 · cited 1×
“Several approaches seize the idea of inspecting the temporal properties of API usage [e.g., 6, 16, 38] and attempt to provide this information across projects [e.g., 10, 43].”
BackgroundITS4: a static vulnerability scanner for C and C++ code
Viega, J., Bloch, J. T., Kohno, Y., & McGraw, G. E. (2002) · Annual Computer Security Applications Conference · doi:10.1109/acsac.2000.898880 · Cited by 374 · cited 1×
“For example, the usage of potentially dangerous functions, such as strcpy and strcat , can be easily detected by scanning for these functions [e.g., 3, 36, 39].”
BackgroundDetecting format string vulnerabilities with type qualifiers
Shankar, U., Talwar, K., Foster, J. S., & Wagner, D. (2001) · Cited by 353
DynaMine: finding common error patterns by mining software revision histories
Livshits, B., & Zimmermann, T. (2005) · Proceedings of the 10th European software engineering conference held jointly with 13th ACM SIGSOFT international symposium on Foundations of software engineering · doi:10.1145/1081706.1081754 · Cited by 330 · cited 1×
“Other work goes one step further and makes use of additional auxiliary information like software revision histories [19, 40] or different API implementations [32].”
BackgroundDetecting object usage anomalies
Wasylkowski, A., Zeller, A., & Lindig, C. (2007) · Proceedings of the the 6th joint meeting of the European software engineering conference and the ACM SIGSOFT symposium on The foundations of software engineering · doi:10.1145/1287624.1287632 · Cited by 272
Avgerinos, T., Cha, S. K., Rebert, A., Schwartz, E. J., Woo, M., & Brumley, D. (2014) · Communications of the ACM · doi:10.1145/2560217.2560219 · Cited by 263
Generating robust parsers using island grammars
Moonen, L. (2002) · Proceedings Eighth Working Conference on Reverse Engineering · doi:10.1109/wcre.2001.957806 · Cited by 252 · cited 1×
“Starting from the identifier corresponding to a selected source or sink, the graph is traversed in top-down as well as bottom-up direction to discover all related identifiers.”
BackgroundGeneralized vulnerability extrapolation using abstract syntax trees
Yamaguchi, F., Lottmann, M., & Rieck, K. (2012) · Proceedings of the 28th Annual Computer Security Applications Conference · doi:10.1145/2420950.2421003 · Cited by 229 · cited 1×
“Another more general method coined as vulnerability extrapolation [41, 42] learns from known security flaws and finds locations that might exhibit a similar vulnerability.”
Self-citationPortokalidis, G., Slowinska, A., & Bos, H. (2006) · Proceedings of the 1st ACM SIGOPS/EuroSys European Conference on Computer Systems 2006 · doi:10.1145/1217935.1217938 · Cited by 212
AEG: Automatic Exploit Generation
Avgerinos, T., Kil, S., Hao, B. L. T., & Brumley, D. (2018) · doi:10.1184/r1/6468296 · Cited by 202
Wang, T., Wei, T., Lin, Z., & Zou, W. (2009) · Network and Distributed System Security Symposium · Cited by 200
Automatic mining of source code repositories to improve bug finding techniques
Williams, C. C., & Hollingsworth, J. K. (2005) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2005.63 · Cited by 198 · cited 1×
“Other work goes one step further and makes use of additional auxiliary information like software revision histories [19, 40] or different API implementations [32].”
BackgroundMerlin: specification inference for explicit information flow problems
Livshits, B., Nori, A. V., Rajamani, S. K., & Banerjee, A. (2009) · ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI) · doi:10.1145/1542476.1542485 · Cited by 167 · cited 1×
“[18] focus on inferring information flow specifications by modelling propagation graphs.”
BackgroundVulnerability extrapolation: assisted discovery of vulnerabilities using machine learning
Yamaguchi, F., Lindner, F., & Rieck, K. (2011) · Cited by 138
Self-citationLinear-Time Computation of Similarity Measures for Sequential Data
Rieck, K., & Laskov, P. (2008) · Publikationsdatenbank der Fraunhofer-Gesellschaft (Fraunhofer-Gesellschaft) · doi:10.5555/1390681.1390683 · Cited by 105
Self-citationLarus, J. R., Ball, T., Das, M., DeLine, R., Fahndrich, M., Pincus, J., Rajamani, S. K., & Venkatapathy, R. (2004) · IEEE Software · doi:10.1109/ms.2004.1293079 · Cited by 96 · cited 2×
“In practice, checking tools such as Microsoft PREfast [15] or PScan [5] are used to statically find vulnerabilities in source These tools possess built-in information about correct API usage and common programming mistakes, which severely limits the kind of vulnerabilities these tools can detect.”
MethodGruska, N., Wasylkowski, A., & Zeller, A. (2010) · International Symposium on Software Testing and Analysis · doi:10.1145/1831708.1831723 · Cited by 95 · cited 1×
“Several approaches seize the idea of inspecting the temporal properties of API usage [e.g., 6, 16, 38] and attempt to provide this information across projects [e.g., 10, 43].”
BackgroundSMS of death: from analyzing to attacking mobile phones on a large scale
Mulliner, C., Golde, N., & Seifert, J. (2011) · USENIX Security Symposium · Cited by 67
A security policy oracle: detecting security holes using multiple API implementations
Srivastava, V. K. L., Bond, M. D., McKinley, K. S., & Shmatikov, V. (2011) · ACM SIGPLAN Notices · doi:10.1145/1993316.1993539 · Cited by 44
Cited by
Modeling and Discovering Vulnerabilities with Code Property Graphs
Yamaguchi, F., Golde, N., Arp, D., & Rieck, K. (2014) · 2014 IEEE Symposium on Security and Privacy · doi:10.1109/sp.2014.44 · Cited by 808
Self-citationDeep Learning Based Vulnerability Detection: Are We There Yet?
Chakraborty, S., Krishna, R., Ding, Y., & Ray, B. (2022) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2021.3087402 · Cited by 790
SySeVR: A Framework for Using Deep Learning to Detect Software Vulnerabilities
Li, Z., Zou, D., Xu, S., Jin, H., Zhu, Y., & Chen, Z. (2022) · IEEE Transactions on Dependable and Secure Computing · doi:10.1109/tdsc.2021.3051525 · Cited by 639
Software Vulnerability Detection Using Deep Neural Networks: A Survey
Lin, G., Wen, S., Han, Q.-L., Zhang, J., & Xiang, Y. (2020) · Proceedings of the IEEE · doi:10.1109/jproc.2020.2993293 · Cited by 457
Ghaffarian, S. M., & Shahriari, H. R. (2018) · ACM Computing Surveys · doi:10.1145/3092566 · Cited by 353
Metadata
- Authors
- Yamaguchi, F., Wressnegger, C., Gascon, H., & Rieck, K.
- Venue
- Proceedings of the 2013 ACM SIGSAC conference on Computer & communications security - CCS '13
- Publisher
- ACM Press
- Published
- 2013
- Pages
- 499-510
- OpenAlex
- W2028820179
- Cited by
- 161
- References
- 31
- FWCI
- 5.74
- Type
- conference paper
- Language
- en
- Open access
- closed
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.