Skip to main content
QUICK REVIEW

[Paper Review] Clustered Federated Learning Architecture for Network Anomaly Detection in Large Scale Heterogeneous IoT Networks

Xabier Sáez-de-Cámara, José Luis Flores|arXiv (Cornell University)|Mar 28, 2023
Network Security and Intrusion DetectionComputer Science9 citations
TL;DR

The paper presents a clustered federated learning architecture with unsupervised device clustering integrated into the FL pipeline to train lightweight autoencoder-based anomaly detection models for large, heterogeneous IoT/IIoT networks, evaluated on a Gotham testbed with real threats.

ABSTRACT

There is a growing trend of cyberattacks against Internet of Things (IoT) devices; moreover, the sophistication and motivation of those attacks is increasing. The vast scale of IoT, diverse hardware and software, and being typically placed in uncontrolled environments make traditional IT security mechanisms such as signature-based intrusion detection and prevention systems challenging to integrate. They also struggle to cope with the rapidly evolving IoT threat landscape due to long delays between the analysis and publication of the detection rules. Machine learning methods have shown faster response to emerging threats; however, model training architectures like cloud or edge computing face multiple drawbacks in IoT settings, including network overhead and data isolation arising from the large scale and heterogeneity that characterizes these networks. This work presents an architecture for training unsupervised models for network intrusion detection in large, distributed IoT and Industrial IoT (IIoT) deployments. We leverage Federated Learning (FL) to collaboratively train between peers and reduce isolation and network overhead problems. We build upon it to include an unsupervised device clustering algorithm fully integrated into the FL pipeline to address the heterogeneity issues that arise in FL settings. The architecture is implemented and evaluated using a testbed that includes various emulated IoT/IIoT devices and attackers interacting in a complex network topology comprising 100 emulated devices, 30 switches and 10 routers. The anomaly detection models are evaluated on real attacks performed by the testbed's threat actors, including the entire Mirai malware lifecycle, an additional botnet based on the Merlin command and control server and other red-teaming tools performing scanning activities and multiple attacks targeting the emulated devices.

Motivation & Objective

  • Address the challenge of anomaly detection in large-scale heterogeneous IoT/IIoT networks where traditional ML approaches struggle with data isolation and network overhead.
  • Develop an unsupervised, privacy-preserving training framework using Federated Learning that reduces data centralization and isolates data locally.
  • Integrate an unsupervised device clustering (model fingerprinting) into the FL pipeline to tackle non-IID data distributions and heterogeneity.
  • Evaluate the proposed clustered FL architecture on a realistic emulated IoT/IIoT testbed with diverse devices and real attack scenarios.

Proposed method

  • Propose a clustered Federated Learning (FL) process where local models are partially trained, their parameters are fingerprinted, and clustering is applied to group devices with similar data distributions.
  • Integrate clustering results into parallel, cluster-specific FL training to generate multiple specialized global models rather than a single global model.
  • Use PCA for dimensionality reduction of flattened model parameters and K-means clustering with silhouette-based validation to determine the number of clusters K.
  • Implement an unsupervised anomaly detector based on lightweight autoencoders trained on benign traffic, evaluated by reconstruction error on new samples.
  • Adopt a generalized FL optimization framework (Algorithm 1) that includes adaptive client and server optimization steps beyond standard FedAvg.
  • Evaluate different FL aggregation functions (ServerOpt variations) within the clustered FL pipeline.

Experimental results

Research questions

  • RQ1Can clustered FL with integrated model fingerprinting effectively handle non-IID, heterogeneous IoT data for unsupervised anomaly detection?
  • RQ2Does the proposed clustering-based FL approach improve convergence and detection performance compared to a single global model in IoT/IIoT networks?
  • RQ3How do lightweight autoencoders perform as unsupervised anomaly detectors in this FL-enabled, heterogeneous setting?
  • RQ4What is the impact of the clustering step on network overhead and privacy preservation in large-scale IoT deployments?

Key findings

  • The architecture enables unsupervised anomaly detection in a large, heterogeneous IoT/IIoT network without needing labeled attack data for training.
  • Model fingerprinting combined with PCA and K-means effectively clusters devices based on local model updates, enabling cluster-specific FL training.
  • Autoencoders trained via the clustered FL pipeline detect anomalies using reconstruction error without requiring attack data for training.
  • The approach is validated on a Gotham testbed with 100 emulated devices, 30 switches, 10 routers, and real Mirai- and Merlin-based attack scenarios.
  • Results include experimental comparisons with a state-of-the-art approach, demonstrating the practicality of clustered FL for IoT security in heterogeneous environments.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.