So I should believe the U.S thinks it's OK to sell F-15 planes but not OK to sell software? I'm gonna assume yes, there are probably other players in cyber warfare who sell to these countries, probably also the U.S.
The U.S. thinks it's okay to sell F-15s that don't attack Americans and not okay to sell software that attacks Americans. As a, granted, American, I'm not seeing the incoherence.
I was delineating why the U.S. is fine with selling weapons to e.g. Saudi Arabia but would not be happy about those same weapons being sold by Russia to Iran. You seemed confused on that point. There isn't a grand philosophy. It's international relations. It's anarchy. The U.S. government promotes American and allied interests.
Separately, yes, if you're hacking the State Department, you're attacking the U.S. This is consistent with how cyberterrorism is treated by DNI since at least 2014.
Doesn't look like they only target Israeli companies.