Tweezers: A Framework for Security Event Detection via Event Attribution-centric Tweet Embedding

Jian Cui, Hanna Kim, Eugene Jang, Dayeon Yim, Kicheol Kim, Yongjae Lee, Jin-Woo Chung, Seungwon Shin, Xiaojing Liao

TL;DR

Tweezers is a novel framework designed to extract high-fidelity Cyber Threat Intelligence (CTI) from the noisy stream of Twitter (now X). By shifting the focus from simple keyword matching to "event attribution-centric" embeddings—which link tweets based on shared security entities like threat actors and victims—the system detects twice as many security events as previous state-of-the-art methods.

What Problem Does This Paper Address?

Security professionals rely on Twitter for real-time alerts on vulnerabilities and data breaches, often getting information days before traditional news outlets. However, two major hurdles exist:

  1. Noise and Ambiguity: Keyword-based filters are easily fooled. A search for "Tropic" might return news about the "Tropic Trooper" hacking group, but it also catches noise about the movie Tropic Thunder.
  2. Semantic Overlap: Standard NLP models (like BERT or Word2Vec) struggle because different security events often use identical jargon. Two tweets about two completely different zero-day exploits will look semantically similar because they both use terms like "RCE," "vulnerability," and "patch," leading to "event collisions" in vector space.

As shown in Figure 1, traditional embeddings often place tweets from the same event further apart than tweets from entirely different events if the vocabulary overlaps.

Word2Vec failure: similar jargon causes different events to cluster together.

Methods

The authors propose a multi-stage pipeline that moves beyond text-only analysis:

  • LLM-Powered NER: Tweezers uses Large Language Models (LLMs) in a zero-shot setting to perform Named Entity Recognition (NER). It extracts 13 specific security entities based on the STIX 2.1 standard (e.g., Threat Actor, Identity, Malware, Tool).
  • Tweet Relation Graph (TRG): The system builds a graph where each node is a tweet. Edges are created between tweets that share the same security entities. This captures the "attribution" of an event—who did it and who was targeted.
  • Feature Engineering: Each node is initialized with a feature vector combining:
  • Text: BERTweet embeddings for local semantics.
  • Temporal: Time elapsed since a fixed point to capture the bursty nature of events.
  • Category: Multi-label tags (e.g., "Ransomware" + "Data Privacy").
  • Graph Attention Network (GATv2): A GATv2 model processes the TRG. It is trained using contrastive learning (triplet and pairwise loss) to ensure that tweets sharing entities and temporal proximity are "pulled" together in the final embedding space, while unrelated tweets are "pushed" apart.
  • Clustering & Filtering: Finally, DBSCAN clusters these refined embeddings into distinct events. A heuristic score (# Users / # Tweets) filters out automated spam or bot-driven repetitive posts.
Overview of the Tweezers embedding method.

Datasets

The authors evaluated Tweezers using several datasets:

  • Security Event Benchmark: A new, manually curated dataset of 182 cybersecurity events (2,054 tweets) spanning 2022 to 2024.
  • Real-world Stream: 5.29 million tweets collected in November 2022 to test the system "in the wild."
  • Multi-label Category Dataset: 10,392 tweets annotated by experts into seven categories (Vulnerability, Malware, etc.) to train the initial classifier.

Key Insights and Ideas

  • Entities over Keywords: The core "aha moment" is that while keywords are ambiguous, security entities (like a specific CVE ID or a hacking group name) are highly specific. Linking tweets via these entities creates a much cleaner signal for event detection.
  • The Power of the Graph: By using a Graph Attention Network, the model can "attend" to important connections. As seen in Figure 2, the graph structure clearly separates a WhatsApp vulnerability from a Microsoft Exchange exploit, even if both tweets mention "bug" and "remote code execution."
  • Temporal Anchoring: Time is a critical feature. Without it, the model might cluster two different ransomware attacks that happened months apart just because they targeted the same industry. Adding temporal data significantly reduced noise in the clustering process.
Graph neighbors showing clear separation between distinct events.

Key Results

  • Clustering Performance: Tweezers outperformed all baselines (including BERT, SecureBERT, and GCNs) across metrics like Normalized Mutual Information (NMI), achieving scores of 0.73–0.77 compared to BERTweet's ~0.52.
  • Event Coverage: In the real-world November 2022 test, Tweezers identified 84 unique events out of 167 reported in news outlets. The best baseline (SONAR) only found 45, and another (W2E) found only 9.
  • Informative User Identification: The framework successfully identified high-value human researchers (who provide deep analysis and IOCs) versus automated bots that simply mirror CVE lists.

Limitations and Future Work

  • Keyword Bottleneck: The initial tweet collection still relies on a predefined list of security keywords. If an event uses entirely new terminology not in that list, Tweezers won't see it.
  • Long-term Tracking: The current model treats events with large temporal gaps as separate. Future work could involve linking these "event instances" into longer-term "campaigns."
  • Multilingual Support: The current implementation is optimized for English, though the authors suggest that using multilingual LLMs for the NER stage could extend its reach.

Summary updated

BibTeX
@inproceedings{cui2025tweezers,
  author = {Jian Cui and Hanna Kim and Eugene Jang and Dayeon Yim and Kicheol Kim and Yongjae Lee and Jin-Woo Chung and Seungwon Shin and Xiaojing Liao},
  title = {{Tweezers: A Framework for Security Event Detection via Event Attribution-centric Tweet Embedding}},
  booktitle = {Ndss},
  year = {2025},
}
Figure