step: the immune system attacks bacteria / viruses once they have invaded the body & attacking something is a kind of method for defending against something
inference: the immune system defends the body against bacteria and viruses