Agent skill

Defender For Storage

by vinayaklatthe in vinayaklatthe/microsoft-security-skills

Guidance for Microsoft Defender for Storage — threat protection for Azure Storage accounts (Blob, Files, Data Lake Gen2).

MITAuto-check passedDocuments & Office

Install Defender For Storage

skills CLI
$ npx skills add vinayaklatthe/microsoft-security-skills --skill defender-for-storage -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install vinayaklatthe/microsoft-security-skills defender-for-storage --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/vinayaklatthe/microsoft-security-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/defender-for-storage .claude/skills/defender-for-storage && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
defender-for-storage
GitHub stars
175
Token cost
~2k tokens
SKILL.md length
825 words
Files
1
Skills in repo
50
Repo updated
First seen
Licence
MIT

At a glance

Guidance for Microsoft Defender for Storage — threat protection for Azure Storage accounts (Blob, Files, Data Lake Gen2).

  • Works in 7 steps: Enable Defender for Storage v2 at… → Override per storage account for outliers → Wire scan results to Event Grid. Set up… → …
  • SQL/Cosmos DB protection (use defender-for-cloud-hardening)
  • SKILL.md covers When to use, Plan and add-ons, Approach and Guardrails, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Defender For Storage is an agent skill from vinayaklatthe/microsoft-security-skills. Guidance for Microsoft Defender for Storage — threat protection for Azure Storage accounts (Blob, Files, Data Lake Gen2). Covers the v2 (per-storage-account) plan, on-upload malware scanning powered by Defender Antivirus, sensitive data threat detection (integrated with Purview classification), activity-based threat detection, override per storage account, exclusion of high-volume accounts, Event Grid integration for scan results, and cost controls (per-GB scan cap). WHEN: Defender for Storage, Azure Storage…

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Documents & Office, covering Cloud office suites and Budgeting and forecasting. It works with Microsoft Defender, Microsoft 365, Microsoft Azure and SQL. The repository describes itself as: Curated Microsoft Security skills for AI agents - Defender, Sentinel, Entra, Purview, Intune, Security Copilot. The licence is MIT.

When your agent uses it

  • SQL/Cosmos DB protection (use defender-for-cloud-hardening)
  • VM disk malware (use defender-for-servers agentless scan)
  • M365 SharePoint/OneDrive (use defender-for-office-365)

