Ensure there are no custom Resource Access Management (RAM) policies that allow full administrative privileges available in your Alibaba Cloud account, in order to follow the Principle of Least Privilege (POLP) and provide the RAM users, groups, and roles associated with these policies the minimal amount of access required to perform their tasks. A custom RAM policy that provides full administrative permissions is a policy that contains the following combination of elements: "Effect": "Allow", "Action": "", "Resource": "".
Providing full administrative privileges instead of restricting the access to the minimum set of permissions can expose your AWS cloud resources to potentially unwanted actions. Trend Vision One™ strongly recommends creating and using custom RAM policies that implement the Principle of Least Privilege (i.e. providing the minimal set of actions required to perform successfully the designated tasks) instead of using overly permissive policies.
Audit
To determine if there are any custom RAM policies that allow full administrative privileges available in your Alibaba Cloud account, perform the following actions:
Remediation / Resolution
To detach custom policies that provide full administrative privileges from RAM identities and decommission them, perform the following actions:
References
- Alibaba Cloud Documentation
- Policy overview
- Manage policy references
- Create custom policies
- Delete a custom policy
- Alibaba Cloud CLI Documentation
- ListPolicies
- GetPolicy
- ListEntitiesForPolicy
- DetachPolicyFromUser
- DetachPolicyFromRole
- DetachPolicyFromGroup