He served Mr. Fox as national security advisor before taking the UN post .