Group B streptococcus (GBS) is a bacteria about 25 ... Toward the end of your pregnancy, your healthcare provider will painlessly swab the lower end of your vagina and rectum.