VeriKQL by Kaushik Saha

T1078.004 Cloud Accounts

Initial AccessPersistencePrivilege EscalationStealthon attack.mitre.org

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

How MITRE detects it

DET0546 Detection of Abused or Compromised Cloud Accounts for Access and Persistence

AN1503 Identity Provider

Detects anomalous authentication activity such as sign-ins from impossible geolocations or legacy protocols from high-privileged accounts.

MITRE log sourceIn Microsoft Sentinel
azure:signinlogsSign-in activity
  • Microsoft Entra ID → SigninLogs
    SigninLogs
  • Microsoft Entra ID → AADNonInteractiveUserSignInLogs
    AADNonInteractiveUserSignInLogs
  • Microsoft Entra ID → AADServicePrincipalSignInLogs
    AADServicePrincipalSignInLogs
  • Microsoft Entra ID → AADManagedIdentitySignInLogs
    AADManagedIdentitySignInLogs
saas:oktauser.authentication.ssoNot mapped to Sentinel yet.

AN1504 IaaS

Detects cloud account use for API calls that exceed normal scope, such as IAM changes or access to services never used before.

MITRE log sourceIn Microsoft Sentinel
AWS:CloudTrailConsoleLogin, AssumeRole, ListAccessKeys, CreateUserNot mapped to Sentinel yet.
gcp:auditadmin.googleapis.comNot mapped to Sentinel yet.

AN1505 SaaS

Detects unexpected access or usage of cloud productivity tools (e.g., downloading large numbers of files, creating external shares) by internal users.

MITRE log sourceIn Microsoft Sentinel
m365:unifiedFileAccessed, SharingSetinterpreted
  • 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.

gcp:auditdrive.activityNot mapped to Sentinel yet.

AN1506 Office Suite

Detects login and usage patterns deviating from typical Microsoft 365 or Google Workspace user profiles.

MITRE log sourceIn Microsoft Sentinel
m365:signinlogsUserLogin
  • 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.

gcp:auditlogin.eventNot mapped to Sentinel yet.

Content Hub rules tagged with it (92)

Showing 25 of 92.

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

In Sigma rules

37 SigmaHQ community rules name it in their tags.

Showing 25 of 37: stable rules first, then by level.

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.