Framework for Man-In-The-Middle attacks