The bug was implanted inside the phone of an aide to the Prime Minister, planted by the IB during V. P. Singh’s regime. That provided IB with vital clues to the happenings in the PMO. The end products, I understand, were delivered to Rajiv Gandhi even when Chandrashekhar warmed the seat for the former. In the melee of fast political and bureaucratic changes someone had forgotten to remove the spy contraption from the PMO.