The Department of Defense recruited top hackers, paying a “bug bounty” for them to expose gaps in the Marines’ public websites.