Control: 1.10 Ensure multi-factor authentication (MFA) is enabled for all IAM users that have a console password
Multi-factor Authentication (MFA) adds an extra layer of protection on top of a username and password. With MFA enabled, when a user signs in to an AWS console, they will be prompted for their username and password as well as for an authentication code from their virtual or physical MFA device. It is recommended that MFA to be enabled for all users that have a console password.
Enabling MFA provides increased security for console access as it requires the authenticating principal to possess a device that creates a time-sensitive key and have knowledge of a credential.
Perform the following action to enabled virtual MFA for the intended user:
- Sign into the AWS console, and navigate to IAM Console.
- In the left navigation pane, choose Users.
- In the user name list, choose the name of the intended user.
- Choose the Security credentials tab, and then choose Manage for
Assigned MFA Device.
- In the Manage MFA device wizard, choose virtual MFA device and click on continue.
- IAM generates and displays configuration information for the virtual MFA device, including a QR code graphic.
- Open your virtual MFA application. (For a list of apps that you can use for hosting virtual MFA devices, see Virtual MFA Applications. If the virtual MFA application supports multiple accounts (multiple virtual MFA devices), choose the option to create a new account (a new virtual MFA device).
- Determine whether the MFA app supports QR codes, and then do one of the following:
- Use the app to scan the QR code. For example, you might choose the camera icon or choose an option similar to Scan code, and then use the device's camera to scan the code.
- In the Manage MFA Device wizard, choose Show secret key for manual configuration, and then type the secret configuration key into your MFA application.
- Once you configure, the virtual MFA device starts generating MFA codes.
- Type two consecutive MFA codes, MFA code 1 and MFA code 2 fields. Then click Assign MFA. Now the virtual MFA is enabled for the AWS account.
steampipe check aws_compliance.control.cis_v130_1_10
This control uses a named query:iam_user_console_access_mfa_enabled