Agent skill

Defender For Cloud Hardening

by vinayaklatthe in vinayaklatthe/microsoft-security-skills

Guidance for Microsoft Defender for Cloud — cloud security posture management (CSPM) and cloud workload protection (CWPP) across Azure, AWS, and GCP.

MITAuto-check passedSecurity

Install Defender For Cloud Hardening

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

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

GitHub CLI
$ gh skill install vinayaklatthe/microsoft-security-skills defender-for-cloud-hardening --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-cloud-hardening .claude/skills/defender-for-cloud-hardening && 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-cloud-hardening
GitHub stars
175
Token cost
~1.9k tokens
SKILL.md length
776 words
Files
1
Skills in repo
50
Repo updated
First seen
Licence
MIT

At a glance

Guidance for Microsoft Defender for Cloud — cloud security posture management (CSPM) and cloud workload protection (CWPP) across Azure, AWS, and GCP.

  • Works in 7 steps: Connect all clouds — Onboard Azure… → Foundational CSPM baseline — Get Secure… → Enable Defender plans by workload risk —… → …
  • SaaS posture (use cloud-app-security-posture)
  • SKILL.md covers When to use, Pick the Defender plan by…, Approach and Guardrails, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Defender For Cloud Hardening is an agent skill from vinayaklatthe/microsoft-security-skills. Guidance for Microsoft Defender for Cloud — cloud security posture management (CSPM) and cloud workload protection (CWPP) across Azure, AWS, and GCP. Covers Foundational vs Defender CSPM, Secure Score, Defender plans (Servers, Storage, Containers, Databases, App Service, Key Vault, APIs, AI), agentless scanning, attack path analysis, and remediation prioritisation. WHEN: Defender for Cloud, CSPM, cloud workload protection, Secure Score, harden cloud posture, Defender plans, attack path analysis, multicloud…

Its SKILL.md is about 1.9k 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 Security, covering Cloud security, Secrets management and Security operations. It works with Microsoft Defender, Microsoft Azure, Amazon Web Services and Google Cloud. 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

  • SaaS posture (use cloud-app-security-posture)
  • Sentinel SIEM (use sentinel)
  • Extending Azure to on-prem servers (use azure-arc)

Example prompts

  • “/defender-for-cloud-hardening”

Workflow steps

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

  1. Connect all clouds — Onboard Azure (auto), AWS (connector + CloudFormation), GCP
  2. Foundational CSPM baseline — Get Secure Score, recommendations mapped to **Microsoft
  3. Enable Defender plans by workload risk — Use the picker table. Don't enable every
  4. Tag critical assets so the cloud security graph weights them appropriately —
  5. Remediate by attack path, not by raw count — Use attack path analysis to find
  6. Enforce with Azure Policy — Drive recommendations via Azure Policy DeployIfNotExists
  7. Operate — Stream alerts and recommendations to Sentinel for SOC correlation. Use

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 Cloud Hardening loads about 1.9k tokens when it runs. Until then it costs about 223 tokens; SKILL.md has 776 words of instructions outside code blocks.

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

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). 776 words, ~1,894 tokens.

