There is no evidence of anything totally new arising that was not there before. This is information transfer, not information creation. So far, we have dealt with situations in which resistance was obviously already there. The mechanism that is put forward for this past evolution is invariably mutation a copying mistake, an accidental change in the DNA code passed on to the offspring. So that brings us to the final way in which bacteria can become resistant.
Some germs become resistant through mutation.
Interestingly, where this happens, there is no clear-cut evidence of information arising. All such mutations appear to be losses of information, degenerative changes. For example, loss of a control gene may enhance resistance to penicillin. Some antibiotics need to be taken into the bacterium to do their work. There are sophisticated chemical pumps in bacteria which can actively pump nutrients from the outside through the cell wall into the germ's interior.