SharePoint and OneDrive sharing operations M365-SharePointSharingOperation

4 operations, identified by Operation in the audit log.

OperationDescription
_catch_allCatch-all for M365-SharePointSharingOperation rules matching the RecordType but no specific Operation.
AnonymousLinkCreatedAn anonymous (anyone-with-the-link) sharing link was created for a file or folder, exposing it without authentication.
AnonymousLinkUpdatedAn existing anonymous sharing link was modified (e.g. permission level changed).
AnonymousLinkUsedAn anonymous sharing link was used to access a file or folder, indicating external/unauthenticated access.

_catch_all: SharePoint and OneDrive sharing operations (catch-all)

#
RecordType
M365-SharePointSharingOperation

Description

Catch-all for M365-SharePointSharingOperation 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.
ItemTypeThe type of object accessed or modified (File, Folder, List, Site, ...).
EventSourceIdentifies a SharePoint event: SharePoint or ObjectModel.
SiteUrlURL of the site where the file or folder is located.
SourceRelativeUrlURL of the folder containing the file; SiteUrl + SourceRelativeUrl + SourceFileName equals the full ObjectId path.
SourceFileNameName of the file or folder accessed by the user.
SourceFileExtensionFile extension of the accessed file (blank for folders).
DestinationFileNameName of the file copied or moved (FileCopied / FileMoved events).
UserSharedWithThe user a resource was shared with (sharing operations).
SharingTypeThe permission level assigned to the user the resource was shared with.
UserAgentClient or browser information reported by the client.
MachineIdDevice information for device-sync operations (when present in the request).
ApplicationIdID of the application performing the operation.
ListIdGUID of the SharePoint list (when applicable).

References #

AnonymousLinkCreated

#
RecordType
M365-SharePointSharingOperation

Description

An anonymous (anyone-with-the-link) sharing link was created for a file or folder, exposing it without authentication.

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.
ItemTypeThe type of object accessed or modified (File, Folder, List, Site, ...).
EventSourceIdentifies a SharePoint event: SharePoint or ObjectModel.
SiteUrlURL of the site where the file or folder is located.
SourceRelativeUrlURL of the folder containing the file; SiteUrl + SourceRelativeUrl + SourceFileName equals the full ObjectId path.
SourceFileNameName of the file or folder accessed by the user.
SourceFileExtensionFile extension of the accessed file (blank for folders).
DestinationFileNameName of the file copied or moved (FileCopied / FileMoved events).
UserSharedWithThe user a resource was shared with (sharing operations).
SharingTypeThe permission level assigned to the user the resource was shared with.
UserAgentClient or browser information reported by the client.
MachineIdDevice information for device-sync operations (when present in the request).
ApplicationIdID of the application performing the operation.
ListIdGUID of the SharePoint list (when applicable).

Detection Rules #

View all rules referencing this event →

YARA-L #

  • O365 OneDrive Anonymous Link Created or Updated source: Anonymous links can be used to export files from OneDrive. While this isn't always a sign of malicious activity, some organizations do not support the creation of anonymous links because of the risk of data leakage. This rule detects the creation or modification of anonymous links in OneDrive.↳ also matches AnonymousLinkUpdated

References #

AnonymousLinkUpdated

#
RecordType
M365-SharePointSharingOperation

Description

An existing anonymous sharing link was modified (e.g. permission level changed).

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.
ItemTypeThe type of object accessed or modified (File, Folder, List, Site, ...).
EventSourceIdentifies a SharePoint event: SharePoint or ObjectModel.
SiteUrlURL of the site where the file or folder is located.
SourceRelativeUrlURL of the folder containing the file; SiteUrl + SourceRelativeUrl + SourceFileName equals the full ObjectId path.
SourceFileNameName of the file or folder accessed by the user.
SourceFileExtensionFile extension of the accessed file (blank for folders).
DestinationFileNameName of the file copied or moved (FileCopied / FileMoved events).
UserSharedWithThe user a resource was shared with (sharing operations).
SharingTypeThe permission level assigned to the user the resource was shared with.
UserAgentClient or browser information reported by the client.
MachineIdDevice information for device-sync operations (when present in the request).
ApplicationIdID of the application performing the operation.
ListIdGUID of the SharePoint list (when applicable).

Detection Rules #

View all rules referencing this event →

YARA-L #

  • O365 OneDrive Anonymous Link Created or Updated source: Anonymous links can be used to export files from OneDrive. While this isn't always a sign of malicious activity, some organizations do not support the creation of anonymous links because of the risk of data leakage. This rule detects the creation or modification of anonymous links in OneDrive.↳ also matches AnonymousLinkCreated

References #

AnonymousLinkUsed

#
RecordType
M365-SharePointSharingOperation

Description

An anonymous sharing link was used to access a file or folder, indicating external/unauthenticated access.

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.
ItemTypeThe type of object accessed or modified (File, Folder, List, Site, ...).
EventSourceIdentifies a SharePoint event: SharePoint or ObjectModel.
SiteUrlURL of the site where the file or folder is located.
SourceRelativeUrlURL of the folder containing the file; SiteUrl + SourceRelativeUrl + SourceFileName equals the full ObjectId path.
SourceFileNameName of the file or folder accessed by the user.
SourceFileExtensionFile extension of the accessed file (blank for folders).
DestinationFileNameName of the file copied or moved (FileCopied / FileMoved events).
UserSharedWithThe user a resource was shared with (sharing operations).
SharingTypeThe permission level assigned to the user the resource was shared with.
UserAgentClient or browser information reported by the client.
MachineIdDevice information for device-sync operations (when present in the request).
ApplicationIdID of the application performing the operation.
ListIdGUID of the SharePoint list (when applicable).

Common Indicators #

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

FieldKindValueRulesVendors
SubjectUserNameeqanonymous1 rulechronicle

Detection Rules #

View all rules referencing this event →

YARA-L #

  • O365 OneDrive Anonymous Link Accessed source: Anonymous links can be used to access files from OneDrive. While this isn't always a sign of malicious activity, some organizations do not support the use of anonymous links because of the risk of data leakage. This rule detects when anonymous links are used to access files from OneDrive.

References #