Microsoft's president called on the government to apply the same rules it would to weapons in the physical world to viruses in cyberspace.
"We need governments to consider the damage to civilians that comes from hoarding these vulnerabilities and the use of these exploits," Smith wrote.
There isn't a permanent fix for WannaCry, but Microsoft said its team has been working "around the clock since Friday to help all our customers who have been affected by this incident."
On Monday, about $38,000 were already paid to those behind the attacks, the BBC reported. The figure could climb as new infections were reported in Asia.