Download SKILL.mdSave it as .claude/skills/defender-for-cloud-hardening/SKILL.md (or your agent's skills folder).
name
defender-for-cloud-hardening
description
Guidance for Microsoft Defender for Cloud — cloud security posture management (CSPM) and cloud workload protection (CWPP) across Azure, AWS, and GCP. Covers Foundational vs Defender CSPM, Secure Score, Defender plans (Servers, Storage, Containers, Databases, App Service, Key Vault, APIs, AI), agentless scanning, attack path analysis, and remediation prioritisation. WHEN: Defender for Cloud, CSPM, cloud workload protection, Secure Score, harden cloud posture, Defender plans, attack path analysis, multicloud security, remediate recommendations, cloud security hardening, improve Azure Secure Score, harden Azure subscription, protect VMs and containers, multicloud CSPM across AWS and GCP, cloud security graph. DO NOT USE for SaaS posture (use cloud-app-security-posture), Sentinel SIEM (use sentinel), or extending Azure to on-prem servers (use azure-arc).
license
MIT
metadata.author
Microsoft
metadata.version
0.1.0

Microsoft Defender for Cloud (Hardening)

Microsoft Defender for Cloud is a cloud-native application protection platform (CNAPP) combining CSPM (posture, Secure Score, attack paths) and CWPP (threat protection for servers, containers, databases, storage, APIs, AI) across Azure, AWS, and GCP.

When to use

Assessing and improving cloud security posture, and enabling workload threat protection across a multicloud estate. Use this skill to choose which Defender plans to enable, how to prioritise remediation, and how to operationalise findings.

Do not use this skill for SaaS posture (cloud-app-security-posture), Sentinel SIEM (sentinel), or extending Azure management to on-prem (azure-arc).

Pick the Defender plan by workload

WorkloadPlanEnable when
Subscriptions / accounts (posture)Foundational CSPM (free)Always; everywhere
Multicloud + attack paths + agentless scanningDefender CSPMTier 1+ environments
Windows / Linux servers (EDR, file integrity, JIT)Defender for Servers Plan 2Production servers
Storage accounts (malware, sensitive-data scanning)Defender for StoragePublic-facing / sensitive data
AKS / EKS / GKE clustersDefender for ContainersAny production cluster
SQL, Cosmos DB, open-source DBsDefender for DatabasesInternet-exposed or sensitive
App Service appsDefender for App ServiceInternet-facing apps
Key VaultDefender for Key VaultTier 0 / regulated
APIs behind APIMDefender for APIsPublic APIs
Azure AI / OpenAI workloadsDefender for AI ServicesAI workloads handling org data

Rule of thumb: Foundational CSPM everywhere on day one (it's free). Then enable Defender for Servers Plan 2 + Defender CSPM in production - those two unlock the most value (attack paths, EDR integration). Other plans by risk and budget.

Approach

  1. Connect all clouds — Onboard Azure (auto), AWS (connector + CloudFormation), GCP (connector + service account). Without all clouds connected, attack paths can't trace across them. Verify: AWS / GCP connectors show "Connected"; recommendations appearing within 24 hours.

  2. Foundational CSPM baseline — Get Secure Score, recommendations mapped to Microsoft Cloud Security Benchmark (MCSB), and asset inventory. Use as the universal baseline. Verify: Secure Score baseline captured for each subscription; recommendation count by severity logged.

  3. Enable Defender plans by workload risk — Use the picker table. Don't enable every plan on day one - cost spikes and alert fatigue. Production-first.

  4. Tag critical assets so the cloud security graph weights them appropriately — criticality=high, environment=prod, data-classification=sensitive. Attack path analysis uses these to rank. Verify: critical assets tagged consistently; attack paths page shows them weighted.

  5. Remediate by attack path, not by raw count — Use attack path analysis to find chains from internet → workload → sensitive asset. Fix the chain breakers first. Secure Score % is a vanity metric without attack-path context. Verify: top 5 attack paths reviewed weekly; chain-breaker fixes tracked separately from generic recommendation count.

  6. Enforce with Azure Policy — Drive recommendations via Azure Policy DeployIfNotExists or Audit. Assign workload-owner accountability with governance rules + SLA.

  7. Operate — Stream alerts and recommendations to Sentinel for SOC correlation. Use workflow automation (Logic Apps) for auto-response (e.g. open ticket, notify owner).

Show full SKILL.md (308 more words)Show less

Guardrails

  • Start with foundational CSPM everywhere; enable paid plans where workload risk justifies cost. Don't blanket-enable every Defender plan on every subscription.
  • Use attack path analysis to focus effort - Secure Score alone can mislead prioritisation. A 95% Secure Score with one internet-exposed unpatched VM is worse than 80% with no live attack path.
  • Tag critical assets so the cloud security graph weights them appropriately. Untagged critical asset = invisible to attack-path prioritisation.
  • Don't enable Defender for Servers Plan 2 without Defender for Endpoint license / plan awareness. Cost and EDR-policy coordination matter.
  • Recommendations without owners die. Assign via governance rules with a named owner and SLA.
  • Sentinel + Defender for Cloud is the operational pair. Posture finds, SIEM correlates with telemetry.

Common anti-patterns

  • "Maximise Secure Score by exempting recommendations" - Score goes up; risk stays. Fix, don't exempt.
  • "Enable every Defender plan everywhere" - Cost explodes; alert fatigue kills SOC. Production-first, by risk.
  • "Remediate top 100 recommendations in order" - Misses attack-path priority. Sort by attack path first.
  • "Don't connect AWS / GCP - we'll get to it later" - Cross-cloud attack paths invisible. Connect day one even if you don't enable paid plans there yet.
  • "Skip tagging critical assets" - Cloud security graph can't weight risk. Tag.
  • "Defender for Cloud is a one-time deployment" - Posture drifts daily; treat as a continuous operations programme.

Example prompts

  • Improve my Azure Secure Score in Defender for Cloud.
  • Which Defender plans should I enable to protect VMs and containers?
  • Use attack path analysis to prioritise remediation.
  • Extend CSPM across AWS and GCP with Defender for Cloud.
  • Tag critical assets and configure the cloud security graph for risk weighting.
  • Stream Defender for Cloud alerts into Sentinel with workflow automation.

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-cloud-hardening of vinayaklatthe/microsoft-security-skills.

Open the folder on GitHubat commit 15f16df

Compare with similar skills

Defender For Cloud Hardening 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 Cloud Hardening compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Defender For Cloud Hardening this skillvinayaklatthe/microsoft-security-skills175—~1.9kAutomated safety check: PassMIT
Implementing Cloud Security Posture Managementmukul975/Anthropic-Cybersecurity-Skills34k—~3kAutomated safety check: PassApache-2.0
Conducting Cloud Incident Responsemukul975/Anthropic-Cybersecurity-Skills34k—~3kAutomated safety check: PassApache-2.0
Detecting Compromised Cloud Credentialsmukul975/Anthropic-Cybersecurity-Skills34k—~3.9kAutomated safety check: PassApache-2.0
Cloud Auditbriiirussell/cybersecurity-skills413—~1.3kAutomated safety check: NotesMIT
Hunting For Living Off The Cloud Techniquesmukul975/Anthropic-Cybersecurity-Skills34k—~925Automated safety check: PassApache-2.0

Similar skills

  • Implementing Cloud Security Posture Management

    mukul975/Anthropic-Cybersecurity-Skills

    Continuously monitor multi-cloud environments (AWS, Azure, GCP) for misconfigurations, compliance violations, and security risks using Prowler, ScoutSuite, AWS Security Hub, Microsoft Defender for…

    34k GitHub stars~3k tokensUpdated 1 mo ago
    SecurityAuto-check passed
  • Conducting Cloud Incident Response

    mukul975/Anthropic-Cybersecurity-Skills

    Respond to security incidents in AWS, Azure, and GCP via identity-based containment, cloud-native log analysis (CloudTrail, Azure Activity Logs, GCP Audit Logs), resource isolation, and forensic…

    34k GitHub stars~3k tokensUpdated 1 mo ago
    DevOps & CloudAuto-check passed
  • Detecting Compromised Cloud Credentials

    mukul975/Anthropic-Cybersecurity-Skills

    Detect compromised cloud credentials across AWS, Azure, and GCP by analyzing anomalous API activity, impossible-travel patterns, and credential-stuffing indicators using GuardDuty, Microsoft…

    34k GitHub stars~3.9k tokensUpdated 1 mo ago
    DevOps & CloudAuto-check passed
  • Cloud Audit

    briiirussell/cybersecurity-skills

    Audit cloud infrastructure (AWS, GCP, Azure) for misconfigurations, excessive permissions, and security gaps.

    413 GitHub stars~1.3k tokensUpdated 4 mo ago
    SecurityAuto-check: notes
  • Hunting For Living Off The Cloud Techniques

    mukul975/Anthropic-Cybersecurity-Skills

    Hunts for adversary abuse of legitimate cloud services (Azure, AWS, GCP, and SaaS platforms) for command-and-control, data staging, and exfiltration, i.e.

    34k GitHub stars~925 tokensUpdated 1 mo ago
    SecurityAuto-check passed
  • Implementing Cloud Vulnerability Posture Management

    mukul975/Anthropic-Cybersecurity-Skills

    Implement multi-cloud CSPM to detect cloud-native misconfigurations and vulnerabilities (IAM over-permissions, exposed storage, unencrypted data, missing network controls) using AWS Security Hub…

    34k GitHub stars~1.9k tokensUpdated 1 mo ago
    SecurityAuto-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

Categories

Questions about Defender For Cloud Hardening

What does Defender For Cloud Hardening do?

Guidance for Microsoft Defender for Cloud — cloud security posture management (CSPM) and cloud workload protection (CWPP) across Azure, AWS, and GCP. Defender For Cloud Hardening is an agent skill from vinayaklatthe/microsoft-security-skills. Guidance for Microsoft Defender for Cloud — cloud security posture management (CSPM) and cloud workload protection (CWPP) across Azure, AWS, and GCP.

When should I use Defender For Cloud Hardening?

Defender For Cloud Hardening fits situations like: saaS posture (use cloud-app-security-posture); sentinel SIEM (use sentinel); extending Azure to on-prem servers (use azure-arc).

How do I install Defender For Cloud Hardening in Claude Code?

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

How do I install Defender For Cloud Hardening in Codex?

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

Can I use Defender For Cloud Hardening 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-cloud-hardening -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-cloud-hardening, .gemini/skills/defender-for-cloud-hardening, .github/skills/defender-for-cloud-hardening and .opencode/skills/defender-for-cloud-hardening in your project.

What does Defender For Cloud Hardening need to run?

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

Does Defender For Cloud Hardening 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 Cloud Hardening 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 Cloud Hardening use?

Defender For Cloud Hardening 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 Cloud Hardening use?

About 1.9k tokens (SKILL.md is roughly 7.6k 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 Cloud Hardening?

Skills that share tags, products or a category with Defender For Cloud Hardening: Implementing Cloud Security Posture Management (mukul975/Anthropic-Cybersecurity-Skills, 34k stars), Conducting Cloud Incident Response (mukul975/Anthropic-Cybersecurity-Skills, 34k stars), Detecting Compromised Cloud Credentials (mukul975/Anthropic-Cybersecurity-Skills, 34k stars) and Cloud Audit (briiirussell/cybersecurity-skills, 413 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Defender For Cloud Hardening?

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.