Join our Newsletter — 33% off our NHI Course
Home› Guides› Identity detection rule pack: Core detections for Entra…
Guide Identity Visibility, Posture & Threat Detection

Identity detection rule pack: Core detections for Entra ID, Okta, AWS and Google

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, edited by Lalit Choda Updated 28 October 2026 13 min read
On this page

Most SOCs have a few identity detections per platform, written at different times by different people, with gaps exactly where attackers go: new federation trusts, credentials added to applications, MFA removed and keys minted for service accounts. This guide is a consolidated starter pack of identity detections that should exist in any organisation running Microsoft Entra ID, Okta, AWS or Google Cloud and Workspace. Each rule names the log source, the exact event or field, the ATT&CK technique and the matching public Sigma rule where one exists, so a detection engineer can implement it in any SIEM. It is written for detection engineers, identity security teams and SOC leads. For depth on a single platform, use the Entra ID Sign-In and Audit Log Detection Guide, Okta System Log Detection Guide, AWS CloudTrail Guide and Google Workspace Audit Log Detection Guide.

Key takeaways

  • Control-plane changes first. New identity providers, federation settings, admin role grants and MFA changes are rare, high-signal and cheap to alert on. Build them before behavioural sign-in analytics.
  • Treat credential creation as an alert. A secret added to an Entra app, an AWS access key created for another user, a Google Cloud service account key or an Okta API token is how attackers persist without a password.
  • Use the same rule across platforms. "MFA removed from an account" exists in all four; one rule definition with four mappings keeps coverage honest.
  • Enable the logs before you write the rules. Entra service principal sign-ins, Google Cloud Data Access logs and Okta System Log retention beyond the default all have to be switched on or exported.
  • Use vendor risk signals, but do not depend on them. Entra ID Protection and Google's suspicious login classifications are useful inputs, and several require premium licences.

How the pack is organised

Rules are grouped into six detection themes. Each theme has an equivalent rule per platform. Priority 1 rules are low volume and should page someone; priority 2 rules go to a triage queue; priority 3 are hunting or correlation inputs. Sigma rule names refer to the public SigmaHQ repository, which gives vendor-neutral logic that converts to most SIEM query languages. See the Sigma Rules Guide.

ThemeWhat it catchesMain ATT&CK techniques
A. Identity provider and trust changesNew IdP, federation or directory trust that lets an attacker mint identitiesT1484.002 Trust Modification, T1556 Modify Authentication Process
B. Privilege grantsAdmin roles and high-privilege permissions added to users, groups or appsT1098.003 Additional Cloud Roles
C. Credentials added to identitiesSecrets, keys, tokens and certificates created for existing identitiesT1098.001 Additional Cloud Credentials
D. Authentication weakeningMFA removed or reset, policies loosened, temporary passes issuedT1556.006 Multi-Factor Authentication
E. Suspicious sign-inSpray, MFA-less sign-in, anonymising proxies, legacy and device code flowsT1110.003 Password Spraying, T1078.004 Cloud Accounts, T1621 MFA Request Generation
F. Logging and defence impairmentAudit trails stopped or alteredT1685.002 Disable or Modify Cloud Log

Microsoft Entra ID rules

Sources: Entra audit logs, interactive and non-interactive sign-in logs, service principal and managed identity sign-in logs, and ID Protection risk detections, exported to your SIEM through diagnostic settings.

