Most engineers think…
Most engineers hear "Microsoft Defender for Cloud" and picture one antivirus-style product that you switch on and it protects everything. So they assume the whole thing is one paid bundle, and that the Secure Score and the threat alerts are the same feature.
Wrong — and this exact confusion loses marks on AZ-500 and money on the bill. Defender for Cloud is two different jobs in one pane: CSPM (Cloud Security Posture Management) is the free part — the Secure Score, the recommendations, the misconfiguration hunting across Azure, AWS and GCP. CWPP (Cloud Workload Protection Platform) is the set of paid Defender plans you switch on per workload type — Servers, Storage, SQL, Containers, Key Vault, App Service — that watch the running resource and raise ATT&CK-mapped alerts when something is actually attacking it. Posture is the home inspection; protection is the burglar alarm. Knowing which is which is the whole lesson.
① Two jobs in one — CSPM and CWPP
Meet Sneha, an L1 cloud-security analyst at Infosys. On her first week she's handed a single Azure blade — Microsoft Defender for Cloud — and told "keep our cloud secure." She opens it and sees two very different things on the same screen: a big Secure Score percentage with a list of recommendations, and separately a list of security alerts screaming about suspicious activity. Same product, two completely different jobs. Getting this split straight is the difference between passing AZ-500 and guessing.
Job one is CSPM (Cloud Security Posture Management). This is the free part. The moment you enable Defender for Cloud on a subscription, it starts assessing every resource against the Microsoft cloud security benchmark (MCSB) and produces a Secure Score plus a list of recommendations — "this storage account is public," "this VM has no disk encryption." CSPM finds misconfigurations before an attacker does, across Azure, AWS and GCP. Nothing is being attacked; this is the proactive, hygiene side.
Job two is CWPP (Cloud Workload Protection Platform). This is the paid part — a set of Defender plans you turn on per workload type: Defender for Servers (VMs), Storage, SQL, Containers/AKS, Key Vault and App Service. Each plan watches its workload for actual threats and raises a security alert when something is happening — "a malicious blob was uploaded," "a reverse shell on this VM." CWPP is the reactive, real-time defence.
Think of your apartment society. The gate-pass register at the entrance is CSPM: it checks, in advance, whether every flat has locked its door and registered its visitors — it finds the unlocked window before any thief shows up. The burglar alarm wired into each flat is CWPP: it stays quiet until someone actually breaks in, then it screams in real time. The register is free and always running for the whole society; the alarm is a paid add-on you install flat by flat (workload by workload). You want both — but they are not the same thing, and only one of them costs extra.
One more layer worth naming now: CSPM itself comes in two plans. Foundational CSPM is free and on by default. Defender CSPM is paid and adds the heavy posture features: attack-path analysis, the cloud security graph, CIEM (permissions analysis) and agentless vulnerability scanning. So the full picture is: free Foundational CSPM, optional paid Defender CSPM, and then the per-workload CWPP Defender plans on top. Together Microsoft markets this whole thing as a CNAPP.
The four building blocks, one tap each
Tap each card. These four names are what every Defender for Cloud question on AZ-500 and SC-100 is really testing.
Free, default. Secure Score + recommendations + compliance across Azure/AWS/GCP. So: posture grading costs nothing.
Paid CSPM upgrade: attack paths, security graph, CIEM, agentless scan. So: deeper posture insight, but it bills.
Paid per workload: Servers, Storage, SQL, Containers, Key Vault. So: real-time alerts on the running resource.
The umbrella name for CSPM + CWPP together. So: one platform, posture and protection end to end.
Rahul at TCS says: "Finance is worried about cost. Which part of Defender for Cloud gives us a Secure Score and misconfiguration recommendations WITHOUT any per-resource charge?"
Pause & Predict
Predict: Defender for Cloud shows BOTH "Storage accounts should restrict network access" and "Malicious blob uploaded to storage account." Which one is CSPM and which is CWPP — and which one needed money turned on? Type your guess.
② Secure Score, recommendations & compliance
The Secure Score is the headline number on the blade, and L1 engineers are constantly asked "why did it drop?" So you need to know how it's built. Defender for Cloud groups recommendations into security controls. Each control has a fixed max score — for example Enable MFA = 10 points, Secure management ports = 8, Apply system updates = 6, Remediate vulnerabilities = 6. The bigger the number, the more it matters, so you fix the heavy controls first.
The maths is simple. For one control, Defender counts how many resources are healthy (compliant) versus unhealthy (need a fix). The control's current score is max ÷ total resources × healthy resources. Microsoft's own worked example: a control worth 6 points, with 4 healthy out of 78 total resources, scores 6 ÷ 78 = 0.0769, then 0.0769 × 4 = 0.31. Fix the other 74 and the control climbs toward its full 6. All the control scores add up into the subscription Secure Score, which Defender re-evaluates every eight hours.
Symptom: an engineer remediates several findings but the Secure Score stays put. Two real causes. First, only the MCSB built-in recommendations move the score — recommendations flagged Preview, and the newer risk-prioritisation labels, do not change the number. Second, the score only recalculates every ~8 hours, so give it time. If you fixed a Preview recommendation expecting points, that's why nothing happened — it counts only once it reaches general availability.
Beyond the single score, the Regulatory compliance dashboard maps the very same findings against formal standards — CIS Azure Benchmark, PCI-DSS, NIST and more. So when an auditor at ICICI asks "are we PCI-DSS compliant on this subscription?", Meera doesn't run a separate scan — she opens the compliance dashboard, picks the PCI-DSS standard, and reads pass/fail per control with the failing resources listed. Recommendations are also mapped to the MITRE ATT&CK tactics so you can see which attacker techniques a misconfiguration would enable.
Now the part L1 engineers actually do all day: turning a recommendation into action. Take the classic "Storage accounts should restrict network access". Open it and you get three buttons in the Take action panel: Fix (apply the change now), Enforce (auto-correct future resources via Azure Policy) and Deny (block new non-compliant resources from being created at all). If you can't fix it today, you assign it instead — with a governance rule.
A governance rule turns "someone should fix this" into accountability. At Defender for Cloud → Environment settings → Governance rules → Create governance rule, you scope the rule, pick which recommendations it covers (by severity, risk level, category or specific recommendation), set an owner (by Microsoft Entra email, or read from a resource tag), and a remediation time frame of 7, 14, 30 or 90 days. Until the due date the recommendation shows On time; after it, Overdue. Owners and their managers get a weekly email of open and overdue tasks. (Governance rules need the paid Defender CSPM plan.)
When you set a governance rule you can tick Apply grace period. This means: while the recommendation is assigned but not yet overdue, it does not drag down your Secure Score. It only starts hurting the score once it passes the due date. That's deliberate — it lets a security team set a realistic SLA (say 30 days to fix all medium findings) without the score punishing them for work that's legitimately in progress. The score reflects the SLA, not just the raw config state.
Priya at HCL fixes 30 storage accounts that were flagged Preview, expecting her Secure Score to jump. It doesn't move. What's the best explanation?
Pause & Predict
Predict: your team sets a governance rule giving 30 days to fix all medium recommendations, with the grace period ON. A new medium finding appears today. Does it hurt your Secure Score this week? Type your guess.
③ Workload protection — the Defender plans
Now the paid side: the CWPP Defender plans. Each protects one workload type and raises ATT&CK-mapped alerts. The one you'll meet first is Defender for Servers, and it ships in two plans. Plan 1 (P1) integrates Microsoft Defender for Endpoint (MDE) — a full EDR on every VM, auto-provisioned, billed per hour (so you only pay while the VM runs). Plan 2 (P2) includes everything in P1 and adds the operational extras.
Two P2 features matter for the exam and the job. Just-in-Time (JIT) VM access keeps RDP (3389) and SSH (22) closed by default and opens them only when a named user requests access, for a specific source IP and a limited time — then auto-closes. That kills the #1 brute-force entry point. File Integrity Monitoring (FIM) watches critical OS files, Windows registry keys and Linux system files and alerts when they change — a classic sign of tampering. Modern FIM rides on the MDE agent (the old Log Analytics/MMA agent retired in 2024).
az security pricing create \
--name VirtualMachines \
--tier Standard \
--subscription 11111111-2222-3333-4444-555555555555
# verify which Defender plans are on
az security pricing list --query "value[].{plan:name, tier:pricingTier}" -o tablePlan Tier ------------------- -------- VirtualMachines Standard StorageAccounts Standard Containers Free SqlServers Free KeyVaults Free
Next, Defender for Storage. Its headline feature is on-upload malware scanning: every blob is scanned by Microsoft Defender Antivirus the moment it lands, so a poisoned file can't sit in your bucket and spread — you get the alert "Malicious blob uploaded to storage account" (ATT&CK: Lateral Movement, High). It also does sensitive-data threat detection (powered by Sensitive Data Discovery + Microsoft Purview labels), so an alert on a container holding PII is prioritised higher. And it flags abused SAS tokens and public-access changes — all without you enabling any diagnostic logs.
Finally, Defender for Containers. It works in two halves. Registry scanning is agentless vulnerability assessment — every image pushed to Azure Container Registry (ACR) (or AWS ECR, Google GAR) is scanned for CVEs, re-scanned daily, so you stop deploying known-vulnerable images. Runtime protection uses the Defender sensor (a DaemonSet on the cluster nodes) plus Kubernetes audit logs to run 60+ Kubernetes-aware analytics — "exposed Kubernetes dashboard," "creation of a high-privileged role," "sensitive mount" — each mapped to the MITRE ATT&CK matrix for Containers.
▶ Watch one malicious upload trip Defender for Storage
Karthik at Flipkart has Defender for Storage with malware scanning ON. A customer-upload web app writes a poisoned PDF to a blob container. Follow what happens. Press Play for the healthy path, then Break it to see the failure.
Aditya at Wipro faces this
Aditya, an L2 engineer, sees a flood of Defender alerts: 'Exposed Kubernetes service detected' and 'Creation of high privileged roles' on a Wipro AKS cluster, all within minutes.
A misconfigured CI/CD pipeline deployed a workload as a LoadBalancer service with no auth and created a cluster-admin ClusterRoleBinding. Defender for Containers' runtime sensor and the Kubernetes audit logs caught both — the exposed service (ATT&CK: Initial Access) and the privilege grant (ATT&CK: Privilege Escalation).
He doesn't guess. He opens the alert, reads the mapped ATT&CK tactic and the affected pod/role, and checks whether the LoadBalancer is genuinely meant to be internet-facing or is an accident.
Microsoft Defender for Cloud > Security alerts > (filter: resource = aks-wipro-prod) > select alert > View full details > Take actionRevert the rogue ClusterRoleBinding, change the service back to ClusterIP (or add an ingress with auth), and add a Defender security-gating / Azure Policy rule so a privileged or publicly-exposed deployment is blocked at admission next time.
Re-deploy through the pipeline → the gating policy rejects the over-privileged manifest; no new 'high privileged role' alert fires; the service no longer has a public IP.
Neha at Airtel wants to keep RDP/SSH closed and only open it for a specific engineer, from a specific IP, for one hour when they request it. Which feature — and which plan — does she need?
Pause & Predict
Predict: a developer pushes a container image with a known-critical CVE to ACR, but nothing is deployed yet. With Defender for Containers on, do you get a recommendation, an alert, or nothing? Type your guess.
④ Operating it — multicloud, SIEM & a worked flow
Real environments are rarely pure Azure. The strength of Defender for Cloud is that the same Secure Score, recommendations and even CWPP plans extend to AWS and GCP through multicloud connectors. You add one at Defender for Cloud → Environment settings → Add environment → Amazon Web Services (or Google Cloud Platform). You name the connector, choose Management account or Single account, pick the Defender plans, then deploy a CloudFormation (AWS) or Terraform (AWS/GCP) template that grants the read role. Within a few hours, AWS EC2 and S3 show up in the same Secure Score as your Azure VMs.
SecurityResources | where type == 'microsoft.security/securescores' | extend current = properties.score.current, max = todouble(properties.score.max) | project subscriptionId, current, max, percentage = ((current / max) * 100)
subscriptionId current max percentage ----------------------------------- ------- ---- ---------- 11111111-2222-3333-4444-555555555555 41.2 58 71.03 aws-connector-prod-123456789012 28.7 46 62.39 gcp-connector-prod-flipkart-data 33.1 50 66.20
Defender for Cloud is not where your SOC lives all day — your SIEM is. So you export. The cleanest route to Microsoft's own SIEM, Microsoft Sentinel, is the built-in Microsoft Defender for Cloud connector, which streams alerts and can two-way-sync status (close it in Sentinel, it closes in Defender). For third-party SIEMs (Splunk, QRadar, ArcSight) you use continuous export at Environment settings → Continuous export, sending to an Event Hub the SIEM reads from.
Two more operating switches. Auto-provisioning means Defender installs the MDE extension and enables agentless scanning on supported machines automatically as they appear — turn it on once and new VMs are protected without manual agent rollouts. And remember the cost guardrail: Defender for Storage's malware scanning lets you set a monthly GB scan cap, and you get the alert "Malware scanning will stop soon: 75% of monthly cap reached" before it pauses — so a sudden upload spike can't blow the bill silently.
Let's tie the whole lesson together with the worked flow every L1 should be able to narrate. (1) Finding: the free CSPM raises "Storage accounts should restrict network access" on a public account — Secure Score takes a hit on the Restrict unauthorised network access control. (2) Triage: Sneha opens it, sees 7 unhealthy of 31, reads the ATT&CK context. (3) Remediate: she clicks Fix to apply network rules now, then clicks Enforce to deploy an Azure Policy so future storage accounts can't be public. (4) Govern: for the resources she can't touch today she assigns a governance rule (owner by tag, 14-day SLA, grace period on). (5) Score rises: within ~8 hours the unhealthy count drops, the control's max ÷ total × healthy climbs, and the Secure Score goes up.
Don't trust the green tick alone. After clicking Fix, re-open the recommendation and confirm the unhealthy resource count dropped (e.g. 7 → 1). Then check the storage account itself: Storage account → Networking → Public network access = Disabled / Enabled from selected networks. Finally, wait one 8-hour cycle and confirm the Restrict unauthorised network access control's current score rose. Finding cleared + resource actually reconfigured + control score up = a real fix, not just a dashboard that looks better.
One forward-looking note, because interviewers ask about it: Defender for Cloud is steadily moving into the unified Microsoft Defender portal (XDR), and 2025 brought AI security posture management and attack-path analysis for AI agents — Defender now discovers your generative-AI workloads and maps how a weak link could chain into a breach. Heads-up on cost: from 1 July 2026, AI-agent discovery and posture for Microsoft Foundry and third-party cloud agents needs a Microsoft Agent 365 license rather than just Defender CSPM. The split you learned — free posture, paid protection — keeps holding as the surface grows.
For your certification path, this lesson is high-yield. On AZ-500, Defender for Cloud sits squarely in the Manage security operations and Secure compute, storage and databases domains — Secure Score, recommendations, JIT, the Defender plans and Sentinel export are all directly testable. On SC-100 (the architect exam) it's the tool you cite when designing posture management and a CNAPP strategy across a multicloud estate. Know the CSPM-vs-CWPP split, the score formula and which features are free, and these questions become free marks.
Two ideas from this section, made concrete. Multicloud connectors are like Aadhaar e-KYC: once your AWS/GCP account proves its identity to Defender for Cloud (via the CloudFormation/Terraform role), it's trusted and assessed in the same register as Azure — one score across all of them. JIT VM access is the gym day-pass: the door (RDP/SSH) is normally locked; you request a pass for a specific time, the door opens just for you, then auto-locks. No standing open door = far fewer break-ins.
An interviewer asks Meera: "We're 60% Azure, 40% AWS. How do we get ONE Secure Score and send all the threat alerts to our existing Splunk SOC?" Best answer?
🤖 Ask the AI Tutor
Tap any question — instant, scoped to this lesson. No login, no waiting.
Pre-curated from Azure docs + community Q&A, scoped to this lesson. For a live prod issue, paste your export into chat.techclick.in.
📝 Wrap-up assessment — six more
You've answered 4 inline. Six left. 70% (7 of 10) marks the lesson complete on your profile. Tap Submit all answers at the end.
🧠 In your own words
Type one line: In one line, why is the Secure Score free but the alert that a malicious blob was uploaded is not? Then compare to the expert version.
🗣 Teach a friend
Best way to lock it in — explain it in one line to a teammate. Tap to generate a paste-ready summary.
📖 Glossary
- Microsoft Defender for Cloud
- Microsoft's CNAPP — does both posture management (CSPM) and workload threat protection (CWPP) across Azure, AWS and GCP.
- CSPM
- Cloud Security Posture Management — continuously assesses how securely your cloud is configured; the free Secure Score and recommendations live here.
- CWPP
- Cloud Workload Protection Platform — the paid Defender plans that watch running workloads and raise threat alerts.
- Secure Score
- A single percentage aggregating all security findings; higher = lower identified risk. Re-evaluated every ~8 hours.
- MCSB
- Microsoft cloud security benchmark — the built-in standard applied by default; only its built-in recommendations move the Secure Score.
- Security control
- A themed bucket of related recommendations with a fixed max score (e.g. Enable MFA = 10, Secure management ports = 8).
- Governance rule
- An SLA: auto-assigns an owner and a 7/14/30/90-day due date to recommendations; optional grace period spares the score until overdue.
- Defender for Servers
- CWPP plan for VMs. P1 = MDE/EDR; P2 adds Just-in-Time VM access, File Integrity Monitoring and OS-baseline assessment.
- JIT VM access
- Just-in-Time — keeps RDP/SSH closed and opens them only for a requested user, source IP and time window, then auto-closes.
- Defender for Storage
- CWPP plan that scans uploaded blobs for malware (Microsoft Defender Antivirus), detects sensitive-data exposure and flags abused SAS tokens.
- Defender for Containers
- CWPP plan: agentless registry/image vulnerability scanning plus runtime detection (Defender sensor + audit logs), mapped to ATT&CK for Containers.
- Multicloud connector
- A native connector (CloudFormation/Terraform) that folds an AWS account or GCP project into the same Secure Score and Defender plans, then exports alerts to Sentinel or a SIEM via continuous export.
📚 Sources
- Microsoft Learn — "What is Microsoft Defender for Cloud?" (CSPM + CWPP, the CNAPP model, Foundational vs Defender CSPM, the Defender plan list). learn.microsoft.com/azure/defender-for-cloud/defender-for-cloud-introduction
- Microsoft Learn — "Secure score in Defender for Cloud" (the max ÷ total × healthy control equation, the 6/78×4=0.31 worked example, control point weights MFA=10/ports=8, 8-hour recalculation, MCSB-only and Preview-excluded rules). learn.microsoft.com/azure/defender-for-cloud/secure-score-security-controls
- Microsoft Learn — "Drive recommendation remediation by using governance rules" + "Security policies in Defender for Cloud" (owner by email/tag, 7/14/30/90-day SLA, grace period, weekly owner+manager emails; the 'Storage accounts should restrict network access' MCSB example, Fix/Enforce/Deny). learn.microsoft.com/azure/defender-for-cloud/governance-rules · learn.microsoft.com/azure/defender-for-cloud/security-policy-concept
- Microsoft Learn — "Defender for Servers" overview + support matrix + "What is Defender for Storage" + "Introduction to Defender for Containers" (P1 vs P2: JIT + FIM are P2; MDE per-hour billing; on-upload malware scanning via MDAV; registry scan + 60+ runtime analytics mapped to ATT&CK for Containers; Storage alerts e.g. Storage.Blob_AM.MalwareFound). learn.microsoft.com/azure/defender-for-cloud/defender-for-servers-overview · /defender-for-storage-introduction · /defender-for-containers-introduction
- Microsoft Learn — "Connect AWS accounts" / "Connect your GCP project" + "Export alerts and recommendations with continuous export" + "Ingest Defender for Cloud alerts to Microsoft Sentinel" (Environment settings → Add environment → AWS/GCP via CloudFormation/Terraform; Event Hub export; the Sentinel connector with bi-directional sync). learn.microsoft.com/azure/defender-for-cloud/quickstart-onboard-aws · /continuous-export · learn.microsoft.com/azure/sentinel/connect-defender-for-cloud
- Microsoft Tech Community — "Microsoft Defender for Cloud Innovations at Ignite 2025" + Microsoft Learn "AI security posture management" (move into the unified Defender/XDR portal; AI security posture + attack-path analysis for AI agents; from 1 July 2026 AI-agent discovery requires a Microsoft Agent 365 license). techcommunity.microsoft.com/blog/microsoftdefendercloudblog/microsoft-defender-for-cloud-innovations-at-ignite-2025/4469386 · learn.microsoft.com/azure/defender-for-cloud/ai-security-posture
- Microsoft Learn — AZ-500 (Microsoft Azure Security Technologies) and SC-100 (Microsoft Cybersecurity Architect) exam study guides — Defender for Cloud sits in 'Manage security operations' / 'Secure compute, storage and databases' (AZ-500) and posture/CNAPP strategy design (SC-100). learn.microsoft.com/credentials/certifications/exams/az-500 · /exams/sc-100
What's next?
Defender for Cloud told you the storage account was exposed — but what actually controls which traffic reaches your VMs and subnets in the first place? Next we drop down to the network layer and build defence in depth with NSGs and Azure Firewall.