Microsoft, Google use artificial intelligence to fight hackers