IDRuleEvent or fieldPrioritySigma reference
ENT-A1Domain federation changedAudit activity "Set federation settings on domain"1Azure Domain Federation Settings Modified
ENT-B1User added to privileged roleAudit "Add member to role" for Global Administrator and other Tier 0 roles1User Added to an Administrator's Azure AD Role
ENT-B2App granted privileged application permissionAudit "Add app role assignment to service principal"1App Granted Privileged Delegated Or App Permissions
ENT-B3Tenant-wide delegated consentAudit "Consent to application" with admin consent for all users2Delegated Permissions Granted For All Users
ENT-C1Secret or certificate added to an appAudit "Update application - Certificates and secrets management"1 for privileged apps, 2 otherwiseAdded Credentials to Existing Application
ENT-D1Temporary Access Pass issuedAudit "Admin registered security info" with temporary access pass method2Temporary Access Pass Added To An Account
ENT-D2Conditional Access policy changed by an unapproved actorAudit add, update or delete conditional access policy, actor not in approved list1CA Policy Updated by Non Approved Actor
ENT-E1Legacy authentication sign-inSign-in ClientApp IMAP, POP3, SMTP, MAPI, Exchange ActiveSync or "Other client"2Use of Legacy Authentication Protocols
ENT-E2Device code flow sign-inSign-in authentication protocol device code, outside approved device types2Application Using Device Code Authentication Flow
ENT-E3ID Protection high-risk detectionRisk detections such as Password spray, Anomalous token, Token issuer anomaly, Leaked credentials2Vendor signal
ENT-E4Workload identity riskservicePrincipalRiskDetections: suspiciousSignins, leakedCredentials, suspiciousAPITraffic2Vendor signal

Microsoft documents that Password spray, Anomalous token and Token issuer anomaly require Entra ID P2, that Leaked credentials is available at Free and P1, and that all eight workload identity detections are offline, with full detail and risk-based Conditional Access requiring Workload Identities Premium. Midnight Blizzard's 2024 intrusion at Microsoft began with a password spray against a legacy test tenant account without MFA and moved through OAuth applications granted the Exchange full_access_as_app role, which rules ENT-B2 and ENT-C1 are designed to catch. See the Microsoft Midnight Blizzard Breach 2024.

Okta rules

Source: Okta System Log (LogEvent objects), pulled through the System Log API or a log streaming integration into your SIEM.

IDRuleeventTypePrioritySigma reference
OKT-A1New identity provider createdsystem.idp.lifecycle.create1Okta Identity Provider Created
OKT-B1Admin role granted to user or groupuser.account.privilege.grant, group.privilege.grant1Okta Admin Role Assigned to an User or Group
OKT-C1API token createdsystem.api_token.create1Okta API Token Created
OKT-D1MFA factor deactivated or all factors resetuser.mfa.factor.deactivate, user.mfa.factor.reset_all2 (1 for admins)Okta MFA Reset or Deactivated
OKT-D2Policy or policy rule changedpolicy.rule.update, policy.rule.delete and policy lifecycle events2Okta Policy Rule Modified or Deleted
OKT-D3Network zone deactivated or deletedNetwork zone lifecycle events2Okta Network Zone Deactivated or Deleted
OKT-E1Session from anonymising proxyuser.session.start where securityContext.isProxy is true2Okta User Session Start Via An Anonymising Proxy Service
OKT-E2Okta threat detectionSecurity threat detected events2Okta Security Threat Detected
OKT-E3User reports suspicious activityEnd-user suspicious activity report event2Okta Suspicious Activity Reported by End-user

The attackers in the 2023 MGM Resorts intrusion said they reached Okta and Azure administrator access after social engineering the help desk; the lessons drawn on the MGM Resorts Breach 2023 page are to alert on new admins, MFA resets and new federation, which are OKT-B1, OKT-D1 and OKT-A1.

AWS rules

Source: an organisation CloudTrail trail delivering management events from every account and region, with IAM Identity Center events.

IDRuleEvent or fieldPrioritySigma reference
AWS-A1Identity Center identity source changedEnableExternalIdPConfigurationForDirectory, DisableExternalIdPConfigurationForDirectory, AssociateDirectory, DisassociateDirectory1AWS Identity Center Identity Provider Change
AWS-A2SAML provider deleted or changedIAM SAML provider events1AWS SAML Provider Deletion Activity
AWS-B1Root user activityuserIdentity.type = Root, excluding AwsServiceEvent1AWS Root Credentials
AWS-C1Access key created for another userCreateAccessKey where the caller is not the key's user1AWS IAM Backdoor Users Keys
AWS-C2Console password added or changed for a userLogin profile create or update2AWS User Login Profile Was Modified
AWS-E1Console sign-in without MFAConsoleLogin, additionalEventData.MFAUsed = No, responseElements.ConsoleLogin = Success, for IAM and root users2AWS Successful Console Login Without MFA
AWS-E2Instance role credentials used outside AWSAssumed-role sessions from EC2 instance profiles with a non-AWS source IP1Malicious Usage Of IMDS Credentials Outside Of AWS Infrastructure
AWS-F1CloudTrail stopped or changedStopLogging, UpdateTrail, DeleteTrail1AWS CloudTrail Important Change

