The process is known as Genetic Engineering.
This is the technique in which the manipulation the DNA of the bacteria is done which makes the bacteria produce the product of our interest.
This technique can also be used to treat a disease by manipulating the gene.
In this process the gene producing the harmful protein is suppressed sop that it does not produces the protein which is deadly or not required.