The present invention concerns the use of a strain of a mycobacterium of the Mycobacterium tuberculosis complex in which a mspA gene capable of expressing a porin A of Mycobacterium smegmatis has been inserted, to produce a vaccine for the prevention of infection with a bacterium of the Mycobacterium tuberculosis complex in a host having eukaryote cells, preferably macrophages, the said strain of mycobacteria thus transformed having reduced growth in the said eukaryote cells.