Finding application errors and security flaws using PQL: a program query language
The DOI matches its Crossref record; 32 of the 32 references it cites were found in a registry or an index.
Abstract
A number of effective error detection tools have been built in recent years to check if a program conforms to certain design rules. An important class of design rules deals with sequences of events asso-ciated with a set of related objects. This paper presents a language called PQL (Program Query Language) that allows programmers to express such questions easily in an application-specific context. A query looks like a code excerpt corresponding to the shortest amount of code that would violate a design rule. Details of the tar-get application's precise implementation are abstracted away. The programmer may also specify actions to perform when a match is found, such as recording relevant information or even correcting an erroneous execution on the fly.We have developed both static and dynamic techniques to find solutions to PQL queries. Our static analyzer finds all potential matches conservatively using a context-sensitive, flow-insensitive, inclusion-based pointer alias analysis. Static results are also use-ful in reducing the number of instrumentation points for dynamic analysis. Our dynamic analyzer instruments the source program to catch all violations precisely as the program runs and to optionally perform user-specified actions.We have implemented the techniques described in this paper and found 206 errors in 6 large real-world open-source Java applica-tions containing a total of nearly 60,000 classes. These errors are important security flaws, resource leaks, and violations of consis-tency invariants. The combination of static and dynamic analysis proves effective at addressing a wide range of debugging and pro-gram comprehension queries. We have found that dynamic analysis is especially suitable for preventing errors such as security vulner-abilities at runtime.
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
Compilers: Principles, Techniques, and Tools
Aho, A. V., Sethi, R., & Ullman, J. D. (1986) · Cited by 8,480
Holzmann, G. J. (1997) · IEEE Transactions on Software Engineering · doi:10.1109/32.588521 · Cited by 3,803
Kiczales, G., Hilsdale, E., Hugunin, J., Kersten, M., Palm, J., & Griswold, W. G. (2001) · Lecture Notes in Computer Science · doi:10.1007/3-540-45337-7_18 · Cited by 2,767
Proceedings of the 11th USENIX Security Symposium
Boneh, D. (2002) · Cited by 2,530
Eraser: a dynamic data race detector for multithreaded programs
Savage, S., Burrows, M., Nelson, G., Sobalvarro, P., & Anderson, T. (1997) · ACM Transactions on Computer Systems · doi:10.1145/265924.265927 · Cited by 1,572
Bandera: extracting finite-state models from Java source code
Corbett, J. C., Dwyer, M. B., Hatcliff, J., Laubach, S., Păsăreanu, C. S., Robby, & Zheng, H. (2000) · Proceedings of the 22nd international conference on Software engineering - ICSE '00 · doi:10.1145/337180.337234 · Cited by 1,059
Finding security vulnerabilities in java applications with static analysis
Livshits, V. B., & Lam, M. S. (2005) · USENIX Security Symposium · Cited by 773
Self-citationHovemeyer, D., & Pugh, W. (2004) · Companion to the 19th annual ACM SIGPLAN conference on Object-oriented programming systems, languages, and applications · doi:10.1145/1028664.1028717 · Cited by 760
Ammons, G., Bodík, R., & Larus, J. R. (2002) · Proceedings of the 29th ACM SIGPLAN-SIGACT symposium on Principles of programming languages · doi:10.1145/503272.503275 · Cited by 665
A static analyzer for finding dynamic programming errors
Bush, W. R., Pincus, J. D., & Sielaff, D. (2000) · Software Practice and Experience · doi:10.1002/(sici)1097-024x(200006)30:7<775::aid-spe309>3.0.co;2-h · Cited by 600
Cloning-based context-sensitive pointer alias analysis using binary decision diagrams
Whaley, J., & Lam, M. S. (2004) · Proceedings of the ACM SIGPLAN 2004 conference on Programming language design and implementation · doi:10.1145/996841.996859 · Cited by 582
Self-citationSecuring web application code by static analysis and runtime protection
Huang, Y.-W., Yu, F., Hang, C., Tsai, C.-H., Lee, D.-T., & Kuo, S.-Y. (2004) · Proceedings of the 13th international conference on World Wide Web · doi:10.1145/988672.988679 · Cited by 567
Adding trace matching with free variables to AspectJ
Allan, C., Avgustinov, P., Christensen, A. S., Hendren, L. J., Kuzins, S., Lhoták, O., de Moor, O., Sereni, D., Sittampalam, G., & Tibble, J. (2005) · Conference on Object-Oriented Programming Systems, Languages, and Applications · doi:10.1145/1094811.1094839 · Cited by 472
Automatically Hardening Web Applications Using Precise Tainting
Nguyen-Tuong, A., Guarnieri, S., Greene, D., Shirley, J., & Evans, D. (2005) · IFIP Advances in Information and Communication Technology · doi:10.1007/0-387-25660-1_20 · Cited by 387
Advanced SQL Injection In SQL Server Applications
Anley, C. (2002) · Cited by 337
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
Self-citationSynthesis of interface specifications for Java classes
Alur, R., Černý, P., Madhusudan, P., & Nam, W. (2005) · Proceedings of the 32nd ACM SIGPLAN-SIGACT symposium on Principles of programming languages · doi:10.1145/1040305.1040314 · Cited by 316
Software fault injection: inoculating programs against errors
Voas, J. M., & McGraw, G. E. (1997) · John Wiley & Sons, Inc. eBooks · Cited by 275
Automatic extraction of object-oriented component interfaces
Whaley, J., Martin, M. C., & Lam, M. S. (2002) · ACM SIGSOFT Software Engineering Notes · doi:10.1145/566171.566212 · Cited by 261
Self-citationMining Temporal Specifications for Error Detection
Weimer, W., & Necula, G. C. (2005) · Lecture Notes in Computer Science · doi:10.1007/978-3-540-31980-1_30 · Cited by 253
Navigating and querying code without getting lost
Janzen, D., & De Volder, K. (2003) · Proceedings of the 2nd international conference on Aspect-oriented software development · doi:10.1145/643603.643622 · Cited by 233
Scalable error detection using boolean satisfiability
Xie, Y., & Aiken, A. (2005) · Proceedings of the 32nd ACM SIGPLAN-SIGACT symposium on Principles of programming languages · doi:10.1145/1040305.1040334 · Cited by 213
Automatic extraction of object-oriented component interfaces
Whaley, J., Martin, M. C., & Lam, M. S. (2002) · ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA) · doi:10.1145/566172.566212 · Cited by 183
Self-citationRelational queries over program traces
Goldsmith, S. F., O'Callahan, R., & Aiken, A. (2005) · Conference on Object-Oriented Programming Systems, Languages, and Applications · doi:10.1145/1094811.1094841 · Cited by 169
Debugging heterogeneous distributed systems using event-based models of behavior
Bates, P. C. (1995) · ACM Transactions on Computer Systems · doi:10.1145/200912.200913 · Cited by 153
Automated soundness proofs for dataflow analyses and transformations via local rules
Lerner, S., Millstein, T. D., Rice, E., & Chambers, C. (2005) · ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL) · doi:10.1145/1040305.1040335 · Cited by 152
A practical flow-sensitive and context-sensitive C and C++ memory leak detector
Heine, D. L., & Lam, M. S. (2003) · ACM SIGPLAN Notices · doi:10.1145/780822.781150 · Cited by 147
Self-citationA practical flow-sensitive and context-sensitive C and C++ memory leak detector
Heine, D. L., & Lam, M. S. (2003) · ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI) · doi:10.1145/781131.781150 · Cited by 143
Self-citationFinding and preventing run-time error handling mistakes
(2004) · doi:10.1145/1028976.1029011 · Cited by 141
SLIC: A Specification Language for Interface Checking (of C)
Ball, T., & Rajamani, S. K. (2002) · Cited by 110
Debugging heterogeneous distributed systems using event-based models of behavior
Bates, P. C. (1988) · Workshop on Parallel & Distributed Debugging · doi:10.1145/68210.69217 · Cited by 72
A Type System and Analysis for the Automatic Extraction and Enforcement of Design Information
Lam, P., & Rinard, M. (2003) · Lecture notes in computer science · doi:10.1007/978-3-540-45070-2_13 · Cited by 52
Cited by
CryptDB: protecting confidentiality with encrypted query processing
Popa, R. A., Redfield, C. M. S., Zeldovich, N., & Balakrishnan, H. (2011) · Proceedings of the Twenty-Third ACM Symposium on Operating Systems Principles · doi:10.1145/2043556.2043566 · Cited by 1,155
Securify: Practical Security Analysis of Smart Contracts
Tsankov, P., Dan, A., Drachsler-Cohen, D., Gervais, A., Bünzli, F., & Vechev, M. (2018) · Proceedings of the 2018 ACM SIGSAC Conference on Computer and Communications Security · doi:10.1145/3243734.3243780 · Cited by 1,043
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
AMNESIA: analysis and monitoring for NEutralizing SQL-injection attacks
Halfond, W. G. J., & Orso, A. (2005) · Proceedings of the 20th IEEE/ACM International Conference on Automated Software Engineering · doi:10.1145/1101908.1101935 · Cited by 527
The essence of command injection attacks in web applications
Su, Z., & Wassermann, G. (2006) · Conference record of the 33rd ACM SIGPLAN-SIGACT symposium on Principles of programming languages · doi:10.1145/1111037.1111070 · Cited by 515
Metadata
- Authors
- Martin, M., Livshits, B., & Lam, M. S.
- Venue
- Proceedings of the 20th annual ACM SIGPLAN conference on Object-oriented programming, systems, languages, and applications
- Publisher
- ACM
- Published
- 2005-10-12
- Pages
- 365-383
- OpenAlex
- W2134429122
- Cited by
- 440
- References
- 32
- FWCI
- 19.58
- 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.