At least twice now I heard most sites implement 2FA/MFA poorly and after X amount of attempts it should lock you out. They didn't give clear enough information for me to know what they're talking about, actually they were complete shit at articulating their words so I suspect they have no idea about anything but hearing it enough made me wonder
How should 2FA/MFA be implemented? What are common threats? I heard from bad sources that people bypass TOTP by creating a phishing site and basically MITM the password and code. Another source said some attackers do credential stuffing and if they find hits they'll send codes, which I'm assuming isn't TOTP but an activation link a user can click on to grant access? I have no idea why people mention locking out after X tries since neither attacks seem to be trying many times.
So far from what I can tell I should do the following
- Rate limit the password so an attacker can't try 10+ passwords for a specific user, or 100s of passwords from a single IP address
- Don't send SMS links unless maybe they have to click confirm allow the user in after clicking the link?
I'm not sure what else I should do related to multi factor authentication