DET-177 · agent · confidence Medium

App-Driven Sharing Changes

Track sharing and permission changes made by OAuth apps and service principals rather than people.

Sharing changes by apps are often skipped in user-focused reviews. In Microsoft 365, the audit record carries the app ID. In Google Drive, the event shows when an OAuth client made the change. Counting app-driven external or public shares lets you catch agents that over-share.

Many assistants act on behalf of a signed-in user, so the user ID alone does not tell you whether a person or an agent made the change. The app ID field is what separates them. Add sensitivity labels to the query to rank the results.

Data sources
Microsoft 365 unified audit logGoogle Drive audit log
Platforms
Microsoft 365Google WorkspaceAI Platform

Logic

OfficeActivity
| where Operation in ("AnonymousLinkCreated", "SharingSet", "SharingInvitationCreated", "AddedToGroup")
| where isnotempty(AppId) and AppId !in (first_party_ui_app_ids)
| summarize Changes = count(), Targets = make_set(TargetUserOrGroupName, 20) by AppId, UserId, bin(TimeGenerated, 1h)
| where Changes > 5

False positives

Approved provisioning tools that share project folders on creation.

Catches 1 technique