Foreign influence

If foreign influence got district attorneys elected could that be construed as an act of war against the US?