Rules for T1528
How the 31 rules tagged with T1528 are built: the tables they read, what they filter, how they join, and when they run. The most used of each; every rule is listed below.
Tables and parsers
AuditLogs 7AWSCloudTrail 5CloudAuditEvents 3AADNonInteractiveUserSignInLogs 2AzureActivity 2CloudProcessEvents 2_Im_AuditEvent 2_Im_Authentication 2AADServicePrincipalSignInLogs 1ADOAuditLogs 1CloudAppEvents 1ContrastADRAttackEvents_CL 1DataverseActivity 1DeviceImageLoadEvents 1DuoSecurityTrustMonitor_CL 1
Filtered columns
AuditLogs.OperationNameConsent to application5Add delegated permission grant4Add OAuth2PermissionGrant3Add service principal3Add app role assignment to service principal1AWSCloudTrail.EventSourcests.amazonaws.com5AWSCloudTrail.SourceIpAddressec2.amazonaws.com3glue.amazonaws.com1lambda.amazonaws.com1AuditLogs.CategoryApplicationManagement4AuditLogs.LoggedByServiceCore Directory4AWSCloudTrail.UserAgentAmazon ECS Agent1kubernetes1AuditLogs.TargetResourcesoffline2offline_access1CloudAuditEvents.DataSourceAzure3Kubernetes3CloudAuditEvents.OperationNamepods/attach3pods/exec3secrets/get3serviceaccounts/token3microsoft.authorization/roleassignments/2AADNonInteractiveUserSignInLogs.ResultType02Success2AuditLogs.Resultsuccess2CloudProcessEvents.ProcessCommandLineazure_federated_token_file2federated2login.microsoft.com2oauth22oauth2/v2.0/token2CloudProcessEvents.ProcessNameaz2curl2kubectl2pwsh2python2_Im_Authentication.EventResultSuccess2ADOAuditLogs.AuthenticationMechanismPAT1
Joins
(derived) ⋈ AWSCloudTrailAWSCloudTrail ⋈ AWSCloudTrailAuditLogs ⋈ AuditLogs(derived) ⋈ AuditLogsCloudAuditEvents ⋈ CloudAuditEventsAADNonInteractiveUserSignInLogs ⋈ AADNonInteractiveUserSignInLogsCloudAuditEvents ⋈ CloudProcessEvents_Im_Authentication ⋈ _Im_AuthenticationAADNonInteractiveUserSignInLogs ⋈ AzureActivityAADNonInteractiveUserSignInLogs ⋈ DeviceImageLoadEventsAADServicePrincipalSignInLogs ⋈ AuditLogsCloudAppEvents ⋈ CloudAppEventsCloudAppEvents ⋈ _Im_AuditEventDeviceImageLoadEvents ⋈ DeviceImageLoadEventsSigninLogs ⋈ SigninLogs
Idioms
make_set 14mv-expand (unpack arrays) 9leftanti join (A without B) 7arg_max (latest or earliest row per key) 6join with no kind= (innerunique: duplicate left keys collapse) 3dcount 2make-series (time series, anomaly) 1make_list 1
Severity
High 9Medium 8Low 4
Schedules (analytic rules)
every 1d over 1d 4every 1d over 14d 3every 5m over 5m 3every 1h over 1h 2every 1d over 7d 1every 1h over 2h 1every 5h over 14d 1
Look-back windows in ago()
1h 124h 15m 1
Every rule tagged with it
- Trust Monitor Event
- AWSCloudTrail - AWS STS token suspicious activity from EC2
- AWSCloudTrail - STS token suspicious activity from ECS
- AWSCloudTrail - STS token suspicious activity from Glue
- AWSCloudTrail - STS Token Suspicious Activity from Kubernetes Worker Node
- AWSCloudTrail - STS Token Suspicious Activity from Lambda
- Microsoft Entra ID Hybrid Health AD FS Suspicious Application
- Azure DevOps PAT used with Browser
- Contrast ADR - DLP SQL Injection Correlation
- Expired access credentials being used in Azure
- K8s token audit then novel cloud control plane operations
- Pod cloud CLI then KeyVault or storage access
- Pod token tooling then cloud RBAC write
- Identity and app enumeration followed by novel non-interactive tuple
- OAuth consent change followed by first-seen OAuthAppId burst
- Suspicious OAuth App Consent Granting Sensitive Permissions
- Azure VM web process to IMDS token theft chain
- Rare service principal sign-in followed by RBAC write
- Rare kernel load followed by novel non-interactive sign-in tuple
- Rare service principal authentication tuple
- Dataverse - Anomalous application user activity
- End-user consent to app with mailbox and offline access delegated scopes
- Suspicious application consent similar to O365 Attack Toolkit
- Suspicious application consent similar to PwnAuth
- Suspicious Entra ID Joined Device Update
- Suspicious application consent for offline access
- Suspicious Service Principal creation activity
- Ping Federate - SAML subjects
- SpyCloud identity access record exposure
- Identify instances where a single source is observed using multiple user agents (ASIM Web Session)
- Zero Networks Segment - New API Token created
Rules are from Azure/Azure-Sentinel (MIT licence) at commit 9ea9f7c. VeriKQL stores facts its parser read from each rule and links the rule; it does not copy rule text. Counts are what the rules do: practice, not guidance, and not Microsoft's recommendation.