Azure Active Directory / Entra ID events M365-AzureActiveDirectory

13 operations, identified by Operation in the audit log.

OperationDescription
_catch_allCatch-all for M365-AzureActiveDirectory rules matching the RecordType but no specific Operation.
Add application.An application registration was created in Azure Active Directory (the UAL operation string includes a trailing period).
Add group.A group was created in Azure Active Directory (the UAL operation string includes a trailing period).
Add member to group.A principal was added to a group in Azure Active Directory (the UAL operation string includes a trailing period).
Add member to role.A principal was added to an Azure Active Directory directory role (the UAL operation string includes a trailing period).
Add registered users to device.Registered users were added to a device object in Azure Active Directory (the UAL operation string includes a trailing period).
Consent to application.Admin or user consent was granted to an application in Azure Active Directory (the UAL operation string includes a trailing period).
Delete group.A group was deleted in Azure Active Directory (the UAL operation string includes a trailing period).
Remove member from group.A principal was removed from a group in Azure Active Directory (the UAL operation string includes a trailing period).
Set-MsolDomainFederationSettingsFederation settings for a domain were changed via the MSOnline module (a directory operation, not an Exchange cmdlet); abused to add a backdoor federation trust.
Update application.An application registration was modified in Azure Active Directory (the UAL operation string includes a trailing period).
UserLoggedInA user successfully signed in to an Azure Active Directory-integrated application or service.
UserLoginFailedA user sign-in attempt to an Azure Active Directory-integrated application failed (incorrect credentials, MFA denial, or Conditional Access block).

_catch_all: Azure Active Directory / Entra ID events (catch-all)

#
RecordType
M365-AzureActiveDirectory

Description

Catch-all for M365-AzureActiveDirectory rules matching the RecordType but no specific Operation.

Fields #

NameDescription
RecordTypeAuditLogRecordType enum value (named string in Sentinel OfficeActivity; integer in the raw Management Activity API JSON).
OperationThe name of the user or admin activity. For Exchange admin activity this is the cmdlet name; for DLP it is DlpRuleMatch/DlpRuleUndo/DlpInfo. The per-event discriminator (event.action in Elastic ECS).
WorkloadThe Microsoft 365 service where the activity occurred (Exchange, SharePoint, AzureActiveDirectory, MicrosoftTeams, ...). Surfaces as event.provider in Elastic ECS.
ResultStatusWhether the action succeeded: Succeeded, PartiallySucceeded, or Failed (True/False for Exchange admin). For STS-logon events this reflects only the HTTP operation, not logon success: check LogonError.
UserIdUPN of the user who performed the action; system-account and app@sharepoint values also appear.
UserTypeType of actor: Regular, Admin, System, DcAdmin, Application, ServicePrincipal.
UserKeyAlternative ID for the user (the PUID for SharePoint / OneDrive / Exchange events).
ClientIPIPv4/IPv6 address of the device used; may be a trusted-app IP, and is null for Microsoft Entra ID events.
ObjectIdFor SharePoint/OneDrive, the full path of the file/folder; for Exchange admin, the object modified by the cmdlet; shape is operation-specific.
OrganizationIdGUID of the tenant's Office 365 organization (constant per tenant).
IdUnique identifier (GUID) for the audit record.
CreationTimeUTC date/time when the audit record was generated.
ScopeSource of the event: online (a Microsoft 365 service) or onprem (an on-premises service; currently SharePoint only).
AppAccessContextApplication context for the user or service principal that performed the action.
AzureActiveDirectoryEventTypeThe type of Microsoft Entra event (AccountLogon, AzureApplicationAuditEvent, ...).
ExtendedPropertiesExtended properties of the Microsoft Entra event (name/value pairs).
ModifiedPropertiesFor admin events: the property modified, its new value, and its previous value.
TargetResourcesObjects affected by the operation (users, groups, apps, service principals, roles), with modifiedProperties; the Graph / Sentinel projection of the same record.

References #

Add application.

#
RecordType
M365-AzureActiveDirectory

Description

An application registration was created in Azure Active Directory (the UAL operation string includes a trailing period).

Fields #

