A former CIA agent pleaded guilty Friday to spying for China, the US Department of Justice announced.