4 minhigh
File Acquisition May Be Recorded as “FileAccessed” in Microsoft 365 (“M365”)
Threat actors abuse Microsoft Graph API to exfiltrate M365 files, generating only FileAccessed events in the Unified Audit Log without corresponding FileDownloaded telemetry. Scripted access via Microsoft Graph and non-browser user agents retrieves file content from SharePoint and OneDrive but logs as FileAccessed. Investigators must correlate access method, user agent, volume, and velocity to assess data exposure accurately.
Sens:▲ 24hConf:highAnalyzed:2026-11-05Z.ai
Authors: Jamie Mamroe
ActorsShinyHuntersPEARHelix
Source:SpiderLabs
Improve this report
Send corrections, useful missing information, or quality feedback. It is private and will not appear as a comment.
Detection / HunterZ.ai
Immediate Actions
- Review M365 UAL for high-volume FileAccessed events with scripted user agents
- Revoke compromised session tokens and reset affected account credentials
- Block suspicious source IPs identified in unauthorized M365 access
Key Takeaways
- Threat actors ShinyHunters, PEAR, and HELIX use phishing and vishing to access M365 accounts.
- Microsoft Graph API access can retrieve full file content without generating FileDownloaded events.
- FilePreviewed events are ambiguous and may result from thumbnail rendering or prefetch behavior.
- High-volume sequential FileAccessed events during a compromised session indicate programmatic file acquisition.
- Python and PowerShell user agents during M365 access indicate scripted exfiltration.
Attack Chain
- Initial Access: Threat actors use phishing and vishing to compromise M365 email accounts.
- Defense Evasion: Actors abuse identity tokens and Microsoft Graph API to access files programmatically.
- Collection: Scripted tools retrieve file content from SharePoint and OneDrive via API.
- Exfiltration: File content is acquired without generating FileDownloaded telemetry in UAL.
- Impact: Stolen data is used for extortion campaigns against the victim organization.
Affected Systems
- Microsoft 365 Unified Audit Log
- SharePoint Online
- OneDrive for Business
- Microsoft Entra ID
- Microsoft Graph API
Detection Engineering Assessment
Hunting Hypotheses
| Hypothesis | Telemetry | Stage | FP Risk |
|---|---|---|---|
| High-volume FileAccessed events from a single session within minutes indicate automated file exfiltration via Microsoft Graph API (T1213.002). | Microsoft 365 Unified Audit Log events | Collection | Medium — bulk sync tools may generate similar patterns |
| M365 access from Python or PowerShell user agents indicates scripted data retrieval (T1059.006, T1059.001). | UAL UserAgent string and Entra ID sign-in logs | Collection | Low — scripted admin tools are uncommon for M365 file access |
| FilePreviewed events followed by rapid FileAccessed events suggest enumeration before exfiltration (T1213). | Microsoft 365 Unified Audit Log operation sequences | Collection | Medium — legitimate preview behavior can mimic this pattern |
Required Log Sources
- Microsoft 365 Unified Audit Log
- Microsoft Graph API activity logs
- Entra ID sign-in logs
- Proxy or firewall logs for user agents
- Cloud Access Security Broker (CASB) logs
Control Gaps
- FileAccessed events alone do not confirm file acquisition
- Microsoft Graph API access lacks FileDownloaded telemetry
- Non-browser user agents not flagged by default in M365
- UAL does not differentiate programmatic vs interactive file access
Recommendations
Infrastructure Hardening
- Enable Microsoft 365 audit log search and retain logs for investigation
- Implement conditional access policies restricting non-browser access to M365
- Monitor Microsoft Graph API usage for anomalous file access patterns
User Protection
- Enforce MFA for all M365 accounts with anti-phishing controls
- Educate employees on phishing and vishing techniques targeting M365 credentials
- Restrict SSO-connected third-party app access to essential services only
MITRE ATT&CK Mapping
MITRE ATT&CK Mapping13 techniques
Tactic
Initial Access
Tactic
Credential Access
Tactic
Collection