All checks
Medium Cognito · regional

MFA should be enabled for Cognito user pools

Checks that a Cognito user pool with a password-only sign-in policy has MFA required or optional; off fails. MFA adds a second factor, something the user has, to the password of local users. Optional MFA passes even though users who have not set up a factor still sign in with the password alone.

service
Cognito
severity
Medium
scope
evaluated in every region

How to fix it

  • Can break clients: With Require MFA, a user who has no MFA factor cannot sign in until they set one up, so add MFA setup to sign-up or onboarding first.

In the console

Amazon Cognito → User pools → the pool → Sign-in → Multi-factor authentication

MFA enforcement
Require MFA, or Optional MFA if threat protection's adaptive authentication is used
MFA methods
At least one: Authenticator apps, SMS message (needs an SNS role) or Email message (needs SES)

With the AWS CLI

aws cognito-idp set-user-pool-mfa-config --user-pool-id <user-pool-id> --software-token-mfa-configuration Enabled=true --mfa-configuration ON --region <region>

With Terraform

resource "aws_cognito_user_pool" "this" {
  name              = var.user_pool_name
  mfa_configuration = "ON"

  software_token_mfa_configuration {
    enabled = true
  }
}

See which of your accounts this check is failing on.

Book a live scan