1) By keeping the bacteria a secret: not telling which bacteria can be used like this, not telling where you can find it in the nature, not giving anyone a piece of the bacteria culture to use.
2) By patenting the industrial process that makes use of the bacteria, thus gaining an exclusive commercial right to it.