man-in-the-middle attack
noun
Active eavesdropping in which the attacker makes independent connections with the victims and relays messages between them. The victims thus believe they are communicating directly with one another, but in fact the attacker has interposed himself or herself between them.