Skip to content
Get started
Bastionary › Knowledge base › MFA and passkeys

Multi-factor authentication: which option is actually secure?

By Bastionary · MFA and passkeys

Introduction

Authentication is the process of verifying the identity of a user or entity. Multi-factor authentication (MFA) enhances security by requiring multiple forms of verification beyond a single password. In this blog post, we will evaluate the security of various MFA options, focusing on SMS OTP, TOTP apps, hardware keys, and passkeys.

Security Evaluation

To compare the security of these MFA options, we will use a scoring system based on three criteria: security, usability, and implementation complexity.

MFA Option Security Usability Implementation Complexity
SMS OTP Low Medium Low
Google Authenticator (TOTP) Medium High Medium
Authenticator App (TOTP) Medium High Medium
Security Key High Medium High
Passkey High High Very High

Security

SMS OTP is the least secure MFA option due to its reliance on SMS delivery, which can be intercepted or spoofed. Google Authenticator (TOTP) and Authenticator App (TOTP) use a shared secret, which is more secure than SMS OTP. Security Keys use a dedicated hardware device, which is more secure than TOTP. Passkeys use a biometric authentication, which is the most secure MFA option.

Usability

Google Authenticator (TOTP) and Authenticator App (TOTP) are the most user-friendly MFA options due to their simplicity and ease of use. SMS OTP is the least user-friendly due to the need to receive and enter the OTP via SMS. Security Keys require additional setup and may be less convenient for some users. Passkeys are the most user-friendly due to their ability to authenticate with a biometric, which is a natural and intuitive process.

Implementation Complexity

SMS OTP is the simplest to add: send a code through an SMS provider and check it, although you pay per message and depend on delivery. TOTP (Google Authenticator or any authenticator app) takes a little more: store a shared secret per user, show it as a QR code at enrolment and accept codes within a small time window. Security keys and passkeys take the most work: WebAuthn registration and sign-in ceremonies, stored public keys and an account-recovery path, and passkeys add syncing across devices.

Bastionary

Bastionary is a self-hosted authentication and billing platform that provides features like feature flags and licensing. It offers a secure and customizable authentication infrastructure that can be used with any MFA option, including SMS OTP, TOTP, Security Keys, and Passkeys. Bastionary can help you protect your applications and services from unauthorized access and ensure that your users are authenticated securely.

Conclusion

The choice of MFA option depends on your specific security requirements, usability needs, and implementation complexity. Security Keys and Passkeys are the most secure and user-friendly MFA options, but they require additional setup and may be more complex for some users. Authenticator apps (TOTP) sit in the middle: more secure than SMS OTP, less phishing-resistant than security keys and passkeys, and the most practical choice for many users. Bastionary can help you create a secure and customizable authentication infrastructure that can be used with any MFA option.

Run it yourself

Bastionary is free, open-source software. Follow the quick start to have it running on your own server, or browse the releases on Git.

Get started