NameDescription
RecordTypeAuditLogRecordType enum value (named string in Sentinel OfficeActivity; integer in the raw Management Activity API JSON).
OperationThe name of the user or admin activity. For Exchange admin activity this is the cmdlet name; for DLP it is DlpRuleMatch/DlpRuleUndo/DlpInfo. The per-event discriminator (event.action in Elastic ECS).
WorkloadThe Microsoft 365 service where the activity occurred (Exchange, SharePoint, AzureActiveDirectory, MicrosoftTeams, ...). Surfaces as event.provider in Elastic ECS.
ResultStatusWhether the action succeeded: Succeeded, PartiallySucceeded, or Failed (True/False for Exchange admin). For STS-logon events this reflects only the HTTP operation, not logon success: check LogonError.
UserIdUPN of the user who performed the action; system-account and app@sharepoint values also appear.
UserTypeType of actor: Regular, Admin, System, DcAdmin, Application, ServicePrincipal.
UserKeyAlternative ID for the user (the PUID for SharePoint / OneDrive / Exchange events).
ClientIPIPv4/IPv6 address of the device used; may be a trusted-app IP, and is null for Microsoft Entra ID events.
ObjectIdFor SharePoint/OneDrive, the full path of the file/folder; for Exchange admin, the object modified by the cmdlet; shape is operation-specific.
OrganizationIdGUID of the tenant's Office 365 organization (constant per tenant).
IdUnique identifier (GUID) for the audit record.
CreationTimeUTC date/time when the audit record was generated.
ScopeSource of the event: online (a Microsoft 365 service) or onprem (an on-premises service; currently SharePoint only).
AppAccessContextApplication context for the user or service principal that performed the action.
AzureActiveDirectoryEventTypeThe type of Microsoft Entra event (AccountLogon, AzureApplicationAuditEvent, ...).
ExtendedPropertiesExtended properties of the Microsoft Entra event (name/value pairs).
ModifiedPropertiesFor admin events: the property modified, its new value, and its previous value.
TargetResourcesObjects affected by the operation (users, groups, apps, service principals, roles), with modifiedProperties; the Graph / Sentinel projection of the same record.

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
target.resource.product_object_ideq1b730954-1685-4b74-9bfd-dac224a7b8941 rulechronicle

Detection Rules #

View all rules referencing this event →

YARA-L #

References #

Add group.

#
RecordType
M365-AzureActiveDirectory

Description

A group was created in Azure Active Directory (the UAL operation string includes a trailing period).

Fields #

NameDescription
RecordTypeAuditLogRecordType enum value (named string in Sentinel OfficeActivity; integer in the raw Management Activity API JSON).
OperationThe name of the user or admin activity. For Exchange admin activity this is the cmdlet name; for DLP it is DlpRuleMatch/DlpRuleUndo/DlpInfo. The per-event discriminator (event.action in Elastic ECS).
WorkloadThe Microsoft 365 service where the activity occurred (Exchange, SharePoint, AzureActiveDirectory, MicrosoftTeams, ...). Surfaces as event.provider in Elastic ECS.
ResultStatusWhether the action succeeded: Succeeded, PartiallySucceeded, or Failed (True/False for Exchange admin). For STS-logon events this reflects only the HTTP operation, not logon success: check LogonError.
UserIdUPN of the user who performed the action; system-account and app@sharepoint values also appear.
UserTypeType of actor: Regular, Admin, System, DcAdmin, Application, ServicePrincipal.
UserKeyAlternative ID for the user (the PUID for SharePoint / OneDrive / Exchange events).
ClientIPIPv4/IPv6 address of the device used; may be a trusted-app IP, and is null for Microsoft Entra ID events.
ObjectIdFor SharePoint/OneDrive, the full path of the file/folder; for Exchange admin, the object modified by the cmdlet; shape is operation-specific.
OrganizationIdGUID of the tenant's Office 365 organization (constant per tenant).
IdUnique identifier (GUID) for the audit record.
CreationTimeUTC date/time when the audit record was generated.
ScopeSource of the event: online (a Microsoft 365 service) or onprem (an on-premises service; currently SharePoint only).
AppAccessContextApplication context for the user or service principal that performed the action.
AzureActiveDirectoryEventTypeThe type of Microsoft Entra event (AccountLogon, AzureApplicationAuditEvent, ...).
ExtendedPropertiesExtended properties of the Microsoft Entra event (name/value pairs).
ModifiedPropertiesFor admin events: the property modified, its new value, and its previous value.
TargetResourcesObjects affected by the operation (users, groups, apps, service principals, roles), with modifiedProperties; the Graph / Sentinel projection of the same record.

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
security_result.actioneqBLOCK1 rulechronicle

Detection Rules #

View all rules referencing this event →

YARA-L #

References #

Add member to group.

#
RecordType
M365-AzureActiveDirectory

Description

A principal was added to a group in Azure Active Directory (the UAL operation string includes a trailing period).

Fields #

