Yet General Hayden would start the job with almost no direct experience at the C.I.A . 's central task of recruiting and running foreign agents , the closest analogy being his two years in the 1980 's as a military attache in the American Embassy in Sofia , Bulgaria , trolling for military insights into the Warsaw Pact .