Leaked intelligence from military spies is helping turn the civil war in the resistance’s favour, BBC finds.