With warnings that the U.S. is ill-prepared for a cyberattack , the White House conducted a 60-day study of how the government can better manage and use technology to protect everything from the electrical grid and stock markets to tax data , airline flight systems , and nuclear launch codes .