MasterSoft Interview Question

How to avoid middle man attack