Cloud Groups

T1069.003

Sub-technique of T1069 Permission Groups Discovery.View on attack.mitre.org

About this technique

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 Get-MsolRole PowerShell cmdlet can be used to obtain roles and permissions groups for Exchange and Office 365 accounts .

Azure CLI (AZ CLI) and the Google Cloud Identity Provider API also provide interfaces to obtain permissions groups. The command az ad user get-member-groups will list groups associated to a user account for Azure while the API endpoint GET https://cloudidentity.googleapis.com/v1/groups lists group resources available to a user for Google. In AWS, the commands `ListRolePolicies` and `ListAttachedRolePolicies` allow users to enumerate the policies attached to a role.

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 GetBucketAcl API . 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.

Detection rules4

Rules on DetectionCode tagged with T1069.003.

Sigma1

RuleLevelLog source
RBAC Permission Enumeration Attemptlowkubernetes / application

Splunk3

RuleTypeRiskData source
ASL AWS IAM Successful Group DeletionHuntingNULLASL AWS CloudTrail
AWS IAM Successful Group DeletionHuntingNULLAWS CloudTrail DeleteGroup
Windows Azure PowerShell Module Installation Via PowerShell ScriptAnomalyNULLPowershell Script Block Logging 4104

Groups1

Software3

Campaigns1

Procedure examples5

Groups1

Used byProcedure example
GroupShinyHunters

ShinyHunters has executed API calls to enumerate permissions for compromised AWS accounts.

Software3

Used byProcedure example
ToolAADInternals

AADInternals can enumerate Azure AD groups.

ToolPacu

Pacu can enumerate IAM permissions.

ToolROADTools

ROADTools can enumerate Azure AD groups.

Campaigns1

Used byProcedure example
CampaignC0027

During C0027, Scattered Spider accessed Azure AD to download bulk lists of group members and their Active Directory attributes.

References7

  1. AWS Get Bucket ACL Open source
    Amazon Web Services. (n.d.). Retrieved May 28, 2021.
  2. Black Hills Red Teaming MS AD Azure, 2018 Open source
    Felch, M.. (2018, August 31). Red Teaming Microsoft Part 1 Active Directory Leaks via Azure. Retrieved October 6, 2019.
  3. GitHub Raindance Open source
    Stringer, M.. (2018, November 21). RainDance. Retrieved October 6, 2019.
  4. Google Cloud Identity API Documentation Open source
    Google. (n.d.). Retrieved March 16, 2021.
  5. Microsoft AZ CLI Open source
    Microsoft. (n.d.). az ad user. Retrieved October 6, 2019.
  6. Microsoft Msolrole Open source
    Microsoft. (n.d.). Get-MsolRole. Retrieved October 6, 2019.
  7. Palo Alto Unit 42 Compromised Cloud Compute Credentials 2022 Open source
    Dror Alon. (2022, December 8). Compromised Cloud Compute Credentials: Case Studies From the Wild. Retrieved March 9, 2023.

Data from MITRE ATT&CK® (Enterprise). ATT&CK® is a registered trademark of The MITRE Corporation.