Alibaba Cloud RAM access keys provide programmatic access to an account. The root account is the most privileged user and should not have access keys. All root access keys should be removed to limit compromise vectors and encourage role-based accounts following the principle of least privilege.
Risk
The root account has unrestricted access to all resources and services. If its access keys are compromised, an attacker gains full administrative control, including ability to create, modify, or delete any resource. This poses critical risk to the confidentiality, integrity, and availability of all cloud resources and data.
prowler alibabacloud --checks ram_no_root_access_key
Recommendation
Remove all access keys associated with the root account to reduce the attack surface and encourage the use of role-based accounts with least privilege.
Remediation
aliyun ram DeleteAccessKey --UserAccessKeyId <access_key_ID>
- Log on to the RAM Console by using your Alibaba Cloud account (root account).
- Move the pointer over the account icon in the upper-right corner and click AccessKey.
- Click Continue to manage AccessKey.
- On the Security Management page, find the target access keys and click Delete to delete the target access keys permanently.
Source Code
Resource Type
ALIYUN::RAM::User