Adversaries may attempt to find cloud groups and permission settings. The knowledge of cloud permission groups can help adversaries determine the particular roles of users and groups within an environment, as well as which users are associated with a particular group.

With authenticated access there are several tools that can be used to find permissions groups. The <code>Get-MsolRole</code> PowerShell cmdlet can be used to obtain roles and permissions groups for Exchange and Office 365 accounts (Citation: Microsoft Msolrole)(Citation: GitHub Raindance).

Azure CLI (AZ CLI) and the Google Cloud Identity Provider API also provide interfaces to obtain permissions groups. The command <code>az ad user get-member-groups</code> will list groups associated to a user account for Azure while the API endpoint <code>GET https://cloudidentity.googleapis.com/v1/groups</code> lists group resources available to a user for Google.(Citation: Microsoft AZ CLI)(Citation: Black Hills Red Teaming MS AD Azure, 2018)(Citation: Google Cloud Identity API Documentation) In AWS, the commands `ListRolePolicies` and `ListAttachedRolePolicies` allow users to enumerate the policies attached to a role.(Citation: Palo Alto Unit 42 Compromised Cloud Compute Credentials 2022)

Adversaries may attempt to list ACLs for objects to determine the owner and other accounts with access to the object, for example, via the AWS <code>GetBucketAcl</code> API (Citation: AWS Get Bucket ACL). Using this information an adversary can target accounts with permissions to a given object or leverage accounts they have already compromised to access the object.
Cloud Groups
source_name: mitre-attack  url: https://attack.mitre.org/techniques/T1069/003  external_id: T1069.003     source_name: AWS Get Bucket ACL  description: Amazon Web Services. (n.d.). Retrieved May 28, 2021.  url: https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketAcl.html     source_name: Palo Alto Unit 42 Compromised Cloud Compute Credentials 2022  description: Dror Alon. (2022, December 8). Compromised Cloud Compute Credentials: Case Studies From the Wild. Retrieved March 9, 2023.  url: https://unit42.paloaltonetworks.com/compromised-cloud-compute-credentials/     source_name: Black Hills Red Teaming MS AD Azure, 2018  description: Felch, M.. (2018, August 31). Red Teaming Microsoft Part 1 Active Directory Leaks via Azure. Retrieved October 6, 2019.  url: https://www.blackhillsinfosec.com/red-teaming-microsoft-part-1-active-directory-leaks-via-azure/     source_name: Google Cloud Identity API Documentation  description: Google. (n.d.). Retrieved March 16, 2021.  url: https://cloud.google.com/identity/docs/reference/rest     source_name: Microsoft AZ CLI  description: Microsoft. (n.d.). az ad user. Retrieved October 6, 2019.  url: https://docs.microsoft.com/en-us/cli/azure/ad/user?view=azure-cli-latest     source_name: Microsoft Msolrole  description: Microsoft. (n.d.). Get-MsolRole. Retrieved October 6, 2019.  url: https://docs.microsoft.com/en-us/powershell/module/msonline/get-msolrole?view=azureadps-1.0     source_name: GitHub Raindance  description: Stringer, M.. (2018, November 21). RainDance. Retrieved October 6, 2019.  url: https://github.com/True-Demon/raindance     