defender-for-office-365

defender-for-office-365 is a skill for Claude Code, Codex from vinayaklatthe/microsoft-security-skills. It costs 221 tokens per session (2,388 once invoked), scanned A, original, MIT.

Microsoft Defender for Office 365 guidance for protecting email and Microsoft 365 collaboration tools such as Teams, SharePoint, and OneDrive. It covers threats including phishing, malware, fake sender addresses, and business email compromise.

In plain words
What is it for?
Use it to choose Plan 1 or Plan 2, configure preset security policies, Safe Links, Safe Attachments, anti-phishing controls, and investigate email incidents.
Why use it?
It reduces the chance that malicious messages, links, or files reach users or remain active after delivery. It also helps select the Microsoft 365 plan and security policy settings that match the required protections.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to choose Plan 1 or Plan 2, configure preset security policies, Safe Links, Safe Attachments, anti-phishing controls, and investigate email incidents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vinayaklatthe/microsoft-security-skills/defender-for-office-365
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add vinayaklatthe/microsoft-security-skills --skill defender-for-office-365
Clone the repo
git clone --depth 1 https://github.com/vinayaklatthe/microsoft-security-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for defender-for-office-365

README.md
[![agentmods](https://agentmods.dev/badge/skills/vinayaklatthe/microsoft-security-skills/defender-for-office-365/github.svg)](https://agentmods.dev/skills/vinayaklatthe/microsoft-security-skills/defender-for-office-365)
Your own site
<a href="https://agentmods.dev/skills/vinayaklatthe/microsoft-security-skills/defender-for-office-365"><img src="https://agentmods.dev/badge/skills/vinayaklatthe/microsoft-security-skills/defender-for-office-365/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for defender-for-office-365

Your own site · 80×15
<a href="https://agentmods.dev/skills/vinayaklatthe/microsoft-security-skills/defender-for-office-365"><img src="https://agentmods.dev/badge/skills/vinayaklatthe/microsoft-security-skills/defender-for-office-365.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 221 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,388 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00221 $0.02388
Opus 5 $0.00111 $0.01194
Sonnet 5 $0.00044 $0.00478
Haiku 4.5 $0.00022 $0.00239

Measured 12d ago against content hash d1d3b41396fb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

defender-for-office-365 scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/defender-for-office-365/SKILL.md · 150 lines

How it starts

The opening of the file, as written. The whole thing — 150 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Microsoft Defender for Office 365

Microsoft Defender for Office 365 (MDO) protects email and collaboration workloads against phishing, malware, spoofing, and business email compromise. It provides preset policies, detonation (Safe Attachments), time-of-click URL protection (Safe Links), post-delivery detection and hunting (Threat Explorer + AIR), and attack simulation training.

When to use

Securing Exchange Online mail flow and Microsoft 365 collaboration (Teams, SharePoint, OneDrive). Use this skill for plan/preset decisions, control configuration, drift detection, and SOC operations on email incidents.

Do not use this skill for endpoint protection (defender-for-endpoint), broader cross-workload investigation (defender-xdr), or SharePoint oversharing before Copilot rollout (purview-copilot-oversharing).

Pick the plan, then the preset

If you need... Plan / SKU Notes
Safe Links, Safe Attachments, anti-phish, anti-spam, anti-malware MDO Plan 1 Bundled with M365 Business Premium and E3 add-on
Threat Explorer, Real-time detections, AIR, attack simulation training, automated investigation MDO Plan 2 Bundled with M365 E5 / MDO P2
Cross-tenant secure collaboration (B2B/B2C with MDO) MDO P1 or P2 Apply preset to guest senders too
Posture Preset to apply Who it fits
Default healthy baseline, low admin overhead Standard preset Most enterprises - apply to all users
High-target, regulated, or executive-heavy estate Strict preset Tier-0 admins, finance, exec mailboxes
Custom carve-out (e.g. vendor with broken SPF) Custom policy with priority above preset Use sparingly - documents drift risk

Rule of thumb: apply Standard preset to all users as the floor, Strict preset to high-risk groups (executives, finance, IT admins, legal) as the ceiling. Custom policies only where presets genuinely don't fit - every custom policy is a future drift source.

Read the full file on GitHub · 150 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 150 lines · 221 tokens per session scan A d1d3b41396fb

Subscribe to this mod's changes

defender-for-office-365 is a skill published in the GitHub repository vinayaklatthe/microsoft-security-skills (173 stars, last pushed 2mo ago), licensed MIT. It adds 221 tokens to every session and 2,388 once invoked, about $0.0011 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

power-automate

Use when operating Microsoft Power Automate cloud flows from code — create, enable, update, list or delete via the Dataverse Web API (workflow table, category 5) with Entra ID OAuth2, plus run-history debugging. NOT designing the flow definition (that is automation-flows), NOT picking a platform by billing model (that…

ericrisco/rsc-harness · 82 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

generate-run-commands

Generate or modify run commands for the current session. Use when the user wants to set up or update run commands that appear in the session's Run button.

microsoft/vscode · 36 tokens

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

skill-writing-plans

Create zero-context implementation plans with bite-sized tasks — use for multi-step feature planning.

nyldn/claude-octopus · 21 tokens

bf-to-agents-sdk-dotnet-migration

Use when migrating a Bot Framework .NET SDK bot to Microsoft 365 Agents SDK. Triggered by projects that depend on packages: Microsoft.Bot.Builder or Microsoft.Bot.Builder.Integration.AspNet.Core that want to migrate to Agents SDK.

microsoft/Agents · 56 tokens