Vezi pagina în română

IT Glossary

What is two-factor authentication (2FA) and how does it work?

Two-factor authentication (2FA) means that, after the password, the account asks for one more proof of a different kind: an app code, a phone confirmation, a security key or a fingerprint.

6
sections
6
questions answered

Two-factor authentication (2FA) is a sign-in method that asks for a second proof from a different category on top of the password — something you have, such as a phone or a security key, or something you are, such as a fingerprint — so that a stolen password is no longer enough to get into the account. When two or more factors are required, the general term is multi-factor authentication (MFA). The US standard NIST SP 800-63B-4 requires "two distinct authentication factors" for assurance level AAL2 (section 2.2). The effect has been measured: a 2023 study by Microsoft researchers (Azure AD accounts) found that MFA reduces the risk of account compromise by 99.22%, and by 98.56% for accounts with leaked credentials.

Three things matter for a company. Passwords are lost through phishing, reuse across sites and breaches at other services, and the second factor stops an attacker even when they hold the password. The feature is free at Google, at Microsoft and at most hosting providers. The one real decision is the recovery procedure, agreed before someone loses a phone.

Why it matters for your business

A stolen password is no longer enough

Phishing and data breaches become minor incidents: without the second factor, the attacker stays outside the account even with the correct password.

Free at Google, Microsoft and hosting

Google, Microsoft 365 and most hosting providers offer 2FA at no cost; enabling it across company accounts takes a few hours.

Mandatory for payments and NIS2 firms

Online payments require multi-factor authentication (Regulation 2018/389, art. 4), and NIS2 entities apply it through Romania's OUG 155/2024, art. 13 lit. j).

The three factors: what you know, have and are

An authentication factor is a category of proof. There are three: knowledge (something you know: password, PIN), possession (something you have: a phone, a security key, a card) and inherence (something you are: fingerprint, face). The same three categories appear in EU online payments: Commission Delegated Regulation (EU) 2018/389, art. 4(1), requires at least two elements from the categories "knowledge", "possession" and "inherence", and art. 9 requires them to be independent, so that compromising one does not compromise the others.

A password plus a security question is two screens but a single category (both are knowledge), so it is not 2FA. In the NIST guidance biometrics never works alone: it is used only together with a physical authenticator. For biometric data as such see the biometrics term, and for the broader notion see authentication.

2FA, MFA and two-step verification: the difference

2FA means exactly two factors from different categories. MFA means two or more, so every 2FA is also MFA, but not the other way round. Interface names differ although the thing is the same: Google says "2-Step Verification", Microsoft says "two-step verification", and other sites say "two-factor authentication".

Read strictly, "steps" counts the screens you pass through and "factors" counts the categories of proof. A second step from the same category, such as another password, is not a second factor.

Want an estimate for your project?

Message us on WhatsApp. We reply the same working day, and the first 30-minute call is free.

Book a free call

The methods, from weakest to strongest

A code by SMS or phone call is the most widespread method and the weakest of the modern ones. NIST SP 800-63B-4 (section 3.1.3.3) marks it as "restricted" and asks verifiers to take SIM changes and number porting into account. The one-time password (OTP) has its own glossary term. Higher up is the authenticator app, which generates the code on the phone itself, without the telephone network.

A push notification only asks you to tap "Approve". Microsoft Authenticator now requires number matching on every notification: the user types the number shown at sign-in, which stops approvals made by reflex under a flood of prompts.

The strongest are security keys and passkeys (FIDO2/WebAuthn). NIST (section 3.2.5) recognises two phishing-resistance methods, channel binding and verifier name binding, and names WebAuthn (FIDO2) as an example. A code typed by hand can be passed to a fake login page, whereas a cryptographic key is bound to the name of the real site. According to the FIDO Alliance, a passkey is a credential based on FIDO standards, with a cryptographic key pair, unlocked like the phone or computer (fingerprint, face or PIN) and phishing-resistant.

Where it is mandatory: online payments and NIS2

For online payments, strong customer authentication (SCA) requires two or more elements under Delegated Regulation (EU) 2018/389, art. 4(1), applicable from 14.09.2019 (art. 38(2)). Payment details are under the OTP term.

The NIS2 Directive (EU 2022/2555), art. 21(2)(j), lists "the use of multi-factor authentication or continuous authentication solutions" among security measures, "as appropriate". In Romania the measure appears in OUG 155/2024 (the NIS2 transposition), art. 13 lit. j), within the measures of art. 11(1). The duty concerns essential and important entities, not every company. A firm outside the NIS2 scope has no legal 2FA duty; it has only the reasons above.

Frequently asked questions

What is the difference between 2FA and MFA?

2FA asks for exactly two factors from different categories, for example the password and a code from an app. MFA asks for two or more factors. Every 2FA is therefore also MFA, but not every MFA is 2FA, because it can use three factors.

Is Google 2-Step Verification the same as 2FA?

Yes, in practice: it is the name Google gives to two-factor authentication. After the password, the second step can be a phone prompt, an app code, a security key or a passkey, exactly as with 2FA.

Can two-factor authentication be bypassed?

Yes. A fake login page can ask for the code in real time and pass it on, and repeated push prompts count on the reflex of tapping "Approve". FIDO2 keys and passkeys resist because they are bound to the real site's name (NIST, section 3.2.5).

Does a passkey replace two-factor authentication?

It replaces the password and the code in a single step that still uses two factors: the device (possession) and its unlock by fingerprint, face or PIN. The FIDO Alliance describes passkeys as phishing-resistant.

What do we do if an employee loses the phone with the code app?

Backup codes are generated at setup and kept in the company password manager, and the account administrator can reset the factor. The recovery procedure is decided before an incident, not after.

Which company accounts get 2FA first?

Start with email, which resets every other password. Then Microsoft 365 or Google Workspace admin accounts, internet banking where optional factors exist, hosting and the domain registrar, then social media and ad accounts.