A geometric reformulation of the martingale problem associated with a set of diffusion processes is proposed. This formulation, based on second-order geometry and It\uf4 integration on manifolds, allows us to give a natural and effective definition of Lie symmetries for diffusion processes