Abstract
IoTGuard is a dynamic enforcement system designed to prevent safety and security violations caused by the complex interactions between multiple IoT apps. By instrumenting app code and building a unified dynamic model of device behaviors, it can block unsafe actions in real-time with negligible impact on user experience.
Introduction
The "Internet of Things" (IoT) is no longer just a collection of isolated gadgets; it is an ecosystem of interacting apps and trigger-action platforms (like IFTTT). This connectivity introduces a critical "interaction problem": an IoT app that is perfectly safe in isolation can become dangerous when co-installed with others.
For example, a "Simulate Occupancy" app might turn on a light to make a home look lived-in while the owner is away. However, a "Welcome Home" app might be programmed to unlock the front door whenever that same light turns on. Together, these apps create a massive security flaw. Traditional security measures like firewalls or static code analysis often fail to capture these cross-app dependencies or lack the precision to enforce policies at runtime.
Methodology
IoTGuard operates in three distinct phases to provide "complete mediation" of app behavior:
- Code Instrumentation: The system uses a tool to automatically inject extra logic into an app’s source code (specifically targeting the Groovy AST for SmartThings). This code acts as a "sensor," collecting information on events, actions, and the "predicates" (conditional logic) that guard those actions.
- Dynamic Modeling: As apps run, a Data Collector receives this information and builds a directed graph representing the app's execution behavior. Crucially, if multiple apps interact via the same device or a shared "mode" (e.g., "Away" vs. "Home"), IoTGuard merges their individual models into a unified dynamic model.
- Policy Enforcement: A Security Service evaluates the unified model against a library of safety and security policies. If an app attempts an action that would lead to a prohibited state (based on reachability analysis of the graph), IoTGuard sends a "reject" signal. The instrumented "guards" in the app then block the action from executing.
The authors also developed a Policy Description Language (GPL) based on BNF notation, allowing users or developers to define custom restrictions on device states and transitions.
Evaluation and Results
The authors evaluated IoTGuard using a flawed app corpus (20 apps), a market study of 65 real-world apps (SmartThings and IFTTT), and a simulated smart home environment with 29 devices.
- Effectiveness: IoTGuard correctly identified and enforced 12 out of 12 policy violations in the flawed app corpus.
- Real-World Utility: In the market study, the system enforced 11 unique policies and blocked 16 unsafe states across 17.1% of the SmartThings apps and 16.6% of the IFTTT apps tested.
- Performance: The system imposes a modest runtime overhead of 17.3% for a single app and 19.8% for a group of five interacting apps. In absolute terms, policy checks took an average of 90ms to 122ms. Since physical IoT device execution usually has a latency of over a second, this overhead is effectively invisible to the user.
Discussion and Conclusion
A key insight of this work is that securing an IoT environment requires analyzing the "joint behavior" of the system. IoTGuard bridges the physical-digital divide by treating trigger-action platforms with the same rigor as local apps, recognizing that digital events can have physical consequences.
However, limitations remain. Simply blocking an action can introduce new risks (e.g., blocking a door unlock during a fire). Future work is needed to handle these complex trade-offs, automate IFTTT device mapping using NLP, and mitigate potential user notification fatigue. Despite these challenges, IoTGuard provides a robust framework for dynamic security enforcement in modern IoT ecosystems.
Summary updated