SharePoint / OneDrive public link enumeration → data dump
Bing / Grayhat Warfare reveals corporate SharePoint files shared 'with anyone' — financial docs, contracts, credentials in plaintext, etc.
§ Context
Assumed environment: target has at least one SharePoint or OneDrive document mistakenly shared with 'anyone with the link', and that link has been indexed (linked from email signatures, status pages, etc.).
§ Steps
- 01Bulk-download exposed filesExfiltrationT1041— Exfiltration Over C2 Channel
- 02Grep for passwords / cloud keysReconnaissanceW-RECON-JS-SECRETS— Hardcoded Secrets in JS Bundles
- 03Bing site:*.sharepoint.com inurl:shareReconnaissanceW-RECON-GITHUB-DORK— GitHub / GitLab Dorking
- 04Locate public-share URLsCollectionM365-SHAREPOINT-LEAK— SharePoint / OneDrive External Sharing
§ References
§ Frequently asked
- What is the "SharePoint / OneDrive public link enumeration → data dump" attack path?
- Bing / Grayhat Warfare reveals corporate SharePoint files shared 'with anyone' — financial docs, contracts, credentials in plaintext, etc. It chains 4 steps drawn from real-world offensive-security techniques.
- What starting position does this attack require?
- The first step is Bulk-download exposed files (T1041) — a exfiltration primitive. Assumed environment: target has at least one SharePoint or OneDrive document mistakenly shared with 'anyone with the link', and that link has been indexed (linked from email signatures, status pages, etc.
- What is the final impact of this kill-chain?
- The final step lands on Locate public-share URLs (M365-SHAREPOINT-LEAK), which falls under Collection. From here, an operator typically pivots into post-exploitation or maintains persistence.
- How can defenders detect or prevent this attack?
- Detection and prevention vary per step. Refer to each linked MITRE ATT&CK entry under "References" — every technique on that page lists defensive controls, detection telemetry, and known threat-actor usage.
§ Related dossiers
- Shared techniques2
Stolen credentials → no-MFA Snowflake → mass tenant exfil (2024)
Infostealer logs from third-party machines yielded credentials for many Snowflake tenants. Tenants without enforced MFA / IP allow-lists were directly queried; dozens of customer data sets exfiltrated.
- Shared techniques2
Mass SMS phish → Okta-style portal → SaaS sprawl (0ktapus)
Wide SMS phishing campaign targeting employees of ~130 organisations with a single phishlet that captures Okta credentials + push approval. Mass automated logins to Twilio, MailChimp, DoorDash et al.
- Shared techniques2
Insider admin panel coercion → mass account takeover (Twitter 2020)
Identify employees with access to an internal admin panel. SE / coerce one to use the panel to change target accounts' email + 2FA, then take them over.
- Shared techniques2
Source map exposure → API key leak → cloud takeover
Public *.js.map files reveal un-minified source and inline-committed API keys (cloud provider, third-party services). Use the keys directly.