Pentagon officials say the Defense Department still doesn't have the capabilities and resources needed to defend against a major cyberattack from another nation or other tech-savvy criminals. But officials say they are looking for more creative ways to attract high-tech experts into the military and the department, including beefed up National Guard and Reserve recruiting in places like California's Silicon Valley.

Eric Rosenbach, the principle cyber adviser to Defense Secretary Ash Carter, is telling senators that the Pentagon wants to find ways to bring talent into the department without individuals having to go through one of the military services.

He also said that even though the U.S. has the ability to launch a cyberattack against an enemy, officials should avoid doing that because America would be vulnerable to a counterattack.