NameDescription
RecordTypeAuditLogRecordType enum value (named string in Sentinel OfficeActivity; integer in the raw Management Activity API JSON).
OperationThe name of the user or admin activity. For Exchange admin activity this is the cmdlet name; for DLP it is DlpRuleMatch/DlpRuleUndo/DlpInfo. The per-event discriminator (event.action in Elastic ECS).
WorkloadThe Microsoft 365 service where the activity occurred (Exchange, SharePoint, AzureActiveDirectory, MicrosoftTeams, ...). Surfaces as event.provider in Elastic ECS.
ResultStatusWhether the action succeeded: Succeeded, PartiallySucceeded, or Failed (True/False for Exchange admin). For STS-logon events this reflects only the HTTP operation, not logon success: check LogonError.
UserIdUPN of the user who performed the action; system-account and app@sharepoint values also appear.
UserTypeType of actor: Regular, Admin, System, DcAdmin, Application, ServicePrincipal.
UserKeyAlternative ID for the user (the PUID for SharePoint / OneDrive / Exchange events).
ClientIPIPv4/IPv6 address of the device used; may be a trusted-app IP, and is null for Microsoft Entra ID events.
ObjectIdFor SharePoint/OneDrive, the full path of the file/folder; for Exchange admin, the object modified by the cmdlet; shape is operation-specific.
OrganizationIdGUID of the tenant's Office 365 organization (constant per tenant).
IdUnique identifier (GUID) for the audit record.
CreationTimeUTC date/time when the audit record was generated.
ScopeSource of the event: online (a Microsoft 365 service) or onprem (an on-premises service; currently SharePoint only).
AppAccessContextApplication context for the user or service principal that performed the action.
AzureActiveDirectoryEventTypeThe type of Microsoft Entra event (AccountLogon, AzureApplicationAuditEvent, ...).
ExtendedPropertiesExtended properties of the Microsoft Entra event (name/value pairs).
ModifiedPropertiesFor admin events: the property modified, its new value, and its previous value.
TargetResourcesObjects affected by the operation (users, groups, apps, service principals, roles), with modifiedProperties; the Graph / Sentinel projection of the same record.

Detection Rules #

View all rules referencing this event →

YARA-L #

References #

Add member to role.

#

Equivalent operation in the other pipeline: Add member to role (Entra ID directory audit)

RecordType
M365-AzureActiveDirectory

Description

A principal was added to an Azure Active Directory directory role (the UAL operation string includes a trailing period).

Fields #

NameDescription
RecordTypeAuditLogRecordType enum value (named string in Sentinel OfficeActivity; integer in the raw Management Activity API JSON).
OperationThe name of the user or admin activity. For Exchange admin activity this is the cmdlet name; for DLP it is DlpRuleMatch/DlpRuleUndo/DlpInfo. The per-event discriminator (event.action in Elastic ECS).
WorkloadThe Microsoft 365 service where the activity occurred (Exchange, SharePoint, AzureActiveDirectory, MicrosoftTeams, ...). Surfaces as event.provider in Elastic ECS.
ResultStatusWhether the action succeeded: Succeeded, PartiallySucceeded, or Failed (True/False for Exchange admin). For STS-logon events this reflects only the HTTP operation, not logon success: check LogonError.
UserIdUPN of the user who performed the action; system-account and app@sharepoint values also appear.
UserTypeType of actor: Regular, Admin, System, DcAdmin, Application, ServicePrincipal.
UserKeyAlternative ID for the user (the PUID for SharePoint / OneDrive / Exchange events).
ClientIPIPv4/IPv6 address of the device used; may be a trusted-app IP, and is null for Microsoft Entra ID events.
ObjectIdFor SharePoint/OneDrive, the full path of the file/folder; for Exchange admin, the object modified by the cmdlet; shape is operation-specific.
OrganizationIdGUID of the tenant's Office 365 organization (constant per tenant).
IdUnique identifier (GUID) for the audit record.
CreationTimeUTC date/time when the audit record was generated.
ScopeSource of the event: online (a Microsoft 365 service) or onprem (an on-premises service; currently SharePoint only).
AppAccessContextApplication context for the user or service principal that performed the action.
AzureActiveDirectoryEventTypeThe type of Microsoft Entra event (AccountLogon, AzureApplicationAuditEvent, ...).
ExtendedPropertiesExtended properties of the Microsoft Entra event (name/value pairs).
ModifiedPropertiesFor admin events: the property modified, its new value, and its previous value.
TargetResourcesObjects affected by the operation (users, groups, apps, service principals, roles), with modifiedProperties; the Graph / Sentinel projection of the same record.

Detection Rules #

View all rules referencing this event →

Elastic #

  • M365 Identity Global Administrator Role Assigned source medium: Identifies when the Microsoft 365 Global Administrator or Company Administrator role is assigned to a user or service principal. The Global Administrator role has extensive privileges across Entra ID and Microsoft 365 services, making it a high-value target for adversaries seeking persistent access. Successful assignments of this role may indicate potential privilege escalation or unauthorized access attempts, especially if performed by accounts that do not typically manage high-privilege roles.

YARA-L #

References #

Add registered users to device.

#

Equivalent operation in the other pipeline: Add registered users to device (Entra ID directory audit)

RecordType
M365-AzureActiveDirectory

Description

