0:00
–:––
React at 0:00
Black Hat USA 2025

Back to the Future: Hacking and Securing Connection-based OAuth Architectures in Agentic AI and Integration Platforms

Kaixuan Luo, The Chinese University of Hong Kong; Xianbo Wang, The Chinese University of Hong Kong; Adonis Fung, Samsung Research America; Yanxiang Bi, The Chinese University of Hong Kong; Wing Cheong Lau, The Chinese University of Hong KongApplication Security: Offense

When and where

Day
Wed 6 Aug 2025
Time
11:20 to 12:00 PDT
Room
South Seas A & B, Level 3

Speakers

  • Kaixuan LuoThe Chinese University of Hong Kong

    Kaixuan Luo is currently a PhD candidate in the Department of Information Engineering at the Chinese University of Hong Kong, supervised by Prof. Wing Cheong Lau. His research interests are authorization security and mobile security.

  • Xianbo WangThe Chinese University of Hong Kong

    Xianbo Wang is currently a PhD candidate at The Chinese University of Hong Kong, working with Prof. Wing Cheong Lau on application protocol security and mobile security research. He has presented his research at renowned security conferences such as USENIX, NDSS, and Black Hat. He is also a long-time fan of CTFs and bug bounty programs.

  • Adonis FungSamsung Research America

    Adonis Fung is now the Director of Engineering, Security at the AI Lab of Samsung Research America. Adon's primary goal is to make Samsung AI secure by breaking and architecting better systems. He knows one thing: that he knows nothing.

  • Yanxiang BiThe Chinese University of Hong Kong

    Yanxiang Bi is currently a PhD candidate at The Chinese University of Hong Kong, working with Prof. Sze Yiu Chau on microarchitecture security and system security research.

  • Wing Cheong LauThe Chinese University of Hong Kong

    Wing Cheong Lau is a Professor in the Department of Information Engineering and the Director of the Mobile Technologies Centre at the Chinese University of Hong Kong (CUHK). After graduating from the University of Hong Kong (B.S. Eng) and the University of Texas at Austin (M.S., PhD), he spent a decade in U.S. industry. At Bell Laboratories, he was a system architect, conducting research in high-speed networking protocols and systems. At Qualcomm, he designed architectures for next-generation wireless data networks, contributing to IETF and 3GPPs standards. Dr. Lau holds 19 U.S. patents and has over 130 publications in premier international conferences and journals. His current research spans System / Network security, Infrastructure for AI / Big Data Systems, Graph Neural Networks and Online Machine Learning Algorithms. He is a Senior Member of IEEE, a member of ACM and a Fellow of HKIE. Wing and his team received the USENIX / Facebook Internet Defense Prize in 2018 for their contribution in Single-Sign-On security.

Abstract

Access delegation is indispensable for Agentic AI and Integration Platforms, where orchestration engines (e.g., Microsoft Power Automate, Copilot Studio) obtain access tokens from 3rd-party providers to act on behalf of end-users or authenticate end-users across chat channels. To better support these new use cases, there is a growing trend to offload token retrieval and lifecycle management to a separate cloud-based service (a.k.a. Credential Manager, Token Store), which enables developers to streamline "access re-delegation" when building AI agents and low-code solutions. Different home-grown variants of OAuth have emerged to support such access re-delegation architecture. Unlike the traditional OAuth setup, re-delegation centralizes token handling via a dedicated OAuth Token Service (a.k.a. OAuth-as-a-Service), which introduces an abstract "OAuth connection". This connection provides an application a pre-configured handle for a managed OAuth token, outsourcing token negotiations with the OAuth Authorization Server to the Token Service. Unlike "Broker" architectures that chain together two OAuth flows (authorization server-broker and broker-application), under the new connection-based OAuth architecture, applications acquire and utilize tokens through proprietary "OAuth connections" instead. We have found that such a proprietary approach often reintroduces critical new vulnerabilities previously mitigated by OAuth standards. In this talk, we explain how classic web vulnerabilities like Session Fixation, Open Redirect, Confused Deputy, XSS, and Cross-window Communication attacks have re-manifested themselves or been amplified within these proprietary, yet increasingly-common, connection-based OAuth architectures. Through practical exploits of these vulnerabilities, attackers can take over well-authenticated AI agents or gain unauthorized access to arbitrary integrations, all without explicit user consent. Using Microsoft as a case study, we illustrate how connection-based OAuth architectures are adopted in Azure, Power Platform, and Copilot Studio. We systematize the attack surface and highlight how Microsoft's case reflects the good, the bad and the ugly across the industry, revealing systemic issues shared by other vendors such as Composio and ByteDance Coze. Attendees will walk away with an attacker's mindset and actionable best practices in building a hardened auth layer for AI agents and integrations.

What you'll get from it

AI agents and low-code platforms such as Power Automate and Copilot Studio now hand OAuth token handling to separate token services, using home-grown "OAuth connections". This team found that these setups bring back classic flaws the OAuth standards had fixed: session fixation, open redirects, confused deputies, XSS and cross-window attacks. Through those, an attacker could take over authenticated AI agents or reach integrations without the user agreeing. Microsoft is the main case study, with similar issues at Composio and ByteDance Coze. You'll leave with practical ways to harden the auth layer for agents and integrations.

Did you find what you came for?