The present invention relates to a process for the preparation of a compound of formula (I) CN SOCF3 [I] said process comprising oxidizing a compound of formula (II) [II] in a medium comprising at least one oxidizing agent, a solvent system and a corrosion inhibiting compound.