MasterSoft interview question

How to avoid middle man attack