Risk Level: Medium
Description:
This plugin guarantees that all users in the account have access to a multi-factor authentication device. To enable two-factor authentication, MFA devices should be set up on user accounts.
SentinelOne CNS strongly recommends enabling an MFA device for the user account.
Note:
AWS updates the Credential Report every 4 hours, it'll get updated soon please check back later. https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_getting-report.html
Configuration Parameters
Check for MFA for programmatic users: The parameter holds the boolean value for checking the multi-factor authentication (MFA) for all users in the account. When the value is set to be TRUE, it simply ignores checking for programmatic users without MFA. By default, the value is set to be FALSE.
About the Service :
AWS ID and Access Management (IAM) allows you to securely manage access to AWS services and resources. With IAM, AWS users and groups can be established and managed and permissions used to enable access by AWS resources and prohibit them.
We can discover and adjust the rules so that only the services are accessible. We can thus adhere better to the less privileged principle.
Impact :
Not having an MFA-protected root account makes AWS resources and services vulnerable to attacks. An MFA device signature adds an extra layer of protection on top of existing root credentials making AWS root account virtually impossible to penetrate without the MFA-generated passcode.
Steps to reproduce :
- Sign-in to AWS management console.
https://ap-south-1.console.aws.amazon.com/console/ - Navigate to IAM Management Console.
https://console.aws.amazon.com/iamv2/ - Click on Users in the left navigation bar under Access Management.
- Select the user that you want to examine. Then navigate to the Security Credentials tab and then examine.
- We can clearly see that the password is enabled for the user but the Assigned MFA device shows that no MFA device has been assigned to the user. This suggests that the user’s MFA has been disabled. Hence, it is not following best security practices.
- Repeat the steps for other users too.
Steps for remediation :
- Sign-in to AWS management console.
- https://ap-south-1.console.aws.amazon.com/console/
- Navigate to IAM Management Console.
https://console.aws.amazon.com/iamv2/ - Click on Users in the left navigation bar under Access Management.
- Select the user that you want to examine. Then navigate to the Security Credentials tab and then examine.
- We can clearly see that the password is enabled for the user but the Assigned MFA device shows that no MFA device has been assigned to the user. This suggests that the user’s MFA has been disabled. Hence, it is not following best security practices.
- Click on “Manage” to set up an MFA device for the root account.
- Select “Virtual MFA device” and click “Next Step” in the Manage MFA Device dialog box.
- Now install the AWS MFA-compatible application and click Next Step.
https://support.google.com/accounts/answer/1066447?hl=en - Scan the QR code and enter two consecutive authentication passcodes in the Authentication Code 1 and Authentication Code 2 boxes, then click Activate Virtual MFA in the Set up virtual MFA device dialogue box.
- Click on Assign MFA and then complete the setup procedures.
- Repeat the steps for other users with MFA disabled too.
References: