> I don't think there is much you can do about being targeted by a military, simply because of how unique the attack vector is.
You could choose not to invade other countries.
I guess, but that doesn't sound like something in the control of a single individual company.
This (as with defense) is kind of outside Google or Yandex's purview.