Rules for T1098.001
How the 12 rules tagged with T1098.001 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
AWSCloudTrail 6AuditLogs 4AADServicePrincipalSignInLogs 2AWSSecurityHubFindings 1OktaSSO 1
Filtered columns
AWSCloudTrail.EventNameAddRoleToInstanceProfile1CreateAccessKey1CreateLoginProfile1CreateUser1DeleteGroup1AuditLogs.OperationNameAdd app role assignment to service principal1Add delegated permission grant1Add service principal credentials1Consent to application1Invite external user1AuditLogs.Resultsuccess3AADServicePrincipalSignInLogs.ResultType02Success1AuditLogs.ActivityDisplayNameAdd eligible member to role1Add member to role1certificate1credential1key credential1AWSSecurityHubFindings.AwsSecurityFindingGeneratorIdsecurity-control/IAM.41AWSSecurityHubFindings.ComplianceSecurityControlIdIAM.41AWSSecurityHubFindings.ComplianceStatusFAILED1AWSSecurityHubFindings.RecordStateACTIVE1AuditLogs.AADOperationTypeAssign1AssignEligibleRole1AuditLogs.CategoryRoleManagement1UserManagement1AuditLogs.TargetResources.userPrincipalNameEXT1OktaSSO.outcome_result_sSUCCESS1
Joins
AADServicePrincipalSignInLogs ⋈ AuditLogsAADServicePrincipalSignInLogs ⋈ AADServicePrincipalSignInLogsAWSCloudTrail ⋈ AWSCloudTrailAuditLogs ⋈ AuditLogs
Idioms
mv-expand (unpack arrays) 3join with no kind= (innerunique: duplicate left keys collapse) 1leftanti join (A without B) 1make_set 1
Severity
Medium 5Low 2High 1
Schedules (analytic rules)
every 1d over 1d 2every 15m over 15m 1every 1h over 1h 1
Every rule tagged with it
- AWS Security Hub - Detect IAM root user Access Key existence
- AWSCloudTrail - Changes to internet facing AWS RDS Database instances
- AWSCloudTrail - Creation of Access Key for IAM User
- AWSCloudTrail - IAM CreateLoginProfile Activity
- AWSCloudTrail - IAM user and group object changes
- AWSCloudTrail - IAM Privileged Role Attached to Instance
- AWSCloudTrail - RDS Master Password Changed
- New External User Granted Admin Role
- Suspicious OAuth App Consent Granting Sensitive Permissions
- Secret Added to Dormant Service Principal
- Service principal credential change followed by novel SP sign-in
- Admin privilege granted (Okta)
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.