M365 SharePoint Site Sharing Policy Weakened
Identifies when a SharePoint or OneDrive site sharing policy is changed to weaken security controls. The SharingPolicyChanged event fires for many routine policy modifications, but this rule targets specific…
Description
Identifies when a SharePoint or OneDrive site sharing policy is changed to weaken security controls. The SharingPolicyChanged event fires for many routine policy modifications, but this rule targets specific high-risk transitions where sharing restrictions are relaxed. This includes enabling guest sharing, enabling anonymous link sharing, making a site public, or enabling guest user access. Adversaries who compromise administrative accounts may weaken sharing policies to exfiltrate data to external accounts or create persistent external access paths.
Detection logic
Its licence does not clear it for publishing here
Sunturai publishes a detection's own text where the licence it arrived under has been reviewed and permits it, and Elastic License 2.0 has not. The query as its source wrote it, its canonical form and the hash that pins this revision are in the workspace record.
Detection requirements
- Platform
- ContainersESXiIaaSIdentity ProviderLinuxmacOSNetwork DevicesOffice SuiteWindows
The rule states no platform. This is derived from the 2 ATT&CK techniques it maps to.
- Log source category
- event_index
Known benign triggers
- Administrators legitimately enabling external sharing for a new collaboration site or project.
- Migration or onboarding projects that temporarily require external sharing to be enabled.
- Organizational policy changes that intentionally broaden sharing capabilities across sites.
MITRE ATT&CK mappings
0 exclusive techniques.This is coverage no other published rule has; it is not this rule's total technique count.
References
| Reference | Cited by |
|---|---|
| learn.microsoft.com/en-us/purview/audit-log-activities#site-administration-activities | 3 |
| learn.microsoft.com/en-us/purview/audit-log-sharing | Only this detection cites it |
| learn.microsoft.com/en-us/sharepoint/turn-external-sharing-on-or-off | Only this detection cites it |
From the source
- At source
- Open at source
- Upstream identifier
- 632906c6-ba8f-44c0-8386-ec0bbc8518bf
- Tagged by the source as
- Data Source: Microsoft 365Data Source: Microsoft 365 Audit LogsDomain: CloudDomain: SaaSNoise: MediumPerformance: NormalPlatform: Microsoft 365Resources: Investigation GuideRule Type: Custom Query (KQL)Service: Microsoft SharePointTactic: Defense EvasionUse Case: Threat Detection
Licence
- Published under
- Elastic License 2.0Read the licence
- Attribution
- Required
Authorship
- Written by
- Published
- Sep 20, 2026
- Version
- 3