The NotPetya malware outbreak, which has impacted organizations worldwide, is now believed to be connected to exploits developed by the National Security Agency (NSA). Researchers at F-Secure have uncovered evidence indicating that the malware creators may have gained access to two critical NSA exploits—EternalBlue and EternalRomance—several weeks before they were publicly leaked.

The timeline suggests that the component of NotPetya designed to leverage these exploits was likely completed as early as February. Analysis of code remnants shows that the malware integrated NSA exploits seamlessly, implying that its developers had prior access to the NSA’s hacking tools. This finding points to the possibility that development began well before the exploits became widely available.
The exploits, part of a broader collection of hacking tools leaked on April 14 by a group known as the Shadow Brokers, quickly found their way into the hands of malicious actors. Following the leak, hackers exploited EternalBlue to compromise Microsoft Windows systems, particularly those running outdated versions. This activity led to the outbreak of WCry ransomware on May 12, which infected approximately 727,000 machines across 90 countries.
F-Secure’s analysis indicates that the sophistication of NotPetya’s spreading mechanism suggests extensive development and testing. Unlike other malware components that appeared briefly assembled, NotPetya’s infection engine combined NSA exploits with established hacking tools such as Mimikatz, PSExec, and WMIC. This combination created a highly effective malware capable of infecting both patched and unpatched Windows computers.
The advanced nature of the malware raises questions about its origins. If the timestamps embedded in the code are accurate, they suggest that the developers knew or had access to the NSA exploits before their public release. This could mean that NotPetya was among the first malware to exploit NSA-developed tools in the wild prior to their exposure, hinting at a possible connection with the Shadow Brokers, either as collaborators or clients.
The situation is further complicated by cybersecurity events preceding the outbreak. After revealing the exploits, the Shadow Brokers conducted an auction, prompting the NSA to warn Microsoft, which then released patches to fix the vulnerabilities. However, Microsoft canceled its scheduled Patch Tuesday in February without public explanation, despite the circulating exploit code and escalating threats.
When Patch Tuesday resumed in March, Microsoft issued an urgent update addressing EternalBlue. Still, many systems remained vulnerable, especially those running Windows 7. This allowed malware like WCry to spread rapidly, exposing persistent security gaps.
The emerging evidence linking NotPetya to NSA leaks suggests a troubling scenario. It implies that the malware developers may have had direct ties to the Shadow Brokers and potentially exploited vulnerabilities long before they were publicly disclosed. This situation underscores the risks associated with government-developed hacking tools leaking into malicious hands and the broader challenges in cybersecurity.
The appearance of the Shadow Brokers in August marked a significant escalation in the threat landscape, allegedly hacking NSA developers and releasing tools associated with the Equation Group, a hacking unit linked to the NSA’s Tailored Access Operations. These developments emphasize the urgent need for both government and private-sector organizations to strengthen defenses against exploitation of their own vulnerabilities.
As investigations continue, the cybersecurity community remains vigilant. The cases underscore the importance of proactive security measures and the potential consequences of uncontained access to powerful exploits, which can be wielded by malicious entities long after their creation.
Corrections and clarifications: contact@avorz.com
How this was reported: /how-we-report/