Defender for Cloud Posture
Defender CSPM · attack paths · regulatory compliance · workload protection plans · AWS and GCP connectors · Defender Vulnerability Management · Defender EASM
By the tools4free.dev team · Last reviewed November 13, 2026
Practice questions for this topic →
CSPM plans: Foundational vs Defender CSPM
| Capability | Foundational CSPM (free) | Defender CSPM (paid) |
|---|---|---|
| Asset inventory, secure score, recommendations, Microsoft Cloud Security Benchmark (MCSB) | Yes | Yes |
| Attack path analysis | No | Yes |
| Risk hunting with cloud security explorer | No | Yes |
| Regulatory compliance assessments | No | Yes |
| Agentless VM vulnerability scanning and secrets scanning | No | Yes |
| Governance to drive remediation at scale | No | Yes |
| AI security posture management, internet exposure analysis, external attack surface management | No | Yes |
| Data security posture management (DSPM), sensitive data scanning | No | Yes |
- Enable Defender CSPM: Defender for Cloud > Environment settings, select the Azure subscription, AWS account or GCP project, toggle Defender CSPM to On, then Save.
- Agentless scanning requires the Subscription Owner to enable the plan. A lower role can switch the plan on, but the agentless scanner stays off. Attack path analysis and security explorer then do not populate with vulnerabilities.
- After the plan is on, select Settings to turn on components: agentless scanning for machines (you can add an exclusion tag name and value), agentless discovery for Kubernetes, agentless container vulnerability assessments, sensitive data discovery, CIEM, serverless protection, and Serverless Containers (enable Registry access for full coverage).
- Agentless discovery for Kubernetes is required for attack path analysis (Defender CSPM only). CIEM setup and data collection might take up to 24 hours.
- Advanced DevOps posture features (pull request annotations, code-to-cloud mapping, attack path analysis, security explorer) require the paid Defender CSPM plan. The free plan gives basic Azure DevOps recommendations.
Billing: Defender CSPM protects all Azure workloads, but billing applies only to listed resource types. Storage accounts without blob containers or file shares are excluded. Billing for Serverless protection (Function Apps, Web Apps, AWS Lambda) became effective April 1, 2026 and for Serverless Containers July 1, 2026, and starts once you enable the component. One AWS billable resource represents eight Lambda functions or two Amazon ECS on AWS Fargate workloads.
Preview markers on the CSPM page at the time of writing: the Azure Kubernetes Service security dashboard and AWS CloudTrail ingestion are marked Preview.
Attack paths and cloud security explorer
- Both are part of the Defender CSPM plan and need agentless scanning for VMs or the vulnerability assessment capability on Defender for Servers.
- The cloud security graph is the graph-based context engine behind both. It holds assets, connections, lateral movement possibilities, internet exposure, permissions, network connections and vulnerabilities.
- Attack path analysis finds exploitable paths: an external entry point (such as an internet-exposed vulnerable resource), lateral movement (such as attached identities with permissions), and a critical target (such as a database with sensitive data). Risk is based on internet exposure, permissions and lateral movement. Open it at Microsoft Defender for Cloud > Attack path analysis.
- Cloud security explorer runs graph-based queries so you can proactively hunt for risks. Open it at Microsoft Defender for Cloud > Cloud security explorer.
Regulatory compliance
| Cloud | Standards enabled by default |
|---|---|
| Azure | Microsoft Cloud Security Benchmark (MCSB) |
| AWS | MCSB and AWS Foundational Security Best Practices standard |
| GCP | MCSB and GCP Default |
- Standards use Azure Policy initiatives. Each standard is a set of controls, and each control groups related recommendations.
- Add a non-default standard: at least one paid plan must be enabled (not only Defender for Servers Plan 1 or Defender for API Plan 1). You need Owner or Policy Contributor.
- Steps: Regulatory compliance > Manage compliance policies, select the account or management account, Security policies, toggle the standard On (fill Set parameters if asked). Microsoft recommends the highest applicable scope.
- To read the dashboard data: the Reader role on the subscription has access to the policy compliance data, but Security Reader does not.
- A standard with no relevant assessed resources does not appear on the dashboard. A control that cannot be assessed automatically shows greyed out.
- Manual controls: open the assessment under Manual attestation and evidence, select the subscriptions, Attest, enter information, attach evidence, Save.
- Assessments run about every 12 hours, so fixes show up after the next run.
- Download report creates a PDF summary for one standard. Audit reports downloads Azure and Dynamics certification reports.
- Continuous export sends compliance data (a continuous stream or weekly snapshots) to Azure Event Hubs or a Log Analytics workspace. Workflow automation can trigger a logic app when an assessment changes state.
- Compliance data integrates with Microsoft Purview Compliance Manager: standards you add are automatically surfaced there.
- The Defender portal shows compliance for monitoring; configuration and assignment of standards is done in the Azure portal experience.
Workload protection plans
| Plan | What to know |
|---|---|
| Defender for Servers Plan 1 | Entry level; focuses on EDR from the Defender for Endpoint integration. Can be enabled for a subscription or a single resource. |
| Defender for Servers Plan 2 | Same features as Plan 1 plus more, including agentless machine scanning. Enable for a subscription; it cannot be enabled for one resource, but can be disabled for one resource. |
| Defender for Storage | Enable at subscription or storage account level. Azure built-in policy is the recommended method at scale. Monthly malware scanning cap per storage account defaults to 10,000 GB. |
| Defender for Databases | Turning the Databases plan on activates four plans: Azure SQL Databases, SQL Servers on Machines, open-source relational databases, Azure Cosmos DB. Each is priced separately. |
- After enabling a Defender for Servers plan: a 30-day trial starts (you cannot stop, pause or extend it); the Defender for Endpoint extension is installed automatically on supported connected machines; Defender Vulnerability Management is on by default for machines with that extension; agentless scanning is on by default with Plan 2.
- OS configuration assessment (Plan 2) needs the Azure Machine Configuration extension on the machine. File integrity monitoring is set up after enabling Plan 2.
- Defender for Servers no longer uses the Log Analytics agent or Azure Monitor Agent for most plan features. Agentless scanning and the Defender for Endpoint integration replace them.
- Enable all on Environment settings turns on every plan for a subscription. Plans at workspace level: Defender for Servers and Defender for SQL servers on machines. Turning a plan off does not uninstall its extensions; they stop collecting data.
- Free trial: first 30 days or until the usage limit for certain plans is reached. Malware scanning in Defender for Storage is not free during the trial.
- To view a resource in Defender for Cloud you need Owner, Contributor or Reader on the subscription or the resource group.
Connect AWS and GCP
| Item | AWS | GCP |
|---|---|---|
| Azure permission | Contributor on the Azure subscription | Contributor on the Azure subscription |
| Connector scope | Single account, or management account (member and new accounts are auto provisioned) | Single project, or organization (optional exclusions of projects and folders) |
| Scan interval | Every 4, 6, 12 or 24 hours | Every 4, 6, 12 or 24 hours (some collectors fixed at 1 hour) |
| Access type | Default access or Least privilege access | Default access or Least privilege access |
| Deploy in the other cloud | AWS CloudFormation or Terraform | Run the generated gcloud script (workload identity pool, provider, service accounts) |
| Authentication | Federated trust with short-lived credentials | Workload identity federation and service account impersonation |
- Start at Defender for Cloud > Environment settings > Add environment, then pick Amazon Web Services or Google Cloud Platform.
- AWS management account: use only the management account; delegated administrator accounts are not supported. If CloudFormation reports "You must enable organizations access to operate a service managed stack set", enable trusted access for AWS Organizations on the StackSets page and rerun.
- An AWS account that is connected to Microsoft Sentinel cannot be connected the standard way; follow the separate Learn instructions for a Sentinel-connected AWS account.
- Servers on AWS need Azure Arc on the EC2 instances (autoprovisioning needs Owner on the Azure subscription) and the AWS SSM Agent with the AmazonSSMManagedInstanceCore policy. Arc servers whose EC2 or GCP VM no longer exists, or that are Disconnected or Expired, are removed after seven days.
- CIEM in Defender CSPM needs the Security Admin role and Application.ReadWrite.All for the tenant; for AWS the user also needs Application Administrator or Cloud Application Administrator in Microsoft Entra ID.
- GCP: enable
iam.googleapis.com,sts.googleapis.com,cloudresourcemanager.googleapis.com,iamcredentials.googleapis.comandcompute.googleapis.comon the project where you run the script (the management project for an organization). - After onboarding, check Connectivity status in Environment settings. If you add a plan or change plan settings, update the CloudFormation template (AWS) or rerun the new gcloud script (GCP).
- The AWS connector is not available in Azure Government or Microsoft Azure operated by 21Vianet. Hybrid and on-premises machines connect through Azure Arc.
- AWS CloudTrail ingestion and GCP Cloud Logging ingestion are marked Preview on the connector pages at the time of writing.
Vulnerability Management and Defender EASM
Microsoft Defender Vulnerability Management (Azure VMs)
- Defender for Cloud uses Defender Vulnerability Management to scan machines, agentless or agent-based. Scanning is on by default when you enable Defender for Servers.
- Agentless scanning is on by default with Defender for Servers Plan 2 or the Defender for Servers CSPM plan. Agent-based scanning needs Plan 1 or Plan 2.
- To turn it on yourself: Environment settings, the subscription, Defender for Servers Monitoring coverage > Settings, turn on Vulnerability assessment for machines, Edit configuration to choose the solution, Apply and Save.
- Owner at the resource group level deploys the scanner; Security Reader views findings. On a single VM the REST call is a PUT (enable) or DELETE (disable).
- Defender Vulnerability Management premium features are only available in the Defender portal.
Microsoft Defender EASM
| Asset state | Meaning |
|---|---|
| Approved Inventory | Part of your owned attack surface. Always in dashboard charts and scanned daily. |
| Dependency | Third-party infrastructure that directly supports your owned assets. |
| Monitor Only | Relevant to your attack surface but not controlled by you or a technical dependency. |
| Candidate | Some relationship to your seeds, not strong enough for Approved Inventory. Review manually. Scanned only during discovery. |
| Requires Investigation | Like Candidate; flagged by confidence scores for manual validation. |
- Create a resource group, then a Microsoft Defender EASM resource in it. You need the Contributor role to create it. A 30-day free trial is available. Owner or Contributor can create, delete and edit resources and assets; Reader can only view.
- Discovery starts from seeds (known domains, hosts, IP blocks and similar) and recursively maps connected infrastructure. Assets found include domains, IP blocks, hosts, email contacts, ASNs and Whois organizations.
- Custom discovery runs as discovery groups. The default recurrence is Weekly; select Never for one run. Private IP addresses cannot be seeds. Exclusions apply only to future runs of that group.
- Defender EASM does not support cross-tenant resource access, including via Azure Lighthouse.
Exam Tips
Tick each tip once you can answer it without looking.
“Attack path analysis or cloud security explorer needed” → Enable the paid Defender CSPM plan. Trap: Foundational CSPM is free and has neither; Defender for Servers Plan 1 is EDR focused.
“Defender CSPM on, but attack paths show no vulnerabilities; plan was enabled by a non-Owner” → Subscription Owner must enable the plan; the agentless scanner is off otherwise. Trap: A lower role can enable the plan, but the page says the agentless scanner is not enabled by default.
“Prerequisite for attack paths and security explorer data” → Agentless scanning for VMs or vulnerability assessment on Defender for Servers. Trap: Agentless discovery for Kubernetes is a separate component, also needed for attack paths.
“Standards on by default after connecting a cloud” → Azure: MCSB. AWS: MCSB + AWS Foundational Security Best Practices. GCP: MCSB + GCP Default. Trap: Only the standards listed are enabled by default; any other standard must be added.
“Add a non-default regulatory standard” → Needs a paid plan; Owner or Policy Contributor; Manage compliance policies > Security policies > On. Trap: Defender for Servers Plan 1 or Defender for API Plan 1 alone does not unlock compliance standards.
“Standard assigned but missing on the dashboard” → No relevant assessed resources in scope. Trap: A greyed-out control means it cannot be assessed automatically, not that the standard is missing.
“Analyst cannot see policy compliance data” → Reader on the subscription has it; Security Reader does not. Trap: Security Reader sounds right but does not give the policy compliance data.
“Control cannot be assessed automatically; auditor wants proof” → Manual attestation: Attest and attach evidence. Trap: Download report and continuous export do not record an attestation.
“Send compliance data to other tools” → Continuous export to Event Hubs or a Log Analytics workspace; workflow automation for Logic Apps; Compliance Manager is automatic. Trap: Compliance Manager is an automatic integration, not a continuous export target.
“Protect only some servers with Defender for Servers” → Plan 1 can be enabled per resource; Plan 2 cannot be enabled per resource, only disabled. Trap: Enabling at subscription level covers every server in it.
“Pause or extend the Defender for Servers trial” → Not possible: the 30-day trial cannot be stopped, paused or extended. Trap: Defender for Storage malware scanning is charged from day one even in the trial.
“Which plans work at workspace level” → Defender for Servers and Defender for SQL servers on machines. Trap: Storage, SQL and open-source databases are subscription or resource level.
“Enable Defender for Storage on all current and future accounts” → Azure built-in policy (recommended); malware scan cap defaults to 10,000 GB per account per month. Trap: Policy is the recommended method for enabling at scale; account-by-account is not.
“AWS management account connector fails with a stack set error” → Enable trusted access for AWS Organizations on the CloudFormation StackSets page, then rerun. Trap: Delegated administrator accounts are not supported for management account onboarding.
“AWS account already connected to Microsoft Sentinel” → Cannot use the standard connector; follow the Sentinel-connected AWS account instructions. Trap: Creating a second connector the normal way is not supported.
“GCP organization onboarding, APIs for the script” → Enable the listed APIs on the management project (single project: the project running the script). Trap: Defender for Cloud does not enable them for you; the Cloud Shell script can during onboarding.
“Defender Vulnerability Management on Azure VMs” → On by default with Defender for Servers; Owner at resource group deploys the scanner; Security Reader views findings. Trap: Agent-based needs Plan 1 or 2; agentless is on by default with Plan 2 or the Defender for Servers CSPM plan.
“Defender EASM discovery and roles” → Seeds start discovery; private IPs not allowed; Contributor creates the resource; Candidate assets need manual review. Trap: Reader can only view Defender EASM data.
Sources
- What is Cloud Security Posture Management (CSPM)
- Protect your resources with Defender CSPM
- Security explorer and attack paths
- Improve regulatory compliance
- Assign regulatory compliance standards
- Regulatory compliance in Defender for Cloud
- Connect your Azure subscriptions
- Overview of Defender for Servers
- Deploy Defender for Storage
- Protect your databases with Defender for Databases
- Connect your AWS account
- Connect your GCP project
- Enable vulnerability scanning with Defender Vulnerability Management
- Defender EASM overview
- Create a Defender EASM Azure resource
- Understand inventory assets
- Use and manage discovery in Defender EASM
Checked against Microsoft Learn on November 13, 2026.