Registered users were added to a device object in Azure Active Directory (the UAL operation string includes a trailing period).

Fields #

NameDescription
RecordTypeAuditLogRecordType enum value (named string in Sentinel OfficeActivity; integer in the raw Management Activity API JSON).
OperationThe name of the user or admin activity. For Exchange admin activity this is the cmdlet name; for DLP it is DlpRuleMatch/DlpRuleUndo/DlpInfo. The per-event discriminator (event.action in Elastic ECS).
WorkloadThe Microsoft 365 service where the activity occurred (Exchange, SharePoint, AzureActiveDirectory, MicrosoftTeams, ...). Surfaces as event.provider in Elastic ECS.
ResultStatusWhether the action succeeded: Succeeded, PartiallySucceeded, or Failed (True/False for Exchange admin). For STS-logon events this reflects only the HTTP operation, not logon success: check LogonError.
UserIdUPN of the user who performed the action; system-account and app@sharepoint values also appear.
UserTypeType of actor: Regular, Admin, System, DcAdmin, Application, ServicePrincipal.
UserKeyAlternative ID for the user (the PUID for SharePoint / OneDrive / Exchange events).
ClientIPIPv4/IPv6 address of the device used; may be a trusted-app IP, and is null for Microsoft Entra ID events.
ObjectIdFor SharePoint/OneDrive, the full path of the file/folder; for Exchange admin, the object modified by the cmdlet; shape is operation-specific.
OrganizationIdGUID of the tenant's Office 365 organization (constant per tenant).
IdUnique identifier (GUID) for the audit record.
CreationTimeUTC date/time when the audit record was generated.
ScopeSource of the event: online (a Microsoft 365 service) or onprem (an on-premises service; currently SharePoint only).
AppAccessContextApplication context for the user or service principal that performed the action.
AzureActiveDirectoryEventTypeThe type of Microsoft Entra event (AccountLogon, AzureApplicationAuditEvent, ...).
ExtendedPropertiesExtended properties of the Microsoft Entra event (name/value pairs).
ModifiedPropertiesFor admin events: the property modified, its new value, and its previous value.
TargetResourcesObjects affected by the operation (users, groups, apps, service principals, roles), with modifiedProperties; the Graph / Sentinel projection of the same record.

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
EventTypeeqUserLoggedIn1 ruleelastic
m365::ExtendedProperties.RequestTypeeqOAuth2:Authorize1 ruleelastic
m365::ExtendedProperties.ResultStatusDetaileqRedirect1 ruleelastic

Detection Rules #

View all rules referencing this event →

Elastic #

  • M365 Identity OAuth Flow by User Sign-in to Device Registration source high: Identifies attempts to register a new device in Microsoft Entra ID after OAuth authentication with authorization code grant. Adversaries may use OAuth phishing techniques to obtain an OAuth authorization code, which can then be exchanged for access and refresh tokens. This rule detects a sequence of events where a user principal authenticates via OAuth, followed by a device registration event, indicating potential misuse of the OAuth flow to establish persistence or access resources.↳ also matches UserLoggedIn

References #

Consent to application.

#

Equivalent operation in the other pipeline: Consent to application (Entra ID directory audit)

RecordType
M365-AzureActiveDirectory

Delete group.

#
RecordType
M365-AzureActiveDirectory

Description

A group was deleted in Azure Active Directory (the UAL operation string includes a trailing period).

Fields #

NameDescription
RecordTypeAuditLogRecordType enum value (named string in Sentinel OfficeActivity; integer in the raw Management Activity API JSON).
OperationThe name of the user or admin activity. For Exchange admin activity this is the cmdlet name; for DLP it is DlpRuleMatch/DlpRuleUndo/DlpInfo. The per-event discriminator (event.action in Elastic ECS).
WorkloadThe Microsoft 365 service where the activity occurred (Exchange, SharePoint, AzureActiveDirectory, MicrosoftTeams, ...). Surfaces as event.provider in Elastic ECS.
ResultStatusWhether the action succeeded: Succeeded, PartiallySucceeded, or Failed (True/False for Exchange admin). For STS-logon events this reflects only the HTTP operation, not logon success: check LogonError.
UserIdUPN of the user who performed the action; system-account and app@sharepoint values also appear.
UserTypeType of actor: Regular, Admin, System, DcAdmin, Application, ServicePrincipal.
UserKeyAlternative ID for the user (the PUID for SharePoint / OneDrive / Exchange events).
ClientIPIPv4/IPv6 address of the device used; may be a trusted-app IP, and is null for Microsoft Entra ID events.
ObjectIdFor SharePoint/OneDrive, the full path of the file/folder; for Exchange admin, the object modified by the cmdlet; shape is operation-specific.
OrganizationIdGUID of the tenant's Office 365 organization (constant per tenant).
IdUnique identifier (GUID) for the audit record.
CreationTimeUTC date/time when the audit record was generated.
ScopeSource of the event: online (a Microsoft 365 service) or onprem (an on-premises service; currently SharePoint only).
AppAccessContextApplication context for the user or service principal that performed the action.
AzureActiveDirectoryEventTypeThe type of Microsoft Entra event (AccountLogon, AzureApplicationAuditEvent, ...).
ExtendedPropertiesExtended properties of the Microsoft Entra event (name/value pairs).
ModifiedPropertiesFor admin events: the property modified, its new value, and its previous value.
TargetResourcesObjects affected by the operation (users, groups, apps, service principals, roles), with modifiedProperties; the Graph / Sentinel projection of the same record.

