The fact that states control these programs like military weapons makes things really murky. Is Apple even allowed to buy a copy and close all the backdoors it uses? Or sue the Israeli government for compromising their operating systems? I doubt it.
But honestly what do you expect? Any nations military will always stockpile weapons. Malware isn’t just “controlled like weapons” they ARE weapons.