Identify and remediate attack paths
Defender for Cloud's contextual security capabilities assists security teams in the reduction of the risk of impactful breaches. Defender for Cloud uses environment context to perform a risk assessment of your security issues. Defender for Cloud identifies the biggest security risk issues, while distinguishing them from less risky issues.
Attack path analysis helps you to address the security issues that pose immediate threats with the greatest potential of being exploited in your environment. Defender for Cloud analyzes which security issues are part of potential attack paths that attackers could use to breach your environment. It also highlights the security recommendations that need to be resolved in order to mitigate it.
You can check out the full list of Attack path names and descriptions.
Availability
Aspect | Details |
---|---|
Release state | GA (General Availability) |
Prerequisites | - Enable agentless scanning, or Enable Defender for Server P1 (which includes MDVM) or Defender for Server P2 (which includes MDVM and Qualys). - Enable Defender CSPM - Enable Defender for Containers, and install the relevant agents in order to view attack paths that are related to containers. This also gives you the ability to query containers data plane workloads in security explorer. |
Required plans | - Defender Cloud Security Posture Management (CSPM) enabled |
Required roles and permissions: | - Security Reader - Security Admin - Reader - Contributor - Owner |
Clouds: | ![]() ![]() ![]() |
Features of the attack path overview page
The attack path page shows you an overview of all of your attack paths. You can also see your affected resources and a list of active attack paths.
On this page you can organize your attack paths based on name, environment, paths count, risk categories.
For each attack path, you can see all of risk categories and any affected resources.
The potential risk categories include credentials exposure, compute abuse, data exposure, subscription and account takeover.
Learn more about the cloud security graph, attack path analysis, and the cloud security explorer?.
Investigate and remediate attack paths
You can use Attack path analysis to locate the biggest risks to your environment and to remediate them.
To investigate and remediate an attack path:
Sign in to the Azure portal.
Navigate to Microsoft Defender for Cloud > Recommendations > Attack path.
Select an attack path.
Note
An attack path may have more than one path that is at risk. The path count will tell you how many paths need to be remediated. If the attack path has more than one path, you will need to select each path within that attack path to remediate all risks.
Select a node.
Select Insight to view the associated insights for that node.
Select Recommendations.
Select a recommendation.
Follow the remediation steps to remediate the recommendation.
Select other nodes as necessary and view their insights and recommendations as necessary.
Once an attack path is resolved, it can take up to 24 hours for an attack path to be removed from the list.
View all recommendations with attack path
Attack path analysis also gives you the ability to see all recommendations by attack path without having to check each node individually. You can resolve all recommendations without having to view each node individually.
To resolve all recommendations:
Sign in to the Azure portal.
Navigate to Microsoft Defender for Cloud > Recommendations > Attack paths.
Select an attack path.
Select Recommendations.
Select a recommendation.
Follow the remediation steps to remediate the recommendation.
Once an attack path is resolved, it can take up to 24 hours for an attack path to be removed from the list.
Consume attack path data programmatically using API
You can consume attack path data programmatically by querying Azure Resource Graph (ARG) API. Learn how to query ARG API.
The following examples show sample ARG queries that you can run:
Get all attack paths in subscription ‘X’:
securityresources
| where type == "microsoft.security/attackpaths"
| where subscriptionId == <SUBSCRIPTION_ID>
Get all instances for a specific attack path: For example, ‘Internet exposed VM with high severity vulnerabilities and read permission to a Key Vault’.
securityresources
| where type == "microsoft.security/attackpaths"
| where subscriptionId == "212f9889-769e-45ae-ab43-6da33674bd26"
| extend AttackPathDisplayName = tostring(properties["displayName"])
| where AttackPathDisplayName == "<DISPLAY_NAME>"
API response schema
The following table lists the data fields returned from the API response:
Field | Description |
---|---|
ID | The Azure resource ID of the attack path instance |
Name | The Unique identifier of the attack path instance |
Type | The Azure resource type, always equals “microsoft.security/attackpaths” |
Tenant ID | The tenant ID of the attack path instance |
Location | The location of the attack path |
Subscription ID | The subscription of the attack path |
Properties.description | The description of the attack path |
Properties.displayName | The display name of the attack path |
Properties.attackPathType | The type of the attack path |
Properties.manualRemediationSteps | Manual remediation steps of the attack path |
Properties.refreshInterval | The refresh interval of the attack path |
Properties.potentialImpact | The potential impact of the attack path being breached |
Properties.riskCategories | The categories of risk of the attack path |
Properties.entryPointEntityInternalID | The internal ID of the entry point entity of the attack path |
Properties.targetEntityInternalID | The internal ID of the target entity of the attack path |
Properties.assessments | Mapping of entity internal ID to the security assessments on that entity |
Properties.graphComponent | List of graph components representing the attack path |
Properties.graphComponent.insights | List of insights graph components related to the attack path |
Properties.graphComponent.entities | List of entities graph components related to the attack path |
Properties.graphComponent.connections | List of connections graph components related to the attack path |
Properties.AttackPathID | The unique identifier of the attack path instance |
External attack surface management (EASM)
An external attack surface is the entire area of an organization or system that is susceptible to an attack from an external source. An organization's attack surface is made up of all the points of access that an unauthorized person could use to enter their system. The larger your attack surface is, the harder it's to protect.
While you're investigating and remediating an attack path, you can also view your EASM if it's available, and if you've enabled Defender EASM to your subscription.
Note
To manage your EASM, you must deploy the Defender EASM Azure resource to your subscription. Defender EASM has its own cost and is separate from Defender for Cloud. To learn more about Defender for EASM pricing options, you can check out the pricing page.
To manage your EASM:
Sign in to the Azure portal.
Navigate to Microsoft Defender for Cloud > Recommendations > Attack paths.
Select an attack path.
Select a resource.
Select Insights.
Select Open EASM.
Follow the Using and managing discovery instructions.
Next Steps
Learn how to build queries with cloud security explorer.
Feedback
Submit and view feedback for