Revisiting IoT Device Identification

Roman Kolcun, Diana Andreea Popescu, Vadim Safronov, Poonam Yadav, Anna Maria Mandalari, Richard Mortier, Hamed Haddadi

Abstract

Machine learning models for IoT device identification often achieve near-perfect accuracy in short-term lab evaluations. However, these models rely on network "fingerprints" that may change over time due to firmware updates or cloud infrastructure shifts. This paper presents a longitudinal study using a 27-week dataset of 41 IoT devices to evaluate the temporal stability of state-of-the-art identification models. Our results show that all models suffer from significant accuracy decay, with F1 scores dropping by up to 40 percentage points within weeks. We conclude that static models are insufficient for long-term security and advocate for continuous retraining at the network edge.

Introduction

The proliferation of Internet of Things (IoT) devices has introduced significant security challenges. Identifying these devices is the first step in applying appropriate security policies. While MAC addresses are commonly used for identification, they are easily spoofed. Consequently, researchers have turned to Machine Learning (ML) to identify devices based on their unique network traffic patterns, or "fingerprints."

A critical limitation of existing research is the reliance on datasets collected over short durations. This paper addresses the gap by investigating whether these fingerprints remain stable over months of real-world operation. Changes in firmware, manufacturer cloud infrastructures, or user interaction patterns could potentially degrade model performance over time.

Methodology

The study evaluates six ML approaches on a unique 27-week dataset covering 41 IoT devices. The models include:

  • Existing Models: A multi-stage Random Forest (RFC) with 1-hour windows, a 2D Convolutional Neural Network (CNN) for raw packet data, and RFC/Decision Tree models using 1-second bursts.
  • Proposed Models: An RFC and a Fully Connected Neural Network (FC-NN) trained on TCP/UDP flow features (e.g., packet sizes, inter-packet intervals, and domain names).

The dataset was split into three 9-week periods. Models were trained on one period and tested across the entire 27-week span to measure performance fluctuations and decay.

Key Results and Analysis

The Reality of Accuracy Decay

The most significant finding is that IoT fingerprints are not static. While models achieved F1 scores above 0.95 when tested on data from their training period, performance degraded by an average of 12 to 21 percentage points when tested on data from different time periods.

Sensitivity of Deep Learning Models

The 2D CNN model, which learns features directly from raw packets, proved particularly sensitive to temporal changes. As shown in the figure below, the model's performance can plummet dramatically—dropping below an F1 score of 0.40 during specific weeks—likely due to sudden shifts in network behavior that the model had not encountered during training.

F1 score decay for 2D CNN model

Performance of Flow-based Models

The proposed Random Forest model using TCP/UDP flow features demonstrated strong initial performance, often outperforming more complex neural networks. However, it was not immune to the universal trend of performance degradation. The following figure illustrates the gradual decay of the F1 score as the testing data moves further away from the training period.

F1 score decay for Flow-based RFC model

Discussion and Conclusion

The observed decay suggests that the underlying data distribution of IoT network traffic shifts over time. Factors such as firmware updates or changes in cloud-server load balancing can alter a device's fingerprint enough to baffle a static ML model.

These findings have profound implications for IoT security. A security system that is highly effective today may become unreliable within months without intervention. The authors argue that the future of IoT security lies in edge intelligence: developing systems capable of automatic, local retraining on the router. By evolving alongside the devices they protect, these systems can maintain high identification accuracy over the long term.

The authors have released the pre-processed features of this dataset to the community to encourage further research into temporal behavior changes.

Summary updated

BibTeX
@inproceedings{kolcun2021revisiting,
  author = {Roman Kolcun and Diana Andreea Popescu and Vadim Safronov and Poonam Yadav and Anna Maria Mandalari and Richard Mortier and Hamed Haddadi},
  title = {{Revisiting IoT Device Identification}},
  booktitle = {TMA},
  year = {2021},
}
Figure