EternalBlue
- Type
- Shellcode
- Capabilities
- Initial accessLateral movement
- Platforms
- Windows
EternalBlue is a remote code execution exploit targeting CVE-2017-0144 in the SMBv1 implementation of Microsoft Windows. Originally developed by the U.S. National Security Agency, it was publicly released by the Shadow Brokers in April 2017 as part of the leaked Fuzzbunch offensive toolkit. Microsoft addressed the vulnerability in the MS17-010 security update released on March 14, 2017.
EternalBlue sends specially crafted SMB requests to vulnerable systems, triggering an integer-conversion error and a kernel pool buffer overflow that enables remote code execution. It can compromise exposed SMB services without user interaction and supports lateral movement between vulnerable Windows hosts. Exploitation can also crash the target. EternalBlue has frequently been paired with DoublePulsar to install a kernel backdoor and execute additional payloads; EternalBlue itself is an exploit rather than a standalone backdoor or ransomware family.
EternalBlue enabled WannaCry's worm-like propagation and was also incorporated into NotPetya and EternalRocks. BackdoorDiplomacy has used the leaked exploit in its operations, and other campaigns have employed it to spread ransomware and cryptocurrency-mining malware within compromised networks. Its use spans multiple industries rather than a single target sector.
Associated vulnerabilities
6 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Associated threat actors
9 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
BackdoorDiplomacy has obtained and used leaked malware, including DoublePulsar, EternalBlue, EternalRocks, and EternalSynergy, in its operations.
The leak included EternalBlue, an exploit for the SMB protocol in Windows that the NSA had likely held for years.
The leak included EternalBlue, an exploit for the SMB protocol in Windows that the NSA had likely held for years.
The leak included EternalBlue, an exploit for the SMB protocol in Windows that the NSA had likely held for years.
Windows executable versions of publically available EternalBlue/EternalRomance exploit scripts.
+3 more in the app. View in Mallory
Techniques & procedures
19 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
3 techniques
Resource Development
During our analysis, we also discovered that Amadey was actively pushing the Remcos RAT via its control panel... We have also seen instances of Amaday C&C servers recently that are actively pushing DoublePulsar backdoor and EternalBlue exploit payloads on the victim machine.
Models trained on existing shellcode are already “reasonably good” at generating exploit code, he said, and may be capable of producing EternalBlue-level exploits within a year.
Adversaries may buy, steal, or download malware that can be used during targeting. Malicious software can include payloads, droppers, post-compromise tools, backdoors, packers, and C2 protocols.
Initial Access
1 technique
Initial Access
A single vulnerable and internet-exposed system was enough to wreak havoc.
Execution
2 techniques
Execution
SMBv1の脆弱性による横展開については、EternalBlueまたはEternalRomance(いずれもMS17-010の更新プログラム適用で修正される)で脆弱性を突き、DoublePulsarを設置、DoublePulsarを介してlsass.exeにインメモリでDLLインジェクションを行います。
Controlling the MDL lets you “write-what-where” the primitive.
Privilege Escalation
2 techniques
Privilege Escalation
MS17-010 exploit for Windows 2000 and later... If we can overwrite Token to NULL and UsePsImpersonateClient to true, a running thread will use primary token (SYSTEM) to do all SMB operations.
If we can overwrite Token to NULL and UsePsImpersonateClient to true, a running thread will use primary token (SYSTEM) to do all SMB operations... for Windows 2003 and earlier, the exploit modify token user and groups in PCtxtHandle to get SYSTEM
Stealth
3 techniques
Stealth
The threat actor responsible for the attack has purposefully included evidence to frustrate analysts and lead researchers to false attribution flags.
If we can overwrite Token to NULL and UsePsImpersonateClient to true, a running thread will use primary token (SYSTEM) to do all SMB operations... for Windows 2003 and earlier, the exploit modify token user and groups in PCtxtHandle to get SYSTEM
Controlling the MDL lets you “write-what-where” the primitive.
Defense Impairment
2 techniques
Defense Impairment
A bug in the process of converting FEA (File Extended Attributes) from Os2 structure to NT structure by the Windows SMB implementation (srv.sys driver) leads to buffer overflow in the non-paged kernel pool.
write_data(conn, info, info['session']+info['SESSION_ISNULL_OFFSET'], '\x00\x01')
Discovery
1 technique
Discovery
WannaCry was based on a leaked NSA exploit called EternalBlue which scanned the internet for any computer with an available SMB port
Lateral Movement
4 techniques
Lateral Movement
Around January this year, Microsoft was tipped off ... that the NSA's Eternalblue cyber-weapon, which can compromise pre-Windows 10 systems via an SMBv1 networking bug, had been stolen and was about to leak into the public domain.
EternalBlue required zero user interaction and zero authentication, allowing it to spread laterally across networks at machine speed. The article also recommends restricting internal SMB traffic to limit the blast radius of lateral movement.
compromised an old off-domain Windows XP system with EternalBlue
Among the tools released, the Shadow Brokers published EternalBlue — a family of zero-day vulnerabilities targeting Windows that allowed hackers to break into computers on a hacked network, rapidly expand their access, and deploy self-propagating worms.
Collection
1 technique
Collection
Now, read_data() and write_data() can be used for arbitrary read and write... read session struct to get SecurityContext address
Command and Control
1 technique
Command and Control
Thus, it’s possible to send: SMB_COM_NT_TRANSACT followed by SMB_COM_TRANSACTION2_SECONDARY. This situation can lead to wrong data parsing, and this bug enables Bug A by treating Dword as Word.
Exfiltration
1 technique
Exfiltration
The first installment centers on the Shadow Brokers — an enigmatic group that surfaced online, dumped a trove of hacking tools believed to belong to the NSA, and then vanished.
Recent activity
44 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.