# Kerberos（协议）

**Kerberos**是一种网络认证协议，客户端与服务器可在不安全的网络上，借助共享密钥（对称）密码学和受信任的第三方——密钥分发中心（KDC）——互相证明各自的身份。它于1980年代在[麻省理工学院](https://www.edgepedia.org/zh/massachusetts-institute-of-technology)（MIT）为雅典娜工程（Project Athena）设计，1987年以开源形式发布，1993年成为IETF标准；当前使用的是第5版，由RFC 4120规定。<sup>[1](https://www.kerberos.org/docs/index.html)</sup><sup> • </sup><sup>[2](https://www.rfc-editor.org/info/rfc4120/)</sup><sup> • </sup><sup>[3](https://web.mit.edu/kerberos/www/)</sup>

| 关键事实 | 详情 |
|---|---|
| 起源 | 自1983年起作为MIT雅典娜工程的认证引擎开发；1987年开源；1993年起成为IETF标准<sup>[1](https://www.kerberos.org/docs/index.html)</sup> |
| 现行规范 | Kerberos第5版，RFC 4120（2005年7月），取代RFC 1510<sup>[2](https://www.rfc-editor.org/info/rfc4120/)</sup> |
| 信任模型 | 三方：客户端、服务，以及双方共同信任的密钥分发中心；票据取代反复传输密码<sup>[4](https://learn.microsoft.com/en-us/windows-server/security/kerberos/kerberos-authentication-overview)</sup> |
| 凭据流程 | 登录获得票据授予票据（TGT）；TGT换取服务票据，直接出示给目标服务<sup>[4](https://learn.microsoft.com/en-us/windows-server/security/kerberos/kerberos-authentication-overview)</sup> |
| 时间要求 | 票据时间戳要求时钟同步；在Windows中，域控制器与客户端或服务器之间的时差必须小于五分钟<sup>[5](https://learn.microsoft.com/en-us/troubleshoot/windows-server/windows-security/kerberos-authentication-troubleshooting-guidance)</sup> |
| 密码学 | 当前使用基于AES的加密类型；DES、三重DES和RC4已被RFC 6649（2012年）和RFC 8429（2018年）弃用<sup>[6](https://www.rfc-editor.org/info/rfc8429/)</sup> |
| 部署 | 随所有主流操作系统发行；通过Active Directory成为Windows域的默认认证协议<sup>[1](https://www.kerberos.org/docs/index.html)</sup><sup> • </sup><sup>[4](https://learn.microsoft.com/en-us/windows-server/security/kerberos/kerberos-authentication-overview)</sup> |

## 雅典娜工程中的起源

Kerberos诞生于雅典娜工程，这是MIT于1983年5月启动的全校性项目，旨在让每位学生都能系统地访问联网计算机，项目主要由[数字设备公司](https://www.edgepedia.org/zh/digital-equipment-corporation)（Digital Equipment Corporation）和IBM资助，最终耗资约1亿美元。<sup>[7](https://news.mit.edu/2018/mit-looking-back-project-athena-distributed-computing-for-students-1111)</sup>设计者观察到，在开放式的工作站网络中，工作站无法被信任去向网络服务正确标识其用户，因此认证必须由受信任的第三方服务提供。<sup>[8](https://web.mit.edu/krb5/raeburn/kfw/sources/pismere/athena/auth/leash/htmlhelp/html/leash_topic_kerberos_auth_service.htm)</sup>这个名字延续了雅典娜工程的希腊神话主题：刻耳柏洛斯（Kerberos）是守卫冥界的三头犬。<sup>[7](https://news.mit.edu/2018/mit-looking-back-project-athena-distributed-computing-for-students-1111)</sup>

奠基性论文《Kerberos：面向开放网络系统的认证服务》（1988年3月）由雅典娜工程的珍妮弗·G·施泰纳（Jennifer G. Steiner）和杰弗里·I·席勒（Jeffrey I. Schiller）与克利福德·纽曼（Clifford Neuman）合写，纽曼在设计与初期实现期间是雅典娜工程的工作人员；系统本身由史蒂夫·米勒（Steve Miller）和纽曼设计。<sup>[8](https://web.mit.edu/krb5/raeburn/kfw/sources/pismere/athena/auth/leash/htmlhelp/html/leash_topic_kerberos_auth_service.htm)</sup><sup> • </sup><sup>[9](https://www.cs.wm.edu/~liqun/teaching/cs664_07f/papers/steiner-usenix-88.pdf)</sup>项目领导层包括史蒂文·勒曼（Steven Lerman）教授和荣休教授杰里·萨尔策（Jerry Saltzer），此后多年由MIT的信息服务与技术团队维护和扩展该软件。<sup>[10](https://news.mit.edu/2008/kerberos-1208)</sup>Kerberos第4版于1980年代末最初在MIT部署，后来被第5版取代。<sup>[11](https://wikis.mit.edu/confluence/x/64BL)</sup><sup> • </sup><sup>[12](https://web.mit.edu/kerberos/new/about.html)</sup>

## 协议的工作方式

Kerberos认证涉及三方：代表安全主体（用户、计算机或服务）行事的客户端、主体想要访问的服务，以及双方都信任的KDC。<sup>[4](https://learn.microsoft.com/en-us/windows-server/security/kerberos/kerberos-authentication-overview)</sup>认证服务器运行在物理安全的主机上，维护主体及其密钥的数据库；应用程序通过代码库或通用安全服务应用程序接口（GSS-API）调用Kerberos。<sup>[2](https://www.rfc-editor.org/info/rfc4120/)</sup>

交换分两个阶段进行。首先，用户登录时，客户端向KDC的认证服务请求凭据，收到一张用票据授予服务密钥加密的票据授予票据（TGT），因此能解密它的是票据授予服务——而非客户端；由密码派生的密钥解密应答中的加密部分以恢复会话密钥，客户端接收并存储TGT，该票据保持加密状态，此后作为身份证明，使客户端无需再次出示密码即可请求服务。<sup>[13](https://www.mit.edu/~kerberos/krb5-1.5/krb5-1.5.4/doc/krb5-user/Introduction.html)</sup><sup> • </sup><sup>[4](https://learn.microsoft.com/en-us/windows-server/security/kerberos/kerberos-authentication-overview)</sup><sup> • </sup><sup>[24](https://learn.microsoft.com/en-us/windows/win32/secauthn/ticket-granting-tickets)</sup><sup> • </sup><sup>[25](https://learn.microsoft.com/en-us/windows/win32/secauthn/authentication-service-exchange)</sup>其次，要访问某个具体服务，客户端将TGT出示给KDC的票据授予服务，获得一张服务票据，再将其直接出示给目标服务。由于票据携带了服务验证客户端所需的一切信息，服务无需为每次连接都联系域控制器即可认证客户端。<sup>[4](https://learn.microsoft.com/en-us/windows-server/security/kerberos/kerberos-authentication-overview)</sup>

有多种机制保护这一交换过程。票据带有时间戳和有限的生命周期，服务会维护一个重放缓存，记录在允许时钟偏差内出现过的认证符，使重复的认证符无法被重用；被截获的有效票据可以配上新的认证符再次出示，但生成该认证符需要持有票据关联的会话密钥，因此仅截获票据是不够的。<sup>[14](https://kerberos.org/software/rolekerberos.pdf)</sup>该协议还提供双向认证：连接的任一端都能验证对方确实是其所声称的实体，这是较旧的NTLM协议所缺乏的特性。<sup>[4](https://learn.microsoft.com/en-us/windows-server/security/kerberos/kerberos-authentication-overview)</sup>Kerberos本身只提供认证；授权——即决定已认证的客户端可以做什么——则留给各自应用专用的机制。<sup>[2](https://www.rfc-editor.org/info/rfc4120/)</sup>

## 时间同步与重放防御

由于票据依据时间戳验证，每个参与者的时钟与KDC的时差都必须控制在几分钟以内。在Windows部署中，域控制器与客户端或目标服务器之间的时差必须小于五分钟，Windows通常会自动重新同步时钟；当钟差超过48小时或某台机器未使用域的时间服务器时，就需要人工干预。<sup>[5](https://learn.microsoft.com/en-us/troubleshoot/windows-server/windows-security/kerberos-authentication-troubleshooting-guidance)</sup>管理员还被提醒防范强制系统时钟倒退至重放票据仍然有效的时间点的攻击。<sup>[14](https://kerberos.org/software/rolekerberos.pdf)</sup>

## 加密类型与弃用

Kerberos加密类型（enctype）将一种加密算法与一种完整性算法结合，使数据同时获得机密性和完整性。<sup>[15](https://web.mit.edu/kerberos/krb5-latest/doc/admin/enctypes.html?highlight=des)</sup>IETF已分阶段淘汰较旧的算法：RFC 6649（2012年7月）弃用了DES、RC4-HMAC-EXP及其他弱类型，RFC 8429（2018年10月）弃用了三重DES和RC4-HMAC，将RC4-HMAC规范RFC 4757重新归类为“历史性”，并明确声明这些加密类型并不安全。<sup>[6](https://www.rfc-editor.org/info/rfc8429/)</sup>较新的规范增加了配合SHA-2哈希的AES：RFC 8009（2016年10月）定义了aes128-cts-hmac-sha256-128和aes256-cts-hmac-sha384-192，采用密文窃取模式的AES，并按NIST SP 800-108进行密钥派生。<sup>[16](https://www.rfc-editor.org/info/rfc8009/)</sup>

微软的部署呈现了相同的轨迹。为响应CVE-2022-37966，2022年11月8日及之后发布的Windows更新将未明确设置的账户的默认Kerberos加密类型从RC4改为AES-SHA1，微软计划在2026年第二季度末之前，在[Active Directory](https://www.edgepedia.org/zh/active-directory)域控制器上不再默认假定支持RC4类型。<sup>[17](https://learn.microsoft.com/en-us/windows-server/security/kerberos/detect-remediate-rc4-kerberos)</sup>RC4默认值曾可被Kerberoasting攻击利用，攻击者在该攻击中截获服务票据并离线破解其加密以恢复服务账户凭据。<sup>[17](https://learn.microsoft.com/en-us/windows-server/security/kerberos/detect-remediate-rc4-kerberos)</sup>

## 密码、字典攻击与公钥扩展

初始认证通常使用客户端主体的长期密钥，对用户而言该密钥由密码派生，因此密码猜测是一项长期存在的风险。在线字典攻击每次KDC请求尝试一个密码，对KDC可见并受其处理能力限制；离线攻击针对截获的密文，对KDC不可见且快得多，不过基于AES的加密类型因其字符串到密钥函数计算代价高昂而能减缓此类攻击。缓解措施包括+requires_preauth标志、SPAKE预认证（在MIT krb5 1.17版中加入）、FAST保护、到KDC的HTTPS代理以及PKINIT。<sup>[18](https://web.mit.edu/kerberos/krb5-latest/doc/admin/dictionary.html)</sup>

PKINIT由RFC 4556规定，在初始认证交换中加入公钥密码学，让持有公钥证书的用户无需在协议中使用密码即可获得Kerberos凭据；Windows以有文档记载的扩展实现了它。<sup>[19](https://datatracker.ietf.org/doc/rfc4556/)</sup><sup> • </sup><sup>[20](https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-pkca/d0cf1763-3541-4008-a75f-a577fa5e8c5b)</sup>

## 部署与治理

Kerberos随所有主流计算机操作系统发行，MIT为Macintosh、Windows和Unix维护了实现。<sup>[1](https://www.kerberos.org/docs/index.html)</sup>在Windows Server中，KDC在每个域控制器上运行，并使用Active Directory数据库作为其账户数据库，使Kerberos成为Active Directory域的默认认证协议；Windows增加了公钥认证、传输授权数据和委派的扩展，记载于[MS-KILE]。<sup>[4](https://learn.microsoft.com/en-us/windows-server/security/kerberos/kerberos-authentication-overview)</sup>2007年MIT成立了MIT Kerberos联盟以支持该协议的持续工作，2008年12月该学院获颁梅隆技术协作奖，表彰二十年来对Kerberos的开发；颁奖的文顿·瑟夫（Vinton Cerf）评论说，Kerberos每天都在每台Windows机器和全球数以千计的大学的数以亿计的事务中进行认证。<sup>[12](https://web.mit.edu/kerberos/new/about.html)</sup><sup> • </sup><sup>[10](https://news.mit.edu/2008/kerberos-1208)</sup>

该协议还延伸到了云身份领域。微软于2021年推出的Microsoft Entra Kerberos将Microsoft Entra ID转变为基于云的KDC，为域KERBEROS.MICROSOFTONLINE.COM签发Kerberos票据，使通过Windows Hello for Business或FIDO2安全密钥认证的用户能够单点登录到本地Active Directory资源。<sup>[21](https://learn.microsoft.com/en-us/entra/identity/authentication/kerberos)</sup>

## 形式化分析

Kerberos 5多年来一直是形式化验证工作的对象。对该协议规范相当一部分的详细验证证明了Kerberos支持其预期的认证和机密性属性且在结构上是健全的，同时也表明其跨域认证支持在远程管理域被攻陷时何等脆弱。<sup>[22](https://www.sciencedirect.com/science/article/pii/S0304397506005743)</sup>在Active Directory环境中针对Kerberos的票据伪造攻击仍是一个持续受到关注的问题，检测伪造票据通常需要集中收集和分析多个服务上的Windows安全日志。<sup>[23](https://arxiv.org/abs/2301.00044)</sup>

## References

1. [MIT Kerberos Consortium – Documentation](https://www.kerberos.org/docs/index.html)
2. [RFC 4120: The Kerberos Network Authentication Service (V5), RFC Editor](https://www.rfc-editor.org/info/rfc4120/)
3. [Kerberos: The Network Authentication Protocol, MIT](https://web.mit.edu/kerberos/www/)
4. [Kerberos authentication overview in Windows Server, Microsoft Learn](https://learn.microsoft.com/en-us/windows-server/security/kerberos/kerberos-authentication-overview)
5. [Kerberos Authentication Troubleshooting Guidance, Microsoft Learn](https://learn.microsoft.com/en-us/troubleshoot/windows-server/windows-security/kerberos-authentication-troubleshooting-guidance)
6. [RFC 8429: Deprecate Triple-DES (3DES) and RC4 in Kerberos, RFC Editor](https://www.rfc-editor.org/info/rfc8429/)
7. [Looking back at Project Athena, MIT News (2018)](https://news.mit.edu/2018/mit-looking-back-project-athena-distributed-computing-for-students-1111)
8. [Steiner, Neuman, Schiller. Kerberos: An Authentication Service for Open Network Systems (MIT copy)](https://web.mit.edu/krb5/raeburn/kfw/sources/pismere/athena/auth/leash/htmlhelp/html/leash_topic_kerberos_auth_service.htm)
9. [Steiner, Neuman, Schiller (1988), USENIX version, William & Mary mirror](https://www.cs.wm.edu/~liqun/teaching/cs664_07f/papers/steiner-usenix-88.pdf)
10. [MIT wins prestigious award for Kerberos work, MIT News (2008)](https://news.mit.edu/2008/kerberos-1208)
11. [Kerberos Version 4 Retirement, MIT Wiki Service](https://wikis.mit.edu/confluence/x/64BL)
12. [The MIT Kerberos Implementation – About](https://web.mit.edu/kerberos/new/about.html)
13. [Kerberos V5 UNIX User's Guide – Introduction, MIT](https://www.mit.edu/~kerberos/krb5-1.5/krb5-1.5.4/doc/krb5-user/Introduction.html)
14. [The Role of Kerberos in Modern Network Computing, MIT Kerberos Consortium whitepaper (2008)](https://kerberos.org/software/rolekerberos.pdf)
15. [Encryption types, MIT Kerberos Documentation](https://web.mit.edu/kerberos/krb5-latest/doc/admin/enctypes.html?highlight=des)
16. [RFC 8009: AES Encryption with HMAC-SHA2 for Kerberos 5, RFC Editor](https://www.rfc-editor.org/info/rfc8009/)
17. [Detect and Remediate RC4 Usage in Kerberos, Microsoft Learn](https://learn.microsoft.com/en-us/windows-server/security/kerberos/detect-remediate-rc4-kerberos)
18. [Addressing dictionary attack risks, MIT Kerberos Documentation](https://web.mit.edu/kerberos/krb5-latest/doc/admin/dictionary.html)
19. [RFC 4556: Public Key Cryptography for Initial Authentication in Kerberos (PKINIT), IETF Datatracker](https://datatracker.ietf.org/doc/rfc4556/)
20. [MS-PKCA: PKINIT in Kerberos Protocol, Microsoft Learn](https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-pkca/d0cf1763-3541-4008-a75f-a577fa5e8c5b)
21. [Introduction to Microsoft Entra Kerberos, Microsoft Learn](https://learn.microsoft.com/en-us/entra/identity/authentication/kerberos)
22. [Bella, Bistarelli, Cortier. Formal analysis of Kerberos 5, Theoretical Computer Science 367 (2006)](https://www.sciencedirect.com/science/article/pii/S0304397506005743)
23. [Detecting Forged Kerberos Tickets in an Active Directory Environment, arXiv:2301.00044](https://arxiv.org/abs/2301.00044)
24. [Ticket-Granting Tickets - Win32 apps](https://learn.microsoft.com/en-us/windows/win32/secauthn/ticket-granting-tickets)
25. [Authentication Service Exchange - Win32 apps](https://learn.microsoft.com/en-us/windows/win32/secauthn/authentication-service-exchange)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 网络与安全 › Security governance and internet policy › Cryptographic protocols › Authenticated key exchange and handshake protocols

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/kerberos-protocol

English original: https://www.edgepedia.org/kerberos-protocol
