TL;DR
OAuthHub is a novel development framework that mitigates data overaccess by using a user’s personal device (PC or smartphone) as a local, intermediary data hub. By requiring developers to explicitly declare data access patterns via text-based manifests, OAuthHub filters and minimizes sensitive cloud data locally before passing it to third-party apps. This approach drastically reduces data exposure without requiring any server-side changes from major service providers like Google or Microsoft.
What Problem Does This Paper Address?
When you use "Sign in with Google" for a third-party app like Uber or Zoom, you often have to grant sweeping, coarse-grained permissions. For example, if an app needs to scan your emails only for flight itineraries, the Gmail API forces you to grant access to all your email messages. This "all-or-nothing" model leads to massive data overaccess, exposing sensitive user data to third-party servers.
While service providers could theoretically offer more granular APIs, doing so is incredibly difficult in practice due to backward-compatibility issues and the sheer diversity of app needs. Furthermore, once access token permissions are granted, users lose visibility into exactly when and how often third-party apps pull their data from the cloud.
Methods
OAuthHub solves this by introducing a local data hub that sits between the service provider (e.g., Google) and the third-party app server.
The framework relies on three core design pillars:
- Operator-Based Manifests: Developers define their data needs using a text-based manifest composed of SQL-like, privacy-centric operators (e.g.,
Pull,Select,Filter,Extract,Post). The local runtime executes this pipeline on the user's device, ensuring only the minimized, processed data is sent to the app server. - Declared Connections: Traditional OAuth assumes apps need discretionary, always-on access. OAuthHub flips this assumption by categorizing access into three predictable patterns: Install-time, User-driven, and Scheduled time. Because the app explicitly declares when it needs data, the local hub can proactively push data to the app server when the device is online, eliminating the need for the local device to maintain a static IP or be constantly connected.
- Centralized Runtime Permission Model: Because data flows through a local runtime, OAuthHub can generate a unified, multi-level authorization interface. Users can see a high-level overview, inspect the exact processing steps, or preview the actual data being transmitted. Users can also enforce custom constraints, such as limiting access frequency or restricting data to specific time windows.
Datasets
The authors evaluated OAuthHub using several approaches:
- App Analysis Dataset: A curated set of 62 real-world OAuth apps from the Google Workspace Marketplace to analyze data access patterns, which was later expanded to a broader set of 218 apps across Google, Trello, Slack, and GitHub marketplaces.
- Real-World Testing Dataset: To measure data reduction without compromising user privacy, the authors tested participant-created manifests against a real-world dataset consisting of 500 emails, 97 calendar events, and 9 form responses.
- User & Developer Studies: A usability study was conducted with 18 computer science students acting as developers, alongside an online privacy perception survey completed by 100 participants recruited via Cloud Research.
Key Insights and Ideas
- Discretionary Access is an Avoidable Privilege: The authors discovered that out of 218 real-world apps, only 3% genuinely required discretionary, always-on access (such as CI/CD pipeline triggers or security scanners). The remaining 97% fit perfectly into install-time, user-driven, or scheduled patterns, meaning always-on cloud-to-cloud access is largely unnecessary.
- Reversing the Network Flow Solves the "Offline" Problem: Personal devices frequently go offline and lack static IPs, making them poor servers. OAuthHub elegantly bypasses this by shifting the architecture: instead of the app server querying the hub, the local hub proactively initiates outbound connections to push data to the app server at the declared times.
- Transparency Drives User Acceptance: When users are shown exactly how their data is being filtered and minimized locally, their privacy anxiety drops significantly, making them far more likely to adopt and trust third-party applications.
Key Results
- Massive Data Minimization: In real-world testing, OAuthHub successfully filtered out 96% of emails, 97% of calendar events, and 44% of form responses on the edge. This resulted in a total data egress reduction of 95% for Zoom and over 99.9% for both WellyBox and FormLimiter.
- Improved Developer Efficiency: In the user study, developers completed programming tasks twice as fast (9.1 vs. 18.0 minutes) and wrote 70% less code (4.7 vs. 15.8 lines) using OAuthHub's TypeScript library compared to standard Google OAuth APIs.
- Higher User Approval Rates: The survey revealed that users were 56% to 78% less likely to deny permission requests when presented with OAuthHub's fine-grained, transparent interface compared to conventional, all-or-nothing OAuth prompts.
- Low Overhead: Performance benchmarks showed that OAuthHub introduces negligible CPU utilization (<1% on PC, <5% on mobile) and modest memory overhead (~90 MiB on PC, ~200 MiB on mobile), with an energy footprint comparable to a standard background messenger app.
Limitations and Future Work
- Data-Intensive Operations: OAuthHub is not optimized for transferring massive, multi-gigabyte files (e.g., large video backups on Google Drive), as routing this through a local device would severely bottleneck performance and drain battery life.
- Data Schema Fragmentation: Different service providers use wildly different data schemas. Currently, mapping these schemas to OAuthHub's operators requires manual engineering effort. The authors suggest that future work could leverage generative AI to automate this schema unification process.
- Adoption Barriers: The system requires users to install a local runtime component (like a Chrome extension or mobile app). Integrating OAuthHub as a native, built-in OS service would be ideal for widespread adoption.
Summary updated