Detecting Emerging DGA Malware in Federated Environments via Variational Autoencoder-Based Clustering and Resource-Aware Client Selection
Open Access
- 3 July 2025
- journal article
- research article
- Published by MDPI AG in Future Internet
- Vol. 17 (7) , 299
Abstract
Domain Generation Algorithms (DGAs) remain a persistent technique used by modern malware to establish stealthy command-and-control (C&C) channels, thereby evading traditional blacklist-based defenses. Detecting such evolving threats is especially challenging in decentralized environments where raw traffic data cannot be aggregated due to privacy or policy constraints. To address this, we present FedSAGE, a security-aware federated intrusion detection framework that combines Variational Autoencoder (VAE)-based latent representation learning with unsupervised clustering and resource-efficient client selection. Each client encodes its local domain traffic into a semantic latent space using a shared, pre-trained VAE trained solely on benign domains. These embeddings are clustered via affinity propagation to group clients with similar data distributions and identify outliers indicative of novel threats without requiring any labeled DGA samples. Within each cluster, FedSAGE selects only the fastest clients for training, balancing computational constraints with threat visibility. Experimental results from the multi-zones DGA dataset show that FedSAGE improves detection accuracy by up to 11.6% and reduces energy consumption by up to 93.8% compared to standard FedAvg under non-IID conditions. Notably, the latent clustering perfectly recovers ground-truth DGA family zones, enabling effective anomaly detection in a fully unsupervised manner while remaining privacy-preserving. These foundations demonstrate that FedSAGE is a practical and lightweight approach for decentralized detection of evasive malware, offering a viable solution for secure and adaptive defense in resource-constrained edge environments.Keywords
Funding Information
- Hanoi University of Science and Technology (T2023-PC-038)
This publication has 38 references indexed in Scilit:
- Communication-efficient Federated Learning Framework with Parameter-Ordered Dropout2024
- K-FL: Kalman Filter-Based Clustering Federated Learning MethodIEEE Access, 2023
- Federated Learning for intrusion detection system: Concepts, challenges and future directionsComputer Communications, 2022
- FLUIDS: Federated Learning with semi-supervised approach for Intrusion Detection System2022
- Towards secure intrusion detection systems using deep learning techniques: Comprehensive analysis and reviewJournal of Network and Computer Applications, 2021
- Detecting Domain Generation Algorithms to prevent DDoS attacks using Deep Learning2019
- Federated Learning with Bayesian Differential Privacy2019
- Deep Convolutional Neural Networks for DGA Detection2019
- A LSTM based framework for handling multiclass imbalance in DGA botnet detectionNeurocomputing, 2018
- Intrusion detection system: A comprehensive reviewJournal of Network and Computer Applications, 2013