Decoupled-IFTTT: Constraining Privilege in Trigger-Action Platforms for the Internet of Things

Earlence Fernandes, Amir Rahmati, Jaeyeon Jung, Atul PrakasharXiv 2017

Introduction

Trigger-action platforms like IFTTT, Zapier, and Microsoft Flow have become central to the modern Internet of Things (IoT) ecosystem. These services allow users to automate their digital and physical lives through simple conditional statements called "recipes." For instance, a user might create a safety automation: "If my smoke alarm detects smoke, then turn off my oven."

A standard IFTTT recipe connecting a Nest smoke alarm to a GE oven.

While these platforms offer immense convenience, they introduce significant security risks. To execute these recipes, the platform must act on the user's behalf across various third-party services, typically using OAuth tokens. However, the current implementation of these tokens often grants the platform far more power than necessary, creating a state of "monolithic overprivilege."

The Problem of Monolithic Overprivilege

When a user links a service like Google Drive or a smart home hub to IFTTT, they often grant the platform broad, "god-mode" permissions. For example, linking Google Drive to save Instagram photos might inadvertently grant IFTTT the authority to delete every file in the user's account.

An empirical audit of 297 IFTTT channels revealed that 75% are overprivileged. These channels often request access to sensitive APIs—such as the ability to reprogram hardware or delete entire data repositories—that are never actually utilized by the triggers or actions advertised to the user. If a central trigger-action service is compromised, an attacker inherits these broad permissions for millions of users.

Example of overprivilege: The Particle channel requests permission to 'reprogram' devices, far exceeding typical recipe needs.

Methods and the dIFTTT Redesign

To address these vulnerabilities, the authors propose Decoupled-IFTTT (dIFTTT). This architecture shifts away from a single, highly-trusted cloud service toward a more secure, distributed model. The redesign was informed by a semi-automated measurement pipeline that used "scope mirroring" and "downgrade attacks" to quantify the gap between requested permissions and actual functionality.

dIFTTT introduces several key components to minimize risk:

  • Untrusted Cloud: Handles the computational load of monitoring triggers and executing actions but holds no high-privilege tokens.
  • Trusted Client: A lightweight application on the user's mobile device that manages high-privilege Transfer Tokens (XTokens).
  • Recipe-Specific Tokens: Instead of one broad token per service, the trusted client uses the XToken to negotiate narrow, function-specific tokens (e.g., a token that only allows "turn off oven").
  • Proof of Occurrence: To prevent a compromised cloud from "hallucinating" triggers, dIFTTT requires a signed "Trigger Blob" from the trigger service. The action service only executes the command if it receives both the recipe-specific token and this cryptographic proof.

Key Results and Performance

The evaluation of dIFTTT demonstrates that security does not have to come at the cost of usability or performance:

  • Risk Mitigation: The system successfully constrains access to the minimum necessary for each recipe, neutralizing the threat of overprivileged APIs like the "reprogram" function in the Particle channel.
  • Practicality: dIFTTT adds less than 15ms of latency to recipe execution, a negligible delay for most IoT applications.
  • Scalability: The system maintains high throughput, with only a 2.5% drop compared to standard IFTTT. The storage and bandwidth overhead are minimal, requiring only ~3.5KB of extra storage per recipe on the service provider's side.

Conclusion and Future Work

dIFTTT provides a robust blueprint for securing trigger-action platforms without burdening the user with "permission fatigue." By automating the negotiation of narrow tokens in the background, it maintains the seamless user experience of current platforms while significantly reducing the attack surface. Future work may explore homomorphic encryption to protect the confidentiality of data passing through the untrusted cloud, ensuring that the platform can process rules without ever "seeing" the raw data.

Summary updated

BibTeX
@misc{fernandes2017decoupled,
  author = {Earlence Fernandes and Amir Rahmati and Jaeyeon Jung and Atul Prakash},
  title = {{Decoupled-IFTTT: Constraining Privilege in Trigger-Action Platforms for the Internet of Things}},
  year = {2017},
  eprint = {1707.00405},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1707.00405},
}
Figure