Rules for T1087.004
How the 20 rules tagged with T1087.004 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 8AzureActivity 6AADNonInteractiveUserSignInLogs 3AWSCloudTrail 3CyfirmaASCloudWeaknessAlerts_CL 2SigninLogs 2CloudAppEvents 1_Im_AuditEvent 1
Filtered columns
AuditLogs.OperationNameUpdate a partner cross-tenant access setting4Add a partner to cross-tenant access setting1Add member to group1Add owner to group1Bulk invite users - started (bulk)1AzureActivity.ActivitySubstatusValueok3AzureActivity.OperationNameValuemicrosoft.authorization/roleassignments/read2microsoft.authorization/roledefinitions/read2microsoft.keyvault/vaults/2microsoft.resources/subscriptions/providers/read2microsoft.resources/subscriptions/read2AWSCloudTrail.EventNameDescribe1Get1GetCallerIdentity1GetUser1List1AWSCloudTrail.UserAgentaws-cli1CyfirmaASCloudWeaknessAlerts_CL.severityCritical1High1AADNonInteractiveUserSignInLogs.AppId04b07795-8ddb-461a-bbee-02f9e1bf7b46112128f48-ec9e-42f0-b203-ea49fb6af367114d82eec-204b-4c2f-b7e8-296a70dab67e11950a258-227b-4e31-a9cf-717495945fc211b730954-1685-4b74-9bfd-dac224a7b8941AADNonInteractiveUserSignInLogs.ResultType01Success1AADNonInteractiveUserSignInLogs.UserTypeAWSCloudTrail.ErrorMessageAccess Denied1AccessDenied1AWSCloudTrail.SourceIpAddressAWSCloudTrail.UserIdentityTypeIAMUser1
Joins
AzureActivity ⋈ AzureActivityAADNonInteractiveUserSignInLogs ⋈ AADNonInteractiveUserSignInLogsAADNonInteractiveUserSignInLogs ⋈ AzureActivityAADNonInteractiveUserSignInLogs ⋈ AuditLogsAADNonInteractiveUserSignInLogs ⋈ SigninLogsAuditLogs ⋈ SigninLogsAzureActivity ⋈ SigninLogsCloudAppEvents ⋈ CloudAppEventsCloudAppEvents ⋈ _Im_AuditEventSigninLogs ⋈ SigninLogs
Idioms
make_set 7dcount 6arg_min (latest or earliest row per key) 4leftanti join (A without B) 3join with no kind= (innerunique: duplicate left keys collapse) 1mv-expand (unpack arrays) 1
Severity
Medium 9High 3
Schedules (analytic rules)
every 2d over 2d 6every 5m over 5m 2every 1h over 1d 1every 2h over 2h 1
Look-back windows in ago()
7d 1
Every rule tagged with it
- AWSCloudTrail - High Volume of Enumeration Events
- AWSCloudTrail - IAM AccessDenied discovery events
- CYFIRMA - Attack Surface - Cloud Weakness High Rule
- CYFIRMA - Attack Surface - Cloud Weakness Medium Rule
- 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
- AWS Identity and Access Management (IAM) Discovery
- 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
- Guest accounts added in Entra ID Groups other than the ones specified
- External guest invitation followed by Microsoft Entra ID PowerShell signin
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.