Detection Rules #

View all rules referencing this event →

YARA-L #

References #

Remove member from group.

#
RecordType
M365-AzureActiveDirectory

Description

A principal was removed from a group in Azure Active Directory (the UAL operation string includes a trailing period).

Fields #

NameDescription
RecordTypeAuditLogRecordType enum value (named string in Sentinel OfficeActivity; integer in the raw Management Activity API JSON).
OperationThe name of the user or admin activity. For Exchange admin activity this is the cmdlet name; for DLP it is DlpRuleMatch/DlpRuleUndo/DlpInfo. The per-event discriminator (event.action in Elastic ECS).
WorkloadThe Microsoft 365 service where the activity occurred (Exchange, SharePoint, AzureActiveDirectory, MicrosoftTeams, ...). Surfaces as event.provider in Elastic ECS.
ResultStatusWhether the action succeeded: Succeeded, PartiallySucceeded, or Failed (True/False for Exchange admin). For STS-logon events this reflects only the HTTP operation, not logon success: check LogonError.
UserIdUPN of the user who performed the action; system-account and app@sharepoint values also appear.
UserTypeType of actor: Regular, Admin, System, DcAdmin, Application, ServicePrincipal.
UserKeyAlternative ID for the user (the PUID for SharePoint / OneDrive / Exchange events).
ClientIPIPv4/IPv6 address of the device used; may be a trusted-app IP, and is null for Microsoft Entra ID events.
ObjectIdFor SharePoint/OneDrive, the full path of the file/folder; for Exchange admin, the object modified by the cmdlet; shape is operation-specific.
OrganizationIdGUID of the tenant's Office 365 organization (constant per tenant).
IdUnique identifier (GUID) for the audit record.
CreationTimeUTC date/time when the audit record was generated.
ScopeSource of the event: online (a Microsoft 365 service) or onprem (an on-premises service; currently SharePoint only).
AppAccessContextApplication context for the user or service principal that performed the action.
AzureActiveDirectoryEventTypeThe type of Microsoft Entra event (AccountLogon, AzureApplicationAuditEvent, ...).
ExtendedPropertiesExtended properties of the Microsoft Entra event (name/value pairs).
ModifiedPropertiesFor admin events: the property modified, its new value, and its previous value.
TargetResourcesObjects affected by the operation (users, groups, apps, service principals, roles), with modifiedProperties; the Graph / Sentinel projection of the same record.

Detection Rules #

View all rules referencing this event →

YARA-L #

References #

Set-MsolDomainFederationSettings

#
RecordType
M365-AzureActiveDirectory

Description

Federation settings for a domain were changed via the MSOnline module (a directory operation, not an Exchange cmdlet); abused to add a backdoor federation trust.

Fields #

NameDescription
RecordTypeAuditLogRecordType enum value (named string in Sentinel OfficeActivity; integer in the raw Management Activity API JSON).
OperationThe name of the user or admin activity. For Exchange admin activity this is the cmdlet name; for DLP it is DlpRuleMatch/DlpRuleUndo/DlpInfo. The per-event discriminator (event.action in Elastic ECS).
WorkloadThe Microsoft 365 service where the activity occurred (Exchange, SharePoint, AzureActiveDirectory, MicrosoftTeams, ...). Surfaces as event.provider in Elastic ECS.
ResultStatusWhether the action succeeded: Succeeded, PartiallySucceeded, or Failed (True/False for Exchange admin). For STS-logon events this reflects only the HTTP operation, not logon success: check LogonError.
UserIdUPN of the user who performed the action; system-account and app@sharepoint values also appear.
UserTypeType of actor: Regular, Admin, System, DcAdmin, Application, ServicePrincipal.
UserKeyAlternative ID for the user (the PUID for SharePoint / OneDrive / Exchange events).
ClientIPIPv4/IPv6 address of the device used; may be a trusted-app IP, and is null for Microsoft Entra ID events.
ObjectIdFor SharePoint/OneDrive, the full path of the file/folder; for Exchange admin, the object modified by the cmdlet; shape is operation-specific.
OrganizationIdGUID of the tenant's Office 365 organization (constant per tenant).
IdUnique identifier (GUID) for the audit record.
CreationTimeUTC date/time when the audit record was generated.
ScopeSource of the event: online (a Microsoft 365 service) or onprem (an on-premises service; currently SharePoint only).
AppAccessContextApplication context for the user or service principal that performed the action.
AzureActiveDirectoryEventTypeThe type of Microsoft Entra event (AccountLogon, AzureApplicationAuditEvent, ...).
ExtendedPropertiesExtended properties of the Microsoft Entra event (name/value pairs).
ModifiedPropertiesFor admin events: the property modified, its new value, and its previous value.
TargetResourcesObjects affected by the operation (users, groups, apps, service principals, roles), with modifiedProperties; the Graph / Sentinel projection of the same record.

