Abstract
The growing adoption of IoT devices in our daily life is engendering a data deluge, mostly private information that needs careful maintenance and secure storage system to ensure data integrity and protection. Also, the prodigious IoT ecosystem has provided users with opportunities to automate systems by interconnecting their devices and other services with rule-based programs. The cloud services that are used to store and process sensitive IoT data turn out to be vulnerable to outside threats. Hence, sensitive IoT data and rule-based programs need to be protected against cyberattacks. To address this important challenge, in this paper, we propose a framework to maintain confidentiality and integrity of IoT data and rule-based program execution. We design the framework to preserve data privacy utilizing Trusted Execution Environment (TEE) such as Intel SGX, and end-to-end data encryption mechanism. We evaluate the framework by executing rule-based programs in the SGX securely with both simulated and real IoT device data.
Introduction
As the Internet of Things (IoT) expands, it generates a massive volume of highly private data. Users increasingly rely on cloud-based "Trigger-Action" platforms (such as IFTTT or Samsung SmartThings) to automate tasks based on this data—for instance, "if the motion sensor is triggered, turn on the lights." However, current cloud infrastructures are often "untrusted," remaining vulnerable to data breaches, malicious insiders, or adversaries with physical access to servers. If an attacker gains access to the automation logic, they could not only steal private data but also manipulate physical devices, such as changing temperature thresholds to force a window open. This research addresses the challenge of performing complex IoT analytics in the cloud without requiring the user to trust the cloud provider’s software stack or personnel.
System Architecture
The core of the proposed framework is the use of Trusted Execution Environments (TEEs), specifically Intel SGX, to move the "Root of Trust" from the software stack to the hardware level.
The architecture ensures security through several key mechanisms:
- Secure Enclaves: The rule-based engine runs inside an SGX "enclave"—an isolated, hardware-encrypted memory region. Even the operating system or a hypervisor with root privileges cannot see or modify the contents of this enclave.
- End-to-End Encryption: IoT data is encrypted at the source (the IoT hub or gateway) and remains encrypted throughout its journey to the cloud. It is only decrypted inside the secure SGX enclave.
- Secure Rule Execution: Automation rules (JSON-formatted) are stored in an encrypted database. When a device event occurs, the enclave fetches the relevant rule, decrypts it internally, evaluates the "if-then" logic, and produces an encrypted command to be sent back to the device.
- Attestation and Sealing: The system uses SGX's "Remote Attestation" to prove to the user that the correct, untampered code is running in the enclave. "Sealing" is used to encrypt data with keys derived from the hardware, ensuring it can only be read by that specific enclave.
Experimental Evaluation
The authors evaluated the framework using two distinct approaches: a large-scale simulation and a real-world deployment. The simulation involved 10,000 device events across 32 devices, testing ruleset sizes ranging from 100 to 10,000 rules to measure computational overhead.
Key Results
- Execution Overhead: In simulations with 10,000 rules, the average execution time with SGX and encryption was approximately 4.5 milliseconds, compared to roughly 3.5 milliseconds for a standard, non-secure setup. This demonstrates that the security features introduce a manageable performance penalty for typical IoT applications.
- Real-world Latency: In a practical test using a Foobot (indoor air quality monitor) and a Philips Hue Bulb, the total average delay—including network latency and SGX processing—was about 110 milliseconds. This is well within the acceptable range for "real-time" home automation.
- Security Validation: The authors used Kullback-Leibler (KL) divergence to analyze memory access patterns. While the data is hidden, the scores suggest that nearly identical data events produce similar memory traces, indicating that the system may still be vulnerable to sophisticated side-channel attacks that "fingerprint" specific activities.
Discussion and Future Work
A significant insight from this research is that protecting automation logic is as important as protecting the data itself. Knowing a user's rules reveals their daily habits and creates a physical attack surface. By leveraging hardware-level security, the framework bypasses vulnerabilities in the cloud software stack.
However, limitations remain. Intel SGX enclaves have a limited Enclave Page Cache (EPC) size (typically 128MB), which could become a bottleneck for massive, high-velocity IoT data streams. Future work will explore distributed SGX architectures and the integration of ORAM (Oblivious RAM) or dummy data injection to mask memory access patterns and mitigate side-channel leakage.
Summary updated