Microsoft on Friday took the unprecedented step of issuing patches for long-demoted versions of Windows, including Windows XP, to immunize PCs from fast-spreading ransomware that has crippled machines worldwide.

To stymie "WannaCrypt" attacks -- which encrypted files on thousands of PCs used by the U.K.'s National Health Service (NHS), causing chaos in many hospitals -- Microsoft published patches for Windows XP, Windows 8 and Windows Server 2003. All had been retired from support: Windows XP in April 2014, Windows 8 in June 2016, Windows Server in July 2015.

"We are taking the highly unusual step of providing a security update for all customers to protect Windows platforms that are in custom support only, including Windows XP, Windows 8, and Windows Server 2003," said Phillip Misner, a principal security group manager at the Microsoft Security Response Center (MSRM), in a post to a company blog late Friday.

In fact, Microsoft has never issued security updates for software as long retired from support as Windows XP, which fell off the list more than three years ago.

Microsoft had the Windows XP, 8 and Server 2003 updates already in hand -- they were versions of MS17-010, a six-vulnerability fix delivered in March to newer editions, such as Windows 7 -- because it offers post-retirement assistance to corporate customers under a pay-for-patches program called "Custom Support."

The WannaCrypt ransomware spreads to other Windows PCs on a network by exploiting the vulnerabilities Microsoft patched with MS17-010; the malware can also infect other systems by sniffing for vulnerable machines connected to the public Internet. After WannCrypt is installed, it encrypts data on the PC, then displays an extortion note demanding between $300 and $600 to unlock the files.

"Given the potential impact to customers and their businesses, we made the decision to make the Security Update for platforms in custom support," Misner said in explaining Microsoft's motivation. "This decision was made based on an assessment of this situation, with the principle of protecting our customer ecosystem overall, firmly in mind."

The fact that news reports widely cited Windows XP-powered PCs as instrumental in the worm-like spread of WannaCrypt -- including in the NHS' networks -- was almost certainly a factor in Microsoft's decision. In early 2014, prior to Windows XP's retirement, the U.K. government contracted for one year of custom support. The Government Digital Service did not renew the contract, leaving XP machines helpless in the face of attacks after April 2015.

Computerworld