AWS documents that MFAUsed is set only for IAM and root users who sign in with MFA, and that federated sign-ins show No, so scope AWS-E1 to IAMUser and Root identity types to avoid flooding the queue with Identity Center sessions. Root sign-ins are recorded in us-east-1, us-east-2 or us-west-2, so collect all regions.

Google Cloud and Google Workspace rules

Sources: Cloud Audit Logs (Admin Activity, plus Data Access where enabled) routed through an organisation log sink, and Workspace admin and login audit logs exported to Cloud Logging or your SIEM. See the Google Cloud Audit Logs and Log Sinks Guide.

IDRuleEvent or methodPrioritySigma reference
GCP-B1IAM policy changed at organisation or folderSetIamPolicy on organisations and folders adding owner, editor or IAM admin roles1None: build locally
GCP-C1Service account key created or uploadedgoogle.iam.admin.v1.CreateServiceAccountKey, google.iam.admin.v1.UploadServiceAccountKey1 where keys are blocked by policy, 2 otherwisePartial: Google Cloud Service Account Modified
GCP-C2Service account created or re-enabledMethods ending .serviceAccounts.create, .enable, .undelete3Google Cloud Service Account Modified
GWS-B1Admin privilege grantedAdmin log GRANT_ADMIN_PRIVILEGE, GRANT_DELEGATED_ADMIN_PRIVILEGES1Google Workspace User Granted Admin Privileges
GWS-B2Domain-wide delegation grantedAdmin log AUTHORIZE_API_CLIENT_ACCESS1Google Workspace Granted Domain API Access
GWS-D12-Step Verification enforcement changedAdmin log ENFORCE_STRONG_AUTHENTICATION, ALLOW_STRONG_AUTHENTICATION1Google Workspace MFA Disabled
GWS-E1Google-classified suspicious loginLogin log suspicious_login, suspicious_login_less_secure_app, suspicious_programmatic_login2Suspicious Login Activity Classified By Google
GWS-E2Government-backed attack warningLogin log gov_attack_warning1Google Workspace Government Attack Warning
GWS-E3Out-of-domain mail forwardingLogin log email_forwarding_out_of_domain2Google Workspace Out Of Domain Email Forwarding

Google documents service account key creation and SetIAMPolicy as Admin Activity (ADMIN_WRITE) events, while reads such as ListServiceAccountKeys are Data Access (ADMIN_READ) events that must be enabled before they can be detected. Domain-wide delegation is covered in depth in the Google Workspace Domain-Wide Delegation Security Guide.

Cross-platform correlations

Single events miss chains that span the IdP and the cloud. Build these as correlation rules once the single-event rules are stable.

  1. Weakening then use: MFA removed or a Temporary Access Pass issued (ENT-D1, OKT-D1), followed within 24 hours by a sign-in from a new country or ASN for the same user.
  2. Grant then credential: an admin role or high-privilege permission granted (any B rule) followed by a credential created for an application or service account (any C rule) by the same actor.
  3. Federation then admin sign-in: a new IdP or federation change (any A rule) followed by an admin sign-in whose issuer or identity source is the new one.
  4. IdP compromise to cloud: Okta or Entra admin role change followed by AWS Identity Center or Google Cloud IAM changes from a federated session for the same person.
  5. Impair then act: any F rule followed by B or C rules in the same account within an hour.

