Attribute | Details |
|---|---|
|
Attack Type |
Zerologon (CVE-2020-1472) – Privilege Escalation via MS-NRPC |
|
Impact Level |
Critical |
|
Target |
Businesses / Government / All organizations using Active Directory |
|
Primary Attack Vector |
Network (TCP session to Domain Controller) |
|
Motivation |
Financial Gain, Espionage, Disruption, Extortion |
|
Common Prevention Methods |
Timely patching, MFA, Netlogon secure channel enforcement, EDR, SIEM, monitoring for anomalous account changes |
Risk Factor | Level |
|---|---|
|
Potential Damage |
Extremely High |
|
Ease of Execution |
High |
|
Likelihood |
High |
Zerologon 是什么?
Zerologon 是一个严重的 Windows Server 漏洞(CVE-2020-1472)。它源自 Microsoft 的 Netlogon Remote Protocol(MS-NRPC)中的缺陷:AES-CFB8 加密会使用固定的、全为零的初始化向量。攻击者只需对域控制器的 Netlogon 服务具备基本的网络访问权限(例如通过 VPN 连接,或通过已被入侵的内网机器),即可发送构造的 Netlogon 消息,反复强制认证成功。一旦认证成功,他们可以:
- 冒充域控制器。
- 即使无需任何凭据,也可以重置 DC 的计算机帐户密码。
- 在此之后,他们可以直接提升到 Domain Admin,并接管整个 Active Directory 域。
该攻击可能在几分钟内危害整个 Windows 域,因此 Microsoft 为其分配了 CVE-2020-1472,CVSS 分数为 10.0(严重)。该漏洞已被先进威胁组织和勒索软件运营方(如 Ryuk、Black Basta 和 Cuba)积极利用。修补此漏洞不仅是建议,而是绝对关键。
Zerologon 是如何工作的?
让我们逐步了解 Zerologon 攻击的每个环节,理解攻击者如何从获得基本的网络访问权限,进而破坏域控制器。
1. 与目标 DC 建立 TCP 会话
攻击者需要获得对域控制器的 Netlogon 服务(TCP/445)的网络访问权限。他们通常通过网络钓鱼、窃取的 VPN 凭据,或来自已被入侵的内部主机的横向移动来获取这一权限。
2. 初始化一个不安全的 Netlogon 通道
攻击者利用 Microsoft 的 Netlogon Remote Protocol(MS-NRPC)中的加密学弱点。由于该协议的 AES-CFB8 加密缺陷会使用固定的全零初始化向量(IV),攻击者会反复发送构造的 Netlogon 消息,直到其中一次成功并生成被清零的会话密钥,从而导致协议在没有适当身份验证的情况下接受该会话。换句话说,该协议无法安全地验证会话。
每个构造请求大约有 1/256 的成功概率,因此脚本可以在几秒钟内完成身份验证。
3. 禁用签名与密封(signing & sealing)
握手完成后,攻击者会关闭消息签名和加密。这样可以确保后续的 Netlogon 流量(包括密码更改)以明文形式传输。
4. 发送 NetrServerPasswordSet2
在创建了一个未经认证但(错误地)被信任的 Netlogon 会话之后,攻击者会调用 NetrServerPasswordSet2 RPC 函数,将域控制器的计算机账户密码重置为一个空字符串。通过这种方式,攻击者获得对 DC 的控制权。
5. 利用提升的权限
在获得域控制器权限后,攻击者可以使用 Mimikatz 等工具执行 DCSync。
DCSync 滥用的是 DC 用来保持其数据库同步的正常复制流程。通过冒充另一台 DC,攻击者会请求包含服务账户和 Domain Admins 的密码哈希(password hashes)的 Active Directory 数据库。借助这些哈希,攻击者可以创建或冒充任何账户,维持持久访问,并完全控制整个域。
6. 可选:还原密码
一些攻击者会将域控制器(DC)的计算机帐户密码重置回其原始值,以规避 Zerologon 检测,同时保留对被盗凭据的访问权限。
攻击流程图
以下示例场景可以帮助你理解,在真实环境中 Zerologon 攻击可能会呈现出怎样的情况。
在一家中型医疗服务提供商中,财务人员点击了一封看起来十分可信的网络钓鱼邮件,从而让攻击者获得对其工作站的远程访问权限。利用这一立足点,攻击者扫描内部网络,并发现一台尚未修补的域控制器。攻击者使用 Zerologon 漏洞(CVE-2020-1472),建立受信任的 Netlogon 会话,并将 DC 的计算机帐户密码重置为一个空白值。随后,凭借已获得的 Domain Admin 权限,攻击者运行 DCSync 攻击以导出所有 Active Directory 凭据哈希,横向移动到患者记录服务器,并部署勒索软件——在数小时内将组织的 IT 运营锁定。
该图展示了一条典型的 Zerologon 攻击链:从最初的网络立足点到域被完全攻陷。
Zerologon 攻击示例
自 2020 年披露以来,Zerologon 已在多起真实世界的泄露事件中被利用。攻击者使用该技术对全球的政府、医疗和企业网络开展勒索软件及 APT 行动。以下是一些实际案例。
Case | Impact |
|---|---|
|
Ryuk ransomware (2020) |
In late 2020, threat actors linked to Ryuk ransomware leveraged the Zerologon (CVE-2020-1472) vulnerability to encrypt entire Windows domains in under five hours. Victims included US hospitals and municipal governments. After gaining initial access, attackers exploited Zerologon to reset domain controller machine-account passwords, achieved Domain Admin privileges within minutes, and deployed Ryuk across entire networks. This led to widespread data encryption, operational disruption, and multimillion-dollar ransom demands. |
|
Cuba ransomware (2023) |
In 2023, the Cuba ransomware group used the Zerologon vulnerability (CVE-2020-1472) to deploy ransomware and exfiltrate data. Victims included critical infrastructure, financial services, and IT providers. After gaining initial access, they exploited Zerologon to reset domain controller machine-account passwords, obtained Domain Admin rights, and then deployed Cuba ransomware across networks. This led to encrypted systems, data theft, and double-extortion ransom demands, threatening to publish if ransom is not paid. |
|
Black Basta |
The Black Basta ransomware group combines Zerologon with other privilege escalation techniques for rapid takeover. After gaining initial access via phishing, social engineering, or unpatched software vulnerabilities s, the attackers elevate permissions using exploits like Zerologon and tools like Mimikatz. With domain-level control achieved, Black Basta affiliates exfiltrate sensitive data (often using rclone), disable defenses, delete backups, and encrypt systems for double-extortion. Victims include healthcare, manufacturing, and public services. As of 2024, the group has impacted over 500-700 organizations globally since its emergence in early 2022. |
|
Austin, Texas Municipal Network breach (2020) |
In mid-October 2020, the City of Austin realized that Russian state-sponsored hackers (reportedly the group “Berserk Bear”) had fully compromised the city’s wireless infrastructure, and that the attackers had been maintaining access to internal systems for months before detection. According to reports from the Microsoft Threat Intelligence Center, the attackers used exploits including Zerologon (CVE-2020-1472) to breach the network. City officials reported that critical systems were unaffected and no personal data was lost.in response, federal and state agencies, including CISA and the FBI, issued alerts and urged other municipalities to review their security and check for signs of compromise. |
Zerologon 攻击的后果
Zerologon 攻击可能给组织带来严重破坏。一旦攻击者获得 Domain Admin 访问权限,损失就可能消耗大量财务资源,并损害公司的声誉。
Impact Area | Description |
|---|---|
|
Financial |
Direct costs include ransom payments, forensic investigations, emergency IT services, response and recovery expenses, and regulatory fees. Indirect costs can involve lost revenue from downtime, higher cyber-insurance premiums, and long-term investments in new security infrastructure. Public companies may also face a drop in stock value and increased cost of capital. |
|
Operational |
A compromised DC can bring down authentication services across the organization, such as logins for email, file shares, ERP, and cloud apps. It can cause domain-wide outages, halted business operations, and prolonged downtime for critical systems. When employees cannot access critical systems, production lines may stop and customer services (such as e-commerce or patient portals) can go offline for days or weeks. |
|
Reputational |
Customers, partners, and investors lose confidence when a company’s core security fails. Negative press coverage, social media backlash, and analyst downgrades can continue even after systems are restored, making it harder to win new business or keep existing clients. |
|
Legal/Regulatory |
Breaches that expose personal or regulated data (health records, financial data, government records) can trigger mandatory breach notifications and fines under GDPR, HIPAA, or CCPA. Organizations may also face lawsuits, shareholder suits, and scrutiny from regulatory bodies. |
Zerologon 攻击的常见目标:谁会面临风险?
Zerologon 可能会威胁运行 Active Directory 的任何组织,但某些环境比其他环境更容易受到攻击,或更容易引起攻击者的兴趣。
|
Large Enterprises |
Large companies with extensive AD forests and many domain controllers often have to deal with elaborate patching and change-management processes. This makes it easier for attackers to find an unpatched DC and move laterally across the network. |
|
Government Agencies |
Public-sector institutions frequently depend on legacy systems and may have slower patch deployment cycles. Attackers count on these delays to exploit known flaws before updates are applied. |
|
Critical Infrastructure Providers |
Sectors like energy, healthcare, and transportation are high-value targets because even a brief outage can have major socio-economic and public-safety consequences. The greater the disruption, the higher the likelihood of a ransom payment. |
|
Educational Institutions |
Universities and school districts manage huge, diverse user bases, mixed device environments with unmanaged endpoints, and limited cybersecurity resources. This creates a broad attack surface that is hard to monitor continuously. |
|
Municipal and Local Governments |
These entities run with limited IT security and outdated technology. Incidents such as the Austin, Texas municipal network breach show how quickly attackers can exploit these gaps to disrupt essential services. |
|
Mixed-Platform Environments |
Organizations that connect Linux, macOS, or IoT devices to Active Directory may leave security gaps. If non-Windows systems are not fully patched or monitored, attackers can bypass security controls. |
风险评估
Zerologon 是一种严重的威胁,整体上获得最高的风险评级。该漏洞使攻击者在获得网络访问权限后,能够相对轻松地接管组织的整个 AD 环境。
Microsoft 和主要安全框架都将 Zerologon(CVE-2020-1472)评为其严重性等级的最顶端。这意味着他们认为 Zerologon 是一种紧急且影响重大的漏洞,需要立即关注。
- Microsoft Security Advisory – 将其归类为 Critical,这是 Microsoft 的最高严重性评级。
- CVSS v3.1 分数 – 被评为 10.0(严重),即可获得的最高分,反映了其被利用的难易程度以及可能导致完全接管域的潜在风险。
- CISA / US Government – 将 CVE-2020-1472 添加到 Known Exploited Vulnerabilities(KEV)Catalog,并发布多项紧急指令,敦促立即修补。
我们还需要考虑一些其他的风险因素:
Risk Factor | Level |
|---|---|
|
Potential Damage |
Extremely High A successful exploit grants full control of the domain controller, enabling full domain compromise, large-scale data theft, and rapid ransomware deployment. |
|
Ease of Execution |
High After gaining network access to the DC, attackers require minimal technical skills, as they can exploit Zerologon with publicly available proof-of-concept (PoC) scripts. |
|
Likelihood |
High The vulnerability has been actively exploited by ransomware groups and APT actors worldwide. |
如何防止 Zerologon 攻击
为防止 Zerologon 攻击,组织应综合采用及时修补、增强身份验证控制以及主动监测。
立即修补
请立即在每台域控制器上安装 Microsoft 的 2020 年 8 月和 2021 年 2 月安全更新。这些补丁将修复 Netlogon 的加密缺陷,并启用可阻止 Zerologon 利用的安全通道防护。
强制使用安全 RPC
通过启用注册表项 FullSecureChannelProtection 以及对应的组策略设置来强制使用安全的 RPC(远程过程调用)连接。这会强制所有 Netlogon 流量使用加密且带签名的通道。该措施可防止攻击者降低 Netlogon 连接的安全性,使其难以操纵或冒充合法的域控制器通信。
限制非 Windows 设备
对尝试向 Active Directory 进行身份验证的 Linux、macOS 和 IoT 设备进行分段隔离或严格管控,尤其是那些试图以提升后的权限连接或使用较弱的身份验证方法的设备。未打补丁或配置错误的非 Windows 端点可能会削弱安全控制。
实施 MFA
强制实施 MFA,尤其是针对所有特权账户和服务账户。虽然 Zerologon 本身会绕过身份验证,但 MFA 在初次入侵之后或在其他可能导致凭据被窃取的攻击类型中充当至关重要的防线。额外的验证显著降低了仅凭被窃取的凭据就能实现横向移动或权限提升的可能性。
监测可疑活动
跟踪事件 ID 4742(计算机账户变更)以及 Netlogon 连接事件 5827–5831,这些事件可能会揭示重复的身份验证失败或意外的密码重置——而这些都是企图利用漏洞的早期预警信号。通过主动监测这些以及其他相关的安全事件,组织可以快速识别可疑活动,发现可能的利用行为,并启动事件响应以将损害降到最低。
Netwrix 解决方案 - Netwrix 如何提供帮助
为了防止 Zerologon 攻击,Netwrix Auditor 等 Netwrix 产品可以发挥关键作用。Auditor 可帮助组织持续监控 Active Directory 中关键设置和配置的变更,检测异常行为,并在发生未经授权的更改或可疑活动时提醒管理员。通过跟踪与基线配置的偏差并提供实时可视性,Netwrix Auditor 能帮助组织快速发现并遏制诸如 Zerologon 所能启用的权限提升尝试。
- 实时监控: Netwrix Auditor 会持续审计 Active Directory 的变更,包括域控制器配置、安全组成员身份以及组策略(Group Policy)设置。一旦发生未经授权的更改,或关键设置被修改,它可以向管理员发送实时警报。通过这种方式,管理员能够快速调查任何可能表明攻击的变更。
- 异常检测: Auditor 的用户行为与异常检测(User Behavior and Anomaly Detection,UBAD)引擎使用机器学习来标记异常的账户行为,例如突然的权限提升、反复失败的登录尝试或意外的密码重置,这些都可能预示 Zerologon 风格的漏洞利用。
- 合规报告: Auditor 提供面向 HIPAA、PCI DSS 和 GDPR 等框架的开箱即用合规报告。这些详尽的报告有助于验证是否严格遵循安全策略(例如及时修补、特权账户管理以及访问控制变更),以检测并防止未经授权的访问。
检测、缓解与响应策略
要保护组织免受 Zerologon 攻击,需要采用分层方法:尽早发现可疑的身份验证尝试,对域控制器进行快速补丁和加固,并在发生入侵时准备事故响应计划。
检测
在进行 Zerologon 攻击检测时,应关注与利用(渗透)相关的特定迹象,而不仅仅是通用的异常。
- Netlogon 调试日志: 监控是否出现快速的 NetrServerAuthenticate 失败,且紧接着由同一 IP 发起并成功。
- 数据包捕获分析: 检查网络跟踪中是否存在使用全零客户端凭据(00:00:00:00:00:00:00:00)并返回 STATUS_SUCCESS 的 Netlogon 身份验证尝试。
- 哈希分析: 在域控制器帐户历史记录中搜索广为人知的 NTLM 哈希 31d6cfe0d16ae931b73c59d7e0c089c0。它表明域控制器帐户存在空密码。
- 事件日志监控: Windows 安全事件 ID 4742 是用于在 Active Directory 中记录“计算机帐户已更改”的日志条目。当你看到该事件的登录类型为:Anonymous(或在调用方中显示为“Anonymous Logon”)时,表示某个没有有效凭据的人成功更改了计算机帐户对象,说明可能发生了 Zerologon 利用。
缓解
组织可以通过遵循某些做法来缓解 Zerologon 风险,例如:
- 及时打补丁: 将 Microsoft 于 2020 年 8 月和 2021 年 2 月针对 CVE-2020-1472 发布的更新应用到每一台域控制器。
- 强制使用安全 RPC: 启用 FullSecureChannelProtection 注册表策略/设置,并消除任何策略例外。这会强制域成员与域控制器之间的所有 Netlogon 流量都使用带有强加密身份验证的安全 RPC,从而阻止 Zerologon 利用程序中使用的“全零凭据”技巧。
- 减少攻击面: 在 Active Directory 中禁用或删除未使用的非 Windows 计算机帐户,强制实施最小权限的组成员资格,并关闭 SMBv1 和 NTLMv1 等旧式协议。
- 加强身份控制: 为所有特权帐户启用多因素身份验证(MFA),以在发生凭据被盗时限制影响范围。
- 高级监控: 部署 EDR 和 SIEM 解决方案,以实时检测异常的身份验证模式。
响应
如果怀疑或确认发生 Zerologon 侵害,请迅速且有条不紊地采取行动:
- 隔离受影响的 DC:将已受损的域控制器与网络断开,以停止攻击者活动。这包括拔掉物理网络电缆、阻止所有往返 DC 的网络流量,以及禁用网络接口。
- 重置凭据: 将 DC 的计算机帐户密码更改为长且随机的值。
- 重建信任: 为所有受影响的计算机和服务帐户重新建立信任关系。你可以使用 Netdom 命令行工具来为每个客户端和服务器重置安全通道,或使用 PowerShell 脚本自动化该过程。
- 轮换特权密钥: 重置所有管理凭据(包括 KRBTGT 帐户),以使被盗的哈希和 Kerberos 票据失效。KRBTGT 帐户是域中 Kerberos 的“主密钥”。攻击者只要拥有其哈希,就可以创建“黄金票据”以冒充任意用户。作为最佳实践,请将该帐户的密码重置两次(两次之间需经历一个完整的 Kerberos 票据过期周期)。
开展全面取证: 进行彻底调查,以发现持久化机制、横向移动以及任何其他已被入侵的资产。取证时重点关注异常登录事件、新的管理帐户、已修改的组成员关系以及可疑进程等内容。
行业特定影响
虽然 Zerologon 漏洞会威胁任何运行 Active Directory 的组织,但其影响可能会因行业而不同。下面是它可能如何影响关键行业的示例。
Industry | Impact |
|---|---|
|
Healthcare |
Healthcare is an attractive target for attackers. With a ZeroLogon attack, bad actors can steal sensitive patient data, including electronic health records (EHRs). This not only compromises patient privacy but can also lead to HIPAA violations, which carry severe penalties. A breach almost definitely causes downtime that delays patient care or disrupts medical devices dependent on Active Directory authentication. And if the attacker encrypts critical systems, it can drastically disrupt hospital operations, medical device functionality, and access to patient information, which can adversely affect patient care. |
|
Finance |
In the finance sector, the consequences of a ZeroLogon attack can be crippling. By compromising a domain controller, attackers can gain access to credentials for multiple systems, from financial databases to trading platforms. This can lead to fraudulent transactions, data exfiltration, unauthorized access to customer financial data, and the manipulation of financial records. Financial institutions can also face costly regulatory penalties under PCI DSS and SOX followed by a loss of customer trust. |
|
Retail |
In the retail industry, attackers can compromise Point-of-Sale (POS) systems, stealing credit card data and other customer information. Additionally, they can deploy ransomware on supply chain networks, bringing logistics and inventory management to a halt. This could lead to a complete shutdown of business operations, significant financial losses, legal liabilities, and damage to brand reputation. |
攻击演进与未来趋势
网络犯罪分子正在用 Zerologon 变得更聪明。他们在自动化攻击,借助 AI 工具快速发现未打补丁的域控制器,并锁定无法更新的旧系统。这意味着从发现到入侵的时间差正在缩小,因此快速修补、持续监控以及严格的网络控制至关重要。
自动化程度提高
现在,攻击者把 Zerologon 利用程序直接嵌入到自动化的勒索软件工具包和作战手册中,使他们能够在几分钟内接管一个域。这种自动化意味着他们可以比以前更快、且所需的技术能力更低地完成扫描、入侵以及在网络中横向移动。在许多情况下,他们会在安全团队甚至还没注意到之前就发动攻击。
防御者提示:重点关注快速检测(Netlogon 日志、数据包抓取),并自动化补丁管理,以便修复工作能够跟上自动化攻击的节奏。
与 AI 驱动的侦察集成
攻击者开始将自动化扫描与 AI 结合,以更快地查找易受攻击的域控制器。其工具能够在网络中发现线索,预测哪些服务器尚未修补或正在使用旧版协议,并选择价值最高的域控制器。AI 甚至还能根据观察到的网络行为,帮助他们选择合适的时机和攻击路径,使攻击更精确、也更难预测。
防御者提示:提升网络卫生和监控能力。为 EDR 和 SIEM 提供更丰富的上下文信息,以便你自己的分析能够发现并阻止这些威胁。
持续瞄准传统(旧版)系统
不再获得厂商更新的传统系统和隔离(air-gapped)系统仍然是攻击者的首选目标。攻击者会寻找存在例外或允许列表(allow-list)以兼容旧版环境的场景(例如依赖较旧的 Netlogon 行为或使用不受支持的操作系统构建的系统)。一旦攻击者攻破这些机器,就可以将其作为长期据点,用于反复发起攻击。
防御者提示:如果无法为这些系统打补丁,请将其与网络其余部分隔离,应用补偿性控制(网络分段、严格的防火墙规则以及跳转服务器),移除不必要的协议,并将其标记为高风险,以便进行严格监控。
关键统计数据与信息图
Zerologon 漏洞(CVE-2020-1472)之所以迅速成为讨论最热的 Windows 威胁之一,是因为它易于利用,并且可能造成巨大的破坏。这些数据正说明了:必须尽快打补丁,并通过强有力、主动的防护保持领先。
- CVSS 评分该漏洞获得了最高 CVSS 基础分 10.0,反映出其易于利用、无需凭据即可获取域管理员(Domain Admin)权限,以及可能导致整个域被完全攻破。
- 利用成功率研究人员发现,单次 Zerologon 尝试的成功率约为 0.39%,这意味着攻击者通常只需要 大约 256 次尝试 即可重置域控制器的计算机密码。由于这些尝试可以被脚本化,因而可能在不到一分钟的时间内发生入侵。
- 补丁采用滞后尽管微软在 2020 年 8 月发布了补丁,并在 2021 年 2 月再次发布,行业研究表明 对关键级 Windows 漏洞的平均 Mean Time to Patch(MTTP)为发布后 60 至 150 天。这种滞后为攻击者提供了一个充足的窗口,用于利用尚未打补丁的系统。
下面是一个柱状图,用于突出显示这些统计数据。
最终思考
Zerologon 漏洞最初于 2020 年由来自 Secura 的安全研究人员 Tom Tervoort 发现。作为其每月 Patch Tuesday 更新的一部分,Microsoft 于 2020 年 8 月 11 日发布了关键补丁。修复方案可用后,Secura 在 2020 年 9 月发布了一份详细的技术撰文,对 zerologon 进行了解释,这进一步提高了外界对该漏洞的关注,并鼓励其他人构建公开的概念验证(Proof-of-Concept)漏洞利用代码。
Zerologon 提醒我们:一个被忽视的小小缺陷就可能危及整个 Windows 域。其易于执行、影响极其关键以及补丁采用速度缓慢,都使其更受关注;同时也强调需要及时打补丁、持续监控、实施强有力的身份控制,并确保已就位经过测试的事件响应计划。
常见问题(FAQs)
分享到
滥用 Entra ID 应用权限——工作原理与防御策略
AdminSDHolder 修改——工作原理与防御策略
AS-REP Roasting 攻击:工作原理与防御策略
Hafnium 攻击——工作原理与防御策略
DCSync 攻击解析:对 Active Directory 安全的威胁
Golden SAML 攻击终极指南
什么是 Golden Ticket 攻击?工作原理、检测与防护
gMSA 利用攻击与 Golden gMSA 攻击详解
DCShadow 攻击——工作原理、真实案例与防御策略
ChatGPT 提示注入(prompt injection):了解风险、示例与防范
NTDS.dit 提取攻击详解
理解 Pass-the-Hash(PtH)攻击
Pass-the-Ticket(传票)攻击解析:风险、示例与防御策略
理解密码喷洒(password spraying)攻击
明文密码提取(Plaintext Password Extraction)解析:风险、示例与防范
Kerberoasting 攻击——工作原理与防御策略
勒索软件攻击完整指南
Skeleton Key 攻击:工作原理与检测方法
横向移动(Lateral Movement):它是什么、如何运作及防护措施
中间人(MITM)攻击:它们是什么,以及如何防范
为什么 PowerShell 对攻击者来说如此受欢迎?
4 种服务账号攻击及防护方法
如何防止恶意软件攻击影响您的业务
什么是凭证填充(Credential Stuffing)?
使用 PowerUpSQL 破坏 SQL Server
什么是 Mousejacking(鼠标劫持)攻击,以及如何防御
使用 Security Support Provider(SSP)窃取凭据
彩虹表攻击:工作原理与防御方法
深入了解密码攻击及其防止方法
LDAP Reconnaissance
通过 Pass-the-Cookie 攻击绕过 MFA
Silver Ticket 攻击