The KGB started infiltrating Afghanistan as early as 27 April 1978. During that time, the People's Democratic Party of Afghanistan (PDPA)[26] was planning the overthrow of President Mohammed Daoud Khan. Under the leadership of Major General Sayed Mohammad Gulabzoy and Muhammad Rafi – code named Mammad and Niruz respectively – the Soviet secret service learned of the imminent uprising. Two days after the uprising, Nur Muhammad Taraki, leader of the PDPA, issued a notice of concern to the Soviet ambassador Alexander Puzanov and the resident of Kabul-based KGB embassy Viliov Osadchy that they could have staged a coup three days earlier hence the warning. On that, both Puzanov and Osadchy dismissed Taraki's complaint and reported it to Moscow, which broke a 30-year contract with him soon after.[25][27]
The centre then realized that it was better for them to deal with a more competent agent, which at the time was Babrak Karmal, who later accused Taraki of taking bribes and even of having secretly contacted the United States embassy in Kabul. On that, the centre again refused to listen and instructed him to take a position in the Kabul residency by 1974. On 30 April 1978, Taraki, despite being cut off from any support, led the coup which later became known as Saur Revolution, and became the country's leader, with Hafizullah Amin as Vice-Chairman of the Council of Ministers and Vice-Chairman of the Revolutionary Council. On 5 December 1978, Taraki compared the Saur Revolution to the Russian Revolution, which struck[clarification needed] Vladimir Kryuchkov, the FCD chief of that time.[25][27]
On 27 March 1979, after losing the city of Herat in an uprising, Amin became the next Prime Minister, and by 27 July became Minister of Defense as well. The centre though was concerned of his powers since the same month he issued them a complaint about lack of funds and demanded US$400,000,000. Furthermore, it was discovered that Amin had a master's degree from Columbia University, and that he preferred to communicate in English instead of Russian. Unfortunately for Moscow's intelligence services, Amin succeeded Taraki and by 16 September Radio Kabul announced that the PDPA received a fake request from Taraki concerning health issues among the party members. On that, the centre accused him of "terrorist" activities and expelled him from the party.[25][27]