Check provider logo

No root account access key exists

ram_no_root_access_key

Severitycritical
Serviceram
by Prowler

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.

Run this check with Prowler CLI

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

CLI

aliyun ram DeleteAccessKey --UserAccessKeyId <access_key_ID>

Other
  1. Log on to the RAM Console by using your Alibaba Cloud account (root account).
  2. Move the pointer over the account icon in the upper-right corner and click AccessKey.
  3. Click Continue to manage AccessKey.
  4. 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

References