TCP session hijacking is a security attack on a user session over a protected network. ... Another type of session hijacking is known as a man-in-the-middle attack, where the attacker, using a sniffer, can observe the communication between devices and collect the data that is transmitted.