NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Magnifier: Detecting Network Access via Lightweight Traffic-Based Fingerprints

Wenhao Li, Qiang Wang, Huaifeng Bao, Xiaoyu Zhang, Lingyun Ying, Zhaoxuan Li, Huamin Jin, Shuai WangIEEE Trans. IFS 2025

TL;DR

This paper introduces Magnifier, a novel system for detecting and identifying mobile devices accessing a network by analyzing their traffic patterns at the gateway. It achieves high accuracy and efficiency by creating unique "fingerprints" of device behavior using domain name forests and a distillation algorithm, bypassing the need for endpoint software.

What Problem Does This Paper Address?

Network administrators face a critical challenge in monitoring and securing their networks, especially with the proliferation of mobile devices. Traditional methods for detecting unauthorized network access often rely on deploying monitoring software directly on devices (endpoint-based detection). However, this approach is hampered by the diversity of operating systems and device types, making it costly and difficult to maintain universal coverage. Furthermore, privacy regulations can restrict software deployment. Existing traffic analysis methods, while promising, often struggle with the dynamic nature of network access, the encryption of traffic, and the need for rapid, resource-efficient detection. This paper addresses the need for a universal, efficient, and lightweight solution for detecting mobile device network access at the network edge.

Methods

Magnifier employs a multi-stage approach:

  • Network Access Capturing & Feature Engineering: It captures network traffic at the gateway and extracts domain features from DNS, TLS/SSL, and HTTP protocols. These features represent the domains a device interacts with during its network access.
  • Initial Domain Name Forest Fingerprinting: For each mobile device class, a "Domain Name Forest" (dnForest) is constructed. This forest is a collection of "Domain Name Trees" (dnTrees), where each dnTree represents a cluster of domain names sharing the same top-level domain (TLD). These dnForests serve as initial fingerprints.
  • Two-Stage Distillation Algorithm: To refine these fingerprints and reduce the impact of common background traffic, a two-stage distillation algorithm is applied. This algorithm emphasizes "major" dnTrees (representing device-specific behavior) and downplays "background" dnTrees, improving the distinctiveness of the fingerprints.
  • Lightweight Fingerprint Matching: For real-time detection, Magnifier uses a lightweight matching algorithm to compare incoming traffic fingerprints against the learned dnForests. This allows for efficient, gateway-level detection without deep packet inspection of encrypted payloads.
  • Collector Mechanism: To address feature deficiency caused by local DNS caching during repetitive access, a "collector" mechanism is introduced to gather and process domain features more comprehensively.

Datasets

The authors introduce a new dataset called NetCess2023. This dataset comprises approximately 10GB of network access traffic from 26 distinct mobile device models across 7 brands, covering mainstream mobile phones. It was collected in four real-world scenarios:

  • Scenario A: Pure network access traffic captured at a local router.
  • Scenario B: Initial network access traffic captured at a backbone gateway, including background traffic.
  • Scenario C: Repetitive network traffic captured at a backbone gateway, with partial traffic due to DNS caching and mixed background traffic.
  • Scenario D: Background traffic only, used for evaluating false alarm rates.

The NetCess2023 dataset is made publicly available to encourage further research.

Key Insights and Ideas

  • Domain Features as Robust Fingerprints: The paper highlights that domain features (like domain names accessed) are more reliable for identifying device behavior than traditional side-channel features, especially in the presence of encrypted traffic.
  • dnForests for Device Fingerprinting: The novel concept of using a "Domain Name Forest" (dnForest) as a device fingerprint effectively captures the unique set of domain interactions for a device.
  • Distillation for Noise Reduction: The two-stage distillation algorithm is crucial for filtering out noise from common background traffic, significantly improving the accuracy of device-specific fingerprints.
  • Gateway-Level Detection Efficiency: By focusing on traffic analysis at the gateway and using lightweight fingerprints, Magnifier achieves efficient real-time detection without requiring endpoint software, making it highly scalable and practical.
  • Handling Repetitive Access: The "collector" mechanism effectively addresses the challenge of reduced feature availability during subsequent network accesses due to DNS caching.

Key Results

  • High Detection Accuracy: Magnifier achieves a Detection Rate (DR) of 97.54% and a False Alarm Rate (FAR) of 0.25% for brand-level classification and 96.83% DR with 0.25% FAR for model-level classification in real-world scenarios.
  • Superior Performance: It outperforms several state-of-the-art baselines, including FlowPrint and FS-Net, particularly in terms of FAR.
  • Efficiency: Magnifier demonstrates efficient real-time detection, with testing times of approximately 3.7s for brand-level and 2.6s for model-level classification on a single test sample.
  • Robustness: The system shows robustness to system upgrades and maintains high performance even with repetitive network access.
  • Multi-Device Detection: Magnifier can effectively detect network access from multiple devices simultaneously.

Limitations and Future Work

  • Novel Class Identification: While Magnifier excels at identifying known device classes, it encounters limitations when tasked with identifying entirely novel device classes. The authors suggest that network access patterns of novel classes often share similarities with known classes, and a template can be abstracted to fingerprint them.
  • Future Work: The authors plan to continue research in this area, potentially by exploring more sophisticated fingerprinting techniques and expanding the dataset to cover a wider range of devices and network environments. The paper also mentions the potential for further optimization of the distillation algorithm and the detection threshold.

Summary updated

BibTeX
@article{li2025magnifier,
  author = {Wenhao Li and Qiang Wang and Huaifeng Bao and Xiaoyu Zhang and Lingyun Ying and Zhaoxuan Li and Huamin Jin and Shuai Wang},
  title = {{Magnifier: Detecting Network Access via Lightweight Traffic-Based Fingerprints}},
  journal = {IEEE Trans. Inf. Forensics Secur.},
  year = {2025},
  doi = {10.1109/tifs.2025.3587621},
}
Figure