The first of seven steps in the HIV life cycle. When HIV attacks a CD4 cell, the virus binds (attaches itself) to molecules on the surface of the CD4 cell: first a CD4 receptor and then either a CCR5 or CXCR4 coreceptor.