Google officially announced the purchase of Mandiant for $5.4 billion, or $23 per share. The deal is scheduled to close this year.