The NSA has used a new exploit for WannaCrypt ransomware, a worm that has infected more than 100,000 computers worldwide.
The agency published details of the exploit on Tuesday, saying that it was created by a team of NSA researchers using a technique called Sentinel.
The NSA said the technique was developed to detect and counter a new variant of WannaCrow ransomware.
WannaCo ransomware is also known as WannaTrojan and is also believed to be being used by the Islamic State group and the Chinese government.
The NSA did not provide any details about the type of malicious code that it used or the payload it used to attack the infected computers.
WannaCry is the most widely distributed ransomware attack to date, affecting millions of computers across the globe.
It has since spread to a few countries, including Ukraine and Georgia.
The ransomware is encrypting files and demanding a ransom to decrypt them.
The ransom can be anywhere from $300 to $7,000 per file.
The ransomware has been blamed for causing widespread data loss and damage to financial institutions, such as banks, credit card companies, and online retailers.
The virus has infected at least 2.3 million computers worldwide, according to the New York Times.