Interesting idea. The US Constitution authorizes operations against pirates. Article 1,Section 8, Clause 10 “To define and punish Piracies and Felonies committed on the high Seas, and Offenses against the Law of Nations;”
It also covers issuing letters of Marque and Reprisal, Article 1, Section 8, Clause 11 “To declare War, grant Letters of Marque and Reprisal, and make Rules concerning Captures on Land and Water;”
Why not do the suddenly obvious and issue Letters of Marque and Reprisal to private corporations to go after international electronic pirates, foreign agents who are attacking our corporations and infrastructure electronically? Makes sense to me.