Understanding Microsoft Defender for Cloud
This lesson explains the two jobs of Defender for Cloud and how its plans are organized.
Learning outcomes
After completing this lesson, you will be able to:
- Distinguish posture management from workload protection.
- Compare Foundational CSPM, Defender CSPM and workload plans.
- Distinguish a recommendation from an alert.
- Describe how Defender for Cloud relates to the Defender portal.
Two jobs
Microsoft Defender for Cloud is a cloud-native application protection platform. It performs two broad jobs, and it helps to keep them separate. Cloud security posture management (CSPM) asks how well configured the environment is: are storage accounts public, are management ports open, is multifactor authentication required? Cloud workload protection (CWP) asks whether a workload is under attack now: is a malicious file on this server, or is someone probing this database?
Posture management reduces the attack surface before an attack, and workload protection detects attacks that occur anyway. Most organizations need both. Defender for Cloud covers Azure, and through connectors it also covers AWS, GCP and on-premises machines.
The plan structure
Defender for Cloud is enabled per subscription, and features depend on which plans are on. The free tier is a useful baseline, and the paid plans add depth.
The workload protection plans include Defender for Servers, Storage, Databases, Containers, Key Vault, App Service, Resource Manager, APIs and AI services. Each is explained in the module that covers that resource, so this lesson concentrates on the common framework. Plans are turned on under Environment settings, on the page for each subscription.
Which plan level?
How assessments work
Defender for Cloud assesses resources in several ways. Azure Policy initiatives evaluate Resource Manager settings, and the built-in Microsoft Cloud Security Benchmark assignment appears in the subscription's policy list. Agentless scanners analyse disks and registries. The Defender for Endpoint sensor reports from within machines. For AWS and GCP, a connector reads configuration through federated access. The results become recommendations, and threats become security alerts.
A recommendation describes a weakness and how to fix it, and it remains until the resource is healthy. An alert describes a suspicious event, and it needs investigation. Candidates should not confuse the two: a recommendation that a VM has an open management port is posture, whereas an alert of a brute-force attack on that port is a threat.
Where to work
The Azure portal has long been the home of Defender for Cloud, and it remains the place for configuring plans and standards. The Microsoft Defender portal now also offers a cloud security experience, including unified incidents and the risk-based Cloud Secure Score. Standards are read-only in the Defender portal, so configuration stays in Azure. Enabling integration with Defender XDR brings alerts into unified incidents, which correlate cloud, endpoint, identity and email signals into one story.
Access uses Azure roles. Security Reader views information, Security Admin can dismiss alerts and manage policy, and resource owners remediate. Defender for Cloud also supports email notifications of alerts, and continuous export to Log Analytics or Event Hubs.
Azure portal or Defender portal?
Enabling a plan
The following command enables the Key Vault plan on the current subscription, and the second lists the state of every plan. These commands help when working across many subscriptions.
az security pricing create --name KeyVaults --tier Standard
az security pricing list --query "value[].{plan:name,tier:pricingTier}" -o tableAcross an organization, built-in Azure Policy definitions can enable plans on every subscription, including new ones, so that coverage does not depend on someone remembering.
Choosing the right capability
A company wants to know which of 2,000 recommendations could lead an attacker to its customer database, and it also needs alerts if a brute-force attack targets its VMs. It has only the free tier. What should it enable?
The first need is prioritization with attack context, which is attack path analysis in Defender CSPM. The second is threat detection on a workload, which needs Defender for Servers. These are two separate plans because they do two separate jobs.
Foundational CSPM would list the recommendations, but it would not show paths. Defender for Servers would not rank posture findings. Microsoft Sentinel could also detect attacks, but it depends on data that it receives and would not supply attack paths.
An open management port appears on a VM, and a brute-force attempt is detected on it. Which is the recommendation, and which is the alert?
Show answer
The open port is a recommendation, which is a weakness. The attempt is an alert, which is an event.
Exam Tips
Remember for the exam
- CSPM is about configuration; workload protection is about active threats.
- A recommendation describes a weakness; an alert describes an event.
- Plans are turned on in Environment settings.
- Azure Policy can enable plans across subscriptions.