President should consult with Congress on rules for cyberattacks, Rep. Thornberry says

But he argued that Congress should have an opportunity to shape the rules for how and when U.S. hackers attack enemy systems.

"The more you have them sorted out ahead of time, the smoother things will go when the electrons start flying," Thornberry said.

The United States reportedly used the Stuxnet worm to destroy Iranian nuclear centrifuges, but the U.S. government has never acknowledged its involvement in a cyberattack.