The intelligence community has long feared the potential threat posed by disgruntled former employees.