InfoQ

Google Adopts DPoP to Strengthen OAuth 2.0 Against Token Theft and Replay Attacks

8.5内容质量
Google Adopts DPoP to Strengthen OAuth 2.0 Against Token Theft and Replay Attacks

TL;DR · AI 摘要

Google在其OAuth平台中引入DPoP机制,通过非对称加密绑定令牌,有效防御令牌窃取和重放攻击。

核心要点

  • DPoP通过非对称密钥绑定令牌,防止窃取的令牌被重放。
  • Google仅支持DPoP用于refresh tokens,access tokens仍为标准Bearer tokens。
  • DBSC与DPoP结合,形成防御API和Web会话凭证窃取的纵深防御策略。

结构提纲

按章节快速跳转。

  1. §DPoP机制引入背景

    Google为应对令牌窃取和重放攻击,引入DPoP安全机制。

  2. DPoP使用非对称加密绑定令牌,确保窃取的令牌无法独立使用。

  3. 当前DPoP仅适用于refresh tokens,access tokens仍采用标准Bearer模式。

  4. ›DBSC补充方案

    DBSC通过硬件绑定会话cookie,与DPoP形成纵深防御体系。

  5. Google推荐使用STS服务处理多代理工作流的令牌委托问题。

思维导图

用一张图看清主题之间的关系。

查看大纲文本(无障碍 / 无 JS 友好)
  • Google采用DPoP增强OAuth 2.0安全
    • DPoP机制
      • 非对称密钥绑定
      • 防御重放攻击
    • 实施限制
      • 仅支持refresh tokens
    • 补充方案
      • DBSC硬件绑定会话cookie

金句 / Highlights

值得收藏与分享的关键句。

#OAuth 2.0#DPoP#安全机制#Google
打开原文

Google Adopts DPoP to Strengthen OAuth 2.0 Against Token Theft and Replay Attacks - InfoQ

InfoQ Homepage News Google Adopts DPoP to Strengthen OAuth 2.0 Against Token Theft and Replay Attacks

Cloud

Scaling OpenTelemetry: Managing Collectors, Configuration, and Cost (Webinar Nov 19th)

Google Adopts DPoP to Strengthen OAuth 2.0 Against Token Theft and Replay Attacks

Oct 29, 2026 2 min read

by

  • Sergio De Simone

#### Follow us on

Youtube

232K Followers

Linkedin

26K Followers

Instagram

New

RSS

19K Readers

X

57.1k Followers

Facebook

21K Likes

Bluesky

Listen to this article -

0:00

Audio ready to play

Your browser does not support the audio element.

Normal

1.25x

1.5x

Like

new dropdown rading list

  • Reading list

Google's OAuth Platform has recently introduces support for Demonstrating Proof-of-Possession (DPoP) , an OAuth 2.0 security mechanism designed to mitigate token theft and replay attacks.

Traditional OAuth bearer tokens operate on a "finders-keepers" model, making them vulnerable to Infostealer malware (e.g. RedLine, NodeStealer) and Adversary-in-the-Middle (AiTM) attacks.

To prevent this types of attacks, DPoP uses cryptography to bind tokens to an asymmetric key pair generated by the client. Consequently, a stolen token cannot be replayed without the corresponding private key, which remains under the client’s control.

Google OAuth platform supports DPoP only for refresh tokens, while access tokens, which are shorter-lived, remain standard Bearer tokens. This decision is motivated by the fact that long-lived refresh tokens are "the primary vector for persistent online impersonation", whereas applying DPoP to access tokens would introduce "asymmetric cryptographic verification overhead" for each request.

It is worth noting that adopting DPoP adds several client-side requirements, including generating cryptographic keys, handling timestamps and nonces correctly, generating the appropriate HTTP headers and the required DPoP proof JWTs.

While DPoP provides protection for API tokens, it does not protect standard web application session cookies, which remain vulnerable to Infostealer malware. To address the threat of cookie theft, Google and the Web Incubator Community Group (WICG) are developing Device Bound Session Credentials (DBSC).

DBSC operates at the browser and network layer to cryptographically bind browser session cookies to the device's hardware (such as TPM). Together, DPoP and DBSC form a comprehensive defense-in-depth strategy against credential theft across both API and web-based user sessions.

Google also notes that DPoP is not appropriate for multi-agent workflows, as one agent cannot easily delegate a task to another agent. This would in fact require the second agent to sign requests on behalf of the first. However, this in not possible without accessing the private key generated by the first agent, which would violate DPoP. As an alternative, Google recommends developers to consider Google Cloud Secure Token Service (STS) .

By routing delegation through STS, the intermediate agent can exchange the upstream token for a new, short-lived federated token cryptographically bound to its own local key pair, preserving the sender-constrained security model across the entire agent chain without key exposure.

Since the DPoP private key is stored client-side, its security ultimately depends on the security of the client itself. However, as Dhruv Agnihotri argues, single-page-apps (SPAs) running inside a browser are not entirely protected against misuse of the key . The IETF's guidance for browser-based applications therefore recommends adopting the Backend-for-Frontend pattern to keep tokens and cryptographic keys out of the browser. Agnihotri also proposes a zero-persistence approach , which may be useful when server-side infrastructure is unavailable.

main wrapper for authors section

About the Author

section title

main wrapper for each author

#### Sergio De Simone

Show more

Show less

#### This content is in the Cloud topic

##### Related Topics:

  • Development
  • Architecture & Design
  • Cloud
  • OAuth
  • Cloud Security
  • Google
  • Cryptography
  • Related Editorial
  • Related Sponsors
  • Related Sponsor December 15–16, 2026. Examine how senior practitioners run agents, evals, model serving, and AI-assisted engineering in production, including what failed and what changed. Register Now .

The InfoQ Newsletter

A round-up of last week’s content on InfoQ sent out every Tuesday. Join a community of over 250,000 senior developers. View an example

We protect your privacy.