Example prompts

  • “/defender-for-storage”

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Enable Defender for Storage v2 at subscription scope with malware scanning on
  2. Override per storage account for outliers
  3. Wire scan results to Event Grid. Set up an Event Grid system topic per protected
  4. Sensitive data threat detection — turn on after Purview classifies the accounts.
  5. Tune alerts. Baseline 7 days then suppress noisy ones (e.g., expected SAS-token use
  6. Block public anonymous access at the storage account. Defender alerts on suspicious
  7. Response runbook for "Malicious blob uploaded" alert

What it can do on your machine

Read from SKILL.md and the folder at commit 15f16df. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • learn.microsoft.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Defender For Storage loads about 2k tokens when it runs. Until then it costs about 251 tokens; SKILL.md has 825 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~251
When it runs · the whole SKILL.md, loaded when a task matches
~2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from vinayaklatthe/microsoft-security-skills at commit 15f16df, republished under its MIT licence (© vinayaklatthe). 825 words, ~1,951 tokens.

Download SKILL.mdSave it as .claude/skills/defender-for-storage/SKILL.md (or your agent's skills folder).
name
defender-for-storage
description
Guidance for Microsoft Defender for Storage — threat protection for Azure Storage accounts (Blob, Files, Data Lake Gen2). Covers the v2 (per-storage-account) plan, on-upload malware scanning powered by Defender Antivirus, sensitive data threat detection (integrated with Purview classification), activity-based threat detection, override per storage account, exclusion of high-volume accounts, Event Grid integration for scan results, and cost controls (per-GB scan cap). WHEN: Defender for Storage, Azure Storage malware scan, Blob malware scanning, sensitive data threat detection, on-upload scan, Defender for Storage v2, Storage account threat protection, scan results Event Grid, Purview classification storage, malicious blob upload, exfiltration alert storage, untrusted upload scan. DO NOT USE for SQL/Cosmos DB protection (use defender-for-cloud-hardening), VM disk malware (use defender-for-servers agentless scan), or M365 SharePoint/OneDrive (use defender-for-office-365).
license
MIT
metadata.author
Microsoft
metadata.version
0.1.0

Microsoft Defender for Storage

Defender for Storage protects Azure Blob Storage, Azure Files, and Azure Data Lake Storage Gen2 against malicious uploads, sensitive data exfiltration, and suspicious access patterns. The current generation is Defender for Storage v2, billed per storage account, with optional add-ons for on-upload malware scanning and sensitive data threat detection.

When to use

Protecting Azure Storage accounts that receive uploads from untrusted or partner sources, host application content (web apps, ML datasets), or contain sensitive data classified by Purview. Use this skill for plan rollout, malware-scan tuning, and incident response on storage alerts.

Do not use this skill for SQL/Cosmos data plane protection (defender-for-cloud-hardening), VM disk-level malware (defender-for-servers), or M365 file workloads (defender-for-office-365).

Plan and add-ons

ComponentWhat it doesCost model
Defender for Storage v2 (base)Activity monitoring: anomalous access, suspicious extraction, unusual deletionPer storage account / month
On-upload malware scanningDefender AV scans every uploaded blob up to 2 GB; result tag + Event Grid eventPer GB scanned (capped per-account configurable)
Sensitive data threat detectionIntegrates with Purview sensitive-info-types; alerts when sensitive blobs are accessed by suspicious principalsIncluded in v2 (no extra fee)

v1 (per-transaction) is deprecated. Migrate any v1-enabled accounts to v2 — it's cheaper and predictable.

Approach

  1. Enable Defender for Storage v2 at subscription scope with malware scanning on and a per-account monthly GB cap (default 5,000 GB). Cap prevents runaway costs on high-throughput accounts. Verify: Defender for Cloud → Environment settings → Subscription → Storage shows v2 plan On with malware scanning enabled.

  2. Override per storage account for outliers:

    • Disable malware scan on append-only logging accounts, large telemetry sinks, or accounts already scanning at the application layer.
    • Disable plan entirely on tenant-scoped diagnostic accounts (Activity Logs export, NSG flow logs) where threat detection adds no value.
  3. Wire scan results to Event Grid. Set up an Event Grid system topic per protected account; subscribe a Function/Logic App that:

    • Moves malicious blobs to a quarantine container (or deletes).
    • Writes the verdict to the blob's index tag (Malware-Scanning-scan-result-tag).
    • Notifies the SOC. Verify: upload an EICAR test file; within 2 minutes the blob is tagged Malicious and the quarantine workflow fires.
  4. Sensitive data threat detection — turn on after Purview classifies the accounts. Without classification, this just runs on file extensions/header heuristics. Pair with Purview Data Map for full value (see purview-data-map).

  5. Tune alerts. Baseline 7 days then suppress noisy ones (e.g., expected SAS-token use from CDN edge IPs). Send remaining alerts into Sentinel via the Defender for Cloud connector.

  6. Block public anonymous access at the storage account. Defender alerts on suspicious anonymous reads, but the right control is allowBlobPublicAccess = false and Azure Policy to enforce. Defender is detection, not prevention.

  7. Response runbook for "Malicious blob uploaded" alert:

    1. Confirm the verdict tag on the blob.
    2. Move to quarantine container; revoke any SAS/keys for the upload identity.
    3. Hunt sibling uploads from same principal in the past 24h via KQL on StorageBlobLogs.
    4. Notify owner; close the alert with evidence.
Show full SKILL.md (327 more words)Show less

Guardrails

  • Always set a per-account GB cap on malware scanning. Without it, a misbehaving client uploading the same 50 GB file 1,000 times can produce a six-figure scan bill.
  • Files > 2 GB are not scanned. Compensate with application-layer scanning or block uploads above 2 GB on untrusted endpoints.
  • Malware scan is asynchronous. Do not architect a "scan-then-let-the-app-read" flow on the assumption of <1s latency; scans typically take seconds to minutes. Use Event Grid to gate downstream processing.
  • Don't enable on diagnostic-export accounts. They're append-only system telemetry; scanning is wasteful and noisy.
  • Sensitive data alerts depend on Purview. Without Purview classification, you'll get weak heuristic-only signal.
  • Public anonymous access is a configuration problem, not a Defender problem. Block it at the platform layer.

Common anti-patterns

  • "Enabled on every storage account in the subscription, no exclusions" — diagnostic and log accounts blow up cost. Override.
  • "Relied on the malware verdict tag without Event Grid" — the bad blob still exists and is readable until something acts on the tag.
  • "Application reads blob immediately after upload" — race with async scan. Gate on the scan-complete event.
  • "Scan cap left at unlimited" — bill shock incident in week one.
  • "Migrated from v1 by re-enabling alongside v1" — disable v1 first; double-billing.
  • "Used Defender for Storage instead of Purview DLP for SharePoint/OneDrive" — wrong workload. SharePoint is M365, not Azure Storage.

Example prompts

  • Enable Defender for Storage v2 across 50 subscriptions with malware scanning capped at 3 TB/account/month.
  • Wire the malware scan Event Grid event to a Logic App that quarantines malicious blobs.
  • Exclude diagnostic-export storage accounts from Defender for Storage via Azure Policy.
  • Alert on sensitive data threat detection and route to Sentinel — what's needed from Purview first?
  • Build the IR runbook for "Malicious file uploaded to blob" alerts.
  • Estimate monthly cost for 200 storage accounts averaging 500 GB ingest each.

Microsoft Learn

© vinayaklatthe, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/defender-for-storage of vinayaklatthe/microsoft-security-skills.

Open the folder on GitHubat commit 15f16df

Compare with similar skills

Defender For Storage next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Defender For Storage compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Defender For Storage this skillvinayaklatthe/microsoft-security-skills175—~2kAutomated safety check: PassMIT
Add Data Sourcemicrosoft/power-platform-skills9841 repos~1.1kAutomated safety check: PassMIT
Slack To Teamsmicrosoft/work-iq1k1 repos~2.3kAutomated safety check: PassCustom licence
Entra Agent Usergithub/awesome-copilot40k1 repos~2.3kAutomated safety check: PassMIT
Teams App Developermicrosoft/skills3.1k—~1.9kAutomated safety check: NotesMIT
M365 Agent Evaluatormicrosoft/work-iq1k—~2kAutomated safety check: NotesCustom licence

Similar skills

  • Add Data Source

    microsoft/power-platform-skills

    Official

    Guide the user to add a data source, connection, or API connector to a Canvas App via Power Apps Studio, then verify and continue.

    984 GitHub starsUsed in 1 repo~1.1k tokens
    Documents & OfficeAuto-check passed
  • Slack To Teams

    microsoft/work-iq

    Official

    Sub-skill of microsoft-365-agents-toolkit. An agent skill from microsoft/work-iq.

    1k GitHub starsUsed in 1 repo~2.3k tokens
    Documents & OfficeAuto-check passed
  • Entra Agent User

    github/awesome-copilot

    Official

    Create Agent Users in Microsoft Entra ID from Agent Identities, enabling AI agents to act as digital workers with user identity capabilities in Microsoft 365 and Azure environments.

    40k GitHub starsUsed in 1 repo~2.3k tokens
    Documents & OfficeAuto-check passed
  • Teams App Developer

    microsoft/skills

    Official

    Builds, tests, and deploys Microsoft 365 apps and agents for Teams and Copilot.

    3.1k GitHub stars~1.9k tokensUpdated yesterday
    Documents & OfficeAuto-check: notes
  • M365 Agent Evaluator

    microsoft/work-iq

    Official

    A skill your agent uses when a user wants to create, run, or analyze evaluation suites for Microsoft 365 Copilot declarative agents with the public @microsoft/m365-copilot-eval CLI.

    1k GitHub stars~2k tokensUpdated yesterday
    Documents & OfficeAuto-check: notes
  • Msgraph

    codemie-ai/codemie-code

    Work with Microsoft 365 services via the Graph API — emails, calendar events, SharePoint sites (read and write), Teams chats and channel messages, OneDrive files, OneNote notebooks, Planner task…

    294 GitHub stars~4.1k tokensUpdated 2 days ago
    Documents & OfficeAuto-check passed

More from vinayaklatthe/microsoft-security-skills

All 50 skills in this repo
  • API Security Design

    vinayaklatthe/microsoft-security-skills

    Guidance for designing secure APIs on Azure - authentication, authorization, gateway controls, input validation, rate limiting, secret management, and runtime threat detection - aligned to OWASP API…

    175 GitHub stars~2.2k tokensUpdated 3 mo ago
    Auto-check passed
  • Azure App Service Security

    vinayaklatthe/microsoft-security-skills

    Guidance for securing Azure App Service web apps and APIs — managed identity, Easy Auth with Microsoft Entra ID, network isolation via private endpoints + VNet integration, HTTPS / TLS hardening…

    175 GitHub stars~1.9k tokensUpdated 3 mo ago
    Auto-check passed
  • Azure Arc

    vinayaklatthe/microsoft-security-skills

    Guidance for Azure Arc — projecting on-premises, multicloud (AWS/GCP), and edge servers, Kubernetes, and data services into Azure Resource Manager for unified governance, security, and management.

    175 GitHub stars~1.9k tokensUpdated 3 mo ago
    Auto-check passed
  • Azure Bastion Jit

    vinayaklatthe/microsoft-security-skills

    Guidance for secure remote VM management in Azure using Azure Bastion combined with Defender for Cloud just-in-time (JIT) VM access.

    175 GitHub stars~2.2k tokensUpdated 3 mo ago
    Auto-check passed
  • Azure Confidential Computing

    vinayaklatthe/microsoft-security-skills

    Guidance for Azure Confidential Computing — protecting data in use through hardware-based Trusted Execution Environments (TEEs).

    175 GitHub stars~2.4k tokensUpdated 3 mo ago
    Auto-check passed
  • Azure Ddos Protection

    vinayaklatthe/microsoft-security-skills

    Guidance for Azure DDoS Protection — Network Protection (per-VNet) and IP Protection (per public IP) tiers built on the same always-on Microsoft platform.

    175 GitHub stars~2k tokensUpdated 3 mo ago
    Auto-check passed

Questions about Defender For Storage

What does Defender For Storage do?

Guidance for Microsoft Defender for Storage — threat protection for Azure Storage accounts (Blob, Files, Data Lake Gen2). Defender For Storage is an agent skill from vinayaklatthe/microsoft-security-skills. Guidance for Microsoft Defender for Storage — threat protection for Azure Storage accounts (Blob, Files, Data Lake Gen2).

When should I use Defender For Storage?

Defender For Storage fits situations like: SQL/Cosmos DB protection (use defender-for-cloud-hardening); VM disk malware (use defender-for-servers agentless scan); M365 SharePoint/OneDrive (use defender-for-office-365).

How do I install Defender For Storage in Claude Code?

Run `npx skills add vinayaklatthe/microsoft-security-skills --skill defender-for-storage -a claude-code`. Or copy the skill folder (skills/defender-for-storage in vinayaklatthe/microsoft-security-skills) into .claude/skills/defender-for-storage in your project. Claude Code loads it when a task matches its description.

How do I install Defender For Storage in Codex?

Run `npx skills add vinayaklatthe/microsoft-security-skills --skill defender-for-storage -a codex`. Or copy the skill folder (skills/defender-for-storage in vinayaklatthe/microsoft-security-skills) into .agents/skills/defender-for-storage in your project. Codex loads it when a task matches its description.

Can I use Defender For Storage in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add vinayaklatthe/microsoft-security-skills --skill defender-for-storage -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/defender-for-storage, .gemini/skills/defender-for-storage, .github/skills/defender-for-storage and .opencode/skills/defender-for-storage in your project.

What does Defender For Storage need to run?

SKILL.md names no scripts, command-line tools or credentials: Defender For Storage is instructions for the agent only.

Does Defender For Storage access the network?

SKILL.md names 1 domain. As links in the text: learn.microsoft.com. This is read from the text; nothing was executed.

Is Defender For Storage safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Defender For Storage use?

Defender For Storage is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Defender For Storage use?

About 2k tokens (SKILL.md is roughly 7.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Defender For Storage?

Skills that share tags, products or a category with Defender For Storage: Add Data Source (microsoft/power-platform-skills, 984 stars), Slack To Teams (microsoft/work-iq, 1k stars), Entra Agent User (github/awesome-copilot, 40k stars) and Teams App Developer (microsoft/skills, 3.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Defender For Storage?

vinayaklatthe (a GitHub user) maintains it in vinayaklatthe/microsoft-security-skills, which has 175 GitHub stars. The repository holds 50 skills in this directory. The repository was last updated on June 18, 2026.

Source: vinayaklatthe/microsoft-security-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.