Data Privacy in Trigger-Action Systems

Yunang Chen, Amrita Roy Chowdhury, Ruizhe Wang, Andrei Sabelfeld, Rahul Chatterjee, Earlence Fernandes

TL;DR

This paper introduces eTAP, a novel trigger-action platform that allows users to automate tasks across various online services without exposing their private data to the platform itself. By leveraging garbled circuits and a decentralized trust model, eTAP provides strong privacy and integrity guarantees, even against a malicious platform.

What Problem Does This Paper Address?

Trigger-action platforms (TAPs) like IFTTT and Zapier have revolutionized how we connect online services and IoT devices, enabling powerful automations with a simple "if this, then that" paradigm. However, these platforms act as central hubs, collecting and processing sensitive user data (emails, location, etc.) in plaintext. This creates a significant privacy risk: if a TAP is compromised, attackers gain access to vast amounts of personal information. Furthermore, TAPs are attractive targets for breaches. Existing solutions often focus on integrity or require invasive changes to services, leaving a gap for a privacy-preserving TAP that supports common operations and maintains existing architectures.

Methods

The core of eTAP's solution lies in garbled circuits (GCs), a cryptographic technique for secure function evaluation. Unlike traditional TAPs, eTAP shifts the trust model: the user's trusted client device (TC) acts as a circuit generator, while the TAP itself is treated as potentially malicious.

Here's a breakdown of the key techniques:

  • Decentralized Trust Model: The user's smartphone (TC) is the root of trust. It generates garbled circuits and securely shares necessary keys with trigger (TS) and action (AS) services.
  • Garbled Circuits for Computation: eTAP uses GCs to execute user-defined rules (predicates and transformations) on encrypted data. This means the TAP never sees the user's data in plaintext.
  • Customized GC Protocol: The authors developed a novel GC protocol tailored for TAPs. This protocol allows efficient execution of common operations, including a new technique for handling fixed-length string operations (matching, extraction, replacement) by converting them into Boolean circuits.
  • Semi-Honest TS/AS, Malicious TAP: Trigger and action services are assumed to be semi-honest (following the protocol but potentially curious), while the TAP is assumed to be fully malicious and can deviate from the protocol.
  • Data Flow: When a trigger event occurs, the TS garbles the trigger data and encrypts any payload using keys shared with TC. This garbled data is sent to the TAP, which evaluates the garbled circuit. The TAP then sends the garbled result and an encrypted decoding blob to the AS. The AS, using its secret key, decrypts the blob and decodes the result, ensuring privacy and integrity.

Datasets

The authors analyzed two popular commercial TAPs: IFTTT and Zapier. They used a dataset of 320,000 IFTTT rules and crawled Zapier for publicly available rules requiring computation. This analysis helped them identify common operations and data sensitivity levels. They also selected ten real-world rules from this dataset for performance evaluation, covering a range of operations and data types.

Key Insights and Ideas

  • Shifting Trust to the Client: The most significant insight is treating the user's client device as the trusted party for generating secure computations, rather than relying on a central, potentially vulnerable TAP. This is a pragmatic approach given that compromising a TAP affects millions, while compromising a single user's phone is less scalable.
  • Garbled Circuits are Practical for TAPs: The paper demonstrates that GCs, while computationally intensive, can be made practical for TAPs by leveraging the specific structure of trigger-action rules and developing specialized protocols.
  • Handling String Operations is Crucial: A key challenge in TAPs is processing string data. The authors' novel approach to convert DFAs into Boolean circuits for string operations is a significant contribution, enabling eTAP to support a vast majority of real-world rules.
  • Balancing Security and Functionality: eTAP successfully balances strong privacy and integrity guarantees with the need to maintain the existing trigger-action paradigm and RESTful nature of services.

Key Results

  • Comprehensive Rule Support: eTAP can execute 100% of the top 500 rules on IFTTT and 93.4% of function-dependent rules on Zapier.
  • Performance Impact:
    • Latency: Rule execution latency increases by an average of 55% compared to a plaintext-only system (PlainTAP).
  • Throughput: eTAP achieves around 41% of PlainTAP's throughput for most rules, dropping to 11% for more complex scenarios.
  • Data Transfer: While data transfer increases, it's considered manageable given cloud infrastructure.
  • Security Guarantees: eTAP provides strong privacy and integrity against a malicious TAP, ensuring that user data remains confidential and computations are authentic.

Limitations and Future Work

  • Metadata Leakage: While eTAP protects data content, it acknowledges that metadata (e.g., rule execution frequency, timing) can still leak information. The authors suggest using "cover traffic" as a potential future solution.
  • Trusted Client Availability: The trusted client (TC) needs to be available to generate circuits. The paper suggests standard cloud backup solutions for device loss.
  • Service Adaptation: TS and AS need to adapt their APIs to support eTAP's protocols, though the authors provide libraries to facilitate this.
  • Complex String Operations: While eTAP handles many string operations efficiently, extremely complex ones (like HTML parsing) are left to action services for practicality.
  • Denial of Service: eTAP does not explicitly protect against denial-of-service attacks, where a TAP might simply drop messages.
  • Future Work: The authors suggest exploring anonymity networks (like Tor) to hide message sources and destinations, and optimizing circuit generation based on rule execution frequency.

Summary updated

BibTeX
@inproceedings{chen2021data,
  author = {Yunang Chen and Amrita Roy Chowdhury and Ruizhe Wang and Andrei Sabelfeld and Rahul Chatterjee and Earlence Fernandes},
  title = {{Data Privacy in Trigger-Action Systems}},
  booktitle = {SP},
  year = {2021},
  doi = {10.1109/sp40001.2021.00108},
}
Figure