After years of light regulation, the tech industry is coming under scrutiny from Congress and regulators due to a series of privacy breaches.