Software vulnerability prediction using text analysis techniques

Aram Hovsepyan, Riccardo Scandariato, Wouter Joosen, James Walden

2012 · 117 citations · 5 references

DOIFull text

Open access

Concepts

TL;DR

Early identification of software vulnerabilities is essential to reduce costs, protect reputation, and prevent litigation, yet most existing prediction techniques rely on component characteristics such as code complexity and churn. This paper proposes a novel vulnerability prediction approach that analyzes raw source code as text rather than relying on engineered features. The method treats source code as plain text and applies text analysis techniques to extract predictive signals. Initial experiments on 18 versions of a large mobile application show the model achieves 0.87 accuracy, 0.85 precision, and 0.88 recall.

Abstract

Early identification of software vulnerabilities is essential in software engineering and can help reduce not only costs, but also prevent loss of reputation and damaging litigations for a software firm. Techniques and tools for software vulnerability prediction are thus invaluable. Most of the existing techniques rely on using component characteristic(s) (like code complexity, code churn) for the vulnerability prediction. In this position paper, we present a novel approach for vulnerability prediction that leverages on the analysis of raw source code as text, instead of using "cooked" features. Our initial results seem to be very promising as the prediction model achieves an average accuracy of 0.87, precision of 0.85 and recall of 0.88 on 18 versions of a large mobile application.

References

5