VeriKQL by Kaushik Saha

T1526 Cloud Service Discovery

Discoveryon attack.mitre.org

ATT&CK Enterprise 20.0 · 20.1 released, update in review

How MITRE detects it

DET0402 Detection Strategy for Cloud Service Discovery

AN1127 IaaS

Unusual enumeration of services and resources through cloud APIs such as AWS CLI `describe-*`, Azure Resource Manager queries, or GCP project listings. Defender perspective includes anomalous API calls, unexpected volume of service enumeration, and correlation of discovery with recently compromised sessions.

MITRE log sourceIn Microsoft Sentinel
AWS:CloudTrailDescribeInstances, DescribeServices, ListFunctions: High frequency enumeration calls or unusual user agents performing discoveryNot mapped to Sentinel yet.
AWS:CloudTrailAssumeRole: Discovery actions tied to assumed identities outside of normal contextNot mapped to Sentinel yet.

AN1128 Identity Provider

Enumeration of directories, applications, or service principals through APIs such as Microsoft Graph or Okta API. Defender perspective includes unexpected listing of users, roles, applications, and abnormal access to identity management endpoints.

MITRE log sourceIn Microsoft Sentinel
azure:auditListApplications, ListServicePrincipals: Large-scale queries against identity or application objects
  • Microsoft Entra ID → AuditLogs
    AuditLogs
azure:signinlogsInteractiveUserLogin: Discovery behavior linked to privileged logins from atypical IP ranges
  • Microsoft Entra ID → SigninLogs
    SigninLogs
  • Microsoft Entra ID → AADNonInteractiveUserSignInLogs
    AADNonInteractiveUserSignInLogs
  • Microsoft Entra ID → AADServicePrincipalSignInLogs
    AADServicePrincipalSignInLogs
  • Microsoft Entra ID → AADManagedIdentitySignInLogs
    AADManagedIdentitySignInLogs

AN1129 Office Suite

Discovery of SaaS services connected to productivity platforms (e.g., Microsoft 365, Google Workspace). Defender perspective includes unexpected enumeration of enabled services, API integrations, or OAuth applications tied to user accounts.

MITRE log sourceIn Microsoft Sentinel
m365:unifiedGet-MsolServicePrincipal, ListAppRoles: Service discovery operations executed by accounts not normally performing administrative tasksinterpreted
  • Microsoft 365 (formerly Office 365) → OfficeActivity
    OfficeActivity | where OfficeWorkload in ("Exchange", "SharePoint", "OneDrive", "MicrosoftTeams")
  • Microsoft Defender XDR → CloudAppEvents
    CloudAppEvents

The Office 365 connector brings the Exchange, SharePoint and Teams workloads of the unified audit log; Entra sign-ins in it are in SigninLogs; CloudAppEvents carries Microsoft 365 app activity.

m365:signinlogsUserLogin: Discovery operations shortly after account logins from new geolocations
  • Microsoft Entra ID → SigninLogs
    SigninLogs
  • Microsoft Entra ID → AADNonInteractiveUserSignInLogs
    AADNonInteractiveUserSignInLogs
  • Microsoft Entra ID → AADServicePrincipalSignInLogs
    AADServicePrincipalSignInLogs
  • Microsoft Entra ID → AADManagedIdentitySignInLogs
    AADManagedIdentitySignInLogs

Microsoft 365 sign-ins are Microsoft Entra sign-ins.

AN1130 SaaS

Discovery of connected SaaS applications, APIs, or configurations within platforms like Salesforce, Slack, or Zoom. Defender perspective includes enumeration of available integrations, abnormal querying of service metadata, and follow-on attempts to exploit or persist via discovered services.

MITRE log sourceIn Microsoft Sentinel
saas:adminapiListIntegrations, ListServices: Repeated service discovery requests from accounts without administrative responsibilitiesNot mapped to Sentinel yet.
saas:authLogin, TokenGranted: Discovery actions tied to anomalous login sessions or tokensNot mapped to Sentinel yet.

Content Hub rules tagged with it (26)

Showing 25 of 26.

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 T1526 are built: their tables, filters, joins, schedules and windows.

In Sigma rules

3 SigmaHQ community rules name it or one of its sub-techniques 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.