Cybersecurity will need to become a central focus for the Coast Guard and Navy as new war capabilities develop, military officials say.