Abstract
Smart home ecosystems typically operate on a "trust-by-default" model, where IoT devices continuously stream granular data to cloud platforms. This over-sharing allows platforms or attackers to infer sensitive user behaviors. We introduce PFirewall, a privacy-enhancing mediator that reduces data transmission to IoT clouds by an average of 97% without disrupting user automations. By extracting "Trigger-Condition-Action" semantics from home apps, PFirewall ensures that only the minimum necessary data is reported. Our evaluation across four real-world testbeds demonstrates that PFirewall effectively neutralizes activity inference attacks with a negligible latency of approximately 0.6 seconds.
Introduction
Current smart home platforms, such as Samsung SmartThings or Amazon Alexa, require devices like motion sensors and thermometers to report their state continuously. However, much of this data is "noise" that does not trigger any specific automation. For instance, if a user has a rule to turn on the AC only when the temperature exceeds 80°F, reporting every degree change below that threshold is unnecessary.
This over-sharing creates a massive privacy gap. Attackers or the platforms themselves can use this granular data to infer sensitive user behaviors, such as sleep patterns, work schedules, or even bathroom usage. Because major IoT platforms are "closed systems," users previously had no way to intercept and filter this data before it left their home.
System Architecture
PFirewall addresses this by acting as a mediator between physical IoT devices and the smart home hub or cloud. Its design rests on two primary pillars: virtualization for closed systems and semantics-aware data minimization.
Virtualization for Compatibility
To support closed-source platforms that do not allow third-party modifications, PFirewall employs a virtualization strategy. It connects directly to physical devices via protocols like ZigBee, Z-Wave, or WiFi. It then presents "Virtual Device" instances to the IoT platform. The platform interacts with these virtual instances as if they were real sensors, unaware that the data is being filtered by PFirewall.
Semantics-Aware Data Minimization
The core innovation of PFirewall is its ability to use automation rules as a blueprint for data necessity. It extracts the logic of installed apps (e.g., "If motion is detected AND temperature > 79°F, then turn on fan") and generates policies that only report data when these specific conditions are met.
Beyond simple filtering, PFirewall can perform contextual obfuscation. If a rule only requires knowing if a value is above a threshold, PFirewall can report a randomized value within that range rather than the exact measurement, further protecting the user's environmental state. A built-in Conflict Detector using a JavaScript linear solver ensures that custom privacy policies do not inadvertently break critical automations.
Evaluation and Results
The researchers evaluated PFirewall using four real-world testbeds, including an office and several apartments with varying occupancy. The system was tested against major platforms including SmartThings (Classic and New) and openHAB.
Key Findings
- Data Reduction: PFirewall achieved a 97% average reduction in data sent to the cloud across all testbeds.
- Privacy Protection: The system significantly hindered activity inference. In one testbed, an attacker's ability to correctly identify user activities (recall) dropped from 0.96 to 0.19.
- Performance and Reliability: The system introduced a minimal latency of 0.6 seconds, which is generally imperceptible for home automations. Crucially, the system maintained "soundness and completeness," ensuring all intended automations functioned correctly despite the massive data reduction.
Limitations and Future Work
While highly effective, PFirewall faces challenges with devices using end-to-end encryption to vendor clouds without open APIs. Additionally, because data is filtered, platform-native dashboards may show "stale" states (e.g., a room appearing inactive because motion didn't trigger a rule). Future iterations could include a local, private dashboard to provide accurate real-time status. Currently, the policy engine does not support complex rules requiring long-term historical data, such as those based on weekly weather patterns.
Conclusion
PFirewall demonstrates that the "trust-by-default" model of modern IoT is not a technical necessity. By leveraging the semantics of automations, users can reclaim their privacy without sacrificing the convenience of smart home features, even on closed, proprietary platforms.
Summary updated