When Michael Holston became head of Hewlett-Packard Company‘s legal department in 2007, the Silicon Valley icon wasn’t in good shape.

Controversial CEO Carly Fiorina had been ousted two years earlier, and a source inside the company had been leaking the content of boardroom meetings to reporters. The hunt for that leak ultimately turned into a spying scandal that caused former general counsel Ann Baskins to resign, after she was accused of letting private investigators get access to phone records of reporters and HP employees.