Attacks Americans? Come on now, don't go overboard sir.
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.