Huawei Cloud IAM users should have MFA enabled. MFA adds an extra layer of protection on top of a username and password. With MFA enabled, when a user signs in to the Huawei Cloud console, they are prompted for their username and password as well as for an authentication code from their MFA device.
Risk
Without MFA, a compromised user password enables unauthorized access to cloud resources. An attacker could modify, delete, or create resources depending on the user's permissions, harming confidentiality, integrity, and availability.
prowler huaweicloud --checks iam_user_mfa_enabled
Recommendation
Enable MFA for all IAM users and enforce MFA at the account level.
Remediation
hcloud IAM UpdateLoginProtect --user_id=<user_id> --login_protect.enabled=true --login_protect.verification_method="vmfa"
- Log on to the Huawei Cloud console as an administrator.
- Choose IAM & Security.
- Click Users.
- Select the target user.
- Click the Security Settings tab.
- In the Virtual MFA Device section, click Enable.
- Scan the QR code with a virtual MFA application (e.g.,
Google Authenticator). - Enter two consecutive verification codes to bind the MFA device.
Source Code
Resource Type
NotDefined