The Pentagon has concluded that cyber attacks are “acts of war” and may therefore merit a full military response.