Abstract: Trigger-action platforms (TAPs) allow users to connect independent web-based or IoT services to achieve useful automation. They provide a simple interface that helps end-users create trigger-compute-action rules that pass data between disparate Internet services. Unfortunately, TAPs introduce a large-scale security risk: if they are compromised, attackers will gain access to sensitive data for millions of users. To avoid this risk, we propose eTAP, a privacy-enhancing trigger-action platform that executes trigger-compute-action rules without accessing users' private data in plaintext or learning anything about the results of the computation. We use garbled circuits as a primitive, and leverage the unique structure of trigger-compute-action rules to make them practical. We formally state and prove the security guarantees of our protocols. We prototyped eTAP, which supports the most commonly used operations on popular commercial TAPs like IFTTT and Zapier. Specifically, it supports Boolean, arithmetic, and string operations on private trigger data and can run 100% of the top-500 rules of IFTTT users and 93.4% of all publicly-available rules on Zapier. Based on ten existing rules that exercise a wide variety of operations, we show that eTAP has a modest performance impact: on average rule execution latency increases by 70 ms (55%) and throughput reduces by 59%.
Introduction
Trigger-Action Platforms (TAPs) like IFTTT and Zapier have become the essential "glue" of the modern internet and IoT ecosystem. By connecting disparate services—such as linking a security camera to a messaging app—they allow users to create powerful automations with simple "If-This-Then-That" logic. However, this convenience introduces a significant privacy vulnerability. In the current paradigm, the central TAP acts as a "person-in-the-middle," requiring plaintext access to all data passing through it to evaluate rules.
As shown in Figure 1, a typical rule might involve checking if an email subject contains a specific keyword to trigger a smart home action. If the platform is compromised, or if the provider itself is untrustworthy, sensitive user data—including private messages, health metrics, and home sensor logs—is exposed to attackers.
The eTAP Architecture
To address this risk, we present eTAP, the first privacy-enhancing TAP that maintains data confidentiality throughout the execution process. eTAP is built on the foundation of Garbled Circuits (GC), a cryptographic primitive that allows two parties to jointly compute a function over their inputs without revealing those inputs to each other.
As illustrated in Figure 5, eTAP utilizes an asymmetric trust model. We assume the central TAP is malicious (it may attempt to deviate from the protocol to learn data), while the Trigger Service (TS) and Action Service (AS) are considered semi-honest (they follow the protocol but are curious). The user's smartphone or browser acts as a Trusted Client (TC), generating the necessary cryptographic material to secure the automation rules.
Key Innovations for Practicality
Standard Garbled Circuits are often too computationally expensive for real-time IoT applications. eTAP introduces several optimizations to make this approach practical:
- Offline Pre-computation: The Trusted Client pre-computes garbled circuits for the user's rules during idle periods (e.g., while charging at night) and uploads them to the TAP in batches. This moves the heavy lifting away from the time-sensitive execution phase.
- DFA-to-Circuit Conversion: String operations are common in TAPs but inefficient in standard GC. eTAP converts regular expressions into Deterministic Finite Automata (DFA) and then into optimized Boolean circuits using one-hot encoding. This allows for efficient encrypted string matching and extraction.
- Efficient Authenticity: We developed a custom protocol using only two cryptographic hashes to ensure the TAP cannot tamper with computation results, avoiding the high overhead of standard malicious-model GC protocols.
Evaluation and Results
We evaluated eTAP's compatibility and performance using real-world datasets from IFTTT (320,000 rules) and Zapier. Our results demonstrate that eTAP is highly versatile, supporting 100% of the top 500 IFTTT rules and 93.4% of publicly available Zapier rules that require data computation.
In terms of performance, eTAP maintains the responsiveness required for IoT tasks. On average, end-to-end execution latency increases by only 70 ms (55%), a delay that is largely imperceptible to users. While system throughput is reduced by 59% compared to plaintext processing, a single eTAP server can still handle 65–90 rule executions per second. Furthermore, the bandwidth requirement for users is manageable; an average user would only need to upload approximately 61.7 MB of circuits daily, comparable to a short HD video.
Conclusion
eTAP proves that privacy and automation are not mutually exclusive. By leveraging optimized cryptographic techniques, we can remove the central platform as a single point of failure for user privacy while maintaining the functionality and speed that users expect from modern IoT ecosystems.
Summary updated