Guns aren't a great comparison because the use can (and usually is) wholly defensive or acts as a deterrent -- i.e if you are known to be armed then you'd be left alone.
Malware on the other hand is almost exclusively offensive and governments around the world almost exclusively use it for nefarious reasons (i.e NSO Group's clientele and published usages).
So maybe until now we didn't see a country with cyber in their strategy being invaded by another?
Just to drive the point: at the same time that they first requested the software (2014) the country was the biggest arms dealer for the Syrian civil war[0]. A large part of the arms they received after what happened in Crimea ended up making its way to countries like Syria[1] and it's likely a driving reason behind why the country was so ill-equipped with the current conflict. There is little doubt that the physical arms will eventually be sold off after this conflict is over, and with malware that can be copied quite easily it's likely it will be sold the moment it's acquired to any bidder that puts their hand up.
[0] https://qz.com/211603/how-ukrainian-arms-dealing-connects-to...
[1] https://www.reuters.com/article/us-ukraine-crisis-arms-insig...
As ranked by countries and institutions in countries that rank themselves lower no doubt.
Oh sure, I agree. But that's bad governments not bad lines of code.
Look I see that there is more evil than good done with this stuff, but it's not the stuffs fault.
Nor are there usually any efficient checks&balances in place to make sure these tools are actually only used for their originally declared purpose.
That's why the mass-surveillance creep, since the Patriot Act, has been very real and for the most part completely unchecked, FISA court just rubber-stamping anything that comes their way.
In that context I'd rather see resources put towards fixing vulnerabilities, instead of leaving them open so they can be exploited by intelligence and police agencies. This approach would also prevent much more "evil" than hoping how the "good Big Brother" will not abuse his power and instead solely use the same vulnerabilities to stop the "evil" guys.
[0] https://en.wikipedia.org/wiki/Definition_of_terrorism#United...
I'm astonished that there are so many people here that are willing to defend government use of malware.
Malware is software deliberately designed to cause devices to malfunction. Since when is it legitimate for any government to deliberately break the property of a private citizen who hasn't been convicted of any offence, without at least a court order?