Shi Zong, Alan Ritter, Graham Mueller, Evan Wright. Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers). 2019.
Abstract
This research demonstrates that natural language processing (NLP) can be used to analyze "crowd" opinions on Twitter to identify severe cybersecurity vulnerabilities days or even weeks before they are officially categorized. By analyzing the language used in tweets rather than just the volume of mentions, the researchers achieved a 0.86 Precision@50 in forecasting high-severity threats, proving that social media is a powerful early-warning system for real-world exploits.
The Problem: The NVD Delay
When a new software vulnerability is discovered, it is eventually assigned a CVE (Common Vulnerabilities and Exposures) ID and a CVSS (Common Vulnerability Scoring System) score in the National Vulnerability Database (NVD). This score helps security professionals prioritize which bugs to patch first.
However, there is a significant lag—a median of seven days, but sometimes weeks—between a vulnerability being discussed online and its official publication in the NVD. During this window, attackers can exploit the "zero-day" while defenders are left without an official severity rating to guide their response. This paper explores whether the "wisdom of the crowd" on social media can predict a vulnerability's severity before experts weigh in.
Methodology
The researchers developed a pipeline to extract, link, and analyze cybersecurity threats from Twitter:
- Data Collection & Annotation: They collected tweets containing keywords like "vulnerability" and "ddos." Using Amazon Mechanical Turk, they annotated 6,000 tweets for threat existence and perceived severity based on exploitability and impact.
- Classification Models: They compared two approaches: Logistic Regression (using bag-of-ngrams) and 1D Convolutional Neural Networks (CNN) using domain-specific word embeddings (GloVe) trained on over 600,000 cybersecurity-related tweets.
- Linking Algorithm: Since tweets rarely mention CVE IDs directly, the researchers developed an algorithm to follow URLs in tweets and scrape linked web pages for CVE identifiers, allowing them to validate predictions against official NVD scores.
- Forecasting: A "severe" threat was defined as one with a CVSS score $\ge$ 7.0. The model was tested on its ability to identify these threats 5 days before official NVD publication.
Key Insights: Language Over Volume
Traditional forecasting often relies on "tweet volume" (the frequency of mentions). This paper demonstrates that how people talk is more predictive than how many people are talking. A few experts using words like "critical," "remote code execution," or "patch now" provide a stronger signal than a thousand bots spamming a keyword.
Adjectives like serious, pivotal, urgent, and massive were identified as strong indicators of high-severity threats. Surprisingly, the researchers found that their model—based on user opinions—was actually better at predicting real-world exploits than official CVSS v3.0 scores. In their top 10 predicted threats, 7 were exploited in the wild, compared to only 1 in the top 10 list generated by official expert scores.
Key Results
The CNN model consistently outperformed Logistic Regression in identifying severe threats. The system was able to predict accurate severity levels for major vulnerabilities, such as "Dirty COW," up to 19 days before they were officially published in the NVD.
- Classification Performance: The CNN achieved an Area Under the Curve (AUC) of 0.65 on the test set.
- Forecasting Accuracy: When predicting high-severity CVEs 5 days in advance, the model achieved a Precision@50 of 0.86, significantly outperforming a baseline model based only on tweet volume (0.68).
Limitations and Future Work
While powerful, the model faces challenges with highly technical vulnerabilities that lack "scary" keywords in early descriptions, leading to potential false negatives. Additionally, some Twitter accounts are prone to hyperbole, which can cause the model to overestimate severity. Future work may involve weighting specific reliable Twitter accounts to further improve forecasting accuracy.
Summary updated