Multi-factor Authentication


Key Concepts Covered

  • Two-Factor Authentication (2FA) is a type of Multi-Factor Authentication (MFA) that requires two forms of identity—typically a password and a secondary factor.
  • 2FA is one of the most effective and low-effort ways to improve WordPress security.
  • WordPress does not include 2FA by default, so plugins are required.

Recommended 2FA Plugins:

  1. Two-Factor (by the WordPress security team)
    • Lightweight, free, no-nonsense
    • Good for offering 2FA as an option
    • Supports TOTP, email codes, and backup codes
    • No JavaScript required—accessible and stable
  2. WP 2FA by Melapress
    • More feature-rich
    • Ideal if you want to enforce 2FA for specific roles
    • Includes user onboarding flow and role based rules
    • Supports multiple authentication methods

2FA Methods:

  • TOTP apps (Google Authenticator, Authy, 1Password): Most secure and widely supported
  • Email codes: Less secure, but better than nothing
  • Hardware tokens: Great security, but easy to lose always keep a spare
  • Push notifications (Duo, Microsoft Authenticator): Excellent but not widely supported in WordPress plugins

Be prepared for recovery scenarios:

  • Users will lose devices or lock themselves out.
  • You must plan for support and recovery.

Key Actions to Take Away

  • Enable 2FA for all admin and editor accounts as a minimum.
  • Choose the Two-Factor plugin for simplicity or WP 2FA for enforced security.
  • Encourage all users to use TOTP apps or Hardware tokens, but allow fallback to email if needed.
  • Ensure all users:
    • Save their backup codes
    • Understand the reset process
  • Don’t wait for users to opt in require 2FA where necessary.

Web Resources

Two-Factor – WordPress “Canonical Plugin” written by the security team. Doesn’t by default enforce 2FA

Two-Factor Enforced – If you did want to enforce 2fa with Two-Factor then I have a very crude plugin to do so.

wp-2fa – MelaPress 2FA solution is the better solution where you have to enforce 2FA or enforce it by role.

Introduction To WordPress Security (coming soon)

Update Management (coming soon)

Browser Security (coming soon)

Configuration Management (coming soon)

Hosting and Backups (coming soon)

Monitoring (coming soon)

Compliance (coming soon)

Putting it all together (coming soon)