Evidence has emerged of close cooperation between British intelligence and the regime of Colonel Gaddafi.