SunBlock: Cloudless Protection for IoT Systems

Vadim Safronov, Anna Maria Mandalari, Daniel J. Dubois, David R. Choffnes, Hamed Haddadi

Introduction

The Internet of Things (IoT) has introduced a plethora of smart devices into modern homes, ranging from smart plugs and cameras to voice assistants. However, this convenience comes at a significant cost to security and privacy. Many IoT devices suffer from supply-chain vulnerabilities, unencrypted data flows, and hidden tracking mechanisms, turning homes into potential "security and privacy nightmares."

Existing commercial solutions often rely on cloud-based analysis, which introduces privacy risks by sending sensitive network metadata to third-party servers. Furthermore, these tools frequently require ongoing subscription fees and have been shown to miss a significant portion of common IoT threats. SunBlock addresses these challenges by providing a powerful, "cloudless" security solution that runs entirely on a standard home router.

Threat model of a smart home network with potential internal and external adversaries.

System Architecture

SunBlock utilizes a hybrid, two-pronged architecture designed to run on constrained hardware, such as a LinkSys WRT3200ACM router. The system operates locally, ensuring that all sensitive network data remains within the home.

The internal architecture of the SunBlock home router, featuring AI-based detection and rule-based filtering modules.

The architecture consists of two primary modules:

  • Rule-based Traffic Filtering: Using Snort3 in "Inline IPS" mode, this module handles known threats like DoS attacks and port scanning by matching traffic against a library of predefined signatures.
  • AI-based Anomaly Detection: For unknown or behavioral threats, SunBlock employs a One-Class Support Vector Machine (OCSVM). This model is trained locally to learn "normal" device behavior based on Packet Interarrival Time (IAT) features. If a device exhibits unusual patterns, such as a smart plug initiating large data uploads, the AI flags the activity.

To ensure performance on ARMv7l architectures, the team optimized the netml library and containerized the AI logic using Docker.

Evaluation and Results

The authors evaluated SunBlock using a real-world IoT testbed featuring 10 popular devices, including an Amazon Echo Spot, Nest Thermostat, and various smart cameras. A Raspberry Pi was used to emulate various attacks, including DoS flooding, privacy-compromising scripts, and network scanning.

Key findings from the evaluation include:

  • Superior Detection: SunBlock detected 9 out of 9 tested threat types, whereas a combination of popular commercial alternatives only detected 4 out of 9.
  • Efficiency: The system maintains low overhead, with a median CPU utilization of approximately 3% during normal operation. Even under heavy attack, it preserves significant hardware headroom.
  • Responsiveness: Most threats are blocked within 5 seconds. Behavioral anomalies, which are inherently more complex to identify, are typically caught within 10 to 50 seconds.
  • Traffic Mitigation: During DoS attacks, SunBlock effectively reduced malicious traffic by up to 8 times, protecting the home network's bandwidth.

Conclusion

SunBlock demonstrates that local, AI-driven security is feasible on modern mid-range routers. By combining rule-based speed with behavioral AI, it offers a robust defense against IoT threats without compromising user privacy or requiring cloud dependencies. Future work aims to address the initial "training gap" required for AI models and explore privacy-preserving methods for sharing threat intelligence between local systems.

Summary updated

BibTeX
@inproceedings{safronov2024sunblock,
  author = {Vadim Safronov and Anna Maria Mandalari and Daniel J. Dubois and David R. Choffnes and Hamed Haddadi},
  title = {{SunBlock: Cloudless Protection for IoT Systems}},
  booktitle = {PAM},
  year = {2024},
  doi = {10.1007/978-3-031-56252-5\_15},
}
Figure