By what was XXX replaced?
KGB
After the dissolution of the USSR, the KGB was split into the Federal Security Service and the Foreign Intelligence Service of the Russian Federation.
Federal Security Service