Crowdsourcing Cybersecurity: Cyber Attack Detection using Social Media

Rupinder Paul Khandpur, Taoran Ji, Steve T. K. Jan, Gang Wang, Chang-Tien Lu, Naren Ramakrishnan · DOI

Abstract

Traditional cybersecurity defenses often suffer from a "detection deficit," where the time between an initial compromise and its discovery can span weeks or months. This paper introduces an unsupervised framework that treats social media as a real-time "crowdsourced sensor" to bridge this gap. By employing a novel query expansion strategy based on dependency tree patterns, the system filters the massive noise of Twitter to identify specific security events—such as data breaches and DDoS attacks—with high precision, often before they are officially reported.

The Challenge: Signal vs. Noise in Social Media

While internal network monitoring is essential, news of a compromise often breaks first on social media as users report service outages or attackers boast about their exploits. However, using platforms like Twitter as a sensor is difficult due to the high volume of irrelevant chatter. A keyword search for "leaking data" is as likely to find a user complaining about a mobile data plan as it is a report of a security breach. The challenge lies in automatically separating the "signal" of actual cyber-attacks from everyday "noise" without requiring constant human intervention to update keyword lists.

Methodology: Syntactic Signal over Keyword Noise

The authors propose the Dynamic Event Trigger Expansion (DETE) framework. The core innovation is moving beyond simple keyword matching to Typed Dependency Queries. Instead of looking for isolated words, the system analyzes the syntactic structure of a tweet, converting it into a dependency tree that captures the relationships between words (e.g., the link between "hacked" and "account").

The process begins with a small set of generic "seed" queries for different attack categories.

Table of seed queries used to initialize the DETE framework across three major attack categories.

The framework then follows an iterative process:

  1. Convolution Tree Kernels: A mathematical kernel measures the similarity between the dependency trees of seed queries and millions of incoming tweets.
  2. Iterative Expansion: The system identifies a "target domain" of similar tweets and extracts informative subtrees to create new, more specific queries.
  3. KL-Divergence Ranking: To prevent "topic drift," new terms are ranked using Kullback-Leibler (KL) distance, ensuring they are uniquely frequent in attack-related tweets compared to general Twitter traffic.
  4. Event Extraction: Expanded queries are clustered using Affinity Propagation and mapped to attack categories using word embeddings (word2vec).

Evaluation and Real-World Performance

The DETE framework was tested against a 10% sample of the Twitter stream (over 5 billion tweets) collected over 27 months. Its performance was measured against "Gold Standard Reports" from sources like Hackmageddon and PrivacyRights.org.

The system significantly outperformed traditional burst-detection algorithms. While standard methods often fail to distinguish between cyber-events and general social trends, DETE achieved:

  • Precision: ~80% for DDoS attacks and ~78% for data breaches.
  • Recall: Successfully captured 74% of data breaches listed in official reports.
Timeline of detected cyber events from August 2014 to August 2015, illustrating the system's ability to track major incidents like the Sony Pictures and iCloud breaches.

The framework's ability to adapt is demonstrated by its discovery of specific targets (e.g., "Sony," "Ashley Madison") and attack methods without manual updates. For instance, it captured the progression of the 2014 Sony Pictures hack from initial reports to detailed post-attack chatter.

Discussion and Limitations

The research highlights that the structure of a sentence is a more reliable indicator of a cyber-event than keywords alone. By checking syntactic relationships, the system can distinguish between a "leaking faucet" and "leaking data."

However, some limitations remain:

  • Account Hijacking: This category showed lower precision (66%) due to the short lifecycle and weaker social media signal of these events.
  • Stealth Attacks: The system is inherently limited to "crowdsourced" information; stealthy, state-sponsored espionage that never reaches the public eye remains undetectable by this method.
  • Temporal Dependencies: Future work may involve modeling how one event (e.g., a credential leak) leads to subsequent waves of attacks (e.g., account hijackings) over time.

Summary updated

BibTeX
@inproceedings{khandpur2017crowdsourcing,
  author = {Rupinder Paul Khandpur and Taoran Ji and Steve T. K. Jan and Gang Wang and Chang-Tien Lu and Naren Ramakrishnan},
  title = {{Crowdsourcing Cybersecurity: Cyber Attack Detection using Social Media}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2017},
  doi = {10.1145/3132847.3132866},
}
Figure