An increase in hacking attacks has pushed military officials – and especially those training the officers of tomorrow – to adjust their strategies to fight an enemy that’s often hard to find.