Combating security threats through adaptive multi-factor authentication