Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
What this is
SharePointDumper is a PowerShell-based SharePoint extraction + auditing utility designed for SOC/DLP testing, purple teaming, and basic red-team assessments. Given an already obtained Microsoft Graph OAuth2 delegated access token, it:
🔧 Technical Details
Delegated Graph token → SharePoint data exfiltration at scale: If you obtain a delegated Microsoft Graph access token with
Sites.Read.AllorSites.ReadWrite.All, you can programmatically enumerate SharePoint resources through Graph (sites → drives → folders/files) and then exfiltrate file contents by downloading items via SharePoint “pre-authentication” download URLs. This turns a token theft event into bulk document theft with high confidentiality impact.Using pre-consented Microsoft first-party OAuth clients to get usable tokens: When many Microsoft first-party app registrations already have pre-consented
Sites.Read…permissions, an operator can request tokens using those knownClientID+RedirectUrlpairs (and sometimes an-Originheader for non-FOCI clients) instead of registering a new app in the tenant. Tools like EntraTokenAid automateInvoke-Authto obtain these to...🤖 Agent Actions
Summary:
Tests:
This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.