Skip to content
Open access

Leveraging Transformer Embeddings for Real-Time Discovery of Malicious URL Campaigns in the Generative-AI Threat Era

Jul 2026 · Information · Vol 17, pp. 723 · 0 citations · 16 references

TL;DR

A unified, deployable framework for real-time campaign discovery that converts raw URL streams into dense Sentence-BERT embeddings and couples approximate nearest neighbor search with online density-based clustering, discovering emerging campaigns without prior knowledge of their number or shape.

Abstract

The proliferation of algorithmically generated malicious URLs presents a critical challenge for modern cybersecurity, requiring a shift from syntactic pattern-matching toward semantic understanding grounded in pre-trained transformer foundations. Building on our prior work on billion-scale semantic search and density-based campaign clustering, this paper presents a unified, deployable framework for real-time campaign discovery. The framework converts raw URL streams into dense Sentence-BERT embeddings and couples approximate nearest neighbor search with online density-based clustering, discovering emerging campaigns without prior knowledge of their number or shape. Our central finding is that the choice of semantic representation is decisive: a domain-focused embedding strategy yields near-perfect campaign separation, substantially outperforming full-URL representations. On live, in-the-wild threat feeds, the domain-focused representation recovers all 944 discovered campaigns at an Adjusted Rand Index of 0.990 and a mean campaign recall of 1.000, at 0.10 ms per URL. Under identical clustering, the full-URL representation reaches an Adjusted Rand Index of only 0.510 and recovers fewer than half of the campaigns. We add a SHAP-based explainability layer that attributes discovery decisions to interpretable structural patterns, and we expose the whole pipeline as an operational system with a REST interface for single- and batch-URL analysis. The encoder we employ is a discriminative representation model rather than a generative one; what we contribute is the representation-and-modeling discipline this setting demands, and the resulting guidance transfers to threat intelligence in an era of generatively produced attack campaigns.

Read PDF

Similar papers

Open access 2026

Malicious Repository Detection Using Transformer-Based Models: A Metadata-Driven Approach

A metadata-driven detection framework that fine-tunes DistilBERT on repository metadata text, specifically the description, README, and topics, and formulates detection as a binary classification task between malware and benign repositories, suggesting that the framework is promising for threshold-based screening scena...

Rabeaa Mouty, M. Abdullah-Al-Wadud · 0 citations
Conference Sep 2026

Influence of Log Structure and Semantic Complexity on the Expediency of BERT-Based Models for Malicious Activity Detection

This paper investigates the influence of log structural complexity and semantic obfuscation on the expedience of deploying transformer-based architectures for intrusion detection. While BERT modifications show state-of-the-art performance in natural language processing, their computational overhead in security monitori...

A. R. Russkikh, D. Levshun, I. Ushakov · 0 citations
Open access Aug 2026

A hybrid structural-contextual framework for malicious URL detection based on graph attention networks and knowledge distillation

This paper proposes a structural-semantic integration framework leveraging Graph Attention Networks and Knowledge Distillation for robust multi-layer malicious URL detection, conceptualize raw URLs as character-level directed graphs to extract intricate structural patterns.

Hieu Nguyen Trung, Cường Phạm Việt, Ngoc Tran Nguyen · 0 citations
Review 2026

Hybrid Ensemble Learning For Malicious URL Detection: A Literature Review of Machine Learning, Deep Learning, and Feature-Fusion Approaches

The rapid evolution of phishing, malware distribution, and other web-based attacks has made malicious Uniform Resource Locator (URL) detection an important cybersecurity research problem. Traditional blacklist and rule-based mechanisms provide efficient protection against known malicious addresses but may fail when att...

Ashwini B. Sable, Vijay More · 0 citations
Open access 2026

Multi-Strategy RAG With ATT&CK STIX Metadata-Enriched Embeddings for Technique Extraction

Extracting Tactics, Techniques, and Procedures (TTPs) from Cyber Threat Intelligence (CTI) reports and mapping them to the MITRE ATT&CK framework is a critical challenge in security operations. The abstract and compressed nature of ATT&CK technique descriptions makes automated mapping of attack techniques difficult. Ex...

Ji-Min Lee, K. Kim, Kwonmoo You et al. · 0 citations
#artificial intelligence Preprint Aug 2026

PyKEEN-NSX: A Modular Framework for Static, Dynamic and Schema-Aware Negative Sampling in PyKEEN

PyKEEN-NSX is introduced, an extension of PyKEEN, the popular KGE framework, that provides a modular engineered abstraction for negative sampling that separates the generation of candidate negative pools, conditioned on an explicit context, from the selection strategy, enabling the development of static, schema-aware a...

Ivan Diliso, N. Fanizzi, Claudia d'Amato · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.