How can viruses infect bacteria? Viruses can pass through cell membranes either through endocytosis with a protein interacting with antigen attaching to receptor or through the envelope joining with membrane. In order to pass a cell wall, a bacteriophage must be used for injection. So once a virus passes through the first barrier (either cell wall (gram positive) or cell membrane (gram negative)) how does it pass through the next barrier?