Real-time Analysis of Privacy-(un)aware IoT Applications

Leonardo Babun, Z. Berkay Celik, Patrick D. McDaniel, A. Selcuk UluagacProc. Priv. Enhancing Technol 2019

Abstract

Smart home ecosystems rely on applications that manage sensitive devices, yet users often lack visibility into how their data is handled. This paper presents IoTWatch, a novel dynamic analysis tool that uncovers privacy risks in IoT applications in real-time. By combining source code instrumentation with Natural Language Processing (NLP), IoTWatch identifies sensitive information leaks within plain-text strings—a significant "blind spot" for traditional security tools. Evaluation across 540 applications shows that IoTWatch achieves 94.25% classification accuracy with negligible performance overhead.

Introduction

Smart home users frequently grant IoT applications extensive permissions, ranging from door lock control to thermostat management. While these permissions are necessary for functionality, they create a "blind trust" scenario where users cannot verify how their data is utilized or where it is transmitted. Existing security solutions typically fall into two categories: static analysis, which often yields high false-positive rates due to over-approximation, and dynamic analysis (sandboxing), which is resource-intensive.

Crucially, most current tools fail to detect "untainted" strings—hard-coded text such as "Nobody is home" or "The kids are back." Although these strings do not originate from sensitive variables, they carry high privacy risks. Analysis of 540 apps revealed that 64% potentially leak sensitive data through these simple, untainted strings, highlighting a critical vulnerability in the IoT ecosystem.

The IoTWatch Framework

IoTWatch addresses these challenges through a three-stage pipeline: instrumentation, classification, and analysis.

The IoTWatch architecture encompasses instrumentation at the source code level, user preference configuration at install-time, and real-time NLP-based analysis during runtime.
  1. Instrumentation: IoTWatch modifies the application's source code (specifically for the Samsung SmartThings platform) to integrate a "Privacy User Interface." This allows users to define privacy preferences (e.g., restricting location sharing) during installation. The tool also inserts logic to intercept "sink-calls"—functions that transmit data via SMS or the Internet.
  2. NLP-Based Classification: Upon a data transmission attempt, IoTWatch captures the content and employs a supervised machine learning model (doc2vec) to classify the string into one of four categories: Location, User-behavior, Device-info, or Date-time.
  3. Recipient Analysis: The system verifies if the data recipient is authorized by the user and checks for insecure, unencrypted HTTP calls that might expose data to eavesdroppers.

User-Centric Privacy Management

A key component of IoTWatch is the empowerment of the end-user. By instrumenting the application, the tool provides a transparent interface for managing data flows that were previously hidden.

Comparison between an original IoT application and its instrumented version, showing the added privacy labels and notification options.

A privacy survey of 123 human subjects confirmed that 96.7% of participants supported the use of such a tool. This user-centric approach ensures that security measures align with actual human concerns rather than just technical heuristics.

Evaluation and Results

The researchers evaluated IoTWatch using a dataset of 540 IoT applications, including 380 market apps for training the NLP corpus and 160 apps (including 40 malicious samples from IoTBench) for final testing.

  • Accuracy: The NLP model achieved an average classification accuracy of 94.25% and a precision of 95%. Domain-specific training was essential, as general-purpose models performed poorly on short, context-heavy IoT strings.
  • Detection: The tool successfully identified 62 sensitive leakages (29 via messaging, 33 via Internet) that traditional taint analysis would likely miss.
  • Performance: The overhead is minimal, adding only 105 ms of latency to application execution and requiring just 1 KB of storage, making it suitable for real-time deployment.

Conclusion and Future Work

IoTWatch demonstrates that real-time, NLP-driven dynamic analysis is a viable and effective method for securing the IoT ecosystem. While currently optimized for the Samsung SmartThings platform and English language strings, future work aims to extend support to other platforms like OpenHAB and improve the mapping of application behaviors to marketplace descriptions. By capturing data before encryption, IoTWatch ensures that even malicious applications cannot easily bypass privacy monitoring.

Summary updated

BibTeX
@inproceedings{babun2019real,
  author = {Leonardo Babun and Z. Berkay Celik and Patrick D. McDaniel and A. Selcuk Uluagac},
  title = {{Real-time Analysis of Privacy-(un)aware IoT Applications}},
  booktitle = {Proc. Priv. Enhancing Technol},
  year = {2019},
  doi = {10.2478/popets-2021-0009},
}
Figure