T1087.004 Cloud Account
Discoveryon attack.mitre.org
ATT&CK Enterprise 20.0 · 20.1 released, update in review
How MITRE detects it
DET0386 Cloud Account Enumeration via API, CLI, and Scripting Interfaces
AN1087 Identity Provider
Enumeration of identity roles and users via API calls such as `Get-MsolRoleMember`, `az ad user list`, or Graph API tokens from unauthorized users or automation accounts.
| MITRE log source | In Microsoft Sentinel |
|---|---|
Microsoft Entra ID Audit LogsRoleManagement.Read.Directory or Directory.Read.All |
|
azure:signinlogsInteractive/Non-Interactive Sign-In |
|
m365:defenderActivity Log: Command Invocation | interpreted
The channels name script-block and AMSI telemetry, which Defender for Endpoint records in DeviceEvents. |
AN1088 IaaS
Use of AWS CLI (`aws iam list-users`, `list-roles`), Azure CLI (`az ad user list`), or GCP CLI (`gcloud iam service-accounts list`) from endpoints or cloud shells where such activity is unexpected.
| MITRE log source | In Microsoft Sentinel |
|---|---|
AWS:CloudTrailAWS IAM: ListUsers, ListRoles | Not mapped to Sentinel yet. |
azure:activityAzure CLI Operation: Microsoft.Graph/users/read |
|
AN1089 Office Suite
Bulk enumeration of cloud user email identities through `Get-Recipient`, `Get-Mailbox`, `Get-User`, or Graph API directory listings by abnormal accounts or suspicious sessions.
| MITRE log source | In Microsoft Sentinel |
|---|---|
WinEventLog:PowerShellCmdletName: Get-Recipient, Get-User |
|
Microsoft Graph API Logsusers.list, directoryObjects.getByIds |
|
AN1090 SaaS
Access to organizational directories via Google Workspace Directory API, Slack SCIM, or Okta SCIM by apps or identities outside normal roles.
| MITRE log source | In Microsoft Sentinel |
|---|---|
Google Admin Auditusers.list, groups.list | Not mapped to Sentinel yet. |
saas:oktaSystem API Call: user.read, group.read | Not mapped to Sentinel yet. |
Content Hub rules tagged with it (20)
- Cross-tenant Access Settings Organization Added
- Cross-tenant Access Settings Organization Deleted
- Cross-tenant Access Settings Organization Inbound Collaboration Settings Changed
- Cross-tenant Access Settings Organization Inbound Direct Settings Changed
- Cross-tenant Access Settings Organization Outbound Collaboration Settings Changed
- Cross-tenant Access Settings Organization Outbound Direct Settings Changed
- CYFIRMA - Attack Surface - Cloud Weakness High Rule
- CYFIRMA - Attack Surface - Cloud Weakness Medium Rule
- External guest invitation followed by Microsoft Entra ID PowerShell signin
- Guest accounts added in Entra ID Groups other than the ones specified
- AWS Identity and Access Management (IAM) Discovery
- AWSCloudTrail - High Volume of Enumeration Events
- AWSCloudTrail - IAM AccessDenied discovery events
- Cross-subscription and resource-group enumeration sweep by single identity
- IAM and subscription enumeration followed by Key Vault operations
- IAM reconnaissance followed by role assignment write attempt
- Identity and app enumeration followed by novel non-interactive tuple
- Key Vault discovery followed by data-store access enumeration
- Novel sign-in context followed by IAM reconnaissance burst
- OAuth consent change followed by first-seen OAuthAppId burst
How the Content Hub rules for T1087.004 are built: their tables, filters, joins, schedules and windows.
In Sigma rules
3 SigmaHQ community rules name it in their tags.
- Discovery Using AzureHound
- RBAC Permission Enumeration Attempt
- AWS STS GetCallerIdentity Enumeration Via TruffleHog
Mitigations
MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.