Detection Rules #

View all rules referencing this event →

Elastic #

References #

Update application.

#
RecordType
M365-AzureActiveDirectory

Description

An application registration was modified in Azure Active Directory (the UAL operation string includes a trailing period).

Fields #

NameDescription
RecordTypeAuditLogRecordType enum value (named string in Sentinel OfficeActivity; integer in the raw Management Activity API JSON).
OperationThe name of the user or admin activity. For Exchange admin activity this is the cmdlet name; for DLP it is DlpRuleMatch/DlpRuleUndo/DlpInfo. The per-event discriminator (event.action in Elastic ECS).
WorkloadThe Microsoft 365 service where the activity occurred (Exchange, SharePoint, AzureActiveDirectory, MicrosoftTeams, ...). Surfaces as event.provider in Elastic ECS.
ResultStatusWhether the action succeeded: Succeeded, PartiallySucceeded, or Failed (True/False for Exchange admin). For STS-logon events this reflects only the HTTP operation, not logon success: check LogonError.
UserIdUPN of the user who performed the action; system-account and app@sharepoint values also appear.
UserTypeType of actor: Regular, Admin, System, DcAdmin, Application, ServicePrincipal.
UserKeyAlternative ID for the user (the PUID for SharePoint / OneDrive / Exchange events).
ClientIPIPv4/IPv6 address of the device used; may be a trusted-app IP, and is null for Microsoft Entra ID events.
ObjectIdFor SharePoint/OneDrive, the full path of the file/folder; for Exchange admin, the object modified by the cmdlet; shape is operation-specific.
OrganizationIdGUID of the tenant's Office 365 organization (constant per tenant).
IdUnique identifier (GUID) for the audit record.
CreationTimeUTC date/time when the audit record was generated.
ScopeSource of the event: online (a Microsoft 365 service) or onprem (an on-premises service; currently SharePoint only).
AppAccessContextApplication context for the user or service principal that performed the action.
AzureActiveDirectoryEventTypeThe type of Microsoft Entra event (AccountLogon, AzureApplicationAuditEvent, ...).
ExtendedPropertiesExtended properties of the Microsoft Entra event (name/value pairs).
ModifiedPropertiesFor admin events: the property modified, its new value, and its previous value.
TargetResourcesObjects affected by the operation (users, groups, apps, service principals, roles), with modifiedProperties; the Graph / Sentinel projection of the same record.

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
security_result.actioneqALLOW4 ruleschronicle
target.resource.attribute.labels.keyregex_matchNewValue_EntitlementId-3 ruleschronicle
target.resource.attribute.labels.keyregex_matchOldValue_EntitlementId-3 ruleschronicle
target.resource.product_object_ideq1b730954-1685-4b74-9bfd-dac224a7b8941 rulechronicle

Detection Rules #

View all rules referencing this event →

YARA-L #

Show 1 more (4 total)

References #

UserLoggedIn

#
RecordType
M365-AzureActiveDirectory

Description

A user successfully signed in to an Azure Active Directory-integrated application or service.

Fields #

