October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
Redmond desk5 min

How to Detect and Investigate SharePoint Exploitation in Microsoft 365

A practical Microsoft 365 investigation workflow for correlating Entra session identifiers, SharePoint file and sharing activity, application consent, malware alerts and Defender incidents.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Investigate suspected SharePoint exploitation by correlating Microsoft Entra sign-in identifiers with SharePoint Online activity in Microsoft Purview Audit, then tracing file access, sharing changes, application consent and related Microsoft Defender incidents. Audit events are evidence to connect—not proof of exploitation on their own.

What to establish before searching

Start with the suspected identity and time window. Record the user, affected site or library, files of concern, suspected start time, and any sign-in anomaly or alert already known. Include enough time to cover both possible initial access and later activity, and document the time zone used so records can be compared consistently.

As an Amazon Associate I earn from qualifying purchases.

The goal is a defensible timeline and scope: which identity acted, through which session or token, on which resources, what access changed, and whether the activity connects to other Microsoft 365 services. Microsoft’s guidance on linkable identifiers in Microsoft Entra starts with sign-in records and the user object identifier around the suspected token-compromise time.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Correlate sign-ins with SharePoint audit records

In Microsoft Entra sign-in records, look for a Session ID (SID) or Unique Token Identifier (UTI) that can be carried into audit searches. In SharePoint Online audit data, Microsoft maps these and related identifiers as follows:

Identifier in sign-in or token context SharePoint audit field What it helps connect
sid AADSessionId in the App Access Context object Activity associated with the same Entra session
uti UniqueTokenId Activity associated with the same token identifier
oid UserObjectId The user object acting in the tenant
tid OrganizationId The organization associated with the activity
Device ID Device identifier, when available Device context; Microsoft says it is available only for registered or domain-joined devices

Search Purview Audit for SharePoint Online in the relevant time range, filter by the user and any available session or token identifier, and export the results for timeline analysis. Missing device information does not by itself resolve whether activity was legitimate; it may simply not be available for that device context. See Microsoft’s identifier mapping and token-misuse guidance.

If token misuse is suspected, Microsoft describes revoking active user sessions and tokens first, followed by forensic scoping of unauthorized actions across affected services. Treat containment as a response-team decision, and preserve the evidence and timeline needed to determine impact.

Interpret file, page and sharing events as sequences

Review SharePoint and OneDrive file and page operations alongside sharing records, rather than treating a single event name as a verdict. Microsoft’s audit activity reference describes FileAccessedExtended as continued access by the same person over an extended period, up to three hours, and FileModifiedExtended similarly for continued modification. These extended events are intended to reduce repeated-event noise; do not count each as an independent open or edit without checking associated initial events and surrounding activity.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Sharing events answer different questions at different stages. In Microsoft’s sharing-audit guidance, the invitation itself does not grant access: “The invitation grants no access to the resource at this point.” Check whether it was accepted or whether another access path was used.

Audit event What it indicates What to verify
SharingInvitationCreated An invitation was generated; this alone does not mean the recipient can access the resource. Whether it was accepted, who received it, and whether the sharing was expected.
SharingInvitationAccepted The external recipient accepted and received access. The target identity, resource, time, and approval context.
AnonymousLinkCreated / AnonymousLinkUsed An “Anyone” link was created and later used. Creation and use as separate steps, plus the resource and timing.
SecureLinkCreated / AddedToSecureLink A specific-person link was created and a target user added. The target field and adjacent event details.
AddedToGroup / SharingSet Access may have been granted through group membership, including where the target already has a directory guest account. The target, group or sharing change, and whether it matches an approved action.

For each sequence, establish who initiated sharing, what was shared, who received access, and whether access was accepted or used. The acting user and target user appear in sharing records; exported AuditData can include additional context. Use that detail to connect the event to the resource and the rest of the timeline.

Check for application consent as another access path

If suspicious access may involve an application grant, search the audit log for Consent to application activity. Inspect the record details, including the administrative-consent value, then inventory the applications and permissions to decide whether the grant was expected. Microsoft’s application-consent investigation guidance says a corresponding record may take 30 minutes to 24 hours to appear; retention and searchability also depend on the user’s Microsoft 365 subscription licensing. An immediate search with no result therefore does not establish that no consent event occurred.

Expand scope through Microsoft Defender

When the activity appears in Microsoft Defender incidents, use the incident overview and timeline to connect affected users and entities, evidence, response status, the incident graph, and underlying investigations. Microsoft documents automated investigation and response as collecting findings into an incident. The cited incident workflow lists Defender for Office 365 Plan 2 or higher, suitable security roles, and Search and purge as prerequisites; confirm the tenant’s current licensing and role setup before relying on those features. See Microsoft’s incident management and investigation guide.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Audit searches can be opened in Microsoft Defender or Microsoft Purview. Microsoft’s Defender portal audit-search guidance lists Exchange Online Organization Management or Compliance Management role groups, or Microsoft Entra Global Administrator or Compliance Administrator roles, among permission routes. Microsoft says it “strongly advocates for the principle of least privilege”: give each account only the permissions needed, and reserve Global Administrator for emergency use or cases without a suitable lower-privilege route.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Investigate malware detections and blocked files

For a suspicious file or malware alert, identify the detection source in Defender quarantine or the relevant content-malware view. Search Purview Audit for FileMalwareDetected; Microsoft describes VirusVendor and VirusInfo fields in its audit data. SharePoint Online PowerShell’s Get-SPOMalwareFile returns detection details, including malware information and site and path context. Microsoft’s SharePoint malware-detection guidance describes the relevant investigation paths.

SharePoint uses Microsoft Defender for Office 365 sandbox scanning and Microsoft Defender for Endpoint signature-based protection. Scanning can be asynchronous and depend on factors such as file type and sharing status. When a file is detected as malware, access is blocked and a warning appears. Investigate the detection; do not unblock the file unless you are confident it is safe. Microsoft also describes submitting suspected false positives for analysis.

Build a conclusion from correlated evidence

Assess the records together before deciding whether the activity was unauthorized. Compare the acting identity and target, session or token identifier, application or guest identity where relevant, device context if present, resource scope, event sequence, and timing against expected work and approved sharing. Preserve raw audit details and exported context alongside any alert summaries, and account for possible delays, retention limits, licensing, and missing fields.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

State conclusions at the strength the evidence supports: an unusual invitation, link use, file operation, or consent record can be a lead, but the official procedures do not establish that any one event alone proves exploitation. Correlated identity, resource, sharing, and incident evidence is what supports a defensible finding.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.