Earlier this year, when Keith Alexander resigned as head of the National Security Agency, he began trying to cash in on expertise he'd gained while in government, pitching himself as a security consultant who could protect Wall Street banks and other large corporations from cyber-attacks by hackers or foreign governments.