VeriKQL by Kaushik Saha

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 sourceIn Microsoft Sentinel
Microsoft Entra ID Audit LogsRoleManagement.Read.Directory or Directory.Read.All
  • Microsoft Entra ID → AuditLogs
    AuditLogs
azure:signinlogsInteractive/Non-Interactive Sign-In
  • Microsoft Entra ID → SigninLogs
    SigninLogs
  • Microsoft Entra ID → AADNonInteractiveUserSignInLogs
    AADNonInteractiveUserSignInLogs
  • Microsoft Entra ID → AADServicePrincipalSignInLogs
    AADServicePrincipalSignInLogs
  • Microsoft Entra ID → AADManagedIdentitySignInLogs
    AADManagedIdentitySignInLogs
m365:defenderActivity Log: Command Invocationinterpreted
  • Microsoft Defender XDR → DeviceEvents
    DeviceEvents
  • Microsoft Defender XDR → DeviceProcessEvents
    DeviceProcessEvents

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 sourceIn Microsoft Sentinel
AWS:CloudTrailAWS IAM: ListUsers, ListRolesNot mapped to Sentinel yet.
azure:activityAzure CLI Operation: Microsoft.Graph/users/read
  • Azure Activity → AzureActivity
    AzureActivity

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 sourceIn Microsoft Sentinel
WinEventLog:PowerShellCmdletName: Get-Recipient, Get-User
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where EventLog in ("Microsoft-Windows-PowerShell/Operational", "Windows PowerShell")
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Channel in ("Microsoft-Windows-PowerShell/Operational", "Windows PowerShell")
Microsoft Graph API Logsusers.list, directoryObjects.getByIds
  • Microsoft Entra diagnostic setting: MicrosoftGraphActivityLogs → MicrosoftGraphActivityLogs
    MicrosoftGraphActivityLogs

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 sourceIn Microsoft Sentinel
Google Admin Auditusers.list, groups.listNot mapped to Sentinel yet.
saas:oktaSystem API Call: user.read, group.readNot mapped to Sentinel yet.

Content Hub rules tagged with it (20)

Rules tagged with this technique (or a sub-technique) in their metadata. Whether one fits your connectors is the coverage view (M2).

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.

Community rules, not Microsoft's, and not checked by VeriKQL (Sigma is not KQL). From SigmaHQ/sigma at f083329, under the Detection Rule License (DRL) 1.1; each rule is credited to its author.

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.