MitM attack detection