NameDescription
RecordTypeAuditLogRecordType enum value (named string in Sentinel OfficeActivity; integer in the raw Management Activity API JSON).
OperationThe name of the user or admin activity. For Exchange admin activity this is the cmdlet name; for DLP it is DlpRuleMatch/DlpRuleUndo/DlpInfo. The per-event discriminator (event.action in Elastic ECS).
WorkloadThe Microsoft 365 service where the activity occurred (Exchange, SharePoint, AzureActiveDirectory, MicrosoftTeams, ...). Surfaces as event.provider in Elastic ECS.
ResultStatusWhether the action succeeded: Succeeded, PartiallySucceeded, or Failed (True/False for Exchange admin). For STS-logon events this reflects only the HTTP operation, not logon success: check LogonError.
UserIdUPN of the user who performed the action; system-account and app@sharepoint values also appear.
UserTypeType of actor: Regular, Admin, System, DcAdmin, Application, ServicePrincipal.
UserKeyAlternative ID for the user (the PUID for SharePoint / OneDrive / Exchange events).
ClientIPIPv4/IPv6 address of the device used; may be a trusted-app IP, and is null for Microsoft Entra ID events.
ObjectIdFor SharePoint/OneDrive, the full path of the file/folder; for Exchange admin, the object modified by the cmdlet; shape is operation-specific.
OrganizationIdGUID of the tenant's Office 365 organization (constant per tenant).
IdUnique identifier (GUID) for the audit record.
CreationTimeUTC date/time when the audit record was generated.
ScopeSource of the event: online (a Microsoft 365 service) or onprem (an on-premises service; currently SharePoint only).
AppAccessContextApplication context for the user or service principal that performed the action.
AzureActiveDirectoryEventTypeThe type of Microsoft Entra event (AccountLogon, AzureApplicationAuditEvent, ...).
ExtendedPropertiesExtended properties of the Microsoft Entra event (name/value pairs).
ModifiedPropertiesFor admin events: the property modified, its new value, and its previous value.
TargetResourcesObjects affected by the operation (users, groups, apps, service principals, roles), with modifiedProperties; the Graph / Sentinel projection of the same record.

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
EventTypeeqUserLoggedIn6 ruleselastic
security_result.actioneqALLOW6 ruleschronicle
m365::UserIdis_not_null3 ruleselastic
target.resource.product_object_ideq1b730954-1685-4b74-9bfd-dac224a7b8943 ruleschronicle
Provider_NameeqAzureActiveDirectory2 ruleselastic
m365::ApplicationIdin00b41c95-dab0-4487-9791-b9d2c32c80f22 ruleselastic
m365::ApplicationIdin04b07795-8ddb-461a-bbee-02f9e1bf7b462 ruleselastic
m365::ApplicationIdin0ec893e0-5785-4de6-99da-4ed124e5296c2 ruleselastic
m365::ApplicationIdin1950a258-227b-4e31-a9cf-717495945fc22 ruleselastic
m365::ApplicationIdin1fec8e78-bce4-4aaf-ab1b-5451cc3872642 ruleselastic
m365::ApplicationIdin22098786-6e16-43cc-a27d-191a01a1e3b52 ruleselastic
m365::ApplicationIdin26a7ee05-5602-4d76-a7ba-eae8b7b679412 ruleselastic
m365::ApplicationIdin27922004-5251-4030-b22d-91ecd9a37ea42 ruleselastic
m365::ApplicationIdin2d7f3606-b07d-41d1-b9d2-0d0c9296a6e82 ruleselastic
m365::ApplicationIdin4813382a-8fa7-425e-ab75-3b753aab3abb2 ruleselastic

Detection Rules #

View all rules referencing this event →

Sigma #

Elastic #

  • M365 Identity OAuth Flow by First-Party Microsoft App from Multiple IPs source high: Identifies sign-ins on behalf of a principal user to the Microsoft Graph or legacy Azure AD API from multiple IPs using first-party Microsoft applications from the FOCI (Family of Client IDs) group. Developer tools like Azure CLI, VSCode, and Azure PowerShell accessing these resources from multiple IPs are flagged, along with any FOCI application accessing the deprecated Windows Azure Active Directory from multiple IPs. This behavior may indicate an adversary using a phished OAuth authorization code or refresh token, as seen in attacks like ConsentFix where attackers steal localhost OAuth codes and replay them from attacker infrastructure.
  • M365 Identity Login from Atypical Region source medium: Detects successful Microsoft 365 portal logins from a country and region the user has not previously authenticated from in a specific time window. Atypical regions are identified by combining the user's country and region geolocation history; an authentication from a new country/region pair for that user may indicate an adversary attempting to access the account from an unusual location or behind a VPN.
  • M365 Identity Login from Impossible Travel Location source medium: Detects successful Microsoft 365 portal logins from impossible travel locations. Impossible travel locations are defined as two different countries within a short time frame. This behavior may indicate an adversary attempting to access a Microsoft 365 account from a compromised account or a malicious actor attempting to access a Microsoft 365 account from a different location.