Rolling out the pack

  1. Confirm log coverage: Entra sign-in categories including service principal and managed identity sign-ins, Okta System Log export, organisation CloudTrail across all regions, Google Cloud organisation sink and Workspace audit export. Measure ingestion lag for each.
  2. Build an allow list of expected actors: identity admins, provisioning service principals and automation roles that legitimately make A to D changes. Most false positives come from these.
  3. Deploy priority 1 rules in alert mode with a two-week tuning window, then route to on-call.
  4. Test each rule: perform the action in a test tenant or account and confirm the alert fires end to end. See the Detection Validation and Testing Guide.
  5. Deploy priority 2 rules to a triage queue and priority 3 to hunting dashboards.
  6. Write a runbook per rule: what to check, who owns the identity, how to contain. The Detection Rule Documentation Template gives the format.
  7. Store rules as code with tests and version control so changes are reviewed. See the Detection as Code Guide.

Decision guidance

  • Vendor ITDR or SIEM rules: ITDR products ship many of these detections and add behavioural baselines. Keep the priority 1 control-plane rules in your SIEM regardless, so that a gap in the product's coverage or licence does not leave you blind.
  • Small teams: implement themes A, B, C and F only. They are low volume and catch most persistence. Add E when you have someone to triage sign-in alerts.
  • Large or multi-tenant estates: parameterise rules by tenant or account and maintain one allow list per environment; centrally owned Tier 0 role lists keep B rules consistent.
  • Licensing: if you lack Entra ID P2 or Workload Identities Premium, compensate with sign-in log rules (ENT-E1, ENT-E2) and credential creation rules, which need no premium signal.

Measuring the pack

MetricHow to measure
CoverageRules deployed per platform against the pack, and ATT&CK techniques covered
Validated rulesShare of rules with a passing end-to-end test in the last 90 days
Signal qualityTrue positive or benign-confirmed rate per rule; priority 1 rules should rarely be noise
Time to detectEvent time to alert time, including log ingestion lag
Allow list hygieneAllow list entries reviewed in the last quarter

Framework mapping

FrameworkReferenceRelevance
NIST CSF 2.0DE.CM-03, DE.AE-02Monitoring personnel activity and technology usage; analysing adverse events
NIST SP 800-53 Rev. 5AU-6, AU-12, SI-4, AC-2(4)Audit review, audit record generation, system monitoring, automated audit of account actions
CIS Controls v8.1Safeguards 8.2, 8.11Collect audit logs; conduct audit log reviews
MITRE ATT&CKT1484.002, T1098.001, T1098.003, T1556.006, T1110.003, T1078.004, T1685.002Techniques the pack detects

Common failure patterns

  • No service principal sign-in logs: Entra diagnostic settings export each sign-in category separately; selecting only user sign-ins leaves service principal and managed identity abuse unseen.
  • Allow lists that swallow the attack: excluding every identity admin from B rules means a compromised admin raises nothing. Allow list automation identities, not people.
  • AWS-E1 without identity type scoping: every federated console session appears as "no MFA" and the rule is muted within a week.
  • Single-region CloudTrail: root and IAM sign-in events land in specific regions and are missed.
  • Relying only on vendor risk scores: offline detections arrive hours later and some need licences you may not hold.
  • Rules that are never tested: log schema and field names change, and a rule that has not fired in a year may simply be broken.

Practitioner checklist

  • Confirm all identity log sources are exported, all regions and all sign-in categories, and measure ingestion lag.
  • Deploy every priority 1 rule (A, B, C, F themes) on each platform you run.
  • Maintain allow lists of automation identities, reviewed quarterly.
  • Scope noisy rules by identity type, application or role tier rather than disabling them.
  • Test every rule end to end in a non-production tenant and re-test every 90 days.
  • Write a short runbook per rule naming the identity owner and containment action.
  • Add the five cross-platform correlations once single-event rules are stable.
  • Track coverage, validation and signal quality per rule.

Standards and references

Related NHI Mgmt Group resources: ITDR Guide · Detection Engineering for Non-Human Identities Guide · Identity Visibility, Posture and Threat Detection Guide · Identity Incident Response Playbook

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Researched and written by the NHI Mgmt Group editorial team using AI tools, under the editorial direction of Lalit Choda. Facts are drawn from the sources listed on this page and checked by our automated quality process. Last updated 28 October 2026. Spotted an error? Use our contact page.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM and Agentic AI security. nhimg.org

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick the PDF box to continue.