# 永恒之蓝

**永恒之蓝**（EternalBlue）是美国国家安全局（NSA）开发的一款漏洞利用工具的代号，针对的是微软服务器消息块第一版（SMBv1）协议中的一个远程代码执行漏洞，在一系列相关缺陷中编号为CVE-2017-0144。该工具于2017年4月被黑客组织“影子经纪人”（Shadow Brokers）泄露，数周之内便被“想哭”（WannaCry）和NotPetya恶意软件疫情所使用，波及150多个国家，造成的损失合计估计超过100亿美元。<sup>[1](https://www.enisa.europa.eu/sites/default/files/publications/WP2018%20O.1.3.2%20Priorities%20for%20EU%20RD%20-%20Economics%20of%20vulnerability%20disclosure.pdf)</sup><sup> • </sup><sup>[2](https://ringsafe.in/eternalblue-wannacry-notpetya-2017-cve-2017-0144-analysis/)</sup>

| 关键事实 | 详情 |
|---|---|
| 漏洞 | Windows SMBv1服务器中的远程代码执行漏洞，CVE-2017-0144（相关缺陷为CVE-2017-0143至CVE-2017-0148）；CVSS评分8.8（v3.1）<sup>[3](https://learn.microsoft.com/en-us/security-updates/securitybulletins/2017/ms17-010)</sup><sup> • </sup><sup>[4](https://www.enisa.europa.eu/sites/default/files/2025-10/ENISA%20Threat%20Landscape%202025_0.pdf)</sup> |
| 来源 | 由NSA发现，并在其FuzzBunch漏洞利用框架中使用；2017年4月14日被“影子经纪人”在“Lost in Translation”发布中窃取并泄露<sup>[1](https://www.enisa.europa.eu/sites/default/files/publications/WP2018%20O.1.3.2%20Priorities%20for%20EU%20RD%20-%20Economics%20of%20vulnerability%20disclosure.pdf)</sup> |
| 补丁 | 微软安全公告MS17-010，2017年3月14日发布，早于泄露一个月<sup>[5](https://www.microsoft.com/en-us/security/blog/2017/05/12/wannacrypt-ransomware-worm-targets-out-of-date-systems/)</sup> |
| 想哭 | 2017年5月12日开始；影响150多个国家、超过30万台系统；导致英格兰236家英国国家医疗服务体系信托机构中至少81家运作受扰<sup>[6](https://www.belfercenter.org/sites/default/files/pantheon_files/files/publication/PAE%20Volkoff%20Mott%20-%20web.pdf)</sup><sup> • </sup><sup>[7](https://www.nao.org.uk/reports/investigation-wannacry-cyber%20attack-and-the-nhs/)</sup> |
| NotPetya | 2017年6月；利用永恒之蓝和永恒浪漫传播；是破坏性擦除器而非真正的勒索软件；CIA将其归咎于俄罗斯军事情报机构格鲁乌（GRU）<sup>[8](https://www.crowdstrike.com/en-us/blog/petrwrap-technical-analysis-part-2-further-findings-and-potential-for-mbr-recovery/)</sup><sup> • </sup><sup>[9](https://www.swp-berlin.org/10.18449/2021RP11/)</sup> |
| 后续复用 | 被Trickbot、WannaMine、CoinMiner等恶意软件用于网络传播<sup>[10](https://www.cisecurity.org/wp-content/uploads/2019/01/Security-Primer-EternalBlue.pdfSands)</sup> |
| 现状 | 列入CISA已知被利用漏洞目录<sup>[11](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=&field_date_added_wrapper=all&items_per_page=20&search_api_fulltext=CVE-2017-0144&sort_by=field_date_added&url=)</sup> |

## 漏洞与利用原理

SMB是一种Windows网络协议，用于网络内机器之间共享访问文件、打印机和串口。<sup>[1](https://www.enisa.europa.eu/sites/default/files/publications/WP2018%20O.1.3.2%20Priorities%20for%20EU%20RD%20-%20Economics%20of%20vulnerability%20disclosure.pdf)</sup> 缺陷在于SMBv1服务器处理某些特制请求的方式：未经身份验证的攻击者可以向目标SMBv1服务器发送一个精心构造的数据包，从而获得在其上执行代码的能力。<sup>[3](https://learn.microsoft.com/en-us/security-updates/securitybulletins/2017/ms17-010)</sup>

技术核心是协议转换过程中的一个大小计算错误。漏洞利用程序随后塑造结果：它首先用SMBv2连接“梳理”内核内存池，使一个SrvNet缓冲区紧邻FEA转换将要写入的位置，然后用包含选定函数指针的攻击者数据触发溢出，再发送一个SMBv2数据包，使被破坏的指针被调用。<sup>[12](https://bebitwise.io/blog/why-eternalblue-worked)</sup> 一项对“想哭”中所嵌入版本的详细逆向工程研究发现，代码与最初泄露的漏洞利用几乎完全相同，这有助于基于特征码的检测。<sup>[13](https://arxiv.org/abs/2112.14773)</sup>

该漏洞利用针对特定的Windows版本。在NotPetya的实现中，永恒之蓝仅对[Windows 7](https://www.edgepedia.org/zh/windows-7)、Windows 2008和Windows 2008 R2发起攻击，而配套的永恒浪漫（EternalRomance）漏洞利用则覆盖[Windows XP](https://www.edgepedia.org/zh/windows-xp)、XP Pro x64、[Windows Server 2003](https://www.edgepedia.org/zh/windows-server-2003)及R2和Vista。<sup>[8](https://www.crowdstrike.com/en-us/blog/petrwrap-technical-analysis-part-2-further-findings-and-potential-for-mbr-recovery/)</sup> 微软对“想哭”的分析同样指出，其漏洞利用代码仅对未打补丁的Windows 7和Windows Server 2008或更早系统有效，因此Windows 10电脑不受影响。<sup>[5](https://www.microsoft.com/en-us/security/blog/2017/05/12/wannacrypt-ransomware-worm-targets-out-of-date-systems/)</sup>

## 发现、修补与泄露

NSA发现了该漏洞，并将永恒之蓝构建进FuzzBunch——一个用于配置和投递漏洞利用的框架，可与渗透测试工具[Metasploit](https://www.edgepedia.org/zh/metasploit)相提并论。<sup>[1](https://www.enisa.europa.eu/sites/default/files/publications/WP2018%20O.1.3.2%20Priorities%20for%20EU%20RD%20-%20Economics%20of%20vulnerability%20disclosure.pdf)</sup> 一个自称“影子经纪人”的组织于2016年8月宣布窃取了NSA工具，并试图以比特币拍卖；由于反响有限，该组织转向直接出售，并在2016年8月至2017年4月间定期公开发布。<sup>[1](https://www.enisa.europa.eu/sites/default/files/publications/WP2018%20O.1.3.2%20Priorities%20for%20EU%20RD%20-%20Economics%20of%20vulnerability%20disclosure.pdf)</sup>

2017年3月14日，微软发布了安全公告MS17-010，该公告在所有受支持的Windows版本上的严重性评级均为“严重”，修复了包括CVE-2017-0144在内的SMBv1远程代码执行漏洞。<sup>[3](https://learn.microsoft.com/en-us/security-updates/securitybulletins/2017/ms17-010)</sup><sup> • </sup><sup>[5](https://www.microsoft.com/en-us/security/blog/2017/05/12/wannacrypt-ransomware-worm-targets-out-of-date-systems/)</sup> 2017年4月14日“影子经纪人”公开这些工具时，微软同日确认永恒之蓝、永恒冠军（EternalChampion）、永恒浪漫和永恒协同（EternalSynergy）均已由MS17-010解决。<sup>[14](https://www.microsoft.com/en-us/msrc/blog/2017/04/protecting-customers-and-evaluating-risk/)</sup> 微软如何在公开泄露前一个月就修补了这些漏洞，至今仍无定论；据报可能的解释包括NSA的私下警告、从“影子经纪人”处悄悄购买，或纯属巧合。<sup>[15](https://arstechnica.com/information-technology/2017/04/purported-shadow-brokers-0days-were-in-fact-killed-by-mysterious-patch/)</sup> NSA反间谍部门和FBI为期十五个月的调查未能查明“影子经纪人”是如何获得这些材料的；2015年以来因移除机密文件而被捕的三名NSA雇员，尚未证实与此事有关。<sup>[1](https://www.enisa.europa.eu/sites/default/files/publications/WP2018%20O.1.3.2%20Priorities%20for%20EU%20RD%20-%20Economics%20of%20vulnerability%20disclosure.pdf)</sup>

## 想哭，2017年5月

2017年5月12日星期五，“想哭”勒索蠕虫开始在全球传播。最终影响150多个国家、超过30万台系统。<sup>[6](https://www.belfercenter.org/sites/default/files/pantheon_files/files/publication/PAE%20Volkoff%20Mott%20-%20web.pdf)</sup>

此次疫情的传播受到两个时间上的巧合和一项发现的制约：攻击发生在星期五；微软于5月13日为包括Windows XP和Windows Server 2003在内的不受支持系统发布了罕见的带外补丁；一名安全研究人员注册了恶意软件代码中发现的一个域名，该域名起到了停止恶意软件传播的开关作用。<sup>[6](https://www.belfercenter.org/sites/default/files/pantheon_files/files/publication/PAE%20Volkoff%20Mott%20-%20web.pdf)</sup>

**对NHS的影响。** “想哭”是影响英格兰NHS的最大网络攻击。236家信托中至少81家被感染或运作受扰，另有603家初级保健及其他NHS机构受影响，包括595家全科诊所。英格兰NHS确认了6,912例被取消的预约，估计总数超过19,000例；在五个地区，患者不得不前往更远的地方接受急诊。没有NHS机构支付赎金，NHS Digital表示相信没有患者数据被泄露或窃取。<sup>[7](https://www.nao.org.uk/reports/investigation-wannacry-cyber%20attack-and-the-nhs/)</sup> 国家审计署发现，卫生部一年前就曾被警告网络攻击风险，且没有正式机制检查地方NHS机构是否安装了补丁；大多数NHS机构本可通过3月的补丁阻止攻击，因为超过90%的NHS设备运行Windows 7。<sup>[7](https://www.nao.org.uk/reports/investigation-wannacry-cyber%20attack-and-the-nhs/)</sup><sup> • </sup><sup>[16](https://publications.parliament.uk/pa/cm201719/cmselect/cmpubacc/787/78707.htm)</sup> [制造业](https://www.edgepedia.org/zh/manufacturing)也受到冲击：日产英国制造公司停产，雷诺在多个工厂停止生产。<sup>[17](https://www.england.nhs.uk/aac/wp-content/uploads/2018/02/lessons-learned-review-wannacry-ransomware-cyber-attack-cio-review.pdf)</sup>

2017年6月14日，NSA将“想哭”蠕虫与朝鲜政府联系起来；2017年12月19日，白宫国土安全顾问汤姆·博塞特（Tom Bossert）在所称的仔细调查后，公开将攻击归咎于[朝鲜](https://www.edgepedia.org/zh/north-korea)。<sup>[6](https://www.belfercenter.org/sites/default/files/pantheon_files/files/publication/PAE%20Volkoff%20Mott%20-%20web.pdf)</sup>

## NotPetya，2017年6月

NotPetya出现于2017年6月27日，通过企业网络传播，使用了与“想哭”相同的永恒之蓝组件，以及永恒浪漫漏洞利用和基于凭据收集的横向移动。<sup>[9](https://www.swp-berlin.org/10.18449/2021RP11/)</sup><sup> • </sup><sup>[12](https://bebitwise.io/blog/why-eternalblue-worked)</sup> 尽管伪装成索要价值300美元比特币的勒索软件，其加密是破坏性的且不可逆的，分析人士将其归类为旨在销毁数据而非收取赎金的擦除器。<sup>[12](https://bebitwise.io/blog/why-eternalblue-worked)</sup><sup> • </sup><sup>[18](https://pmc.ncbi.nlm.nih.gov/articles/PMC8838225/)</sup> 其技术链条为：测试目标是否存在漏洞、检查Windows版本、触发MS17-010缺陷、部署修改版DoublePulsar SMB后门，然后向lsass.exe注入一个暂存DLL以安装有效载荷。<sup>[8](https://www.crowdstrike.com/en-us/blog/petrwrap-technical-analysis-part-2-further-findings-and-potential-for-mbr-recovery/)</sup>

攻击主要针对乌克兰，但也扰乱了包括马士基（Maersk）、默克（Merck）和亿滋（Mondelez）在内的全球企业。2018年1月《华盛顿邮报》报道称，CIA以高度确定性评估认为，俄罗斯军事情报机构格鲁乌及其主要特种技术中心是NotPetya的幕后黑手。2018年4月16日，欧盟理事会正式谴责在“想哭”和NotPetya攻击中恶意使用信息技术的行为。<sup>[9](https://www.swp-berlin.org/10.18449/2021RP11/)</sup>

## 后续复用与政策余波

永恒之蓝的生命力超出了2017年的疫情。银行木马Trickbot利用它通过企业网络横向传播，挖矿程序WannaMine和CoinMiner利用它获取算力来挖掘加密货币。<sup>[10](https://www.cisecurity.org/wp-content/uploads/2019/01/Security-Primer-EternalBlue.pdfSands)</sup> CVE-2017-0144仍列于CISA已知被利用漏洞目录中，ENISA《2025年威胁态势》将其记录为针对欧盟组织使用的漏洞之一。<sup>[11](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=&field_date_added_wrapper=all&items_per_page=20&search_api_fulltext=CVE-2017-0144&sort_by=field_date_added&url=)</sup><sup> • </sup><sup>[4](https://www.enisa.europa.eu/sites/default/files/2025-10/ENISA%20Threat%20Landscape%202025_0.pdf)</sup>

政府囤积的漏洞利用工具被盗和复用，引发了关于漏洞披露政策的辩论。“想哭”之后，观察人士判断，NSA的“漏洞公平裁决程序”——决定发现的缺陷是披露还是保留——可能对批准可像蠕虫一样自行传播的工具采取了更严格的态度，而“想哭”和NotPetya造成的全球损害强化了建立国际披露机制的呼声。<sup>[19](https://www.axios.com/2019/05/30/nsas-rogue-hacking-tool-sparks-debate)</sup><sup> • </sup><sup>[20](https://www.cfr.org/articles/theft-and-reuse-advanced-offensive-cyber-weapons-pose-growing-threat)</sup> 这一事件也成为补丁延迟代价的典型案例：漏洞利用在泄露前一个月就已被修复，但运行未打补丁或不受支持Windows系统的组织，尤其是NHS的部分机构，承受了损失。<sup>[5](https://www.microsoft.com/en-us/security/blog/2017/05/12/wannacrypt-ransomware-worm-targets-out-of-date-systems/)</sup><sup> • </sup><sup>[7](https://www.nao.org.uk/reports/investigation-wannacry-cyber%20attack-and-the-nhs/)</sup>

## References

1. [Economics of vulnerability disclosure, ENISA (December 2018)](https://www.enisa.europa.eu/sites/default/files/publications/WP2018%20O.1.3.2%20Priorities%20for%20EU%20RD%20-%20Economics%20of%20vulnerability%20disclosure.pdf)
2. [EternalBlue, WannaCry & NotPetya: The $10B SMB Worm, RingSafe](https://ringsafe.in/eternalblue-wannacry-notpetya-2017-cve-2017-0144-analysis/)
3. [Microsoft Security Bulletin MS17-010 – Critical, Microsoft Learn](https://learn.microsoft.com/en-us/security-updates/securitybulletins/2017/ms17-010)
4. [ENISA Threat Landscape 2025](https://www.enisa.europa.eu/sites/default/files/2025-10/ENISA%20Threat%20Landscape%202025_0.pdf)
5. [WannaCrypt ransomware worm targets out-of-date systems, Microsoft Security Blog (12 May 2017)](https://www.microsoft.com/en-us/security/blog/2017/05/12/wannacrypt-ransomware-worm-targets-out-of-date-systems/)
6. [Incentivizing Comprehensive Cybersecurity Solutions by Matching Accountability to Capability, Belfer Center](https://www.belfercenter.org/sites/default/files/pantheon_files/files/publication/PAE%20Volkoff%20Mott%20-%20web.pdf)
7. [Investigation: WannaCry cyber attack and the NHS, National Audit Office (October 2017)](https://www.nao.org.uk/reports/investigation-wannacry-cyber%20attack-and-the-nhs/)
8. [NotPetya Technical Analysis Part II: Further Findings, CrowdStrike](https://www.crowdstrike.com/en-us/blog/petrwrap-technical-analysis-part-2-further-findings-and-potential-for-mbr-recovery/)
9. [Attribution: A Major Challenge for EU Cyber Sanctions, Stiftung Wissenschaft und Politik](https://www.swp-berlin.org/10.18449/2021RP11/)
10. [Security Primer: EternalBlue, MS-ISAC / Center for Internet Security (January 2019)](https://www.cisecurity.org/wp-content/uploads/2019/01/Security-Primer-EternalBlue.pdfSands)
11. [Known Exploited Vulnerabilities Catalog, CISA](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=&field_date_added_wrapper=all&items_per_page=20&search_api_fulltext=CVE-2017-0144&sort_by=field_date_added&url=)
12. [Why EternalBlue worked, Be Bitwise](https://bebitwise.io/blog/why-eternalblue-worked)
13. [Working mechanism of Eternalblue and its application in ransomworm, arXiv:2112.14773](https://arxiv.org/abs/2112.14773)
14. [Protecting customers and evaluating risk, Microsoft Security Response Center (15 April 2017)](https://www.microsoft.com/en-us/msrc/blog/2017/04/protecting-customers-and-evaluating-risk/)
15. [Mysterious Microsoft patch killed 0-days released by NSA-leaking Shadow Brokers, Ars Technica](https://arstechnica.com/information-technology/2017/04/purported-shadow-brokers-0days-were-in-fact-killed-by-mysterious-patch/)
16. [Cyber-attack on the NHS, Committee of Public Accounts, House of Commons (March 2018)](https://publications.parliament.uk/pa/cm201719/cmselect/cmpubacc/787/78707.htm)
17. [Lessons learned review of the WannaCry Ransomware Cyber Attack, NHS England / DHSC (February 2018)](https://www.england.nhs.uk/aac/wp-content/uploads/2018/02/lessons-learned-review-wannacry-ransomware-cyber-attack-cio-review.pdf)
18. [Ransomware: Analysing the Impact on Windows Active Directory Domain Services, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC8838225/)
19. [NSA's rogue hacking tool sparks debate, Axios (May 2019)](https://www.axios.com/2019/05/30/nsas-rogue-hacking-tool-sparks-debate)
20. [The Theft and Reuse of Advanced Offensive Cyber Weapons Pose A Growing Threat, Council on Foreign Relations](https://www.cfr.org/articles/theft-and-reuse-advanced-offensive-cyber-weapons-pose-growing-threat)

---
*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: 技术与人造世界 › 计算技术与数字系统 › 网络与安全 › Malware and endpoint threats › Named malware specimens

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/eternalblue

English original: https://www.edgepedia.org/eternalblue