Show 3 more (6 total)
  • M365 Identity OAuth Phishing via First-Party Microsoft Application source medium: Detects potentially suspicious OAuth authorization activity in Microsoft 365 where first-party Microsoft applications from the FOCI (Family of Client IDs) group request access to Microsoft Graph or legacy Azure AD resources. Developer tools like Azure CLI, Visual Studio Code, and Azure PowerShell accessing these resources are flagged, as they are commonly abused in phishing campaigns like ConsentFix. Additionally, any FOCI family application accessing the deprecated Windows Azure Active Directory resource is flagged since this API is rarely used legitimately and attackers target it for stealth. First-party apps are trusted by default in all tenants and cannot be blocked, making them ideal for OAuth phishing attacks.
  • M365 Potential AiTM UserLoggedIn via Office App (Tycoon2FA) source high: Detects Microsoft 365 audit "UserLoggedIn" events consistent with Tycoon 2FA phishing-as-a-service (PhaaS) adversary-in-the-middle (AiTM) activity: the Microsoft Authentication Broker requesting access where the object identifier matches Microsoft Graph or Exchange Online, or the Office web client application authenticating to itself, combined with Node.js-style user agents (node, axios, undici). Tycoon 2FA bypasses MFA by relaying authentication and capturing session material, often targeting Microsoft 365 and Gmail. Baseline legitimate automation and developer tooling before tuning.
  • M365 Identity OAuth Flow by User Sign-in to Device Registration source high: Identifies attempts to register a new device in Microsoft Entra ID after OAuth authentication with authorization code grant. Adversaries may use OAuth phishing techniques to obtain an OAuth authorization code, which can then be exchanged for access and refresh tokens. This rule detects a sequence of events where a user principal authenticates via OAuth, followed by a device registration event, indicating potential misuse of the OAuth flow to establish persistence or access resources.↳ also matches Add registered users to device.

YARA-L #

Show 3 more (6 total)

References #

UserLoginFailed

#
RecordType
M365-AzureActiveDirectory

Description

A user sign-in attempt to an Azure Active Directory-integrated application failed (incorrect credentials, MFA denial, or Conditional Access block).

Fields #

NameDescription
RecordTypeAuditLogRecordType enum value (named string in Sentinel OfficeActivity; integer in the raw Management Activity API JSON).
OperationThe name of the user or admin activity. For Exchange admin activity this is the cmdlet name; for DLP it is DlpRuleMatch/DlpRuleUndo/DlpInfo. The per-event discriminator (event.action in Elastic ECS).
WorkloadThe Microsoft 365 service where the activity occurred (Exchange, SharePoint, AzureActiveDirectory, MicrosoftTeams, ...). Surfaces as event.provider in Elastic ECS.
ResultStatusWhether the action succeeded: Succeeded, PartiallySucceeded, or Failed (True/False for Exchange admin). For STS-logon events this reflects only the HTTP operation, not logon success: check LogonError.
UserIdUPN of the user who performed the action; system-account and app@sharepoint values also appear.
UserTypeType of actor: Regular, Admin, System, DcAdmin, Application, ServicePrincipal.
UserKeyAlternative ID for the user (the PUID for SharePoint / OneDrive / Exchange events).
ClientIPIPv4/IPv6 address of the device used; may be a trusted-app IP, and is null for Microsoft Entra ID events.
ObjectIdFor SharePoint/OneDrive, the full path of the file/folder; for Exchange admin, the object modified by the cmdlet; shape is operation-specific.
OrganizationIdGUID of the tenant's Office 365 organization (constant per tenant).
IdUnique identifier (GUID) for the audit record.
CreationTimeUTC date/time when the audit record was generated.
ScopeSource of the event: online (a Microsoft 365 service) or onprem (an on-premises service; currently SharePoint only).
AppAccessContextApplication context for the user or service principal that performed the action.
AzureActiveDirectoryEventTypeThe type of Microsoft Entra event (AccountLogon, AzureApplicationAuditEvent, ...).
ExtendedPropertiesExtended properties of the Microsoft Entra event (name/value pairs).
ModifiedPropertiesFor admin events: the property modified, its new value, and its previous value.
TargetResourcesObjects affected by the operation (users, groups, apps, service principals, roles), with modifiedProperties; the Graph / Sentinel projection of the same record.

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
EventTypeinPasswordLogonInitialAuthUsingPassword2 ruleselastic
EventTypeinUserLoginFailed2 ruleselastic
Provider_NameinAzureActiveDirectory2 ruleselastic
Provider_NameinExchange2 ruleselastic
m365::Target.Typein02 ruleselastic
m365::Target.Typein102 ruleselastic
m365::Target.Typein22 ruleselastic
m365::Target.Typein62 ruleselastic
Esql.brute_force_typeneother1 ruleelastic
Esql.event_countge101 ruleelastic
source.as.organization.nameneMICROSOFT-CORP-MSN-as-BLOCK1 ruleelastic

Detection Rules #

View all rules referencing this event →

Elastic #

  • M365 Identity User Brute Force Attempted source medium: Identifies brute-force authentication activity targeting Microsoft 365 user accounts using failed sign-in patterns that match password spraying, credential stuffing, or password guessing behavior. Adversaries may attempt brute-force authentication with credentials obtained from previous breaches, leaks, marketplaces or guessable passwords.
  • M365 Identity User Account Lockouts source medium: Detects a burst of Microsoft 365 user account lockouts within a short 5-minute window. A high number of IdsLocked login errors across multiple user accounts may indicate brute-force attempts for the same users resulting in lockouts.

References #