detect and attack cancer cells, boosting the immune system . Some bacteria can also produce toxins that harm cancer cells, causing apoptosis . Bacteria can also be genetically modified to give different genes to cancer cells, which can either kill the cells or enhance treatment . Bacteria can also be used for detection if the tumor is in an earlier stage .