m365-oversharing
Skill by vinayaklatthe
Guides remediation of oversharing across Microsoft 365 using the Secure & Governed Data Foundation blueprint. It is for administrators who need to reduce who can reach SharePoint, OneDrive, Teams and Exchange content.
Install m365-oversharing
Built from the published package, never by AI.
git clone --depth 1 https://github.com/vinayaklatthe/microsoft-security-skills /tmp/microsoft-security-skills && mkdir -p ~/.claude/skills && cp -r /tmp/microsoft-security-skills/skills/m365-oversharing ~/.claude/skills/m365-oversharingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/vinayaklatthe/microsoft-security-skills /tmp/microsoft-security-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/microsoft-security-skills/skills/m365-oversharing ~/.gemini/antigravity-cli/skills/m365-oversharingAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill gives an AI assistant guidance for fixing oversharing in Microsoft 365, meaning content shared more broadly than it should be. It follows Microsoft's Secure & Governed Data Foundation blueprint, which has three pillars: remediate oversharing, set up guardrails, and meet regulations. The approach runs in order: assess, classify, restrict, default-secure, then govern. It relies on SharePoint Advanced Management data access governance reports, sensitivity and container labels, Restricted Access Control, Restricted Content Discovery, and Microsoft Purview.
The skill is aimed at teams building a well-governed Microsoft 365 data estate. It covers steps such as finding sites with Everyone Except External Users access, applying interim restrictions, engaging site owners, and setting secure-by-default labelling. It applies whether or not Copilot is in scope. It also lists common anti-patterns, such as fixing only the top sites and enabling new tools before remediation.
Written from the project's SKILL.md and checked against it.
What it can do
- Assess with DAG reportsUses SharePoint Advanced Management data access governance reports to find the riskiest sites.
- Apply interim restrictionsApplies Restricted Access Control or Restricted Content Discovery to high-risk sites while owners remediate.
- Engage site ownersGuides notifying owners with expected fixes before changing permissions centrally.
- Classify and labelApplies sensitivity labels to sensitive content and container labels to sites.
- Secure-by-default labellingDerives labels from SharePoint sites and tightens default sharing so new content is protected.
- Govern lifecycleApplies site lifecycle, inactive-site policies and access reviews to stop oversharing returning.
- Meet regulations and monitorUses Purview Audit and Compliance Manager to close audit, legal and AI-regulatory gaps.
What you need
- SharePoint Advanced Management licence
- Microsoft 365 Copilot licence or a standalone or E5 SKU
- Microsoft Purview
Try asking
- Remediate oversharing across Microsoft 365 using the secure and governed data foundation blueprint.
- Use SharePoint Advanced Management data access governance to find over-broad access.
- Clean up Everyone except external users and sharing-link sprawl.
Good to know
- SharePoint Advanced Management must be licensed, so confirm reports are available first.
- Remediation should happen before broad Copilot or AI enablement.
- Oversharing control is continuous governance, not a one-time cleanup.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/m365-oversharing/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to m365-oversharing
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
m365-oversharing: common questions
What is the Secure & Governed Data Foundation blueprint?
It is Microsoft's blueprint for remediating oversharing in Microsoft 365. It has three pillars: remediate oversharing, set up guardrails, and meet regulations.
Do I need Copilot to use this skill?
No. The source says it applies whether or not Copilot is in scope, since it is data-foundation work that AI or data programs depend on.
Should I encrypt all content with the top sensitivity label?
The source advises against this. Encrypting everything breaks external collaboration, so secure-by-default labelling with exception handling is recommended instead.
How do I install m365-oversharing?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is m365-oversharing free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is m365-oversharing safe to use?
It scores 57 of 100. Grades: maintenance B, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to m365-oversharing?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
