Military fends off major cyber attack