Even as Silicon Valley speaks out against the U.S. government’s surveillance methods, technology companies are turning a handsome profit by mining personal data and peering into people’s online habits.

The industry’s profit machine has become tarnished by revelations that the National Security Agency trolls deep into the everyday lives of Web surfers. As a result, companies including Apple, Facebook, Google, Microsoft and Yahoo are becoming more aggressive in their attempts to counter any perception that they voluntarily give the government access to users’ email and other sensitive information.