A cyber prodigy defended companies against intrusion while continuing to amass data through a series of his own hacks.