The crippling ransomware, which has ripped through 150 countries and already affected some 200,000 computers - including critical NHS systems - is a "wake up call", the technology giant warned.
"Those tools have been used by the hackers' group, who are now demanding ransom to release the system they had hacked", he said.
Smith said in a company blog post that governments should alert vendors to software vulnerabilities instead of hoarding them and keeping them secret.
IT Minister Prasad revealed that government had issued an advisory in March itself, informing administrators about the "software patch" in Microsoft which could be used against a possible attack.
The ransomware, called WannaCry, locked down all the files on an infected computer and asked the computer's administrator to pay in order to regain control of them. "The advisory can help people to take back-ups as well as check the security of their computer system", Maharashtra state's cyber cell head and government's information and publicity department, Brijesh Singh, told PTI.
Russia's interior ministry said some of its computers had been hit, while the country's banking system was also attacked, although no problems were detected, as was the railway system. "The fact that so many computers remained vulnerable two months after the release of a patch illustrates this aspect". Lieu said the current disclosure process is not transparent, and often misunderstood.
"It spread very, very quickly", Smith said. "There is an urgent need to get to the bottom of how this happened and who is responsible".
Internet security firm Kaspersky said the largest number of attacks occurred in Russian Federation, but Ukraine, India, and Taiwan have also been hit. Matthew Hickey, the founder of HackerHouse, wrote on his @hackerfantastic Twitter account. "No matter how this was disclosed or when it was disclosed, some percentage of businesses would not have applied". In the United Kingdom, hospitals and medical practices were infected resulting in the cancellation of medical appointments. The computer flashes a message asking for the payments, if they want access to the data.
Microsoft, which sells the Windows operating system, has been criticized for years for its security shortcomings. In the USA, for instance, the federal government relies on legacy systems, spending $60 billion each year to maintain old technology, while spending just $20 billion on modernization. Install Microsoft's patch. 3.
Researchers say this type of ransomware will continue. "See screenshots, I've tried to hack it".
Mark Mager, senior researcher at security firm Endgame, said it's the most prevalent and effective example of ransomware worming through networks around the world.
It is the largest ransomware attack observed in history.